|
|
|
@ -161,12 +161,13 @@ public class InvRemindSetServiceImpl implements InvRemindSetService {
|
|
|
|
|
InvRemindSetEntity invRemindSetEntity = invRemindSetDao.selectOne(new QueryWrapper<InvRemindSetEntity>()
|
|
|
|
|
.eq("invCode", addInvRemindSetRequest.getInvCode())
|
|
|
|
|
.eq(StrUtil.isNotBlank(addInvRemindSetRequest.getInvSpaceCode()), "invSpaceCode", addInvRemindSetRequest.getInvSpaceCode())
|
|
|
|
|
.eq(StrUtil.isNotBlank(addInvRemindSetRequest.getRelId()), "relId", addInvRemindSetRequest.getRelId())
|
|
|
|
|
.eq("relId", relId)
|
|
|
|
|
.eq(StrUtil.isNotBlank(addInvRemindSetRequest.getGgxh()), "ggxh", addInvRemindSetRequest.getGgxh())
|
|
|
|
|
);
|
|
|
|
|
if (null == invRemindSetEntity) {
|
|
|
|
|
invRemindSetEntity = new InvRemindSetEntity();
|
|
|
|
|
BeanUtil.copyProperties(addInvRemindSetRequest, invRemindSetEntity);
|
|
|
|
|
invRemindSetEntity.setRelId(relId);
|
|
|
|
|
verifySetParams(invRemindSetEntity);
|
|
|
|
|
setUpdateInfo(invRemindSetEntity);
|
|
|
|
|
invRemindSetDao.insert(invRemindSetEntity);
|
|
|
|
@ -184,10 +185,13 @@ public class InvRemindSetServiceImpl implements InvRemindSetService {
|
|
|
|
|
//查询有无相同设置,有则更新时间
|
|
|
|
|
InvRemindSetEntity invRemindSetEntity = invRemindSetDao.selectOne(new QueryWrapper<InvRemindSetEntity>()
|
|
|
|
|
.eq("invCode", addInvRemindSetRequest.getInvCode())
|
|
|
|
|
.eq(StrUtil.isNotBlank(addInvRemindSetRequest.getInvSpaceCode()), "invSpaceCode", addInvRemindSetRequest.getInvSpaceCode()));
|
|
|
|
|
.eq(StrUtil.isNotBlank(addInvRemindSetRequest.getInvSpaceCode()), "invSpaceCode", addInvRemindSetRequest.getInvSpaceCode())
|
|
|
|
|
.isNull("relId")
|
|
|
|
|
);
|
|
|
|
|
if (null == invRemindSetEntity) {
|
|
|
|
|
invRemindSetEntity = new InvRemindSetEntity();
|
|
|
|
|
BeanUtil.copyProperties(addInvRemindSetRequest, invRemindSetEntity);
|
|
|
|
|
invRemindSetEntity.setStatus(1);
|
|
|
|
|
setUpdateInfo(invRemindSetEntity);
|
|
|
|
|
invRemindSetDao.insert(invRemindSetEntity);
|
|
|
|
|
} else {
|
|
|
|
|