|
|
@@ -987,14 +987,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
987
|
987
|
String caseNum = generateCaseNum();
|
|
988
|
988
|
caseApplication.setCaseNum(caseNum);
|
|
989
|
989
|
// 设置批号
|
|
990
|
|
- if(StrUtil.isEmpty(caseApplication.getBatchNumber())){
|
|
991
|
|
- Integer maxBatchNumber = caseApplicationMapper.selectBatchNumberLike();
|
|
992
|
|
- if(maxBatchNumber==null){
|
|
993
|
|
- caseApplication.setBatchNumber("1");
|
|
994
|
|
- }else {
|
|
995
|
|
- caseApplication.setBatchNumber(maxBatchNumber+1+"");
|
|
996
|
|
- }
|
|
997
|
|
- }
|
|
|
990
|
+
|
|
|
991
|
+ caseApplication.setBatchNumber(0);
|
|
|
992
|
+
|
|
998
|
993
|
caseApplication.setCreateBy(getUsername());
|
|
999
|
994
|
caseApplication.setVersion(1);
|
|
1000
|
995
|
caseApplication.setId(IdWorkerUtil.getId());
|