This commit is contained in:
2023-03-15 09:12:09 +08:00
parent 57a95ee7ee
commit 0ed9826cfc
3 changed files with 43 additions and 4 deletions

View File

@@ -6,11 +6,13 @@ import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.response.RestApiResponse;
import com.jsowell.pile.service.IOrderBasicInfoService;
import com.jsowell.pile.vo.uniapp.PileConnectorVO;
import com.jsowell.service.PileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -24,6 +26,9 @@ public class JumpController extends BaseController {
@Autowired
private PileService pileService;
@Autowired
private IOrderBasicInfoService orderBasicInfoService;
/**
* 查询充电桩详情
* http://localhost:8080/app-xcx-h5/pile/pileDetail/{pileSn}
@@ -67,4 +72,16 @@ public class JumpController extends BaseController {
logger.info("app-xcx-h5查询充电枪口详情 result:{}", JSONObject.toJSONString(response));
return response;
}
/**
* 迁移异常订单到订单主表
* 临时接口,使用完删除
* http://localhost:8080/app-xcx-h5/moveAbnormalOrder
* @return
*/
@PostMapping("/moveAbnormalOrder")
public RestApiResponse<?> moveAbnormalOrder() {
orderBasicInfoService.moveAbnormalOrder();
return null;
}
}