|
|
@@ -102,10 +102,11 @@ public class AgencyManagerImpl extends AbstractManager implements AgencyManager |
|
|
|
QtkAgency byName = qtkAgencyRepo.findByName(reqDTO.getName()); |
|
|
|
if (byName != null) throw new ManagerException("该机构名称已存在"); |
|
|
|
} |
|
|
|
if (!byAgencyId.getMapAgencyId().equals(reqDTO.getMapAgencyId())) { |
|
|
|
QtkAgencyMap byCenterAgencyId = qtkAgencyMapRepo.findByCenterAgencyId(reqDTO.getMapAgencyId()); |
|
|
|
if (byCenterAgencyId == null) throw new ManagerException("该中心渠道编号不存在"); |
|
|
|
} |
|
|
|
// 20250726注释,由于之前数据有的没有中心渠道编号,所以不能验证中心渠道编号 |
|
|
|
// if (!byAgencyId.getMapAgencyId().equals(reqDTO.getMapAgencyId())) { |
|
|
|
// QtkAgencyMap byCenterAgencyId = qtkAgencyMapRepo.findByCenterAgencyId(reqDTO.getMapAgencyId()); |
|
|
|
// if (byCenterAgencyId == null) throw new ManagerException("该中心渠道编号不存在"); |
|
|
|
// } |
|
|
|
byAgencyId.setMapAgencyId(reqDTO.getMapAgencyId()); |
|
|
|
byAgencyId.setType(reqDTO.getType()); |
|
|
|
byAgencyId.setName(reqDTO.getName()); |