Compare commits
2 Commits
5eabb4fc32
...
8b7efd3e2c
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b7efd3e2c | |||
| a07139c573 |
@ -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('客户类型不能为空'),
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user