企业信息管理模块bug修改
This commit is contained in:
parent
da8261e345
commit
cf3edce86b
|
|
@ -8,12 +8,7 @@ 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,10 +82,7 @@ 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,14 +75,7 @@ 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)
|
||||||
|| enterpriseRepo.existsByUnifiedSocialCodeAndDelFlag(unifiedSocialCode, (short) 0))
|
rties(audit, history);
|
||||||
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,14 +83,7 @@ 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();
|
||||||
if (enterpriseRepo.existsByLegalPhoneAndDelFlagAndEnterpriseIdNot(legalPhone, (short) 0, enterpriseId))
|
w);
|
||||||
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