提交代码

dev_xd
姜玉琦 2025-03-08 02:03:32 +08:00
parent 082acc5ce8
commit 898e4a5dd4
1 changed files with 5 additions and 5 deletions

View File

@ -9,6 +9,7 @@ import com.yanzhu.common.core.text.Convert;
import com.yanzhu.common.core.utils.StringUtils; import com.yanzhu.common.core.utils.StringUtils;
import com.yanzhu.common.security.utils.SecurityUtils; import com.yanzhu.common.security.utils.SecurityUtils;
import com.yanzhu.manage.domain.SmzSspProblemmodify; import com.yanzhu.manage.domain.SmzSspProblemmodify;
import com.yanzhu.manage.enums.CheckStateEnums;
import com.yanzhu.manage.service.ISmzSspProblemmodifyService; import com.yanzhu.manage.service.ISmzSspProblemmodifyService;
import com.yanzhu.system.api.domain.SysUser; import com.yanzhu.system.api.domain.SysUser;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -117,20 +118,20 @@ public class SmzSspProblemmodifyController extends BaseController
if(result.size()>0){ if(result.size()>0){
for (Map<String, Object> map:result){ for (Map<String, Object> map:result){
// 待整改 // 待整改
if(StringUtils.eqObj(map.get("checkState"),"0")){ if(StringUtils.eqObj(map.get("checkState"), CheckStateEnums.DZG.getCode())){
dzg += Convert.toInt(map.get("total"),0); dzg += Convert.toInt(map.get("total"),0);
} }
// 待复检 // 待复检
if(StringUtils.eqObj(map.get("checkState"),"1")){ if(StringUtils.eqObj(map.get("checkState"),CheckStateEnums.DFJ.getCode())){
dfj += Convert.toInt(map.get("total"),0); dfj += Convert.toInt(map.get("total"),0);
yzg += Convert.toInt(map.get("total"),0); yzg += Convert.toInt(map.get("total"),0);
} }
// 复检驳回 // 复检驳回
if(StringUtils.eqObj(map.get("checkState"),"3")){ if(StringUtils.eqObj(map.get("checkState"),CheckStateEnums.ZGBH.getCode())){
dzg += Convert.toInt(map.get("total"),0); dzg += Convert.toInt(map.get("total"),0);
} }
// 整改完成 // 整改完成
if(StringUtils.eqObj(map.get("checkState"),"4")){ if(StringUtils.eqObj(map.get("checkState"),CheckStateEnums.ZGWC.getCode())){
ywc += Convert.toInt(map.get("total"),0); ywc += Convert.toInt(map.get("total"),0);
yzg += Convert.toInt(map.get("total"),0); yzg += Convert.toInt(map.get("total"),0);
} }
@ -188,7 +189,6 @@ public class SmzSspProblemmodifyController extends BaseController
return toAjax(smzSspProblemmodifyService.insertSmzSspProblemmodifies(list)); return toAjax(smzSspProblemmodifyService.insertSmzSspProblemmodifies(list));
} }
/** /**
* *
*/ */