修复修改判重问题
This commit is contained in:
parent
885268bc72
commit
a1547f8c78
@ -77,6 +77,8 @@ declare namespace Api {
|
|||||||
tenantId: CommonType.IdType;
|
tenantId: CommonType.IdType;
|
||||||
/** 删除标志(0代表存在 1代表删除) */
|
/** 删除标志(0代表存在 1代表删除) */
|
||||||
delFlag: string;
|
delFlag: string;
|
||||||
|
/** 创建时间 */
|
||||||
|
entryDate: string;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
/** market search params */
|
/** market search params */
|
||||||
@ -150,6 +152,7 @@ declare namespace Api {
|
|||||||
| 'checkUser'
|
| 'checkUser'
|
||||||
| 'checkType'
|
| 'checkType'
|
||||||
| 'checkMsg'
|
| 'checkMsg'
|
||||||
|
| 'entryDate'
|
||||||
>
|
>
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
|||||||
@ -83,7 +83,8 @@ function createDefaultModel(): Model {
|
|||||||
checkTime: null,
|
checkTime: null,
|
||||||
checkUser: '',
|
checkUser: '',
|
||||||
checkType: '0',
|
checkType: '0',
|
||||||
checkMsg: ''
|
checkMsg: '',
|
||||||
|
entryDate: null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -249,7 +250,8 @@ async function handleSubmit() {
|
|||||||
checkTime,
|
checkTime,
|
||||||
checkUser,
|
checkUser,
|
||||||
checkType,
|
checkType,
|
||||||
checkMsg
|
checkMsg,
|
||||||
|
entryDate
|
||||||
} = model;
|
} = model;
|
||||||
|
|
||||||
// request
|
// request
|
||||||
@ -321,7 +323,8 @@ async function handleSubmit() {
|
|||||||
checkTime,
|
checkTime,
|
||||||
checkUser,
|
checkUser,
|
||||||
checkType,
|
checkType,
|
||||||
checkMsg
|
checkMsg,
|
||||||
|
entryDate
|
||||||
});
|
});
|
||||||
if (error) return;
|
if (error) return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -194,5 +194,10 @@ public class MpsMarketBo extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
private String checkMsg;
|
private String checkMsg;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private String entryDate;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -225,5 +225,11 @@ public class MpsMarketVo implements Serializable {
|
|||||||
@ExcelProperty(value = "核对结果")
|
@ExcelProperty(value = "核对结果")
|
||||||
private String checkMsg;
|
private String checkMsg;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "创建时间")
|
||||||
|
private String entryDate;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -361,6 +361,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
|
|||||||
mpsMarket.setCustId(entity.getCustId());
|
mpsMarket.setCustId(entity.getCustId());
|
||||||
mpsMarket.setSubcategoryId(entity.getSubcategoryId());
|
mpsMarket.setSubcategoryId(entity.getSubcategoryId());
|
||||||
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
||||||
|
lqw.ne(entity.getDataId()!=null, MpsMarket::getDataId, entity.getDataId());
|
||||||
lqw.like(StringUtils.isNotEmpty(entity.getEntryDate()), MpsMarket::getEntryDate, entity.getEntryDate().substring(0, 4));
|
lqw.like(StringUtils.isNotEmpty(entity.getEntryDate()), MpsMarket::getEntryDate, entity.getEntryDate().substring(0, 4));
|
||||||
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
@ -383,6 +384,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
|
|||||||
mpsMarket.setCustAcctNo(entity.getCustAcctNo());
|
mpsMarket.setCustAcctNo(entity.getCustAcctNo());
|
||||||
mpsMarket.setSubcategoryId(entity.getSubcategoryId());
|
mpsMarket.setSubcategoryId(entity.getSubcategoryId());
|
||||||
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
||||||
|
lqw.ne(entity.getDataId()!=null, MpsMarket::getDataId, entity.getDataId());
|
||||||
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
throw new ServiceException("银行卡号已存在!");
|
throw new ServiceException("银行卡号已存在!");
|
||||||
@ -406,6 +408,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
|
|||||||
mpsMarket.setAcquiringId(entity.getAcquiringId());
|
mpsMarket.setAcquiringId(entity.getAcquiringId());
|
||||||
mpsMarket.setSubcategoryId(entity.getSubcategoryId());
|
mpsMarket.setSubcategoryId(entity.getSubcategoryId());
|
||||||
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
||||||
|
lqw.ne(entity.getDataId()!=null, MpsMarket::getDataId, entity.getDataId());
|
||||||
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
throw new ServiceException("商户号不可重复!");
|
throw new ServiceException("商户号不可重复!");
|
||||||
@ -415,6 +418,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
|
|||||||
mpsMarket.setHeatingNo(entity.getHeatingNo());
|
mpsMarket.setHeatingNo(entity.getHeatingNo());
|
||||||
mpsMarket.setSubcategoryId(entity.getSubcategoryId());
|
mpsMarket.setSubcategoryId(entity.getSubcategoryId());
|
||||||
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
||||||
|
lqw.ne(entity.getDataId()!=null, MpsMarket::getDataId, entity.getDataId());
|
||||||
lqw.like(StringUtils.isNotEmpty(entity.getEntryDate()), MpsMarket::getEntryDate, entity.getEntryDate().substring(0,4));
|
lqw.like(StringUtils.isNotEmpty(entity.getEntryDate()), MpsMarket::getEntryDate, entity.getEntryDate().substring(0,4));
|
||||||
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
@ -426,6 +430,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
|
|||||||
mpsMarket.setHeatingNo(entity.getHeatingNo());
|
mpsMarket.setHeatingNo(entity.getHeatingNo());
|
||||||
mpsMarket.setSubcategoryId(entity.getSubcategoryId());
|
mpsMarket.setSubcategoryId(entity.getSubcategoryId());
|
||||||
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
||||||
|
lqw.ne(entity.getDataId()!=null, MpsMarket::getDataId, entity.getDataId());
|
||||||
lqw.like(StringUtils.isNotEmpty(entity.getEntryDate()), MpsMarket::getEntryDate, entity.getEntryDate().substring(0,7));
|
lqw.like(StringUtils.isNotEmpty(entity.getEntryDate()), MpsMarket::getEntryDate, entity.getEntryDate().substring(0,7));
|
||||||
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
@ -435,11 +440,13 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
|
|||||||
//在set1中的业务类型,账号+年份不能重复
|
//在set1中的业务类型,账号+年份不能重复
|
||||||
//没有对公业务,不判断custtype
|
//没有对公业务,不判断custtype
|
||||||
// 排除新开有效银行卡可重复的影响
|
// 排除新开有效银行卡可重复的影响
|
||||||
|
//修改时排除本条数据的影响
|
||||||
mpsMarket.setCustAcctNo(entity.getCustAcctNo());
|
mpsMarket.setCustAcctNo(entity.getCustAcctNo());
|
||||||
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
||||||
lqw.like(MpsMarket::getEntryDate, entity.getEntryDate().substring(0,4));
|
lqw.like(MpsMarket::getEntryDate, entity.getEntryDate().substring(0,4));
|
||||||
lqw.in(MpsMarket::getSubcategoryId, set1);
|
lqw.in(MpsMarket::getSubcategoryId, set1);
|
||||||
lqw.ne("BIZ010".equals(entity.getSubcategoryId()),MpsMarket::getSubcategoryId, "BIZ010");
|
lqw.ne("BIZ010".equals(entity.getSubcategoryId()),MpsMarket::getSubcategoryId, "BIZ010");
|
||||||
|
lqw.ne(entity.getDataId()!=null, MpsMarket::getDataId, entity.getDataId());
|
||||||
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
throw new ServiceException("该营销记录(四选一)已存在!");
|
throw new ServiceException("该营销记录(四选一)已存在!");
|
||||||
@ -450,6 +457,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
|
|||||||
mpsMarket.setCustId(entity.getCustId());
|
mpsMarket.setCustId(entity.getCustId());
|
||||||
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
||||||
lqw.like(MpsMarket::getEntryDate, entity.getEntryDate().substring(0,7));
|
lqw.like(MpsMarket::getEntryDate, entity.getEntryDate().substring(0,7));
|
||||||
|
lqw.ne(entity.getDataId()!=null, MpsMarket::getDataId, entity.getDataId());
|
||||||
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
throw new ServiceException("该营销记录已存在!");
|
throw new ServiceException("该营销记录已存在!");
|
||||||
@ -460,6 +468,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
|
|||||||
mpsMarket.setCustAcctNo(entity.getCustAcctNo());
|
mpsMarket.setCustAcctNo(entity.getCustAcctNo());
|
||||||
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
LambdaQueryWrapper<MpsMarket> lqw = new LambdaQueryWrapper<>(mpsMarket);
|
||||||
lqw.like(MpsMarket::getEntryDate, entity.getEntryDate().substring(0,7));
|
lqw.like(MpsMarket::getEntryDate, entity.getEntryDate().substring(0,7));
|
||||||
|
lqw.ne(entity.getDataId()!=null, MpsMarket::getDataId, entity.getDataId());
|
||||||
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
List<MpsMarketVo> result = baseMapper.selectVoList(lqw);
|
||||||
if (!result.isEmpty()) {
|
if (!result.isEmpty()) {
|
||||||
throw new ServiceException("该营销记录已存在!");
|
throw new ServiceException("该营销记录已存在!");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user