fix(ASMS): 分标委同步问题修复
This commit is contained in:
+11
-10
@@ -298,20 +298,21 @@ public class LawsAsmsOpenApiServiceImpl extends ServiceImpl<LawsAsmsOpenApiMappe
|
|||||||
List<Map<String, String>> mapList = asmsPostUtil.sendGetReq(lawsAsmsOpenApi.getApiUrl(), map);
|
List<Map<String, String>> mapList = asmsPostUtil.sendGetReq(lawsAsmsOpenApi.getApiUrl(), map);
|
||||||
List<LawsStandardization> lawsStandardizationList = new ArrayList();
|
List<LawsStandardization> lawsStandardizationList = new ArrayList();
|
||||||
|
|
||||||
LambdaQueryWrapper<LawsStandardization> parentQueryWrapper = new LambdaQueryWrapper<>();
|
// LambdaQueryWrapper<LawsStandardization> parentQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
parentQueryWrapper.eq(LawsStandardization::getPid, "0");
|
// parentQueryWrapper.eq(LawsStandardization::getPid, "0");
|
||||||
List<LawsStandardization> parentList = lawsStandardizationService.list(parentQueryWrapper);
|
// List<LawsStandardization> parentList = lawsStandardizationService.list(parentQueryWrapper);
|
||||||
String parentId;
|
// String parentId;
|
||||||
if (CollectionUtils.isEmpty(parentList)) {
|
// if (CollectionUtils.isEmpty(parentList)) {
|
||||||
parentId = "0";
|
// parentId = "0";
|
||||||
} else {
|
// } else {
|
||||||
parentId = parentList.get(0).getId();
|
// parentId = parentList.get(0).getId();
|
||||||
}
|
// }
|
||||||
|
|
||||||
mapList.forEach(eMap -> {
|
mapList.forEach(eMap -> {
|
||||||
LawsStandardization lawsStandardization = new LawsStandardization();
|
LawsStandardization lawsStandardization = new LawsStandardization();
|
||||||
lawsStandardization.setStandardizationType(LawsStandardizationCommon.FBW);
|
lawsStandardization.setStandardizationType(LawsStandardizationCommon.FBW);
|
||||||
lawsStandardization.setPid(parentId);
|
// 固定放到“其他”层级下
|
||||||
|
lawsStandardization.setPid("1752134517340114944");
|
||||||
eMap.forEach((k,v) -> {
|
eMap.forEach((k,v) -> {
|
||||||
if ("code".equals(k)) {
|
if ("code".equals(k)) {
|
||||||
lawsStandardization.setNum(v);
|
lawsStandardization.setNum(v);
|
||||||
|
|||||||
Reference in New Issue
Block a user