skyouc
2025-07-08 fcd924c9be6fc3811f4d41cbeee31ad8dc01fd97
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/LocDetlServiceImpl.java
@@ -42,15 +42,14 @@
    @Override
    public PageParam<ViewLocDetl, BaseParam> getPage(PageParam<ViewLocDetl, BaseParam> pageParam, QueryWrapper<ViewLocDetl> buildWrapper) {
        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;
    }