优化企业监管行业可视化展示效果,修复导入企业信息格式报错的问题
This commit is contained in:
parent
cf3edce86b
commit
cfb2092b37
|
|
@ -8,7 +8,12 @@ export const enterprises = {
|
||||||
findEnterprisesByOrgCode: (query) => api({
|
findEnterprisesByOrgCode: (query) => api({
|
||||||
url: `${url}/orgcode`,
|
url: `${url}/orgcode`,
|
||||||
method: REQUEST_METHOD_TYPES.GET,
|
method: REQUEST_METHOD_TYPES.GET,
|
||||||
|
params: query
|
||||||
|
}),
|
||||||
|
findEnterprisesByAgencyId: (query) => api({
|
||||||
|
url: `${url}/agencyid`,
|
||||||
|
method: REQUEST_METHOD_TYPES.GET,
|
||||||
|
params: query
|
||||||
}),
|
}),
|
||||||
ledgerStatistics(query) {//企业信息统计
|
ledgerStatistics(query) {//企业信息统计
|
||||||
return api({
|
return api({
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,10 @@ const loadCheckItems = async () => {
|
||||||
checkItems.value = res.data || []
|
checkItems.value = res.data || []
|
||||||
|
|
||||||
loading.value = false
|
loading.value = false
|
||||||
|
} catch (error) {
|
||||||
|
console.error('获取检查项数据失败:', error)
|
||||||
|
loading.value = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理选择变更
|
// 处理选择变更
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,14 @@ public class EnterpriseAuditService {
|
||||||
EnterpriseAudit audit = enterpriseAuditRepo.findById(enterpriseId).orElseThrow(() -> new RuntimeException("单位信息不存在"));
|
EnterpriseAudit audit = enterpriseAuditRepo.findById(enterpriseId).orElseThrow(() -> new RuntimeException("单位信息不存在"));
|
||||||
String unifiedSocialCode = enterpriseAudit.getUnifiedSocialCode();
|
String unifiedSocialCode = enterpriseAudit.getUnifiedSocialCode();
|
||||||
if (enterpriseAuditRepo.existsByUnifiedSocialCodeAndDelFlagAndEnterpriseIdNot(unifiedSocialCode, (short) 0, enterpriseId)
|
if (enterpriseAuditRepo.existsByUnifiedSocialCodeAndDelFlagAndEnterpriseIdNot(unifiedSocialCode, (short) 0, enterpriseId)
|
||||||
rties(audit, history);
|
|| enterpriseRepo.existsByUnifiedSocialCodeAndDelFlag(unifiedSocialCode, (short) 0))
|
||||||
|
throw new RuntimeException("社会统一信用代码【" + unifiedSocialCode + "】在企业上报审核/企业信息管理已存在");
|
||||||
|
String legalPhone = enterpriseAudit.getLegalPhone();
|
||||||
|
if (enterpriseAuditRepo.existsByLegalPhoneAndDelFlagAndEnterpriseIdNot(legalPhone, (short) 0, enterpriseId)
|
||||||
|
|| enterpriseRepo.existsByLegalPhoneAndDelFlag(legalPhone, (short) 0))
|
||||||
|
throw new RuntimeException("联系电话【" + legalPhone + "】在企业上报审核/企业信息管理已存在");
|
||||||
|
EnterpriseHistory history = new EnterpriseHistory();
|
||||||
|
BeanUtils.copyProperties(audit, history);
|
||||||
history.setTheType("普通修改");
|
history.setTheType("普通修改");
|
||||||
if (null != user) {
|
if (null != user) {
|
||||||
history.setHistoryTime(now);
|
history.setHistoryTime(now);
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,14 @@ public class EnterpriseService {
|
||||||
if (enterpriseRepo.existsByUnifiedSocialCodeAndDelFlagAndEnterpriseIdNot(unifiedSocialCode, (short) 0, enterpriseId))
|
if (enterpriseRepo.existsByUnifiedSocialCodeAndDelFlagAndEnterpriseIdNot(unifiedSocialCode, (short) 0, enterpriseId))
|
||||||
throw new RuntimeException("社会统一信用代码【" + unifiedSocialCode + "】在企业信息管理已存在");
|
throw new RuntimeException("社会统一信用代码【" + unifiedSocialCode + "】在企业信息管理已存在");
|
||||||
String legalPhone = enterprise.getLegalPhone();
|
String legalPhone = enterprise.getLegalPhone();
|
||||||
w);
|
if (enterpriseRepo.existsByLegalPhoneAndDelFlagAndEnterpriseIdNot(legalPhone, (short) 0, enterpriseId))
|
||||||
|
throw new RuntimeException("联系电话【" + legalPhone + "】在企业上报审核/企业信息管理已存在");
|
||||||
|
Optional<Enterprise> optional = enterpriseRepo.findById(enterpriseId);
|
||||||
|
if (optional.isPresent()) {
|
||||||
|
EnterpriseHistory history = new EnterpriseHistory();
|
||||||
|
BeanUtils.copyProperties(optional.get(), history);
|
||||||
|
history.setTheType("普通修改");
|
||||||
|
history.setHistoryTime(now);
|
||||||
if (null != user) {
|
if (null != user) {
|
||||||
history.setTheUserName(user.getYhwybs());
|
history.setTheUserName(user.getYhwybs());
|
||||||
history.setTheUserNickName(user.getXm());
|
history.setTheUserNickName(user.getXm());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue