add ASMS对接,国内法规
This commit is contained in:
@@ -115,4 +115,17 @@ public class FieldCommon {
|
||||
// 稽查内容
|
||||
public static final String CHECK_LIST = "checkList";
|
||||
|
||||
// 发布稿(原文)
|
||||
public static final String FILE_PUBLISH_OF_ORIGINAL = "publish_of_original";
|
||||
// 修改单
|
||||
public static final String FILE_MODIFICATION_LIST = "modification_list";
|
||||
// 报批稿
|
||||
public static final String FILE_DRAFT_FOR_REVIEW = "draft_for_review";
|
||||
// 送审稿
|
||||
public static final String FILE_DRAFT_FOR_APPROVAL = "draft_for_approval";
|
||||
// 征求意见稿
|
||||
public static final String FILE_DRAFT_FOR_COMMENT = "draft_for_comment";
|
||||
// 草案
|
||||
public static final String FILE_DRAFT = "draft";
|
||||
|
||||
}
|
||||
|
||||
+47
@@ -34,6 +34,8 @@ import com.jero.modules.personal.entity.LawsBrowsingHistory;
|
||||
import com.jero.modules.personal.entity.LawsStandardCollection;
|
||||
import com.jero.modules.personal.service.ILawsBrowsingHistoryService;
|
||||
import com.jero.modules.personal.service.ILawsStandardCollectionService;
|
||||
import com.jero.modules.split.entity.SarFileSplitInfoEO;
|
||||
import com.jero.modules.split.service.ISarFileSplitInfoService;
|
||||
import com.jero.modules.system.entity.SysDepart;
|
||||
import com.jero.modules.system.entity.SysDictItem;
|
||||
import com.jero.modules.system.entity.SysUser;
|
||||
@@ -123,6 +125,8 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
private EnterpriseStandardAuthUserService esAuthUserService;
|
||||
@Resource
|
||||
private WaterMarkUtil waterMarkUtil;
|
||||
@Autowired
|
||||
private ISarFileSplitInfoService sarFileSplitInfoService;
|
||||
|
||||
/**
|
||||
* @Author: liao
|
||||
@@ -165,11 +169,54 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
}
|
||||
// 是否收藏判断标识
|
||||
collectionFlag(infoPage.getRecords());
|
||||
// 标准拆分标识
|
||||
splitFlag(infoPage.getRecords());
|
||||
|
||||
// 待处理
|
||||
return infoPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author: liao
|
||||
* @Date: 2023/10/19 15:36
|
||||
* @Description: 标准拆分标识
|
||||
**/
|
||||
private void splitFlag(List<Map<String, Object>> records) {
|
||||
// 获取全部id集合
|
||||
List<String> ids = records.stream().map(kv ->
|
||||
String.valueOf(kv.get("id"))).collect(Collectors.toList());
|
||||
if (CollectionUtils.isEmpty(ids)) return;
|
||||
|
||||
// 查询标准拆分表
|
||||
LambdaQueryWrapper<SarFileSplitInfoEO> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.in(SarFileSplitInfoEO::getStandardId, ids);
|
||||
queryWrapper.isNotNull(SarFileSplitInfoEO::getPublishBeforeId);
|
||||
queryWrapper.isNotNull(SarFileSplitInfoEO::getFileType);
|
||||
List<SarFileSplitInfoEO> sarFileSplitInfoEOList = sarFileSplitInfoService.list(queryWrapper);
|
||||
|
||||
if (CollectionUtils.isEmpty(sarFileSplitInfoEOList)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map<String, String> flagMap = new HashMap<>();
|
||||
sarFileSplitInfoEOList.forEach(e -> flagMap.put(e.getStandardId() + "," + e.getFileType(), e.getId()));
|
||||
records.forEach(map -> {
|
||||
String id = (String) map.get("id");
|
||||
map.put(FieldCommon.FILE_PUBLISH_OF_ORIGINAL + FieldCommon._STANDARD_SPLIT,
|
||||
flagMap.get(id + "," + FieldCommon.FILE_PUBLISH_OF_ORIGINAL));
|
||||
map.put(FieldCommon.FILE_MODIFICATION_LIST + FieldCommon._STANDARD_SPLIT,
|
||||
flagMap.get(id + "," + FieldCommon.FILE_MODIFICATION_LIST));
|
||||
map.put(FieldCommon.FILE_DRAFT_FOR_REVIEW + FieldCommon._STANDARD_SPLIT,
|
||||
flagMap.get(id + "," + FieldCommon.FILE_DRAFT_FOR_REVIEW));
|
||||
map.put(FieldCommon.FILE_DRAFT_FOR_APPROVAL + FieldCommon._STANDARD_SPLIT,
|
||||
flagMap.get(id + "," + FieldCommon.FILE_DRAFT_FOR_APPROVAL));
|
||||
map.put(FieldCommon.FILE_DRAFT_FOR_COMMENT + FieldCommon._STANDARD_SPLIT,
|
||||
flagMap.get(id + "," + FieldCommon.FILE_DRAFT_FOR_COMMENT));
|
||||
map.put(FieldCommon.FILE_DRAFT + FieldCommon._STANDARD_SPLIT,
|
||||
flagMap.get(id + "," + FieldCommon.FILE_DRAFT));
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPage<Map<String, Object>> getExportData(Map<String, Object> parameterMap, List<LawsTag> fieldList) {
|
||||
// 获取操作模块
|
||||
|
||||
Reference in New Issue
Block a user