Commit 7df581b3 by hzc

防止null异常

parent 65006aa2
......@@ -152,10 +152,12 @@ public class BaseIndDefService {
String auditId = indicatorsDefAuditMapper.getMaxIndId(code+"%", length);
if (Integer.parseInt(auditId)>Integer.parseInt(maxId)){
maxId = auditId;
//防止null异常
if(StringUtils.isNotBlank(maxId)&&StringUtils.isNotBlank(auditId)){
if (Integer.parseInt(auditId)>Integer.parseInt(maxId)){
maxId = auditId;
}
}
if(StringUtils.isBlank(maxId)) {
String addZero = "";
for(int i=0;i<(length-code.length()-1);i++) {
......
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