add 分标委翻译
This commit is contained in:
+12
-2
@@ -291,11 +291,21 @@ public class LawsAsmsOpenApiServiceImpl extends ServiceImpl<LawsAsmsOpenApiMappe
|
||||
// 如果是分标委
|
||||
List<Map<String, String>> mapList = asmsPostUtil.sendGetReq(lawsAsmsOpenApi.getApiUrl(), map);
|
||||
List<LawsStandardization> lawsStandardizationList = new ArrayList();
|
||||
LawsStandardization parent = lawsStandardizationService.getById("0");
|
||||
|
||||
LambdaQueryWrapper<LawsStandardization> parentQueryWrapper = new LambdaQueryWrapper<>();
|
||||
parentQueryWrapper.eq(LawsStandardization::getPid, "0");
|
||||
List<LawsStandardization> parentList = lawsStandardizationService.list(parentQueryWrapper);
|
||||
String parentId;
|
||||
if (CollectionUtils.isEmpty(parentList)) {
|
||||
parentId = "0";
|
||||
} else {
|
||||
parentId = parentList.get(0).getId();
|
||||
}
|
||||
|
||||
mapList.forEach(eMap -> {
|
||||
LawsStandardization lawsStandardization = new LawsStandardization();
|
||||
lawsStandardization.setStandardizationType("分标委");
|
||||
lawsStandardization.setPid(parent.getId());
|
||||
lawsStandardization.setPid(parentId);
|
||||
eMap.forEach((k,v) -> {
|
||||
if ("code".equals(k)) {
|
||||
lawsStandardization.setNum(v);
|
||||
|
||||
Reference in New Issue
Block a user