动态数据管理模块bug修改
This commit is contained in:
parent
4c808a37ae
commit
ca7f31e21c
|
|
@ -151,6 +151,7 @@ const handleChange = (val) => {
|
||||||
const selectedEnterprise = enterprises.value.find(enterprise => enterprise.enterpriseId === val)
|
const selectedEnterprise = enterprises.value.find(enterprise => enterprise.enterpriseId === val)
|
||||||
selectedEnterprises = selectedEnterprise ? [selectedEnterprise] : []
|
selectedEnterprises = selectedEnterprise ? [selectedEnterprise] : []
|
||||||
}
|
}
|
||||||
|
|
||||||
// 触发change事件,传递完整的企业信息
|
// 触发change事件,传递完整的企业信息
|
||||||
emit('change', props.multiple ? selectedEnterprises : (selectedEnterprises[0] || null))
|
emit('change', props.multiple ? selectedEnterprises : (selectedEnterprises[0] || null))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,9 @@ public class EnterpriseAuditService {
|
||||||
if ("update".equals(type)) {
|
if ("update".equals(type)) {
|
||||||
EnterpriseAudit audit = enterpriseAuditRepo.findById(enterpriseId).orElseThrow(() -> new RuntimeException("单位信息不存在"));
|
EnterpriseAudit audit = enterpriseAuditRepo.findById(enterpriseId).orElseThrow(() -> new RuntimeException("单位信息不存在"));
|
||||||
String unifiedSocialCode = enterpriseAudit.getUnifiedSocialCode();
|
String unifiedSocialCode = enterpriseAudit.getUnifiedSocialCode();
|
||||||
ion("社会统一信用代码【" + unifiedSocialCode + "】在企业上报审核/企业信息管理已存在");
|
if (enterpriseAuditRepo.existsByUnifiedSocialCodeAndDelFlagAndEnterpriseIdNot(unifiedSocialCode, (short) 0, enterpriseId)
|
||||||
|
|| enterpriseRepo.existsByUnifiedSocialCodeAndDelFlag(unifiedSocialCode, (short) 0))
|
||||||
|
throw new RuntimeException("社会统一信用代码【" + unifiedSocialCode + "】在企业上报审核/企业信息管理已存在");
|
||||||
String legalPhone = enterpriseAudit.getLegalPhone();
|
String legalPhone = enterpriseAudit.getLegalPhone();
|
||||||
if (enterpriseAuditRepo.existsByLegalPhoneAndDelFlagAndEnterpriseIdNot(legalPhone, (short) 0, enterpriseId)
|
if (enterpriseAuditRepo.existsByLegalPhoneAndDelFlagAndEnterpriseIdNot(legalPhone, (short) 0, enterpriseId)
|
||||||
|| enterpriseRepo.existsByLegalPhoneAndDelFlag(legalPhone, (short) 0))
|
|| enterpriseRepo.existsByLegalPhoneAndDelFlag(legalPhone, (short) 0))
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,10 @@ public class EnterpriseService {
|
||||||
if ("update".equals(enterprise.getOperate())) {
|
if ("update".equals(enterprise.getOperate())) {
|
||||||
String unifiedSocialCode = enterprise.getUnifiedSocialCode();
|
String unifiedSocialCode = enterprise.getUnifiedSocialCode();
|
||||||
String enterpriseId = enterprise.getEnterpriseId();
|
String enterpriseId = enterprise.getEnterpriseId();
|
||||||
oneAndDelFlagAndEnterpriseIdNot(legalPhone, (short) 0, enterpriseId))
|
if (enterpriseRepo.existsByUnifiedSocialCodeAndDelFlagAndEnterpriseIdNot(unifiedSocialCode, (short) 0, enterpriseId))
|
||||||
|
throw new RuntimeException("社会统一信用代码【" + unifiedSocialCode + "】在企业信息管理已存在");
|
||||||
|
String legalPhone = enterprise.getLegalPhone();
|
||||||
|
if (enterpriseRepo.existsByLegalPhoneAndDelFlagAndEnterpriseIdNot(legalPhone, (short) 0, enterpriseId))
|
||||||
throw new RuntimeException("联系电话【" + legalPhone + "】在企业上报审核/企业信息管理已存在");
|
throw new RuntimeException("联系电话【" + legalPhone + "】在企业上报审核/企业信息管理已存在");
|
||||||
Optional<Enterprise> optional = enterpriseRepo.findById(enterpriseId);
|
Optional<Enterprise> optional = enterpriseRepo.findById(enterpriseId);
|
||||||
if (optional.isPresent()) {
|
if (optional.isPresent()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue