| | |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.param.CheckTaskListParam; |
| | | import com.zy.asrs.entity.param.OpenAdjustmentOrderParam; |
| | | import com.zy.asrs.entity.param.OrderDomainParam; |
| | | import com.zy.asrs.entity.result.CheckOrderExportDTO; |
| | | import com.zy.asrs.enums.CheckStatusEnum; |
| | | import com.zy.asrs.enums.OrderTypeEnum; |
| | | import com.zy.asrs.service.*; |
| | | import com.core.annotations.ManagerAuth; |
| | |
| | | private SnowflakeIdWorker snowflakeIdWorker; |
| | | @Autowired |
| | | private DocTypeService docTypeService; |
| | | @Autowired |
| | | private OpenService openService; |
| | | |
| | | @PostMapping(value = "/checkOrder/pdaComplete/auth") |
| | | @ManagerAuth(memo = "pda:完成盘点") |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @PostMapping(value = "/adjustOrder/create/test") |
| | | @ManagerAuth(memo = "内部测试:生成调整单") |
| | | public R adjustOrderCreateTest(@RequestParam("orderId") Long orderId) { |
| | | CheckOrder checkOrder = checkOrderService.selectById(orderId); |
| | | List<CheckOrderDetl> checkOrderDetls = checkOrderDetlService.selectList(new EntityWrapper<CheckOrderDetl>().eq("order_id", orderId)); |
| | | checkOrderDetls.forEach(checkOrderDetl -> { checkOrderDetl.setStatus(1);}); |
| | | OpenAdjustmentOrderParam openAdjustmentOrderParam = new OpenAdjustmentOrderParam(); |
| | | openAdjustmentOrderParam.setOrderTime(DateUtils.convert(new Date())); |
| | | openAdjustmentOrderParam.setOrderDetails(checkOrderDetls); |
| | | |
| | | openService.adjustmentOrderCreate(openAdjustmentOrderParam); |
| | | |
| | | return R.ok(); |
| | | |
| | | } |
| | | |
| | | @PostMapping(value = "/adjustOrder/complete/auth") |
| | | @ManagerAuth(memo = "完成调整单") |
| | | public R adjustOrderComplete(@RequestParam("orderId") Long orderId) { |
| | | checkOrderService.adjustOrderComplete(orderId,getUserId()); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | } |