Commit b4a91035 authored by cq990612's avatar cq990612

优化代码结构

parent 9af51e99
...@@ -58,4 +58,8 @@ public class WorkTimeOrderDto { ...@@ -58,4 +58,8 @@ public class WorkTimeOrderDto {
@ApiModelProperty(name = "typeName",value = "项目类型名") @ApiModelProperty(name = "typeName",value = "项目类型名")
private String typeName; private String typeName;
@ApiModelProperty(name = "isOvertime",value = "0:正常工时,1:加班")
private Integer isOvertime;
} }
...@@ -573,7 +573,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService { ...@@ -573,7 +573,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.WORK_TIME_OVER_NOW_DAY); throw new BaseCustomException(BASE_RESP_CODE_ENUM.WORK_TIME_OVER_NOW_DAY);
} }
if (0 == dto.getWorkTime()) { if (0 == dto.getWorkTime() || null ==dto.getWorkTime()) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.TIME_NOT_IS_NULL); throw new BaseCustomException(BASE_RESP_CODE_ENUM.TIME_NOT_IS_NULL);
} }
// 2、默认设置超过系统默认3天(包括驳回3天)未填报的工时将不能填报 // 2、默认设置超过系统默认3天(包括驳回3天)未填报的工时将不能填报
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment