bug修改 #38

Merged
wangqiong123 merged 5 commits from wq into dev 2023-10-09 07:52:02 +00:00
2 changed files with 18 additions and 1 deletions
Showing only changes of commit 0f7b9842bb - Show all commits
@@ -59,6 +59,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
BigDecimal feePayable = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP); BigDecimal feePayable = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
caseApplication.setFeePayable(feePayable); caseApplication.setFeePayable(feePayable);
String caseNum = generateCaseNum();
caseApplication.setCaseNum(caseNum);
int rows = caseApplicationMapper.insertCaseApplication(caseApplication); int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates(); List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
if(caseAffiliates!=null&&caseAffiliates.size()>0){ if(caseAffiliates!=null&&caseAffiliates.size()>0){
@@ -80,6 +83,20 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
return rows; return rows;
} }
private String generateCaseNum() {
String currentday = DateUtils.dateTime();
String caseNum = "zc"+ currentday;
//查询出当天的案件编号的最大值 ,如等于1
Integer caseNumMax = 1;
if(caseNumMax!=null){
//根据查询到的caseNumMax拼接一个案件编号
}else {
caseNum += "001";
}
return caseNum;
}
@Override @Override
public int selectCaseApplicationCount(CaseApplication caseApplication) { public int selectCaseApplicationCount(CaseApplication caseApplication) {
return caseApplicationMapper.selectCaseApplicationCount(caseApplication); return caseApplicationMapper.selectCaseApplicationCount(caseApplication);
@@ -123,7 +123,7 @@ public class IdentityAuthenticationServiceImpl implements IdentityAuthenticatio
// reqest.setInfoType("1"); // reqest.setInfoType("1");
// reqest.setInfoType("13"); // reqest.setInfoType("13");
reqest.setInfoType("2"); // reqest.setInfoType("2");
//获得身份认证结果 //获得身份认证结果
GetEidResultResponse respIdenAuth = clientIdenAuth.GetEidResult(reqest); GetEidResultResponse respIdenAuth = clientIdenAuth.GetEidResult(reqest);