Browse Source

渠道编号 限制不能重复

heyueyang
hyy 1 year ago
parent
commit
da3b147207

+ 4
- 0
src/main/java/com/qtzl/alterSales/manager/service/AflSignChannelsInfoServiceImpl.java View File

@@ -53,6 +53,10 @@ public class AflSignChannelsInfoServiceImpl implements AflSignChannelsInfoServic
if (aflSignChannelsInfo!=null){
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("已存在该渠道名称配置,不允许重复,请核实");
}
AflSignChannelsInfo aflSignChannelsInfoTwo= aflSignChannelsInfoRepo.findByChannelCode(request.getChannelCode());
if (aflSignChannelsInfoTwo!=null){
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("已存在该渠道编号配置,不允许重复,请核实");
}
aflSignChannelsInfo=new AflSignChannelsInfo();
BeanUtils.copyProperties(request,aflSignChannelsInfo);
aflSignChannelsInfo.setIsDelete(0);//默认未删除

Loading…
Cancel
Save