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.
|
|
|
package com.glxp.api.controller.collect;
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
import com.glxp.api.req.collect.CollectOrderRequest;
|
|
|
|
import com.glxp.api.service.collect.IoCollectOriginService;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
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")
|
|
|
|
public BaseResponse downloadOrder(@RequestBody CollectOrderRequest collectOrderRequest) {
|
|
|
|
return collectOriginService.downloadOrderV2(collectOrderRequest);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 异常处理
|
|
|
|
* @param collectOrderRequest
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@PostMapping("/udiwms/basic/collect/origin/order/errorHandle")
|
|
|
|
public BaseResponse errorHandle(@RequestBody CollectOrderRequest collectOrderRequest) {
|
|
|
|
collectOriginService.errorHandle(collectOrderRequest);
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|