提交 3e42099c authored 作者: 000516's avatar 000516 提交者: Coding

打卡时,计划如果已执行,则判断是否单点CP类型

Merge Request: 打卡时,计划如果已执行,则判断是否单点CP类型 Created By: @李秋林 Accepted By: @李秋林 URL: https://g-pkkp8204.coding.net/p/promotion/d/promotion-service/git/merge/194?initial=true
...@@ -128,7 +128,7 @@ public class TemporaryActivityClockCoreServiceImpl implements TemporaryActivityC ...@@ -128,7 +128,7 @@ public class TemporaryActivityClockCoreServiceImpl implements TemporaryActivityC
public void clockInTodayPlan(TemporaryClockDto dto, Integer clockType) { public void clockInTodayPlan(TemporaryClockDto dto, Integer clockType) {
if (Objects.isNull(dto.getId())) { if (Objects.isNull(dto.getId())) {
ActivityPlanInfoDto planInfo = promPlanQueryService.selectById(dto.getPlanId()); ActivityPlanInfoDto planInfo = promPlanQueryService.selectById(dto.getPlanId());
if (Objects.isNull(planInfo) || planInfo.getPlanStatus().equals(PlanStatus.EXECUTION.getCode())){ if (Objects.isNull(planInfo) || (planInfo.getPlanStatus().equals(PlanStatus.EXECUTION.getCode()) && planInfo.getPattern().equals("单点CP"))){
throw new ParamException(RCode.NOT_CLOCK_STORE_ERROR); throw new ParamException(RCode.NOT_CLOCK_STORE_ERROR);
} }
ManageEmployeeInfoDto employeeDto = manageEmployeeInfoDao.selectById(planInfo.getEmployeeId()); ManageEmployeeInfoDto employeeDto = manageEmployeeInfoDao.selectById(planInfo.getEmployeeId());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论