| | |
| | | PageParam<ViewLocDetl, BaseParam> result = viewLocDetlMapper.selectPage(pageParam, buildWrapper);
|
| | |
|
| | | //解析动态字段
|
| | | JSONObject data = JSON.parseObject(JSON.toJSONString(result));
|
| | | List<ViewLocDetl> records = result.getRecords();
|
| | | data.put("records", records);
|
| | | for (ViewLocDetl locDetl : records) {
|
| | | Map<String, Object> resultMap = viewLocDetlMapper.getById(locDetl.getId());
|
| | | locDetl.syncFieldMap(resultMap);
|
| | | }
|
| | | // JSONObject data = JSON.parseObject(JSON.toJSONString(result));
|
| | | // List<ViewLocDetl> records = result.getRecords();
|
| | | // data.put("records", records);
|
| | | // for (ViewLocDetl locDetl : records) {
|
| | | // Map<String, Object> resultMap = viewLocDetlMapper.getById(locDetl.getId());
|
| | | // locDetl.syncFieldMap(resultMap);
|
| | | // }
|
| | | return result;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | @Override
|
| | | public List<LocDetl> queryStock(String matnr, String batch, List<FieldParam> param, List<FieldSortParam> sortParam) {
|
| | | List<Map<String, Object>> list = viewLocDetlMapper.queryStock(matnr, batch, param, sortParam);
|
| | | List<Map<String, Object>> list = viewLocDetlMapper.queryStock(matnr, batch, param, sortParam, LocAreaTypeSts.LOC_AREA_TYPE_UTC.id);
|
| | | List<LocDetl> locDetlsSort = resortDetls(list);
|
| | | return locDetlsSort;
|
| | | }
|