|
|
|
@ -1,21 +1,30 @@
|
|
|
|
|
package com.glxp.api.controller.test;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.glxp.api.annotation.Log;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.constant.BusinessType;
|
|
|
|
|
import com.glxp.api.controller.inout.IoOrderReviewController;
|
|
|
|
|
import com.glxp.api.dao.AliCodeTestMapper;
|
|
|
|
|
import com.glxp.api.dao.inout.IoOrderDao;
|
|
|
|
|
import com.glxp.api.entity.alihealth.*;
|
|
|
|
|
import com.glxp.api.entity.inout.IoOrderEntity;
|
|
|
|
|
import com.glxp.api.entity.thrsys.ThirdAliDrug;
|
|
|
|
|
import com.glxp.api.req.alihealth.AlihealthKytDrugrescodeReqeust;
|
|
|
|
|
import com.glxp.api.req.alihealth.AlihealthKytSearchbillReqeust;
|
|
|
|
|
import com.glxp.api.req.alihealth.AlihealthYljgListupoutDetailReqeust;
|
|
|
|
|
import com.glxp.api.req.alihealth.AlihealthYljgListupoutReqeust;
|
|
|
|
|
import com.glxp.api.req.alihealth.local.AliBillsDisposeReqeust;
|
|
|
|
|
import com.glxp.api.req.alihealth.local.AlihealthKytThirdAliSearchbillInsertReqeust;
|
|
|
|
|
import com.glxp.api.req.alihealth.local.AlihealthThirdAliDrugInsertReqeust;
|
|
|
|
|
import com.glxp.api.res.inout.OrderNoResult;
|
|
|
|
|
import com.glxp.api.util.DateUtil;
|
|
|
|
|
import com.glxp.api.util.alihealth.AlihealthUtils;
|
|
|
|
|
import com.glxp.api.util.alihealth.AlihealthYljgUtils;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
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;
|
|
|
|
@ -112,6 +121,24 @@ public class TestCodeController {
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
|
}
|
|
|
|
|
@Resource
|
|
|
|
|
private IoOrderDao ioOrderDao;
|
|
|
|
|
@Resource
|
|
|
|
|
private IoOrderReviewController ioOrderReviewController;
|
|
|
|
|
@PostMapping("/aliBillsDispose")
|
|
|
|
|
@Log(title = "手动调用阿里单据上传和关联关系拉取", businessType = BusinessType.OTHER)
|
|
|
|
|
public BaseResponse aliBillsDispose(@RequestBody AliBillsDisposeReqeust aliBillsDisposeReqeust) {
|
|
|
|
|
|
|
|
|
|
IoOrderEntity ioOrderEntity = ioOrderDao.selectOne(
|
|
|
|
|
new QueryWrapper<IoOrderEntity>()
|
|
|
|
|
.eq("billNo","ZS202503190006")
|
|
|
|
|
.last("limit 1"));
|
|
|
|
|
|
|
|
|
|
ioOrderReviewController.aliBillsDispose(ioOrderEntity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success("成功");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|