| | |
| | | |
| | | @RequestMapping(value = "/signFor", method = RequestMethod.POST) |
| | | @ApiOperation(value = "签收") |
| | | public Object signFor(String orderId,int status,String content,String customerReceiveId) { |
| | | public Object signFor(String orderId,int status,String content,String customerReceiveId,int time) { |
| | | if(status==1){ |
| | | if(StrUtil.isEmpty(customerReceiveId)){ |
| | | return ResultUtil.error("正常签收,接货人id必填"); |
| | |
| | | OrderTask orderTask = iOrderTaskService.getById(orderId); |
| | | orderTask.setStatus(status); |
| | | orderTask.setUserId(securityUtil.getCurrUser().getId()); |
| | | orderTask.setTime(time); |
| | | if(StrUtil.isNotEmpty(customerReceiveId)){ |
| | | orderTask.setCustomerReceiveId(customerReceiveId); |
| | | } |