| | |
| | | } |
| | | Integer status = jhyOrder.getStatus(); |
| | | if(JhyOrder.ORDER_STATUS_WAITING != status){ |
| | | return JsonResult.failMessage("订单不是待接单状态,不允许取消!"); |
| | | return JsonResult.failMessage("订单不是待接单状态,不允许指派!"); |
| | | } |
| | | long jhyId = model.getJhyId(); |
| | | JhyInfo jhyInfo = jhyOrderMapper.selectJhyInfoByUserId(jhyId); |
| | | if (jhyInfo == null || !JhyInfo.CHECK_PASS.equals(jhyInfo.getStatus())) { |
| | | return JsonResult.failMessage("不是集货员!"); |
| | | } |
| | | jhyService.assignJhyOrder(model); |
| | | jhyService.assignJhyOrder(model,jhyInfo.getUserId()); |
| | | OperationAppLog build = OperationAppLog.builder().appPrograme(CommonEnum.后台.getValue()).opreateName(getAdminName(request)) |
| | | .methodName(Constants.SCORESHOP_MODUL_NAME).operateAction("集物员管理-指派订单-" + orderId).build(); |
| | | mqUtil.sendApp(build); |