You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
udi-wms-java/src/main/java/com/glxp/api/controller/collect/IoCollectOriginController.java

43 lines
1.2 KiB
Java

10 months ago
package com.glxp.api.controller.collect;
10 months ago
import cn.hutool.core.util.StrUtil;
10 months ago
import com.glxp.api.common.res.BaseResponse;
10 months ago
import com.glxp.api.common.util.ResultVOUtils;
10 months ago
import com.glxp.api.req.collect.CollectOrderRequest;
import com.glxp.api.service.collect.IoCollectOriginService;
import org.springframework.web.bind.annotation.PostMapping;
10 months ago
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
*
*/
@RestController
public class IoCollectOriginController {
@Resource
IoCollectOriginService collectOriginService;
@PostMapping("/udiwms/basic/collect/origin/order/download")
10 months ago
public BaseResponse downloadOrder(@RequestBody CollectOrderRequest collectOrderRequest) {
10 months ago
return collectOriginService.downloadOrderV2(collectOrderRequest);
10 months ago
}
10 months ago
/**
*
* @param collectOrderRequest
* @return
*/
@PostMapping("/udiwms/basic/collect/origin/order/errorHandle")
public BaseResponse errorHandle(@RequestBody CollectOrderRequest collectOrderRequest) {
collectOriginService.errorHandle(collectOrderRequest);
return ResultVOUtils.success();
}
10 months ago
}