瀏覽代碼

新增统计项目整体概况

Administrator 2 年之前
父節點
當前提交
5876f1c216
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/fgw/FgwShyjServiceImpl.java

+ 4 - 4
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/fgw/FgwShyjServiceImpl.java

@@ -268,10 +268,10 @@ public class FgwShyjServiceImpl implements IFgwShyjService {
             if ("Y".equals(isNt)){
                 String nttz = fgwJzqk.getNttz();
                 fgwXmsb.setNttz(nttz);
-                String ntxmtc = fgwXmsb.getNtxmtc();
-                if (StringUtils.isNotBlank(ntxmtc)){
-                    long result = Long.parseLong(ntxmtc) + Long.parseLong(nttz);
-                    fgwXmsb.setNtxmtc(String.valueOf(result));
+                Long ntxmtc = fgwXmsb.getNtxmtc();
+                if (ntxmtc != null){
+                    long result = ntxmtc + Long.parseLong(nttz);
+                    fgwXmsb.setNtxmtc(result);
                 }
                 //修改主表状态
                 fgwXmsbMapper.updateFgwXmsbStatus(fgwXmsb);