fix: 81153 文档动态-无法区分三个标准库的数据

This commit is contained in:
2024-02-02 15:45:32 +08:00
parent 1d1d6bb0eb
commit 3f83b9e231
@@ -694,17 +694,6 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
// 操作数据库进行新增数据
lawsCommonMapper.commonAdd(tableName, fieldsBuilder.toString(), valuesBuilder.toString());
// 国标外表增加入库记录
if (module.equals(TableNameEnum.DOMESTIC_REGULATIONS.getValue())
|| module.equals(TableNameEnum.FOREIGN_REGULATIONS.getValue())) {
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String now = dateFormat.format(new Date());
String content = loginUser.calcNameWorkNo() + " " + now + " 入库" +
standardNumber + "" + standardName + "";
lawsUpdateRecordService.addRecord(standardNumber, content);
}
// 对标准体系做处理
lawsNodeRelationService.addRelation(standardSystem, standardNumber, id);