| | |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.model.WrkDto; |
| | | import com.zy.common.web.BaseController; |
| | | import com.zy.system.entity.license.AbstractServerInfos; |
| | | import org.apache.logging.log4j.LogManager; |
| | | import org.apache.logging.log4j.Logger; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @Autowired |
| | | private WrkDetlLogService wrkDetlLogService; |
| | | |
| | | |
| | | private static Logger logger = LogManager.getLogger(MobileController.class); |
| | | |
| | | // 商品上架 |
| | | @RequestMapping("/mat/onSale/auth") |
| | |
| | | @RequestMapping("/comb/auth") |
| | | @ManagerAuth(memo = "组托") |
| | | public R comb(@RequestBody CombParam combParam) { |
| | | logger.info("组托参数:{}",combParam); |
| | | if (Cools.isEmpty(combParam.getOrderNo())) { |
| | | combParam.setOrderNo(combParam.getBillNo()); |
| | | } |
| | |
| | | @RequestMapping("/bill/query1/auth") |
| | | @ManagerAuth(memo = "根据通知单查询明细") |
| | | public R billQuery1(@RequestParam String billNo, @RequestParam String size) { |
| | | Order temp1 = orderService.selectOne(new EntityWrapper<Order>().eq("temp2", billNo)); |
| | | Order temp1 = orderService.selectOne(new EntityWrapper<Order>().eq("temp1", billNo)); |
| | | if (temp1 == null) { |
| | | throw new CoolException("该订单不存在"); |
| | | } |
| | | List<OrderDetl> waitMatins = orderDetlService.selectList(new EntityWrapper<OrderDetl>().eq("order_no", temp1.getOrderNo()).like("model", size).last("and anfme > work_qty")); |
| | | List<OrderDetl> waitMatins = orderDetlService.selectList(new EntityWrapper<OrderDetl>().eq("order_no", temp1.getOrderNo()).last("and anfme > work_qty")); |
| | | if (waitMatins == null || waitMatins.isEmpty()) { |
| | | throw new CoolException("该订单项不存在"); |
| | | } |