| | |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.zy.asrs.entity.OrderDetlPakin; |
| | | import com.zy.asrs.entity.param.ReportOrderBatchDetlParam; |
| | | import com.zy.asrs.service.OrderDetlPakinService; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/orderDetl/batch/report/auth") |
| | | @ManagerAuth(memo = "修改下发项") |
| | | public R reportBatch(ReportOrderBatchDetlParam param) { |
| | | if (param.getAnfme()<1 && param.getInspect()==1){ |
| | | return R.error("下发数量不能小于1").add("下发数量不能小于1"); |
| | | } |
| | | List<OrderDetlPakin> orderDetlPakinList = orderDetlService.selectList(new EntityWrapper<OrderDetlPakin>() |
| | | .eq("order_no", param.getOrderNo()).eq("id", param.getId()) |
| | | ); |
| | | for (OrderDetlPakin orderDetl : orderDetlPakinList){ |
| | | orderDetl.setInspect(param.getInspect()); |
| | | orderDetl.setSortingAnfme(param.getAnfme()); |
| | | orderDetlService.updateById(orderDetl); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/orderDetl/add/auth") |
| | | @ManagerAuth |
| | | public R add(OrderDetlPakin orderDetl) { |