|
@@ -5,6 +5,7 @@ import java.util.List;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
+import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.system.domain.fgw.FgwFj;
|
|
|
import com.ruoyi.system.domain.fgw.FgwJzqk;
|
|
|
import com.ruoyi.system.domain.fgw.FgwShyj;
|
|
@@ -269,15 +270,18 @@ public class FgwShyjServiceImpl implements IFgwShyjService {
|
|
|
if ("Y".equals(isNt)){
|
|
|
String nttz = fgwJzqk.getNttz();
|
|
|
fgwXmsb.setNttz(nttz);
|
|
|
- long ntxmtc = Long.parseLong(fgwXmsb.getNtxmtc());
|
|
|
- long result = ntxmtc + Long.parseLong(nttz);
|
|
|
- fgwXmsb.setNtxmtc(String.valueOf(result));
|
|
|
+ String ntxmtc = fgwXmsb.getNtxmtc();
|
|
|
+ if (StringUtils.isNotBlank(ntxmtc)){
|
|
|
+ long result = Long.parseLong(ntxmtc) + Long.parseLong(nttz);
|
|
|
+ fgwXmsb.setNtxmtc(String.valueOf(result));
|
|
|
+ }
|
|
|
//修改主表状态
|
|
|
fgwXmsbMapper.updateFgwXmsbStatus(fgwXmsb);
|
|
|
}
|
|
|
} else if (THR.equals(shjg)) {
|
|
|
fgwJzqk.setIsSh(THR);
|
|
|
}
|
|
|
+ fgwJzqkMapper.updateFgwJzqk(fgwJzqk);
|
|
|
fgwShyj.setCreateTime(DateUtils.getNowDate());
|
|
|
fgwShyj.setDeptId(SecurityUtils.getDeptId());
|
|
|
fgwShyj.setShrxm(SecurityUtils.getUsername());
|