| | |
| | | import com.zy.asrs.wms.asrs.service.LocDetlService;
|
| | | import com.zy.asrs.wms.system.controller.BaseController;
|
| | | import com.zy.asrs.wms.utils.ExcelUtil;
|
| | | import org.springframework.beans.BeanUtils;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.security.access.prepost.PreAuthorize;
|
| | | import org.springframework.web.bind.annotation.*;
|
| | |
| | | @PostMapping("/locDetl/page")
|
| | | @CacheData(tableName = {"man_loc_detl"})
|
| | | public R page(@RequestBody Map<String, Object> map) {
|
| | | // String orderType = null;
|
| | | // if (Objects.isNull(map.get("orderType"))) {
|
| | | // orderType = map.get("orderType").toString();
|
| | | // map.remove("orderType");
|
| | | // }
|
| | | BaseParam baseParam = buildParam(map, BaseParam.class);
|
| | | PageParam<ViewLocDetl, BaseParam> pageParam = new PageParam<>(baseParam, ViewLocDetl.class);
|
| | | PageParam<ViewLocDetl, BaseParam> data = locDetlService.getPage(pageParam, pageParam.buildWrapper(true));
|
| | | return R.ok().add(data);
|
| | |
|
| | | return R.ok(data);
|
| | | }
|
| | |
|
| | | @PreAuthorize("hasAuthority('asrs:locDetl:list')")
|
| | |
| | | PageParam<ViewLocDetl, BaseParam> pageParam = new PageParam<>(baseParam, ViewLocDetl.class);
|
| | |
|
| | | QueryWrapper<ViewLocDetl> queryWrapper = pageParam.buildWrapper(true);
|
| | | List<Long> locIds = locService.listBySts(LocStsType.F.val());
|
| | | if (locIds.isEmpty()) {
|
| | | locIds.add(-1L);
|
| | | }
|
| | | queryWrapper.in("loc_id", locIds);
|
| | | // List<Long> locIds = locService.listBySts(LocStsType.F.val());
|
| | | // if (locIds.isEmpty()) {
|
| | | // locIds.add(-1L);
|
| | | // }
|
| | | // queryWrapper.in("loc_id", locIds);
|
| | | PageParam<ViewLocDetl, BaseParam> data = locDetlService.getPage(pageParam, queryWrapper);
|
| | | return R.ok().add(data);
|
| | | }
|