提交 452249e4 authored 作者: douxy's avatar douxy

CP计划小程序改造,修改单点CP计划类型

上级 0d2cb467
...@@ -132,7 +132,7 @@ public class TemporaryActivityClockCoreServiceImpl implements TemporaryActivityC ...@@ -132,7 +132,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()) && planInfo.getPattern().equals("单点CP"))){ if (Objects.isNull(planInfo) || (planInfo.getPlanStatus().equals(PlanStatus.EXECUTION.getCode()))){
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论