|
|
|
@ -9,8 +9,6 @@ import com.glxp.api.req.collect.CollectOrderRequest;
|
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.service.collect.IoCollectOrderService;
|
|
|
|
|
import com.glxp.api.util.IntUtil;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.apache.commons.lang3.exception.ExceptionUtils;
|
|
|
|
|
import org.jfree.util.Log;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Isolation;
|
|
|
|
@ -20,7 +18,6 @@ import javax.annotation.Resource;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
|
@Slf4j
|
|
|
|
|
public class YPCF002Download implements IDownload {
|
|
|
|
|
@Resource
|
|
|
|
|
private ErpBasicClient erpBasicClient;
|
|
|
|
@ -49,7 +46,7 @@ public class YPCF002Download implements IDownload {
|
|
|
|
|
try {
|
|
|
|
|
getSickPrescribeRequest.setPage(page);
|
|
|
|
|
BaseResponse<PageSimpleResponse<IoCollectOrder>> baseResponse = erpBasicClient.getPrescribeV2(getSickPrescribeRequest);
|
|
|
|
|
log.error(baseResponse.getCode()+"---"+baseResponse.getData());
|
|
|
|
|
|
|
|
|
|
// TODO: 2024/9/11 添加一张中间表(io_collect_order_origin)原始表做为转换
|
|
|
|
|
|
|
|
|
|
if (baseResponse.getCode() == 20000) {
|
|
|
|
@ -67,8 +64,7 @@ public class YPCF002Download implements IDownload {
|
|
|
|
|
return ResultVOUtils.error(500, "下载第三方系统产品信息异常");
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
log.error("下载第三方系统产品信息异常 fail" + ExceptionUtils.getStackTrace(e));
|
|
|
|
|
// e.printStackTrace();
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
return ResultVOUtils.error(500, e.getMessage());
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|