调用阿里关联关系

dev_unify
qiuyt 4 months ago
parent 7332db1c26
commit 6e9a9177c0

@ -128,12 +128,12 @@ public class AlihealthYljgSinglerelationResponse extends AlihealthKytCommonParam
}
public List<RelCodeDetail> disposeRelRodeDetailList(Integer batchIdFk) {
public List<RelCodeDetail> disposeRelRodeDetailList(Integer batchIdFk,String code) {
List<RelCodeDetail> list = new ArrayList<>();
List<Map<String, String>> jsonArray = (List) this.getCode_relation_list().get("code_info");
if (jsonArray != null && jsonArray.size() > 0) {
for (Map<String, String> map : jsonArray) {
if (!Objects.isNull(map) && StringUtils.isNotEmpty(map.get("parent_code"))) {
if (!Objects.isNull(map) && StringUtils.isNotEmpty(map.get("parent_code")) && code.equals(map.get("parent_code"))) {
RelCodeDetail relCodeDetail = new RelCodeDetail();
relCodeDetail.setCurCode(map.get("code"));
relCodeDetail.setPackLayer(Integer.valueOf(map.get("code_level")));

@ -742,7 +742,7 @@ public class RelCodeBatchService extends ServiceImpl<RelCodeBatchMapper, RelCode
relCodeBatchList.add(relCodeBatchOne.getCurCode());
// 进行查询
List<RelCodeDetail> list = alihealthKytSinglerelationResponse.disposeRelRodeDetailList(id);
List<RelCodeDetail> list = alihealthKytSinglerelationResponse.disposeRelRodeDetailList(id,relCodeBatch.getCurCode());
if (list != null && list.size() > 0) {
List curCodeList = new ArrayList();
for (RelCodeDetail relCodeDetail : list) {

Loading…
Cancel
Save