wangmiaomiao há 11 meses atrás
pai
commit
22d0e033b9

+ 6 - 1
slibra-admin/src/main/java/com/slibra/web/controller/business/HandleDataController.java

@@ -416,7 +416,12 @@ public class HandleDataController extends BaseController
                             updateBean.setCLJYSSLL(CLJYSSLL);
                             updateBean.setCLJYSSLL(CLJYSSLL);
                             BigDecimal SJTYJLY = Objects.isNull(objects.get(3)) || String.valueOf(objects.get(3)).contains("-") ? null : new BigDecimal(String.valueOf(objects.get(3)));
                             BigDecimal SJTYJLY = Objects.isNull(objects.get(3)) || String.valueOf(objects.get(3)).contains("-") ? null : new BigDecimal(String.valueOf(objects.get(3)));
                             updateBean.setSJTYJLY(SJTYJLY);
                             updateBean.setSJTYJLY(SJTYJLY);
-                            this.xinyiIndustryMapper.updateTXinyiIndustry(updateBean);
+                            //如果两个都不为空再更新
+                            if(!Objects.isNull(CLJYSSLL) || !Objects.isNull(SJTYJLY)){
+                                this.xinyiIndustryMapper.updateTXinyiIndustry(updateBean);
+                            }else{
+                                log.error("要更新的两个字段全部为空--------");
+                            }
                         }
                         }
                     }
                     }
                 }
                 }