bug修复
This commit is contained in:
parent
040914ea8a
commit
978a5d8f3c
|
|
@ -51,7 +51,7 @@ public class WorkPlanAllServiceImpl implements WorkPlanAllService {
|
|||
if (list.size() > 0) {
|
||||
for (WorkPlanAllBean item : list) {
|
||||
//计算完成率
|
||||
if (item.getTotalNum() == null || "".equals(item.getTotalNum())) {
|
||||
if (item.getTotalNum() == null || "".equals(item.getTotalNum())||item.getWorkNum() == null || "".equals(item.getWorkNum())) {
|
||||
item.setCompleteRate("0%");
|
||||
} else {
|
||||
//计算完成率
|
||||
|
|
|
|||
|
|
@ -83,6 +83,16 @@ public class PersonTrainServiceImpl implements PersonTrainService {
|
|||
personComprehensiveDao.updateRedPersonData(id);
|
||||
}
|
||||
}
|
||||
//判断分数是否为空 20250207
|
||||
if (StringUtils.isNull(bean.getCompanyExamScore())){
|
||||
bean.setCompanyExamScore(0);
|
||||
}
|
||||
if (StringUtils.isNull(bean.getDeptExamScore())){
|
||||
bean.setDeptExamScore(0);
|
||||
}
|
||||
if (StringUtils.isNull(bean.getTeamExamScore())){
|
||||
bean.setTeamExamScore(0);
|
||||
}
|
||||
dao.updateWorkerLight(bean);
|
||||
return i > 0 ? R.ok(Constants.INSERT_SUCCESS) : R.fail(Constants.INSERT_FAIL);
|
||||
}
|
||||
|
|
@ -152,12 +162,8 @@ public class PersonTrainServiceImpl implements PersonTrainService {
|
|||
|
||||
private void getLight(PersonTrainBean o) {
|
||||
String light = "0";
|
||||
if (o.getCompanyExamScore() != null &&
|
||||
o.getDeptExamScore() != null &&
|
||||
o.getTeamExamScore() != null) {
|
||||
if (o.getCompanyExamScore() >= 80 &&
|
||||
o.getDeptExamScore() >= 80 &&
|
||||
o.getTeamExamScore() >= 80) {
|
||||
if (o.getCompanyExamScore() != null && o.getDeptExamScore() != null && o.getTeamExamScore() != null) {
|
||||
if (o.getCompanyExamScore() >= 80 && o.getDeptExamScore() >= 80 && o.getTeamExamScore() >= 80) {
|
||||
light = "1";
|
||||
o.setIsPass("1");
|
||||
if (StringUtils.isNotEmpty(o.getTeamId()) &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue