|
|
|
@ -0,0 +1,58 @@
|
|
|
|
|
package com.charge.task.controller;
|
|
|
|
|
|
|
|
|
|
import com.charge.task.dao.EquipmentChargeOrderDOMapper;
|
|
|
|
|
import com.charge.task.model.EquipmentChargeOrderDO;
|
|
|
|
|
import com.charge.task.service.AsyncTaskService;
|
|
|
|
|
import com.charge.task.service.HandleOrderTarckService;
|
|
|
|
|
import com.charge.util.ResultVO;
|
|
|
|
|
import com.charge.util.ToolDateTime;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import java.text.DateFormat;
|
|
|
|
|
import java.text.ParseException;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.stream.Stream;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 手动处理异常订单状态
|
|
|
|
|
*
|
|
|
|
|
* @author hzh
|
|
|
|
|
* @date 2023/6/6
|
|
|
|
|
*/
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/orderapi/handlerOrder")
|
|
|
|
|
public class ManualOrderStatusHandlerByOrderNoController {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
EquipmentChargeOrderDOMapper equipmentChargeOrderDOMapper;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
AsyncTaskService asyncTaskService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
HandleOrderTarckService handleOrderTarckService;
|
|
|
|
|
|
|
|
|
|
/******************************************************************************************/
|
|
|
|
|
/**
|
|
|
|
|
* Add By HuangHai 2024-08-13
|
|
|
|
|
* 功能:对于指定的订单号,进行补单【正向】
|
|
|
|
|
*
|
|
|
|
|
* @param orderNo
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping("/completeUnReportOrderByOrderNo")
|
|
|
|
|
public ResultVO completeUnReportOrderByOrderNo(String orderNo) {
|
|
|
|
|
//查询挂起订单
|
|
|
|
|
EquipmentChargeOrderDO hangUpOrder = equipmentChargeOrderDOMapper.queryChargeOrderByOrderNo(orderNo);
|
|
|
|
|
asyncTaskService.completeUnReportOrder(hangUpOrder);
|
|
|
|
|
return ResultVO.success();
|
|
|
|
|
}
|
|
|
|
|
/******************************************************************************************/
|
|
|
|
|
}
|