Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
gogirl-miniapp-backend
Commits
86ce4857
Commit
86ce4857
authored
Jul 23, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
战术更新
parent
1089fb95
Hide whitespace changes
Inline
Side-by-side
Showing
62 changed files
with
333 additions
and
347 deletions
+333
-347
BaseServeService.java
...om/gogirl/application/product/serve/BaseServeService.java
+1
-3
BaseServeServiceImpl.java
.../application/product/serve/impl/BaseServeServiceImpl.java
+2
-3
IOverTimeRecordLogService.java
...ogirl/application/store/oa/IOverTimeRecordLogService.java
+6
-9
IOverTimeRecordService.java
...m/gogirl/application/store/oa/IOverTimeRecordService.java
+24
-0
ITakeLeaveEventService.java
...m/gogirl/application/store/oa/ITakeLeaveEventService.java
+16
-0
OverTimeRecordLogServiceImpl.java
...plication/store/oa/impl/OverTimeRecordLogServiceImpl.java
+20
-0
OverTimeRecordServiceImpl.java
.../application/store/oa/impl/OverTimeRecordServiceImpl.java
+44
-0
TakeLeaveEventServiceImpl.java
.../application/store/oa/impl/TakeLeaveEventServiceImpl.java
+20
-0
TakeLeaveEventCmdServiceImpl.java
...cation/store/store/impl/TakeLeaveEventCmdServiceImpl.java
+8
-8
BaseServe.java
src/main/java/com/gogirl/domain/product/serve/BaseServe.java
+1
-1
OverTimeRecord.java
src/main/java/com/gogirl/domain/store/oa/OverTimeRecord.java
+1
-1
BaseServeMapper.java
.../infrastructure/mapper/product/serve/BaseServeMapper.java
+1
-4
OverTimeRecordMapper.java
.../infrastructure/mapper/store/oa/OverTimeRecordMapper.java
+2
-2
TakeLeaveEventMapper.java
.../infrastructure/mapper/store/oa/TakeLeaveEventMapper.java
+2
-2
MallCustomerAddressController.java
.../interfaces/order/mall/MallCustomerAddressController.java
+5
-8
PayController.java
...java/com/gogirl/interfaces/order/serve/PayController.java
+1
-2
ScheduleManageController.java
...girl/interfaces/order/serve/ScheduleManageController.java
+0
-6
MallShoppingCartController.java
...l/interfaces/product/mall/MallShoppingCartController.java
+8
-21
BroadcastController.java
.../gogirl/interfaces/product/serve/BroadcastController.java
+0
-1
ServeController.java
.../com/gogirl/interfaces/product/serve/ServeController.java
+4
-37
TypeController.java
...a/com/gogirl/interfaces/product/serve/TypeController.java
+4
-9
OverTimeRecordController.java
.../gogirl/interfaces/store/oa/OverTimeRecordController.java
+7
-28
TakeLeaveEventController.java
.../gogirl/interfaces/store/oa/TakeLeaveEventController.java
+1
-1
TrainingQuestionController.java
...interfaces/store/training/TrainingQuestionController.java
+0
-25
MallShoppingCartCommand.java
...va/com/gogirl/shared/product/MallShoppingCartCommand.java
+3
-0
OrderTimeRecordPageQuery.java
...ava/com/gogirl/shared/store/OrderTimeRecordPageQuery.java
+4
-5
BaseServeMapper.xml
src/main/resources/mapper/product/BaseServeMapper.xml
+112
-148
OverTimeRecordMapper.xml
src/main/resources/mapper/store/OverTimeRecordMapper.xml
+2
-3
TakeLeaveEventMapper.xml
src/main/resources/mapper/store/TakeLeaveEventMapper.xml
+2
-3
TrainingFeedbackDetailMapper.xml
...n/resources/mapper/store/TrainingFeedbackDetailMapper.xml
+0
-0
TrainingFeedbackMapper.xml
src/main/resources/mapper/store/TrainingFeedbackMapper.xml
+0
-0
TrainingQuestionMapper.xml
src/main/resources/mapper/store/TrainingQuestionMapper.xml
+0
-0
TrainingQuestionOptionMapper.xml
...n/resources/mapper/store/TrainingQuestionOptionMapper.xml
+0
-0
TrainingStartClassLogTechnicianMapper.xml
...es/mapper/store/TrainingStartClassLogTechnicianMapper.xml
+0
-0
TrainingStartClassMapper.xml
src/main/resources/mapper/store/TrainingStartClassMapper.xml
+0
-0
OverTimeRecordLogMapper.xml
...ain/resources/mapper/store/oa/OverTimeRecordLogMapper.xml
+5
-0
OverTimeRecordMapper.xml
src/main/resources/mapper/store/oa/OverTimeRecordMapper.xml
+5
-0
TakeLeaveEventMapper.xml
src/main/resources/mapper/store/oa/TakeLeaveEventMapper.xml
+5
-0
BaseScheduledTypeMapper.xml
src/main/resources/mapper/xcx/BaseScheduledTypeMapper.xml
+0
-0
ColorSystemMapper.xml
src/main/resources/mapper/xcx/ColorSystemMapper.xml
+0
-0
ColorSystemProductMapMapper.xml
...main/resources/mapper/xcx/ColorSystemProductMapMapper.xml
+0
-0
ColorSystemTypeMapper.xml
src/main/resources/mapper/xcx/ColorSystemTypeMapper.xml
+0
-0
ComplaintDetailedTechnicianMapper.xml
...esources/mapper/xcx/ComplaintDetailedTechnicianMapper.xml
+0
-0
CouponExcludeDetailedMapper.xml
...main/resources/mapper/xcx/CouponExcludeDetailedMapper.xml
+0
-0
CouponStoreMapper.xml
src/main/resources/mapper/xcx/CouponStoreMapper.xml
+0
-0
LeisureDiscountConfigLimitMapper.xml
...resources/mapper/xcx/LeisureDiscountConfigLimitMapper.xml
+0
-0
LeisureDiscountConfigWeekMapper.xml
.../resources/mapper/xcx/LeisureDiscountConfigWeekMapper.xml
+0
-0
MallOrderTechnicianMapper.xml
src/main/resources/mapper/xcx/MallOrderTechnicianMapper.xml
+0
-0
OrderIncomeFlowMapper.xml
src/main/resources/mapper/xcx/OrderIncomeFlowMapper.xml
+0
-0
OrderPayMapper.xml
src/main/resources/mapper/xcx/OrderPayMapper.xml
+0
-0
OwnProduceMapper.xml
src/main/resources/mapper/xcx/OwnProduceMapper.xml
+0
-0
OwnProduceTechniqueSkuMapper.xml
...ain/resources/mapper/xcx/OwnProduceTechniqueSkuMapper.xml
+0
-0
PurchaseSkuTypeMapper.xml
src/main/resources/mapper/xcx/PurchaseSkuTypeMapper.xml
+0
-0
TechScoreRulesMapper.xml
src/main/resources/mapper/xcx/TechScoreRulesMapper.xml
+0
-0
TechniqueCategoryMapper.xml
src/main/resources/mapper/xcx/TechniqueCategoryMapper.xml
+0
-0
TechniqueSkuMapper.xml
src/main/resources/mapper/xcx/TechniqueSkuMapper.xml
+0
-0
TimeNodeMapper.xml
src/main/resources/mapper/xcx/TimeNodeMapper.xml
+0
-0
TimesCardOrderServeDetailMapper.xml
.../resources/mapper/xcx/TimesCardOrderServeDetailMapper.xml
+0
-0
VipServeMapper.xml
src/main/resources/mapper/xcx/VipServeMapper.xml
+0
-0
WeekConfigMapper.xml
src/main/resources/mapper/xcx/WeekConfigMapper.xml
+0
-0
CodeGenerator.java
src/test/java/com/gogirl/CodeGenerator.java
+1
-1
Test.java
src/test/java/com/gogirl/Test.java
+16
-16
No files found.
src/main/java/com/gogirl/application/product/serve/BaseServeService.java
View file @
86ce4857
...
...
@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
import
com.gogirl.domain.product.serve.BaseServe
;
import
java.time.LocalDateTime
;
import
java.util.List
;
/**
* Created by yinyong on 2018/8/21.
...
...
@@ -18,10 +17,9 @@ public interface BaseServeService extends IService<BaseServe> {
* 查询服务列表
*
* @param param
* @param serveIdList
* @return
*/
IPage
<
BaseServe
>
listServeForPage
(
IPage
<
BaseServe
>
page
,
BaseServe
param
,
List
<
Integer
>
serveIdList
);
IPage
<
BaseServe
>
listServeForPage
(
IPage
<
BaseServe
>
page
,
BaseServe
param
);
/**
* 查询服务聚合
...
...
src/main/java/com/gogirl/application/product/serve/impl/BaseServeServiceImpl.java
View file @
86ce4857
...
...
@@ -10,7 +10,6 @@ import lombok.AllArgsConstructor;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.util.List
;
@Service
@AllArgsConstructor
...
...
@@ -20,8 +19,8 @@ public class BaseServeServiceImpl extends ServiceImpl<BaseServeMapper, BaseServe
@Override
public
IPage
<
BaseServe
>
listServeForPage
(
IPage
<
BaseServe
>
page
,
BaseServe
param
,
List
<
Integer
>
serveIdList
)
{
return
baseServeMapper
.
listServeForPage
(
page
,
param
,
serveIdList
);
public
IPage
<
BaseServe
>
listServeForPage
(
IPage
<
BaseServe
>
page
,
BaseServe
param
)
{
return
baseServeMapper
.
listServeForPage
(
page
,
param
);
}
...
...
src/main/java/com/gogirl/
interfaces/store/complaint/RecentDeductedComplaintScoreController
.java
→
src/main/java/com/gogirl/
application/store/oa/IOverTimeRecordLogService
.java
View file @
86ce4857
package
com
.
gogirl
.
interfaces
.
store
.
complaint
;
package
com
.
gogirl
.
application
.
store
.
oa
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.gogirl.domain.store.oa.OverTimeRecordLog
;
/**
* <p>
*
前端控制器
*
服务类
* </p>
*
* @author robbendev
* @since 2020-07-2
0
* @since 2020-07-2
3
*/
@RestController
@RequestMapping
(
"/recent-deducted-complaint-score"
)
public
class
RecentDeductedComplaintScoreController
{
public
interface
IOverTimeRecordLogService
extends
IService
<
OverTimeRecordLog
>
{
}
src/main/java/com/gogirl/application/store/oa/IOverTimeRecordService.java
0 → 100644
View file @
86ce4857
package
com
.
gogirl
.
application
.
store
.
oa
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.gogirl.domain.store.oa.OverTimeRecord
;
import
com.gogirl.shared.store.OrderTimeRecordPageQuery
;
/**
* <p>
* 加班记录表 服务类
* </p>
*
* @author robbendev
* @since 2020-07-23
*/
public
interface
IOverTimeRecordService
extends
IService
<
OverTimeRecord
>
{
/**
* 加班记录
*
* @param qry
*/
IPage
<
OverTimeRecord
>
queryPage
(
OrderTimeRecordPageQuery
qry
);
}
src/main/java/com/gogirl/application/store/oa/ITakeLeaveEventService.java
0 → 100644
View file @
86ce4857
package
com
.
gogirl
.
application
.
store
.
oa
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.gogirl.domain.store.oa.TakeLeaveEvent
;
/**
* <p>
* 请假记录表 服务类
* </p>
*
* @author robbendev
* @since 2020-07-23
*/
public
interface
ITakeLeaveEventService
extends
IService
<
TakeLeaveEvent
>
{
}
src/main/java/com/gogirl/application/store/oa/impl/OverTimeRecordLogServiceImpl.java
0 → 100644
View file @
86ce4857
package
com
.
gogirl
.
application
.
store
.
oa
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.gogirl.application.store.oa.IOverTimeRecordLogService
;
import
com.gogirl.domain.store.oa.OverTimeRecordLog
;
import
com.gogirl.infrastructure.mapper.store.oa.OverTimeRecordLogMapper
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 服务实现类
* </p>
*
* @author robbendev
* @since 2020-07-23
*/
@Service
public
class
OverTimeRecordLogServiceImpl
extends
ServiceImpl
<
OverTimeRecordLogMapper
,
OverTimeRecordLog
>
implements
IOverTimeRecordLogService
{
}
src/main/java/com/gogirl/application/store/oa/impl/OverTimeRecordServiceImpl.java
0 → 100644
View file @
86ce4857
package
com
.
gogirl
.
application
.
store
.
oa
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.gogirl.application.store.oa.IOverTimeRecordService
;
import
com.gogirl.domain.store.oa.OverTimeRecord
;
import
com.gogirl.infrastructure.common.util.SessionUtils
;
import
com.gogirl.infrastructure.mapper.store.oa.OverTimeRecordMapper
;
import
com.gogirl.shared.store.OrderTimeRecordPageQuery
;
import
org.springframework.stereotype.Service
;
import
java.util.Calendar
;
import
java.util.Date
;
/**
* <p>
* 加班记录表 服务实现类
* </p>
*
* @author robbendev
* @since 2020-07-23
*/
@Service
public
class
OverTimeRecordServiceImpl
extends
ServiceImpl
<
OverTimeRecordMapper
,
OverTimeRecord
>
implements
IOverTimeRecordService
{
@Override
public
IPage
<
OverTimeRecord
>
queryPage
(
OrderTimeRecordPageQuery
qry
)
{
Calendar
cale
=
Calendar
.
getInstance
();
cale
.
add
(
Calendar
.
MONTH
,
0
);
cale
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
Date
firstDay
=
cale
.
getTime
();
Date
paramDate
=
new
Date
(
firstDay
.
getTime
()
-
7
*
24
*
60
*
60
*
1000
);
IPage
<
OverTimeRecord
>
page
=
new
Page
<>();
page
=
baseMapper
.
selectPage
(
page
,
new
LambdaQueryWrapper
<
OverTimeRecord
>()
.
eq
(
OverTimeRecord:
:
getTechnicianId
,
SessionUtils
.
getTechnicianId
())
.
gt
(
OverTimeRecord:
:
getLeftTimeLength
,
0
)
.
ge
(
OverTimeRecord:
:
getStartTime
,
paramDate
.
getTime
())
.
ge
(
OverTimeRecord:
:
getEndTime
,
paramDate
.
getTime
()));
return
page
;
}
}
src/main/java/com/gogirl/application/store/oa/impl/TakeLeaveEventServiceImpl.java
0 → 100644
View file @
86ce4857
package
com
.
gogirl
.
application
.
store
.
oa
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.gogirl.application.store.oa.ITakeLeaveEventService
;
import
com.gogirl.domain.store.oa.TakeLeaveEvent
;
import
com.gogirl.infrastructure.mapper.store.oa.TakeLeaveEventMapper
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 请假记录表 服务实现类
* </p>
*
* @author robbendev
* @since 2020-07-23
*/
@Service
public
class
TakeLeaveEventServiceImpl
extends
ServiceImpl
<
TakeLeaveEventMapper
,
TakeLeaveEvent
>
implements
ITakeLeaveEventService
{
}
src/main/java/com/gogirl/application/store/store/impl/TakeLeaveEventCmdServiceImpl.java
View file @
86ce4857
...
...
@@ -6,8 +6,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.gogirl.application.store.store.TakeLeaveEventCmdService
;
import
com.gogirl.assembler.ApplyTakeLeaveCommandAssembler
;
import
com.gogirl.assembler.OverTimeLogCommandAssembler
;
import
com.gogirl.domain.store.oa.OverTimeRecord
;
import
com.gogirl.domain.store.oa.OverTimeRecordLog
;
import
com.gogirl.domain.store.oa.OvertimeRecord
;
import
com.gogirl.domain.store.oa.TakeLeaveEvent
;
import
com.gogirl.domain.store.store.Message
;
import
com.gogirl.domain.store.store.StoreManage
;
...
...
@@ -16,7 +16,7 @@ import com.gogirl.infrastructure.common.exception.RRException;
import
com.gogirl.infrastructure.common.util.JsonUtilByFsJson
;
import
com.gogirl.infrastructure.common.util.ListUtil
;
import
com.gogirl.infrastructure.mapper.store.oa.OverTimeRecordLogMapper
;
import
com.gogirl.infrastructure.mapper.store.oa.Over
t
imeRecordMapper
;
import
com.gogirl.infrastructure.mapper.store.oa.Over
T
imeRecordMapper
;
import
com.gogirl.infrastructure.mapper.store.oa.TakeLeaveEventMapper
;
import
com.gogirl.infrastructure.mapper.store.store.MessageMapper
;
import
com.gogirl.infrastructure.mapper.store.store.StoreManageMapper
;
...
...
@@ -53,7 +53,7 @@ public class TakeLeaveEventCmdServiceImpl implements TakeLeaveEventCmdService {
*/
private
final
StoreTechnicianMapper
storeTechnicianRepository
;
private
final
TakeLeaveEventMapper
takeLeaveEventRepository
;
private
final
Over
t
imeRecordMapper
overtimeRecordRepository
;
private
final
Over
T
imeRecordMapper
overtimeRecordRepository
;
private
final
OverTimeRecordLogMapper
overTimeRecordLogRepository
;
private
final
MessageMapper
messageMapper
;
private
final
StoreManageMapper
storeManageMapper
;
...
...
@@ -101,7 +101,7 @@ public class TakeLeaveEventCmdServiceImpl implements TakeLeaveEventCmdService {
overTimeRecordLogList
.
forEach
(
overTimeRecordLog
->
{
//加班记录
Over
t
imeRecord
overtimeRecord
=
overtimeRecordRepository
.
selectById
(
overTimeRecordLog
.
getOverTimeRecordId
());
Over
T
imeRecord
overtimeRecord
=
overtimeRecordRepository
.
selectById
(
overTimeRecordLog
.
getOverTimeRecordId
());
//扣除这一次申请的时间
overtimeRecord
.
setLeftTimeLength
(
overtimeRecord
.
getLeftTimeLength
().
subtract
(
overTimeRecordLog
.
getLengthTime
()));
//检查调休时间和加班时间匹配
...
...
@@ -149,7 +149,7 @@ public class TakeLeaveEventCmdServiceImpl implements TakeLeaveEventCmdService {
if
(
takeLeaveEvent
.
getType
().
equals
(
TakeLeaveEvent
.
TYPE_OVER_TIME
)
&&
cmd
.
getApproval
().
equals
(
TakeLeaveEvent
.
STATUS_APPROVAL_PASS
))
{
Over
timeRecord
overtimeRecord
=
Overt
imeRecord
.
builder
()
Over
TimeRecord
overtimeRecord
=
OverT
imeRecord
.
builder
()
.
createTime
(
System
.
currentTimeMillis
())
.
startTime
(
takeLeaveEvent
.
getStartTime
())
.
endTime
(
takeLeaveEvent
.
getEndTime
())
...
...
@@ -173,7 +173,7 @@ public class TakeLeaveEventCmdServiceImpl implements TakeLeaveEventCmdService {
overTimeRecordLogList
.
stream
().
collect
(
Collectors
.
groupingBy
(
OverTimeRecordLog:
:
getOverTimeRecordId
))
.
forEach
((
overTimeRecordId
,
list
)
->
{
Over
t
imeRecord
overtimeRecord
=
overtimeRecordRepository
.
selectById
(
overTimeRecordId
);
Over
T
imeRecord
overtimeRecord
=
overtimeRecordRepository
.
selectById
(
overTimeRecordId
);
BigDecimal
timeLength
=
list
.
stream
().
map
(
OverTimeRecordLog:
:
getLengthTime
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
overtimeRecord
.
setLeftTimeLength
(
overtimeRecord
.
getLeftTimeLength
().
add
(
timeLength
));
overtimeRecordRepository
.
insert
(
overtimeRecord
);
...
...
@@ -267,8 +267,8 @@ public class TakeLeaveEventCmdServiceImpl implements TakeLeaveEventCmdService {
if
(
takeLeaveEvent
.
getType
().
equals
(
TakeLeaveEvent
.
TYPE_OVER_TIME
)
&&
takeLeaveEvent
.
getStatus
().
equals
(
TakeLeaveEvent
.
STATUS_APPROVAL_PASS
))
{
Over
timeRecord
overtimeRecord
=
overtimeRecordRepository
.
selectOne
(
new
LambdaQueryWrapper
<
Overt
imeRecord
>()
.
eq
(
Over
t
imeRecord:
:
getTakeLeaveEventId
,
takeLeaveEvent
.
getId
()));
Over
TimeRecord
overtimeRecord
=
overtimeRecordRepository
.
selectOne
(
new
LambdaQueryWrapper
<
OverT
imeRecord
>()
.
eq
(
Over
T
imeRecord:
:
getTakeLeaveEventId
,
takeLeaveEvent
.
getId
()));
List
<
OverTimeRecordLog
>
overTimeRecordLogList
=
overTimeRecordLogRepository
.
selectList
(
new
LambdaQueryWrapper
<
OverTimeRecordLog
>()
.
eq
(
OverTimeRecordLog:
:
getOverTimeRecordId
,
overtimeRecord
.
getId
()));
...
...
src/main/java/com/gogirl/domain/product/serve/BaseServe.java
View file @
86ce4857
...
...
@@ -80,7 +80,7 @@ public class BaseServe implements Serializable {
private
String
explain
;
@TableField
(
exist
=
false
)
private
Integer
serveL
abelId
;
private
Integer
l
abelId
;
/**
* 非数据库字段
...
...
src/main/java/com/gogirl/domain/store/oa/Over
t
imeRecord.java
→
src/main/java/com/gogirl/domain/store/oa/Over
T
imeRecord.java
View file @
86ce4857
...
...
@@ -22,7 +22,7 @@ import java.math.BigDecimal;
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
Over
t
imeRecord
implements
Serializable
{
public
class
Over
T
imeRecord
implements
Serializable
{
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
...
...
src/main/java/com/gogirl/infrastructure/mapper/product/serve/BaseServeMapper.java
View file @
86ce4857
...
...
@@ -6,8 +6,6 @@ import com.gogirl.domain.product.serve.BaseServe;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* Created by yinyong on 2018/8/21.
*/
...
...
@@ -15,10 +13,9 @@ import java.util.List;
@Repository
public
interface
BaseServeMapper
extends
BaseMapper
<
BaseServe
>
{
IPage
<
BaseServe
>
listServeForPage
(
@Param
(
"page"
)
IPage
<
BaseServe
>
page
,
@Param
(
"baseServe"
)
BaseServe
baseServe
,
@Param
(
"serveIdList"
)
List
<
Integer
>
serveIdList
);
IPage
<
BaseServe
>
listServeForPage
(
@Param
(
"page"
)
IPage
<
BaseServe
>
page
,
@Param
(
"baseServe"
)
BaseServe
baseServe
);
IPage
<
BaseServe
>
listLeisureServeForPage
(
@Param
(
"page"
)
IPage
<
BaseServe
>
page
,
@Param
(
"baseServe"
)
BaseServe
baseServe
,
@Param
(
"serveIdList"
)
List
<
Integer
>
serveIdList
,
@Param
(
"time"
)
String
time
,
@Param
(
"week"
)
Integer
week
);
}
src/main/java/com/gogirl/infrastructure/mapper/store/oa/Over
t
imeRecordMapper.java
→
src/main/java/com/gogirl/infrastructure/mapper/store/oa/Over
T
imeRecordMapper.java
View file @
86ce4857
...
...
@@ -2,12 +2,12 @@ package com.gogirl.infrastructure.mapper.store.oa;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.gogirl.domain.store.oa.Over
t
imeRecord
;
import
com.gogirl.domain.store.oa.Over
T
imeRecord
;
import
com.gogirl.domain.store.oa.TakeLeaveEvent
;
import
java.util.List
;
public
interface
Over
timeRecordMapper
extends
BaseMapper
<
Overt
imeRecord
>
{
public
interface
Over
TimeRecordMapper
extends
BaseMapper
<
OverT
imeRecord
>
{
List
<
TakeLeaveEvent
>
plusOverTimeRecord
();
}
src/main/java/com/gogirl/infrastructure/mapper/store/oa/TakeLeaveEventMapper.java
View file @
86ce4857
package
com
.
gogirl
.
infrastructure
.
mapper
.
store
.
oa
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.gogirl.domain.store.oa.Over
t
imeRecord
;
import
com.gogirl.domain.store.oa.Over
T
imeRecord
;
import
com.gogirl.domain.store.oa.TakeLeaveEvent
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -23,5 +23,5 @@ public interface TakeLeaveEventMapper extends BaseMapper<TakeLeaveEvent> {
*
* @return
*/
List
<
Over
t
imeRecord
>
takeLeaveId
();
List
<
Over
T
imeRecord
>
takeLeaveId
();
}
src/main/java/com/gogirl/interfaces/order/mall/MallCustomerAddressController.java
View file @
86ce4857
...
...
@@ -20,8 +20,7 @@ public class MallCustomerAddressController {
@ApiOperation
(
"新增收获地址"
)
@PostMapping
(
"/customer/customerAddress/addMallCustomerAddress"
)
public
JsonResult
<
MallCustomerAddress
>
addMallCustomerAddress
(
@RequestHeader
String
token
,
@RequestBody
MallCustomerAddress
mallCustomerAddress
)
{
public
JsonResult
<
MallCustomerAddress
>
addMallCustomerAddress
(
@RequestBody
MallCustomerAddress
mallCustomerAddress
)
{
Integer
currentCustomerId
=
SessionUtils
.
getCustomerId
();
mallCustomerAddress
.
setCustomerId
(
currentCustomerId
);
mallCustomerAddress
.
setIsDefault
(
MallCustomerAddress
.
IS_DEFAULT_FALSE
);
...
...
@@ -31,8 +30,7 @@ public class MallCustomerAddressController {
@ApiOperation
(
"修改收货地址"
)
@PostMapping
(
"/customer/customerAddress/changeMallCustomerAddress"
)
public
JsonResult
<
MallCustomerAddress
>
changeMallCustomerAddress
(
@RequestHeader
String
token
,
@RequestBody
MallCustomerAddress
mallCustomerAddress
)
{
public
JsonResult
<
MallCustomerAddress
>
changeMallCustomerAddress
(
@RequestBody
MallCustomerAddress
mallCustomerAddress
)
{
Integer
currentCustomerId
=
SessionUtils
.
getCustomerId
();
mallCustomerAddress
.
setCustomerId
(
currentCustomerId
);
mallCustomerAddressService
.
changeMallCustomerAddress
(
mallCustomerAddress
);
...
...
@@ -41,7 +39,7 @@ public class MallCustomerAddressController {
@ApiOperation
(
"收获地址列表"
)
@GetMapping
(
"/customer/customerAddress/listMallCustomerAddress"
)
public
JsonResult
<
List
<
MallCustomerAddress
>>
listMallCustomerAddress
(
@RequestHeader
String
token
)
{
public
JsonResult
<
List
<
MallCustomerAddress
>>
listMallCustomerAddress
()
{
Integer
currentCustomerId
=
SessionUtils
.
getCustomerId
();
List
<
MallCustomerAddress
>
list
=
mallCustomerAddressService
.
listMallCustomerAddress
(
currentCustomerId
);
return
JsonResult
.
success
(
list
);
...
...
@@ -49,8 +47,7 @@ public class MallCustomerAddressController {
@ApiOperation
(
"修改默认收货地址"
)
@GetMapping
(
"/customer/customerAddress/updateDefaultMallCustomerAddress/{mallCustomerAddressId}"
)
public
JsonResult
<
MallCustomerAddress
>
updateDefaultMallCustomerAddress
(
@RequestHeader
String
token
,
@PathVariable
Long
mallCustomerAddressId
)
{
public
JsonResult
<
MallCustomerAddress
>
updateDefaultMallCustomerAddress
(
@PathVariable
Long
mallCustomerAddressId
)
{
Integer
currentCustomerId
=
SessionUtils
.
getCustomerId
();
MallCustomerAddress
mallCustomerAddress
=
mallCustomerAddressService
.
updateDefaultMallCustomerAddress
(
currentCustomerId
,
mallCustomerAddressId
);
return
JsonResult
.
success
(
mallCustomerAddress
);
...
...
@@ -59,7 +56,7 @@ public class MallCustomerAddressController {
@ApiOperation
(
"获取默认收货地址"
)
@GetMapping
(
"/customer/customerAddress/getDefaultMallCustomerAddress"
)
public
JsonResult
<
MallCustomerAddress
>
getDefaultMallCustomerAddress
(
@RequestHeader
String
token
)
{
public
JsonResult
<
MallCustomerAddress
>
getDefaultMallCustomerAddress
()
{
Integer
currentCustomerId
=
SessionUtils
.
getCustomerId
();
MallCustomerAddress
mallCustomerAddress
=
mallCustomerAddressService
.
getDefaultMallCustomerAddress
(
currentCustomerId
);
return
JsonResult
.
success
(
mallCustomerAddress
);
...
...
src/main/java/com/gogirl/interfaces/order/serve/PayController.java
View file @
86ce4857
...
...
@@ -201,8 +201,7 @@ public class PayController {
@ApiOperation
(
value
=
"美甲师端,充值会员卡"
)
@PostMapping
(
"/technician/pay/chargeCustomerCard"
)
public
JsonResult
<
Void
>
chargeCustomerCard
(
@RequestHeader
String
token
,
String
name
,
public
JsonResult
<
Void
>
chargeCustomerCard
(
String
name
,
String
phone
,
Double
amount
,
Integer
source
,
...
...
src/main/java/com/gogirl/interfaces/order/serve/ScheduleManageController.java
View file @
86ce4857
...
...
@@ -233,12 +233,6 @@ public class ScheduleManageController {
}
/**
* @param scheduleServeId
* @param status
* @param forceLeisureConfig 强制使用闲时预约次数 1-是 2-否
* @return
*/
@ApiOperation
(
"更新预约服务状态"
)
@GetMapping
(
"/technician/schedule/updateScheduledServeStatus"
)
public
JsonResult
<
Void
>
updateScheduledServeStatus
(
@RequestParam
Integer
scheduleServeId
,
...
...
src/main/java/com/gogirl/interfaces/product/mall/MallShoppingCartController.java
View file @
86ce4857
...
...
@@ -12,7 +12,7 @@ import io.swagger.annotations.ApiParam;
import
lombok.AllArgsConstructor
;
import
org.springframework.web.bind.annotation.*
;
import
java
.security.InvalidParameterException
;
import
java
x.validation.Valid
;
@Api
(
tags
=
"商城购物车接口"
)
@RestController
...
...
@@ -24,14 +24,9 @@ public class MallShoppingCartController {
@ApiOperation
(
"添加购物车"
)
@PostMapping
(
"/customer/mallCart/addMallShoppingCart"
)
public
JsonResult
<
Void
>
addMallShoppingCart
(
@RequestBody
MallShoppingCartCommand
cmd
)
{
Integer
currentCustomerId
=
SessionUtils
.
getCustomerId
();
cmd
.
setCustomerId
(
currentCustomerId
);
if
(
cmd
.
getProductId
()
==
null
||
cmd
.
getNum
()
==
null
)
{
throw
new
InvalidParameterException
();
}
public
JsonResult
<
Void
>
addMallShoppingCart
(
@RequestBody
@Valid
MallShoppingCartCommand
cmd
)
{
cmd
.
setCustomerId
(
SessionUtils
.
getCustomerId
());
mallShoppingCartCmdService
.
addMallShoppingCart
(
cmd
);
return
JsonResult
.
success
();
}
...
...
@@ -40,9 +35,7 @@ public class MallShoppingCartController {
@ApiOperation
(
"查看我的购物车"
)
@PostMapping
(
"/customer/mallCart/listMallShoppingCart"
)
public
JsonResult
<
MyMallShoppingCartDTO
>
listMallShoppingCart
()
{
Integer
currentCustomerId
=
SessionUtils
.
getCustomerId
();
MyShoppingCartQuery
qry
=
new
MyShoppingCartQuery
(
currentCustomerId
);
MyShoppingCartQuery
qry
=
new
MyShoppingCartQuery
(
SessionUtils
.
getCustomerId
());
MyMallShoppingCartDTO
myMallShoppingCartDTO
=
mallShoppingCartQryService
.
queryMyShoppingCart
(
qry
);
return
JsonResult
.
success
(
myMallShoppingCartDTO
);
}
...
...
@@ -50,9 +43,7 @@ public class MallShoppingCartController {
@ApiOperation
(
"清空购物车"
)
@GetMapping
(
"/customer/mallCart/removeAllMallShoppingCart"
)
public
JsonResult
<
Void
>
removeAllMallShoppingCart
()
{
Integer
currentCustomerId
=
SessionUtils
.
getCustomerId
();
RemoveAllCartCommand
cmd
=
new
RemoveAllCartCommand
(
currentCustomerId
);
RemoveAllCartCommand
cmd
=
new
RemoveAllCartCommand
(
SessionUtils
.
getCustomerId
());
mallShoppingCartCmdService
.
removeAllMallShoppingCart
(
cmd
);
return
JsonResult
.
success
();
}
...
...
@@ -61,8 +52,7 @@ public class MallShoppingCartController {
@GetMapping
(
"/customer/mallCart/removeMallShoppingCart/{id}"
)
public
JsonResult
<
Integer
>
removeMallShoppingCart
(
@ApiParam
(
"购物车id"
)
@PathVariable
Long
id
)
{
RemoveCartCommand
cmd
=
new
RemoveCartCommand
(
id
);
mallShoppingCartCmdService
.
removeMallShoppingCart
(
cmd
);
mallShoppingCartCmdService
.
removeMallShoppingCart
(
new
RemoveCartCommand
(
id
));
return
JsonResult
.
success
();
}
...
...
@@ -70,10 +60,7 @@ public class MallShoppingCartController {
@GetMapping
(
"/customer/mallCart/decreaseMallShoppingCart/{id}"
)
public
JsonResult
<
Integer
>
decreaseMallShoppingCart
(
@ApiParam
(
"产品id"
)
@PathVariable
Long
id
)
{
Integer
currentCustomerId
=
SessionUtils
.
getCustomerId
();
DecreaseCartCommand
cmd
=
new
DecreaseCartCommand
(
currentCustomerId
,
id
);
mallShoppingCartCmdService
.
decreaseMallShoppingCart
(
cmd
);
mallShoppingCartCmdService
.
decreaseMallShoppingCart
(
new
DecreaseCartCommand
(
SessionUtils
.
getCustomerId
(),
id
));
return
JsonResult
.
success
();
}
...
...
src/main/java/com/gogirl/interfaces/product/serve/BroadcastController.java
View file @
86ce4857
...
...
@@ -16,7 +16,6 @@ import java.util.List;
/**
* Created by yinyong on 2018/9/11.
*/
@RestController
@Api
(
tags
=
{
"首页banner轮播图"
})
public
class
BroadcastController
{
...
...
src/main/java/com/gogirl/interfaces/product/serve/ServeController.java
View file @
86ce4857
...
...
@@ -7,10 +7,7 @@ import com.gogirl.domain.product.serve.BaseServe;
import
com.gogirl.infrastructure.common.annotation.AuthIgnore
;
import
com.gogirl.infrastructure.common.annotation.LoginIgnore
;
import
com.gogirl.infrastructure.common.base.JsonResult
;
import
com.gogirl.infrastructure.common.util.DateUtils
;
import
com.gogirl.infrastructure.common.util.StringUtils
;
import
com.gogirl.infrastructure.mapper.product.serve.BaseServeMapper
;
import
com.google.common.collect.Lists
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
...
...
@@ -19,10 +16,6 @@ import org.springframework.format.annotation.DateTimeFormat;
import
org.springframework.web.bind.annotation.*
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@RestController
@Api
(
tags
=
{
"服务接口"
},
value
=
"预约服务接口"
)
...
...
@@ -35,40 +28,14 @@ public class ServeController {
@ApiOperation
(
value
=
"查看服务列表"
)
@GetMapping
(
"/customer/serve/no_queryServeForPage"
)
@Deprecated
@LoginIgnore
@AuthIgnore
public
JsonResult
<
IPage
<
BaseServe
>>
no_queryServeForPage
(
BaseServe
param
,
Integer
pageNum
,
Integer
pageSize
,
Integer
labelId
,
String
serveIds
,
String
time
)
{
if
(
labelId
!=
null
&&
labelId
==
-
1
)
{
labelId
=
null
;
}
List
<
Integer
>
serveIdList
;
if
(
StringUtils
.
isNotEmpty
(
serveIds
))
{
serveIdList
=
Lists
.
newArrayList
(
serveIds
.
split
(
","
)).
stream
().
map
(
Integer:
:
valueOf
).
collect
(
Collectors
.
toList
());
}
else
{
serveIdList
=
new
ArrayList
<>();
}
if
(
pageNum
==
null
)
{
pageNum
=
1
;
}
if
(
pageSize
==
null
)
{
pageSize
=
20
;
}
IPage
<
BaseServe
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
int
weekday
=
DateUtils
.
getWeek
(
new
Date
());
param
.
setServeLabelId
(
labelId
);
if
(
StringUtils
.
isEmpty
(
time
))
page
=
baseServeService
.
listServeForPage
(
page
,
param
,
serveIdList
);
else
page
=
baseServeMapper
.
listLeisureServeForPage
(
page
,
param
,
serveIdList
,
time
,
weekday
);
Integer
pageSize
)
{
IPage
<
BaseServe
>
page
=
new
Page
<>(
pageNum
==
null
?
1
:
pageNum
,
pageSize
==
null
?
20
:
pageSize
);
page
=
baseServeService
.
listServeForPage
(
page
,
param
);
return
JsonResult
.
success
(
page
);
}
...
...
@@ -103,7 +70,7 @@ public class ServeController {
@RequestParam
(
required
=
false
,
defaultValue
=
"20"
)
Integer
pageSize
)
{
IPage
<
BaseServe
>
page
=
new
Page
<>(
pageNum
,
pageSize
);
page
=
baseServeService
.
listServeForPage
(
page
,
baseServe
,
null
);
page
=
baseServeService
.
listServeForPage
(
page
,
baseServe
);
return
JsonResult
.
success
(
page
);
}
...
...
src/main/java/com/gogirl/interfaces/product/serve/TypeController.java
View file @
86ce4857
...
...
@@ -7,8 +7,6 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
...
...
@@ -24,19 +22,16 @@ public class TypeController {
private
final
BaseTypeService
baseTypeService
;
@ApiOperation
(
"
查
询服务类型"
)
@ApiOperation
(
"
用户端
询服务类型"
)
@GetMapping
(
"/customer/type/queryType"
)
public
JsonResult
<
List
<
BaseType
>>
queryType
()
{
return
JsonResult
.
success
(
baseTypeService
.
list
());
}
@RequestMapping
(
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
},
value
=
"/technician/type/queryType"
)
@ApiOperation
(
"美甲师端查询服务类型"
)
@GetMapping
(
"/technician/type/queryType"
)
public
JsonResult
<
List
<
BaseType
>>
technicianQueryType
()
{
JsonResult
<
List
<
BaseType
>>
jsonResult
=
new
JsonResult
<>();
List
<
BaseType
>
lists
=
baseTypeService
.
list
();
jsonResult
.
setSuccess
(
JsonResult
.
CODE_SUCCESS
).
setMessage
(
JsonResult
.
APP_DEFINE_SUC
).
setData
(
lists
);
return
jsonResult
;
return
JsonResult
.
success
(
baseTypeService
.
list
());
}
}
src/main/java/com/gogirl/interfaces/store/
attendance
/OverTimeRecordController.java
→
src/main/java/com/gogirl/interfaces/store/
oa
/OverTimeRecordController.java
View file @
86ce4857
package
com
.
gogirl
.
interfaces
.
store
.
attendance
;
package
com
.
gogirl
.
interfaces
.
store
.
oa
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.
baomidou.mybatisplus.extension.plugins.pagination.Pag
e
;
import
com.gogirl.domain.store.oa.Over
t
imeRecord
;
import
com.
gogirl.application.store.oa.IOverTimeRecordServic
e
;
import
com.gogirl.domain.store.oa.Over
T
imeRecord
;
import
com.gogirl.infrastructure.common.base.JsonResult
;
import
com.gogirl.infrastructure.common.util.SessionUtils
;
import
com.gogirl.infrastructure.mapper.store.oa.OvertimeRecordMapper
;
import
com.gogirl.shared.store.OrderTimeRecordPageQuery
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestHeader
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Calendar
;
import
java.util.Date
;
@Api
(
tags
=
"美甲师加班记录接口"
)
@AllArgsConstructor
@RestController
public
class
OverTimeRecordController
{
private
final
OvertimeRecordMapper
overtimeRecordMapper
;
private
final
IOverTimeRecordService
overTimeRecordService
;
@ApiOperation
(
"加班记录"
)
@PostMapping
(
"/technician/overTimeRecord/queryPage"
)
public
JsonResult
<
IPage
<
OvertimeRecord
>>
queryPage
(
@RequestHeader
String
token
,
@RequestBody
OrderTimeRecordPageQuery
qry
)
{
Calendar
cale
=
Calendar
.
getInstance
();
// 获取前月的第一天
cale
.
add
(
Calendar
.
MONTH
,
0
);
cale
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
Date
firstDay
=
cale
.
getTime
();
Date
paramDate
=
new
Date
(
firstDay
.
getTime
()
-
7
*
24
*
60
*
60
*
1000
);
IPage
<
OvertimeRecord
>
page
=
new
Page
<>();
page
=
overtimeRecordMapper
.
selectPage
(
page
,
new
LambdaQueryWrapper
<
OvertimeRecord
>()
.
eq
(
OvertimeRecord:
:
getTechnicianId
,
SessionUtils
.
getTechnicianId
())
.
gt
(
OvertimeRecord:
:
getLeftTimeLength
,
0
)
.
ge
(
OvertimeRecord:
:
getStartTime
,
paramDate
.
getTime
())
.
ge
(
OvertimeRecord:
:
getEndTime
,
paramDate
.
getTime
()));
public
JsonResult
<
IPage
<
OverTimeRecord
>>
queryPage
(
@RequestBody
OrderTimeRecordPageQuery
qry
)
{
IPage
<
OverTimeRecord
>
page
=
overTimeRecordService
.
queryPage
(
qry
);
return
JsonResult
.
success
(
page
);
}
}
src/main/java/com/gogirl/interfaces/store/
attendance
/TakeLeaveEventController.java
→
src/main/java/com/gogirl/interfaces/store/
oa
/TakeLeaveEventController.java
View file @
86ce4857
package
com
.
gogirl
.
interfaces
.
store
.
attendance
;
package
com
.
gogirl
.
interfaces
.
store
.
oa
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.gogirl.application.store.store.TakeLeaveEventCmdService
;
...
...
src/main/java/com/gogirl/interfaces/store/training/TrainingQuestionController.java
deleted
100644 → 0
View file @
1089fb95
package
com
.
gogirl
.
interfaces
.
store
.
training
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* <p>
* 前端控制器
* </p>
*
* @author robbendev
* @since 2020-07-07
*/
@RestController
@RequestMapping
(
""
)
@Api
(
tags
=
"美甲师培训问卷调查接口"
)
public
class
TrainingQuestionController
{
}
src/main/java/com/gogirl/shared/product/MallShoppingCartCommand.java
View file @
86ce4857
...
...
@@ -3,6 +3,7 @@ package com.gogirl.shared.product;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
@Data
...
...
@@ -11,9 +12,11 @@ public class MallShoppingCartCommand implements Serializable {
@ApiModelProperty
(
value
=
"用户id"
)
private
Integer
customerId
;
@NotNull
@ApiModelProperty
(
value
=
"加入购物车的产品id"
,
required
=
true
)
private
Long
productId
;
@NotNull
@ApiModelProperty
(
value
=
"产品sku数量"
,
required
=
true
)
private
Integer
num
;
}
src/main/java/com/gogirl/shared/store/OrderTimeRecordPageQuery.java
View file @
86ce4857
package
com
.
gogirl
.
shared
.
store
;
import
com.gogirl.infrastructure.common.base.PageRequest
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
OrderTimeRecordPageQuery
implements
Serializable
{
public
class
OrderTimeRecordPageQuery
extends
PageRequest
implements
Serializable
{
private
Integer
pageNum
;
private
Integer
pageSize
;
private
Integer
technicianId
;
}
src/main/resources/mapper/product/BaseServeMapper.xml
View file @
86ce4857
...
...
@@ -3,116 +3,116 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.gogirl.infrastructure.mapper.product.serve.BaseServeMapper"
>
<!-- <resultMap id="ServerWithProduce" type="com.gogirl.domain.product.serve.BaseServe">-->
<!-- <result column="id" property="id"/>-->
<!-- <result column="name" property="name"/>-->
<!-- <result column="type" property="type"/>-->
<!-- <result column="type_id" property="typeId"/>-->
<!-- <result column="label" property="label"/>-->
<!-- <result column="shop_sort" property="shopSort"/>-->
<!-- <result column="price" property="price"/>-->
<!-- <result column="picture_path" property="picturePath"/>-->
<!-- <result column="status" property="status"/>-->
<!-- <result column="remark" property="remark"/>-->
<!-- <result column="details" property="details"/>-->
<!-- <result column="service_duration" property="serviceDuration"/>-->
<!-- <result column="has_index_show" property="hasIndexShow"/>-->
<!-- <result column="index_sort" property="indexSort"/>-->
<!-- <result column="praise_sum" property="praiseSum"/>-->
<!-- <result column="brief_introduction" property="briefIntroduction"/>-->
<!-- <result column="sch_type_id" property="schTypeId"/>-->
<!-- <association property="produce" javaType="com.gogirl.domain.product.serve.BaseProduce">-->
<!-- <result column="produce_id" property="id"/>-->
<!-- <result column="produce_name" property="name"/>-->
<!-- <result column="produce_picture_path" property="picturePath"/>-->
<!-- <result column="produce_type" property="type"/>-->
<!-- <result column="produce_label" property="label"/>-->
<!-- <result column="produce_shop_sort" property="shopSort"/>-->
<!-- <result column="reqduce_grade" property="reqGrade"/>-->
<!-- <result column="produce_status" property="status"/>-->
<!-- <result column="produce_remark" property="remark"/>-->
<!-- </association>-->
<!-- <collection property="listProduce" ofType="com.gogirl.domain.product.serve.BaseProduce">-->
<!-- <result column="pro_id" property="id"/>-->
<!-- <result column="pro_name" property="name"/>-->
<!-- <result column="pro_picture_path" property="picturePath"/>-->
<!-- <result column="pro_type" property="type"/>-->
<!-- <result column="pro_label" property="label"/>-->
<!-- <result column="pro_shop_sort" property="shopSort"/>-->
<!-- <result column="req_grade" property="reqGrade"/>-->
<!-- <result column="pro_status" property="status"/>-->
<!-- <result column="pro_remark" property="remark"/>-->
<!-- <result column="pro_praise_sum" property="praiseSum"/>-->
<!-- <result column="pro_current_price" property="currentPrice"/>-->
<!-- <result column="pro_bargain_price" property="bargainPrice"/>-->
<!-- <result column="pro_service_duration" property="serviceDuration"/>-->
<!-- <result column="pro_brief_introduction" property="briefIntroduction"/>-->
<!-- <result column="pro_details" property="details"/>-->
<!-- </collection>-->
<!-- <collection property="praiseRecord" ofType="com.gogirl.domain.product.serve.PraiseRecord">-->
<!-- <id column="praiseid" property="id" jdbcType="INTEGER"/>-->
<!-- <result column="praisecustomer_id" property="customerId" jdbcType="INTEGER"/>-->
<!-- <result column="praiseserve_id" property="serveId" jdbcType="INTEGER"/>-->
<!-- <result column="praisetime" property="time" jdbcType="TIMESTAMP"/>-->
<!-- </collection>-->
<!-- <collection property="listLabel" ofType="com.gogirl.domain.product.serve.Label">-->
<!-- <result column="lid" property="id" jdbcType="INTEGER"/>-->
<!-- <result column="lname" property="name" jdbcType="VARCHAR"/>-->
<!-- <result column="lpic_url" property="picUrl" jdbcType="VARCHAR"/>-->
<!-- </collection>-->
<!-- </resultMap>-->
<!-- <resultMap id="ServerWithProduce" type="com.gogirl.domain.product.serve.BaseServe">-->
<!-- <result column="id" property="id"/>-->
<!-- <result column="name" property="name"/>-->
<!-- <result column="type" property="type"/>-->
<!-- <result column="type_id" property="typeId"/>-->
<!-- <result column="label" property="label"/>-->
<!-- <result column="shop_sort" property="shopSort"/>-->
<!-- <result column="price" property="price"/>-->
<!-- <result column="picture_path" property="picturePath"/>-->
<!-- <result column="status" property="status"/>-->
<!-- <result column="remark" property="remark"/>-->
<!-- <result column="details" property="details"/>-->
<!-- <result column="service_duration" property="serviceDuration"/>-->
<!-- <result column="has_index_show" property="hasIndexShow"/>-->
<!-- <result column="index_sort" property="indexSort"/>-->
<!-- <result column="praise_sum" property="praiseSum"/>-->
<!-- <result column="brief_introduction" property="briefIntroduction"/>-->
<!-- <result column="sch_type_id" property="schTypeId"/>-->
<!-- <association property="produce" javaType="com.gogirl.domain.product.serve.BaseProduce">-->
<!-- <result column="produce_id" property="id"/>-->
<!-- <result column="produce_name" property="name"/>-->
<!-- <result column="produce_picture_path" property="picturePath"/>-->
<!-- <result column="produce_type" property="type"/>-->
<!-- <result column="produce_label" property="label"/>-->
<!-- <result column="produce_shop_sort" property="shopSort"/>-->
<!-- <result column="reqduce_grade" property="reqGrade"/>-->
<!-- <result column="produce_status" property="status"/>-->
<!-- <result column="produce_remark" property="remark"/>-->
<!-- </association>-->
<!-- <collection property="listProduce" ofType="com.gogirl.domain.product.serve.BaseProduce">-->
<!-- <result column="pro_id" property="id"/>-->
<!-- <result column="pro_name" property="name"/>-->
<!-- <result column="pro_picture_path" property="picturePath"/>-->
<!-- <result column="pro_type" property="type"/>-->
<!-- <result column="pro_label" property="label"/>-->
<!-- <result column="pro_shop_sort" property="shopSort"/>-->
<!-- <result column="req_grade" property="reqGrade"/>-->
<!-- <result column="pro_status" property="status"/>-->
<!-- <result column="pro_remark" property="remark"/>-->
<!-- <result column="pro_praise_sum" property="praiseSum"/>-->
<!-- <result column="pro_current_price" property="currentPrice"/>-->
<!-- <result column="pro_bargain_price" property="bargainPrice"/>-->
<!-- <result column="pro_service_duration" property="serviceDuration"/>-->
<!-- <result column="pro_brief_introduction" property="briefIntroduction"/>-->
<!-- <result column="pro_details" property="details"/>-->
<!-- </collection>-->
<!-- <collection property="praiseRecord" ofType="com.gogirl.domain.product.serve.PraiseRecord">-->
<!-- <id column="praiseid" property="id" jdbcType="INTEGER"/>-->
<!-- <result column="praisecustomer_id" property="customerId" jdbcType="INTEGER"/>-->
<!-- <result column="praiseserve_id" property="serveId" jdbcType="INTEGER"/>-->
<!-- <result column="praisetime" property="time" jdbcType="TIMESTAMP"/>-->
<!-- </collection>-->
<!-- <collection property="listLabel" ofType="com.gogirl.domain.product.serve.Label">-->
<!-- <result column="lid" property="id" jdbcType="INTEGER"/>-->
<!-- <result column="lname" property="name" jdbcType="VARCHAR"/>-->
<!-- <result column="lpic_url" property="picUrl" jdbcType="VARCHAR"/>-->
<!-- </collection>-->
<!-- </resultMap>-->
<!-- <resultMap id="ServerWithProduceForPage" type="com.gogirl.domain.product.serve.BaseServe">-->
<!-- <result column="id" property="id"/>-->
<!-- <result column="name" property="name"/>-->
<!-- <result column="type" property="type"/>-->
<!-- <result column="type_id" property="typeId"/>-->
<!-- <result column="label" property="label"/>-->
<!-- <result column="shop_sort" property="shopSort"/>-->
<!-- <result column="price" property="price"/>-->
<!-- <result column="picture_path" property="picturePath"/>-->
<!-- <result column="status" property="status"/>-->
<!-- <result column="remark" property="remark"/>-->
<!-- <result column="details" property="details"/>-->
<!-- <result column="service_duration" property="serviceDuration"/>-->
<!-- <result column="has_index_show" property="hasIndexShow"/>-->
<!-- <result column="index_sort" property="indexSort"/>-->
<!-- <result column="praise_sum" property="praiseSum"/>-->
<!-- <result column="brief_introduction" property="briefIntroduction"/>-->
<!-- <result column="sch_type_id" property="schTypeId"/>-->
<!-- <association property="produce" javaType="com.gogirl.domain.product.serve.BaseProduce">-->
<!-- <result column="produce_id" property="id"/>-->
<!-- <result column="produce_name" property="name"/>-->
<!-- <result column="produce_picture_path" property="picturePath"/>-->
<!-- <result column="produce_type" property="type"/>-->
<!-- <result column="produce_label" property="label"/>-->
<!-- <result column="produce_shop_sort" property="shopSort"/>-->
<!-- <result column="reqduce_grade" property="reqGrade"/>-->
<!-- <result column="produce_status" property="status"/>-->
<!-- <result column="produce_remark" property="remark"/>-->
<!-- </association>-->
<!-- <collection property="listProduce" ofType="com.gogirl.domain.product.serve.BaseProduce" column="id"-->
<!-- select="listProduceByServeId">-->
<!-- </collection>-->
<!-- <collection property="praiseRecord" ofType="com.gogirl.domain.product.serve.PraiseRecord">-->
<!-- <id column="praiseid" property="id" jdbcType="INTEGER"/>-->
<!-- <result column="praisecustomer_id" property="customerId" jdbcType="INTEGER"/>-->
<!-- <result column="praiseserve_id" property="serveId" jdbcType="INTEGER"/>-->
<!-- <result column="praisetime" property="time" jdbcType="TIMESTAMP"/>-->
<!-- </collection>-->
<!-- </resultMap>-->
<!-- <resultMap id="ServerWithProduceForPage" type="com.gogirl.domain.product.serve.BaseServe">-->
<!-- <result column="id" property="id"/>-->
<!-- <result column="name" property="name"/>-->
<!-- <result column="type" property="type"/>-->
<!-- <result column="type_id" property="typeId"/>-->
<!-- <result column="label" property="label"/>-->
<!-- <result column="shop_sort" property="shopSort"/>-->
<!-- <result column="price" property="price"/>-->
<!-- <result column="picture_path" property="picturePath"/>-->
<!-- <result column="status" property="status"/>-->
<!-- <result column="remark" property="remark"/>-->
<!-- <result column="details" property="details"/>-->
<!-- <result column="service_duration" property="serviceDuration"/>-->
<!-- <result column="has_index_show" property="hasIndexShow"/>-->
<!-- <result column="index_sort" property="indexSort"/>-->
<!-- <result column="praise_sum" property="praiseSum"/>-->
<!-- <result column="brief_introduction" property="briefIntroduction"/>-->
<!-- <result column="sch_type_id" property="schTypeId"/>-->
<!-- <association property="produce" javaType="com.gogirl.domain.product.serve.BaseProduce">-->
<!-- <result column="produce_id" property="id"/>-->
<!-- <result column="produce_name" property="name"/>-->
<!-- <result column="produce_picture_path" property="picturePath"/>-->
<!-- <result column="produce_type" property="type"/>-->
<!-- <result column="produce_label" property="label"/>-->
<!-- <result column="produce_shop_sort" property="shopSort"/>-->
<!-- <result column="reqduce_grade" property="reqGrade"/>-->
<!-- <result column="produce_status" property="status"/>-->
<!-- <result column="produce_remark" property="remark"/>-->
<!-- </association>-->
<!-- <collection property="listProduce" ofType="com.gogirl.domain.product.serve.BaseProduce" column="id"-->
<!-- select="listProduceByServeId">-->
<!-- </collection>-->
<!-- <collection property="praiseRecord" ofType="com.gogirl.domain.product.serve.PraiseRecord">-->
<!-- <id column="praiseid" property="id" jdbcType="INTEGER"/>-->
<!-- <result column="praisecustomer_id" property="customerId" jdbcType="INTEGER"/>-->
<!-- <result column="praiseserve_id" property="serveId" jdbcType="INTEGER"/>-->
<!-- <result column="praisetime" property="time" jdbcType="TIMESTAMP"/>-->
<!-- </collection>-->
<!-- </resultMap>-->
<!-- <resultMap id="produceResultMap" type="com.gogirl.domain.product.serve.BaseProduce">-->
<!-- <result column="pro_id" property="id"/>-->
<!-- <result column="pro_name" property="name"/>-->
<!-- <result column="pro_picture_path" property="picturePath"/>-->
<!-- <result column="pro_type" property="type"/>-->
<!-- <result column="pro_label" property="label"/>-->
<!-- <result column="pro_shop_sort" property="shopSort"/>-->
<!-- <result column="req_grade" property="reqGrade"/>-->
<!-- <result column="pro_status" property="status"/>-->
<!-- <result column="pro_remark" property="remark"/>-->
<!-- </resultMap>-->
<!-- <resultMap id="produceResultMap" type="com.gogirl.domain.product.serve.BaseProduce">-->
<!-- <result column="pro_id" property="id"/>-->
<!-- <result column="pro_name" property="name"/>-->
<!-- <result column="pro_picture_path" property="picturePath"/>-->
<!-- <result column="pro_type" property="type"/>-->
<!-- <result column="pro_label" property="label"/>-->
<!-- <result column="pro_shop_sort" property="shopSort"/>-->
<!-- <result column="req_grade" property="reqGrade"/>-->
<!-- <result column="pro_status" property="status"/>-->
<!-- <result column="pro_remark" property="remark"/>-->
<!-- </resultMap>-->
<sql
id=
"baseSql"
>
id, name,type,type_id, label, shop_sort, price, picture_path, status, remark, details, service_duration,brief_introduction,sch_type_id
...
...
@@ -163,54 +163,18 @@
select
ser.*
from base_serve ser
<if
test=
"baseServe.
serveL
abelId != null "
>
<if
test=
"baseServe.
l
abelId != null "
>
left join features_mapping t2 on t2.data_type=1 and t2.data_id=ser.id
</if>
where ser.status = 1
<if
test=
"baseServe.type != null and baseServe.type != ''"
>
and ser.type = #{baseServe.type}
</if>
<if
test=
"baseServe.
serveL
abelId != null "
>
and t2.features_id = #{baseServe.
serveL
abelId}
<if
test=
"baseServe.
l
abelId != null "
>
and t2.features_id = #{baseServe.
l
abelId}
</if>
and has_purchase_show=1
<if
test=
"serveIdList != null and serveIdList.size()>0 "
>
and ser.id in
<foreach
collection=
"serveIdList"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</if>
order by purchase_show_index desc
</select>
<select
id=
"listLeisureServeForPage"
resultType=
"com.gogirl.domain.product.serve.BaseServe"
>
select
ser.*,t4.discount_rate
from base_serve ser
LEFT JOIN leisure_discount_config_service t3 on ser.id = t3.service_id
LEFT JOIN leisure_discount_config t4 on t3.leisure_discount_config_id=t4.id and t4.start_time
<
= #{time} and
t4.end_time
>
= #{time}
LEFT JOIN leisure_discount_config_week t5 on t4.id =t5.leisure_discount_config_id and t5.week=#{week}
<if
test=
"baseServe.serveLabelId != null "
>
left join features_mapping t2 on t2.data_type=1 and t2.data_id=ser.id
</if>
where ser.status = 1
<if
test=
"baseServe.type != null and baseServe.type != ''"
>
and ser.type = #{baseServe.type}
</if>
<if
test=
"baseServe.serveLabelId != null "
>
and t2.features_id = #{baseServe.serveLabelId}
</if>
and has_purchase_show=1
<if
test=
"serveIdList != null and serveIdList.size()>0 "
>
and ser.id in
<foreach
collection=
"serveIdList"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id}
</foreach>
</if>
group by ser.id
order by ser.purchase_show_index desc
order by purchase_show_index desc
</select>
</mapper>
src/main/resources/mapper/store/Over
t
imeRecordMapper.xml
→
src/main/resources/mapper/store/Over
T
imeRecordMapper.xml
View file @
86ce4857
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.gogirl.infrastructure.mapper.store.oa.Over
t
imeRecordMapper"
>
<mapper
namespace=
"com.gogirl.infrastructure.mapper.store.oa.Over
T
imeRecordMapper"
>
<select
id=
"plusOverTimeRecord"
resultType=
"com.gogirl.domain.store.oa.TakeLeaveEvent"
>
SELECT t1.*
from take_leave_event t1
...
...
@@ -13,4 +13,4 @@
and t2.id is null
</select>
</mapper>
\ No newline at end of file
</mapper>
src/main/resources/mapper/store/TakeLeaveEventMapper.xml
View file @
86ce4857
...
...
@@ -13,7 +13,7 @@
and type != 2
</select>
<select
id=
"takeLeaveId"
resultType=
"com.gogirl.domain.store.oa.Over
t
imeRecord"
>
<select
id=
"takeLeaveId"
resultType=
"com.gogirl.domain.store.oa.Over
T
imeRecord"
>
SELECT t1.*
from over_time_record t1
LEFT JOIN take_leave_event t2 on t1.start_time = t2.start_time and t1.end_time = t2.end_time and
...
...
@@ -23,4 +23,4 @@
GROUP BY t1.id
</select>
</mapper>
\ No newline at end of file
</mapper>
src/main/resources/mapper/TrainingFeedbackDetailMapper.xml
→
src/main/resources/mapper/
store/
TrainingFeedbackDetailMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/TrainingFeedbackMapper.xml
→
src/main/resources/mapper/
store/
TrainingFeedbackMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/TrainingQuestionMapper.xml
→
src/main/resources/mapper/
store/
TrainingQuestionMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/TrainingQuestionOptionMapper.xml
→
src/main/resources/mapper/
store/
TrainingQuestionOptionMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/TrainingStartClassLogTechnicianMapper.xml
→
src/main/resources/mapper/
store/
TrainingStartClassLogTechnicianMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/TrainingStartClassMapper.xml
→
src/main/resources/mapper/
store/
TrainingStartClassMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/store/oa/OverTimeRecordLogMapper.xml
0 → 100644
View file @
86ce4857
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.gogirl.infrastructure.mapper.store.oa.OverTimeRecordLogMapper"
>
</mapper>
src/main/resources/mapper/store/oa/OverTimeRecordMapper.xml
0 → 100644
View file @
86ce4857
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.gogirl.infrastructure.mapper.store.oa.OverTimeRecordMapper"
>
</mapper>
src/main/resources/mapper/store/oa/TakeLeaveEventMapper.xml
0 → 100644
View file @
86ce4857
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.gogirl.infrastructure.mapper.store.oa.TakeLeaveEventMapper"
>
</mapper>
src/main/resources/mapper/BaseScheduledTypeMapper.xml
→
src/main/resources/mapper/
xcx/
BaseScheduledTypeMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/ColorSystemMapper.xml
→
src/main/resources/mapper/
xcx/
ColorSystemMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/ColorSystemProductMapMapper.xml
→
src/main/resources/mapper/
xcx/
ColorSystemProductMapMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/ColorSystemTypeMapper.xml
→
src/main/resources/mapper/
xcx/
ColorSystemTypeMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/ComplaintDetailedTechnicianMapper.xml
→
src/main/resources/mapper/
xcx/
ComplaintDetailedTechnicianMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/CouponExcludeDetailedMapper.xml
→
src/main/resources/mapper/
xcx/
CouponExcludeDetailedMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/CouponStoreMapper.xml
→
src/main/resources/mapper/
xcx/
CouponStoreMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/LeisureDiscountConfigLimitMapper.xml
→
src/main/resources/mapper/
xcx/
LeisureDiscountConfigLimitMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/LeisureDiscountConfigWeekMapper.xml
→
src/main/resources/mapper/
xcx/
LeisureDiscountConfigWeekMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/MallOrderTechnicianMapper.xml
→
src/main/resources/mapper/
xcx/
MallOrderTechnicianMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/OrderIncomeFlowMapper.xml
→
src/main/resources/mapper/
xcx/
OrderIncomeFlowMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/OrderPayMapper.xml
→
src/main/resources/mapper/
xcx/
OrderPayMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/OwnProduceMapper.xml
→
src/main/resources/mapper/
xcx/
OwnProduceMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/OwnProduceTechniqueSkuMapper.xml
→
src/main/resources/mapper/
xcx/
OwnProduceTechniqueSkuMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/PurchaseSkuTypeMapper.xml
→
src/main/resources/mapper/
xcx/
PurchaseSkuTypeMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/TechScoreRulesMapper.xml
→
src/main/resources/mapper/
xcx/
TechScoreRulesMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/TechniqueCategoryMapper.xml
→
src/main/resources/mapper/
xcx/
TechniqueCategoryMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/TechniqueSkuMapper.xml
→
src/main/resources/mapper/
xcx/
TechniqueSkuMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/TimeNodeMapper.xml
→
src/main/resources/mapper/
xcx/
TimeNodeMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/TimesCardOrderServeDetailMapper.xml
→
src/main/resources/mapper/
xcx/
TimesCardOrderServeDetailMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/VipServeMapper.xml
→
src/main/resources/mapper/
xcx/
VipServeMapper.xml
View file @
86ce4857
File moved
src/main/resources/mapper/WeekConfigMapper.xml
→
src/main/resources/mapper/
xcx/
WeekConfigMapper.xml
View file @
86ce4857
File moved
src/test/java/com/gogirl/CodeGenerator.java
View file @
86ce4857
...
...
@@ -128,7 +128,7 @@ public class CodeGenerator {
// strategy.setSuperEntityClass("你自己的父类实体,没有就不用设置!");
strategy
.
setEntityLombokModel
(
true
);
strategy
.
setRestControllerStyle
(
true
);
//
strategy.setRestControllerStyle(true);
// 公共父类
// strategy.setSuperControllerClass("你自己的父类控制器,没有就不用设置!");
// 写于父类中的公共字段
...
...
src/test/java/com/gogirl/Test.java
View file @
86ce4857
...
...
@@ -26,7 +26,7 @@ import com.gogirl.domain.product.purchase.PurchaseStockRecord;
import
com.gogirl.domain.store.complaint.ComplaintDetailed
;
import
com.gogirl.domain.store.complaint.ComplaintDetailedTechnician
;
import
com.gogirl.domain.store.complaint.ComplaintMain
;
import
com.gogirl.domain.store.oa.Over
t
imeRecord
;
import
com.gogirl.domain.store.oa.Over
T
imeRecord
;
import
com.gogirl.domain.store.oa.TakeLeaveEvent
;
import
com.gogirl.domain.store.store.StoreTechnician
;
import
com.gogirl.domain.user.customer.Customer
;
...
...
@@ -50,7 +50,7 @@ import com.gogirl.infrastructure.mapper.product.purchase.PurchaseStockRecordMapp
import
com.gogirl.infrastructure.mapper.store.complaint.ComplaintDetailedMapper
;
import
com.gogirl.infrastructure.mapper.store.complaint.ComplaintDetailedTechnicianMapper
;
import
com.gogirl.infrastructure.mapper.store.complaint.ComplaintMainMapper
;
import
com.gogirl.infrastructure.mapper.store.oa.Over
t
imeRecordMapper
;
import
com.gogirl.infrastructure.mapper.store.oa.Over
T
imeRecordMapper
;
import
com.gogirl.infrastructure.mapper.store.oa.TakeLeaveEventMapper
;
import
com.gogirl.infrastructure.mapper.user.customer.CustomerBalanceMapper
;
import
com.gogirl.infrastructure.mapper.user.customer.CustomerBalanceRecordMapper
;
...
...
@@ -583,7 +583,7 @@ public class Test {
@Resource
Over
t
imeRecordMapper
overtimeRecordMapper
;
Over
T
imeRecordMapper
overtimeRecordMapper
;
@org
.
junit
.
Test
public
void
plusOverTimeRecord
()
{
...
...
@@ -591,7 +591,7 @@ public class Test {
takeLeaveEventList
.
forEach
(
takeLeaveEvent
->
{
Over
timeRecord
overtimeRecord
=
Overt
imeRecord
.
builder
()
Over
TimeRecord
overtimeRecord
=
OverT
imeRecord
.
builder
()
.
createTime
(
System
.
currentTimeMillis
())
.
startTime
(
takeLeaveEvent
.
getStartTime
())
.
endTime
(
takeLeaveEvent
.
getEndTime
())
...
...
@@ -613,9 +613,9 @@ public class Test {
@org
.
junit
.
Test
public
void
takeLeaveId
()
{
List
<
Over
timeRecord
>
overt
imeRecordList
=
takeLeaveEventMapper
.
takeLeaveId
();
List
<
Over
TimeRecord
>
overT
imeRecordList
=
takeLeaveEventMapper
.
takeLeaveId
();
over
t
imeRecordList
.
forEach
(
overtimeRecord
->
{
over
T
imeRecordList
.
forEach
(
overtimeRecord
->
{
List
<
TakeLeaveEvent
>
takeLeaveEventList
=
takeLeaveEventMapper
.
selectList
(
new
LambdaQueryWrapper
<
TakeLeaveEvent
>()
.
eq
(
TakeLeaveEvent:
:
getStartTime
,
overtimeRecord
.
getStartTime
())
...
...
@@ -624,20 +624,20 @@ public class Test {
.
eq
(
TakeLeaveEvent:
:
getTimeLength
,
overtimeRecord
.
getTotalTimeLength
())
);
List
<
Over
timeRecord
>
overt
imeRecordList1
=
overtimeRecordMapper
.
selectList
(
new
LambdaQueryWrapper
<
Over
t
imeRecord
>()
.
eq
(
Over
t
imeRecord:
:
getStartTime
,
overtimeRecord
.
getStartTime
())
.
eq
(
Over
t
imeRecord:
:
getEndTime
,
overtimeRecord
.
getEndTime
())
.
eq
(
Over
t
imeRecord:
:
getTechnicianId
,
overtimeRecord
.
getTechnicianId
())
.
eq
(
Over
t
imeRecord:
:
getTotalTimeLength
,
overtimeRecord
.
getTotalTimeLength
())
List
<
Over
TimeRecord
>
overT
imeRecordList1
=
overtimeRecordMapper
.
selectList
(
new
LambdaQueryWrapper
<
Over
T
imeRecord
>()
.
eq
(
Over
T
imeRecord:
:
getStartTime
,
overtimeRecord
.
getStartTime
())
.
eq
(
Over
T
imeRecord:
:
getEndTime
,
overtimeRecord
.
getEndTime
())
.
eq
(
Over
T
imeRecord:
:
getTechnicianId
,
overtimeRecord
.
getTechnicianId
())
.
eq
(
Over
T
imeRecord:
:
getTotalTimeLength
,
overtimeRecord
.
getTotalTimeLength
())
);
Queue
<
Over
timeRecord
>
overTimeRecordQueue
=
new
LinkedList
<>(
overt
imeRecordList1
);
Queue
<
Over
TimeRecord
>
overTimeRecordQueue
=
new
LinkedList
<>(
overT
imeRecordList1
);
if
(
takeLeaveEventList
.
size
()
==
overTimeRecordQueue
.
size
())
{
takeLeaveEventList
.
forEach
(
takeLeaveEvent
->
{
Over
timeRecord
overt
imeRecord1
=
overTimeRecordQueue
.
poll
();
over
t
imeRecord1
.
setTakeLeaveEventId
(
takeLeaveEvent
.
getId
());
overtimeRecordMapper
.
updateById
(
over
t
imeRecord1
);
Over
TimeRecord
overT
imeRecord1
=
overTimeRecordQueue
.
poll
();
over
T
imeRecord1
.
setTakeLeaveEventId
(
takeLeaveEvent
.
getId
());
overtimeRecordMapper
.
updateById
(
over
T
imeRecord1
);
});
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment