|
|
|
@@ -121,6 +121,17 @@ public class WxBillOtherDepositServiceImpl implements WxBillOtherDepositService |
|
|
|
Date date = new Date(); |
|
|
|
if (record.getId() == null) { |
|
|
|
logger.info("新增其他账单"); |
|
|
|
|
|
|
|
WxBillOtherDeposit otherDepositQuery = new WxBillOtherDeposit(); |
|
|
|
otherDepositQuery.setTenantId(record.getTenantId()); |
|
|
|
otherDepositQuery.setMerchantId(record.getMerchantId()); |
|
|
|
otherDepositQuery.setReceiveDate(record.getReceiveDate()); |
|
|
|
otherDepositQuery.setIsDel(EnumDelStatus.NOT_DEL.getCode()); |
|
|
|
WxBillOtherDeposit otherDeposit = wxBillOtherDepositMapper.selectOne(otherDepositQuery); |
|
|
|
if (otherDeposit != null) { |
|
|
|
return new ResultData(ErrorCode.BILL_IS_FOUND); |
|
|
|
} |
|
|
|
|
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
record.setId(idWorker.nextId()); |
|
|
|
record.setStatus(EnumBillDailyStatus.WAIT_PAY.getCode()); |
|
|
|
|