fix: 87553 市场法规清单-查看标准库中已删除的数据,提示操作失败

This commit is contained in:
2024-07-29 15:39:25 +08:00
parent 1e972c8865
commit fb46656963
5 changed files with 16 additions and 1 deletions
@@ -161,6 +161,10 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
private ILawsPartNameStandardService partNameStandardService;
@Resource
private ISysBaseAPI sysBaseAPI;
@Resource
private ILawsEnterpriseStandardService esService;
@Resource
private ILawsDomesticStandardService fbService;
public static boolean ENCRYPT_ENABLE;
public static String DECRYPT_URL;
@@ -1258,11 +1262,18 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
ManyStandardSelectionBox singleStandard;
if (StrUtil.isNotBlank(id)) {
singleStandard = getSingleStandard(null, id);
if (singleStandard == null) {
throw new JeroBootException(ResultCommon.NOT_EXIST_STANDARD);
}
standardNumber = singleStandard.getStandardNumber();
} else {
singleStandard = getSingleStandard(standardNumber, null);
if (singleStandard == null) {
throw new JeroBootException(ResultCommon.NOT_EXIST_STANDARD);
}
id = singleStandard.getId();
}
// 获取要操作的表名
String tableName = TableNameEnum.getTableName(module);
// 获取全部字段