|
|
@@ -58,6 +58,7 @@ public class BankinformationServiceImpl extends CommonBaseServiceImpl<Bankinform
|
|
|
bankinformation.setCreatorId(BaseContextHolder.getUserId());
|
|
|
bankinformation.setCreatorName(BaseContextHolder.getUserName());
|
|
|
int bid = Math.toIntExact(bankinformation.getId());
|
|
|
+ DocBaseDTO docBaseDTO = new DocBaseDTO();
|
|
|
|
|
|
String bk_code = RegexpUtils.replaceSpecCharacter(bankinformation.getBk_bankcode());
|
|
|
String code = pushMaxnubmer(bk_code, bankinformation.getId());
|
|
|
@@ -72,9 +73,15 @@ public class BankinformationServiceImpl extends CommonBaseServiceImpl<Bankinform
|
|
|
bankinformation.setBk_thisamount(bankinformation.getBk_beginamount());
|
|
|
bankinformation.setBk_bankcode(code);
|
|
|
bankinformationMapper.insertSelective(bankinformation);
|
|
|
+
|
|
|
+ docBaseDTO.setId(bankinformation.getId());
|
|
|
+ docBaseDTO.setCode(code);
|
|
|
+ docBaseDTO.setName(BillCodeSeq.BANKINFORMATION.getCaller());
|
|
|
+ messageLogService.save(docBaseDTO);
|
|
|
Banksubledger banksubledger = this.changBanksubledger(bankinformation);
|
|
|
banksubledgerMapper.insertSelective(banksubledger);
|
|
|
}else {
|
|
|
+ docBaseDTO = this.getBaseDTOById(bid);
|
|
|
bankinformation.setUpdaterId(BaseContextHolder.getUserId());
|
|
|
bankinformation.setUpdaterName(BaseContextHolder.getUserName());
|
|
|
bankinformation.setUpdateTime(new Date());
|
|
|
@@ -83,7 +90,6 @@ public class BankinformationServiceImpl extends CommonBaseServiceImpl<Bankinform
|
|
|
Double fbeginamount = bankinformation.getBk_beginamount();
|
|
|
bankinformation.setBk_thisamount(bankinformation.getBk_beginamount());
|
|
|
if (!(fbeginamount.equals(beginamount))){
|
|
|
- DocBaseDTO docBaseDTO = getBaseDTOById(bid);
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
map.put("v_id",bid);
|
|
|
map.put("v_code", docBaseDTO.getCode());
|
|
|
@@ -101,11 +107,13 @@ public class BankinformationServiceImpl extends CommonBaseServiceImpl<Bankinform
|
|
|
if (bktion != null){
|
|
|
if (id.equals(bankinformation.getId())){
|
|
|
bankinformationMapper.updateByPrimaryKeySelective(bankinformation);
|
|
|
+ messageLogService.update(docBaseDTO);
|
|
|
}else {
|
|
|
throw new BizException(500, BizExceptionCode.ACCOUNT_EXISTS.getMessage());
|
|
|
}
|
|
|
}else {
|
|
|
bankinformationMapper.updateByPrimaryKeySelective(bankinformation);
|
|
|
+ messageLogService.update(docBaseDTO);
|
|
|
}
|
|
|
Banksubledger banksubledger = this.changBanksubledger(bankinformation);
|
|
|
banksubledgerMapper.updateByPrimaryKeySelective(banksubledger);
|
|
|
@@ -138,7 +146,7 @@ public class BankinformationServiceImpl extends CommonBaseServiceImpl<Bankinform
|
|
|
|
|
|
private DocBaseDTO getBaseDTOById(int id) {
|
|
|
String code = bankinformationMapper.selectByPrimaryKey(id).getBk_bankcode();
|
|
|
- DocBaseDTO baseDTO = new DocBaseDTO(Long.valueOf(String.valueOf(id)), code, "BankInformation");
|
|
|
+ DocBaseDTO baseDTO = new DocBaseDTO(Long.valueOf(String.valueOf(id)), code, BillCodeSeq.BANKINFORMATION.getCaller());
|
|
|
return baseDTO;
|
|
|
}
|
|
|
@Override
|