Commit f44b1cdb authored by fangxinjiang's avatar fangxinjiang

BUG 优化 档案项目数 非空判断

parent 3d0ab125
...@@ -486,6 +486,9 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap ...@@ -486,6 +486,9 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
} }
} }
} }
if (Common.isEmpty(tEmployeeInfo.getProjectNum())){
tEmployeeInfo.setProjectNum(CommonConstants.ZERO_INT);
}
if (tEmployeeInfo.getProjectNum() != CommonConstants.ZERO_INT) { if (tEmployeeInfo.getProjectNum() != CommonConstants.ZERO_INT) {
tEmployeeInfo.setProjectNum(tEmployeeInfo.getProjectNum() - CommonConstants.ONE_INT); tEmployeeInfo.setProjectNum(tEmployeeInfo.getProjectNum() - CommonConstants.ONE_INT);
} }
......
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