Browse Source

【功能完善】【客户增加时最大编号重复问题】

koul 4 years ago
parent
commit
b9fa9d4000

+ 1 - 1
src/main/java/com/uas/erp/schedular/finance/task/CustInfomationTask.java

@@ -49,7 +49,7 @@ public class CustInfomationTask extends AbstractTask{
                 if(cuId == 0){
                 if(cuId == 0){
                     type = "INSERT";
                     type = "INSERT";
                     cuId = jdbcTemplate.generate("CUSTOMERINFOR_SEQ");
                     cuId = jdbcTemplate.generate("CUSTOMERINFOR_SEQ");
-                    cuCode = (compBaseInfoByErmRest.getCode() ==null || compBaseInfoByErmRest.getCode().equals("") )? jdbcTemplate.generateCode("Customer!Infor", 2):compBaseInfoByErmRest.getCode();
+                    cuCode = (compBaseInfoByErmRest.getCode() ==null || compBaseInfoByErmRest.getCode().equals("") )? jdbcTemplate.generateCode("CustomerInfor", 2):compBaseInfoByErmRest.getCode();
                 }
                 }
                 //主表 客户资料
                 //主表 客户资料
                 sqls.addAll(getMainSqls(type,cuId,cuCode,enMap,entExtInfoResp));
                 sqls.addAll(getMainSqls(type,cuId,cuCode,enMap,entExtInfoResp));