|
@@ -1,5 +1,8 @@
|
|
package com.onemap.apply.service.impl.fzss.hgxfxjg;
|
|
package com.onemap.apply.service.impl.fzss.hgxfxjg;
|
|
|
|
|
|
|
|
+import com.alibaba.nacos.shaded.com.google.gson.Gson;
|
|
|
|
+import com.alibaba.nacos.shaded.com.google.gson.JsonElement;
|
|
|
|
+import com.alibaba.nacos.shaded.com.google.gson.JsonObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.onemap.apply.domain.config.fzss.HgxfxRwJgDTO;
|
|
import com.onemap.apply.domain.config.fzss.HgxfxRwJgDTO;
|
|
import com.onemap.apply.domain.config.fzss.HgxfxScxRwDTO;
|
|
import com.onemap.apply.domain.config.fzss.HgxfxScxRwDTO;
|
|
@@ -36,7 +39,7 @@ public class HgxfxJgService {
|
|
List<HgxfxScxRwDTO> scxList = hgxfxScxRwMapper.selectScxRwInfo(rwbsm, scxPBsm);
|
|
List<HgxfxScxRwDTO> scxList = hgxfxScxRwMapper.selectScxRwInfo(rwbsm, scxPBsm);
|
|
if (scxList != null && scxList.size() > 0) {
|
|
if (scxList != null && scxList.size() > 0) {
|
|
for (HgxfxScxRwDTO v00_scx : scxList) {
|
|
for (HgxfxScxRwDTO v00_scx : scxList) {
|
|
- Map jg_data = GetHgxfxScxFxjg(v00_scx.getBsm(), v00_scx.getRwbsm(), v00_scx.getScxbsm(), v00_scx.getScxname(), null, template, null);
|
|
|
|
|
|
+ Map jg_data = GetHgxfxScxFxjg(v00_scx.getBsm(), v00_scx.getRwbsm(), v00_scx.getScxbsm(), v00_scx.getScxname(), null, template, null, v00_scx);
|
|
// List<Map> child = GetHgxfxFxjg(rwbsm, v00_scx.getScxbsm(), template);
|
|
// List<Map> child = GetHgxfxFxjg(rwbsm, v00_scx.getScxbsm(), template);
|
|
// v001_sortation.put("child", child);
|
|
// v001_sortation.put("child", child);
|
|
// retli.add(v001_sortation);
|
|
// retli.add(v001_sortation);
|
|
@@ -51,7 +54,7 @@ public class HgxfxJgService {
|
|
return retlist;
|
|
return retlist;
|
|
}
|
|
}
|
|
|
|
|
|
- private Map<String, Object> GetHgxfxScxFxjg(String bsm, String rwbsm, String scxbsm, String scxname, String scxSortationPid, Integer template, String yslx) {
|
|
|
|
|
|
+ private Map<String, Object> GetHgxfxScxFxjg(String bsm, String rwbsm, String scxbsm, String scxname, String scxSortationPid, Integer template, String yslx, HgxfxScxRwDTO v00_scx) {
|
|
Map<String, Object> retMap = new HashMap<>();
|
|
Map<String, Object> retMap = new HashMap<>();
|
|
retMap.put("bsm", bsm);
|
|
retMap.put("bsm", bsm);
|
|
retMap.put("rwbsm", rwbsm);
|
|
retMap.put("rwbsm", rwbsm);
|
|
@@ -89,6 +92,19 @@ public class HgxfxJgService {
|
|
List<Map> v_list = hgxfxRwJgMapper.selectTypeList(bsm, rwbsm, scxbsm, v001_sortation.getTypeColumn(), v001_sortation.getTypeLength(), v001_sortation.getTypeDict(), yslx);
|
|
List<Map> v_list = hgxfxRwJgMapper.selectTypeList(bsm, rwbsm, scxbsm, v001_sortation.getTypeColumn(), v001_sortation.getTypeLength(), v001_sortation.getTypeDict(), yslx);
|
|
retMap.put("dataList", v_list);
|
|
retMap.put("dataList", v_list);
|
|
retMap.put("jsf", 1);
|
|
retMap.put("jsf", 1);
|
|
|
|
+ String parameterJson = v00_scx.getParameter();
|
|
|
|
+ if (StringUtils.isNotEmpty(parameterJson)) {
|
|
|
|
+ Gson gson = new Gson();
|
|
|
|
+ JsonObject jsonObject = gson.fromJson(parameterJson, JsonObject.class);
|
|
|
|
+ JsonElement findValueObject = jsonObject.get("findvalue");
|
|
|
|
+ if (!findValueObject.isJsonNull()) {
|
|
|
|
+ int d_FindValue = findValueObject.getAsInt();
|
|
|
|
+ if (d_FindValue > 0) {
|
|
|
|
+ retMap.put("distance", d_FindValue);
|
|
|
|
+ retMap.put("number", v_list != null ? v_list.size() : 0);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
} else if (2 == v001_sortation.getStyle()) {
|
|
} else if (2 == v001_sortation.getStyle()) {
|
|
retMap.put("scxstyle", 0);
|
|
retMap.put("scxstyle", 0);
|
|
List<Map> v_list = hgxfxRwJgMapper.selectTypeScxList(bsm, rwbsm, scxbsm);
|
|
List<Map> v_list = hgxfxRwJgMapper.selectTypeScxList(bsm, rwbsm, scxbsm);
|