|
@@ -51,23 +51,30 @@ public class HgxfxJgService {
|
|
|
retMap.put("rwbsm", rwbsm);
|
|
|
retMap.put("scxbsm", scxbsm);
|
|
|
retMap.put("scxname", scxname);
|
|
|
+ retMap.put("scxstyle", 0);
|
|
|
if (StringUtils.isEmpty(scxSortationPid)) {
|
|
|
scxSortationPid = "0";
|
|
|
}
|
|
|
HgxfxRwJgDTO dtao = hgxfxRwJgMapper.selectTypeNo(bsm, rwbsm, scxbsm, yslx);
|
|
|
- if (dtao != null) {
|
|
|
- retMap.put("mj", dtao.getMj());
|
|
|
- }
|
|
|
HgxfxScxSortationDTO v001_sortation = getHgxfxScxSortation(scxbsm, scxSortationPid, template);
|
|
|
if (StringUtils.isNotNull(v001_sortation)) {
|
|
|
- List<Map> v_list = hgxfxRwJgMapper.selectType(bsm, rwbsm, scxbsm, v001_sortation.getTypeColumn(), v001_sortation.getTypeLength(), v001_sortation.getTypeDict(), yslx);
|
|
|
- if (v_list != null && v_list.size() > 0) {
|
|
|
- for (Map v02_datas : v_list) {
|
|
|
- Map<String, Object> childMap = GetHgxfxScxFxjg(bsm, rwbsm, scxbsm, scxname, v001_sortation.getId(), template, v02_datas.get("yslx").toString());
|
|
|
- v02_datas.put("dataList", childMap.get("dataList"));
|
|
|
+ if (null == v001_sortation.getStyle() || v001_sortation.getStyle() == 0) {
|
|
|
+ List<Map> v_list = hgxfxRwJgMapper.selectType(bsm, rwbsm, scxbsm, v001_sortation.getTypeColumn(), v001_sortation.getTypeLength(), v001_sortation.getTypeDict(), yslx);
|
|
|
+ if (v_list != null && v_list.size() > 0) {
|
|
|
+ for (Map v02_datas : v_list) {
|
|
|
+ Map<String, Object> childMap = GetHgxfxScxFxjg(bsm, rwbsm, scxbsm, scxname, v001_sortation.getId(), template, v02_datas.get("yslx").toString());
|
|
|
+ v02_datas.put("dataList", childMap.get("dataList"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (dtao != null) {
|
|
|
+ retMap.put("mj", dtao.getMj());
|
|
|
}
|
|
|
+ retMap.put("dataList", v_list);
|
|
|
+ } else {
|
|
|
+ retMap.put("scxstyle", 1);
|
|
|
+ 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);
|
|
|
} else {
|
|
|
retMap.put("data", dtao);
|
|
|
}
|