Compare commits

..

2 Commits

Author SHA1 Message Date
8b7efd3e2c 水、电、暖、罚没款、公积金 账号非必填 2025-10-14 11:22:42 +08:00
a07139c573 水费:户号+月份校验
罚没款验重bug修复
2025-10-14 11:21:47 +08:00
2 changed files with 14 additions and 4 deletions

View File

@ -161,7 +161,7 @@ const rules: Record<RuleKey, App.Global.FormRule | App.Global.FormRule[]> = comp
custId: [idCardPatternRule, createRequiredRule('客户身份证号不能为空')],
// custAcctNo: [accountPatternRule,createRequiredRule('')],
custAcctNo: {
required: model.subcategoryId !== 'BIZ032',
required: !['BIZ032', 'BIZ020', 'BIZ021', 'BIZ022', 'BIZ034'].includes(<string>model.subcategoryId),
message: '账户号不能为空'
},
custType: createRequiredRule('客户类型不能为空'),

View File

@ -225,7 +225,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
Set<String> set = new HashSet<>();
set.add("BIZ032");//公积金缴纳账户
set.add("BIZ020");//代收交警罚没款
set.add("BIZ022");//代收水费
// set.add("BIZ022");//代收水费
set.add("BIZ021");//代收电费
set.add("BIZ009");//磁条卡更换登记
Set<String> set1 = new HashSet<>();
@ -245,6 +245,16 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
if (!result.isEmpty()) {
throw new ServiceException("当前年度该取暖费户号已存在!");
}
} else if ("BIZ022".equals(entity.getSubcategoryId())) {
//水费 不校验身份证户号+月份不能重 月份取entry_date前7位
MpsMarket mpsMarket = new MpsMarket();
mpsMarket.setHeatingNo(entity.getHeatingNo());
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
lqw.like(StringUtils.isNotEmpty(entity.getEntryDate()), MpsMarket::getEntryDate, entity.getEntryDate().substring(0,7));
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
if (!result.isEmpty()) {
throw new ServiceException("当月水费户号已存在!");
}
}else if (set1.contains(entity.getSubcategoryId())) {
//在set1中的业务类型身份证号+月份不能重复
//没有对公业务不判断custtype
@ -345,7 +355,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
MpsTraffic traffic = new MpsTraffic();
traffic.setTrafficNo(mpsTraffic.getTrafficNo());
LambdaQueryWrapper<MpsTraffic> lqw1 = new LambdaQueryWrapper<>(traffic);
lqw1.ne( MpsTraffic::getId, mpsTraffic.getId());
lqw1.eq( MpsTraffic::getTrafficNo, mpsTraffic.getTrafficNo());
List<MpsTrafficVo> result1 = TrafficMapper.selectVoList(lqw1);
if (!result1.isEmpty()) {
throw new ServiceException("该代缴交警罚没款已存在,编号:"+mpsTraffic.getTrafficNo());