| | |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.OrderDetlPakout; |
| | | import com.zy.asrs.entity.param.ReportOrderBatchDetlParam; |
| | | import com.zy.asrs.entity.result.OrderPakoutDetailVo; |
| | | import com.zy.asrs.service.OrderDetlPakoutService; |
| | | import com.zy.asrs.service.impl.OrderDetlPakoutServiceImpl; |
| | |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else { |
| | | wrapper.orderBy("create_time", false); |
| | | wrapper.orderBy("update_time", false); |
| | | } |
| | | wrapper.eq("status", 1); |
| | | Page<OrderDetlPakout> orderDetlPage = orderDetlService.selectPage(new Page<>(curr, limit), wrapper); |
| | |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/orderDetl/batch/report/auth") |
| | | @ManagerAuth(memo = "修改上报项") |
| | | public R reportBatch(ReportOrderBatchDetlParam param) { |
| | | List<OrderDetlPakout> orderDetlPakoutList = orderDetlPakoutService.selectList(new EntityWrapper<OrderDetlPakout>() |
| | | .eq("batch", param.getBatch()) |
| | | ); |
| | | for (OrderDetlPakout orderDetl : orderDetlPakoutList){ |
| | | orderDetl.setStatus(param.getStatus()); |
| | | orderDetlService.updateById(orderDetl); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |