|
|
|
@ -8,10 +8,13 @@ import com.alibaba.excel.context.AnalysisContext;
|
|
|
|
|
import com.alibaba.excel.event.AnalysisEventListener;
|
|
|
|
|
import com.alibaba.excel.read.listener.ReadListener;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.dao.basic.CompanyProductRelevanceDao;
|
|
|
|
|
import com.glxp.api.dao.inout.IoOrderDao;
|
|
|
|
|
import com.glxp.api.entity.alihealth.*;
|
|
|
|
|
import com.glxp.api.entity.basic.CompanyProductRelevanceEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiEntity;
|
|
|
|
|
import com.glxp.api.entity.inout.IoCodeLostEntity;
|
|
|
|
|
import com.glxp.api.entity.inout.IoOrderEntity;
|
|
|
|
@ -59,6 +62,8 @@ public class AlihealthBusServiceImpl implements AlihealthBusService {
|
|
|
|
|
IoOrderService ioOrderService;
|
|
|
|
|
@Resource
|
|
|
|
|
IoOrderDao ioOrderDao;
|
|
|
|
|
@Resource
|
|
|
|
|
CompanyProductRelevanceDao companyProductRelevanceDao;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<AliYljgSearchbill> aliYljgSearchbillPage(AliYljgSearchbillReqeust aliYljgSearchbillReqeust) {
|
|
|
|
@ -248,6 +253,15 @@ public class AlihealthBusServiceImpl implements AlihealthBusService {
|
|
|
|
|
throw new JsonException(500, "未通过药品标识获取详情信息!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Long id = udiRelevance.getId();
|
|
|
|
|
String supId = udiRelevance.getSupId();
|
|
|
|
|
List<CompanyProductRelevanceEntity> companyProductRelevanceEntities = companyProductRelevanceDao.selectList(new LambdaQueryWrapper<CompanyProductRelevanceEntity>()
|
|
|
|
|
.eq(CompanyProductRelevanceEntity::getUdiRlIdFk, id)
|
|
|
|
|
.eq(CompanyProductRelevanceEntity::getCustomerId, supId));
|
|
|
|
|
if (CollUtil.isEmpty(companyProductRelevanceEntities)){
|
|
|
|
|
throw new JsonException(500, "当前产品标识:【"+ udiRelevance.getNameCode()+"】未添加文件中供应商配送服务!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AddBizProductReqeust productRequest = new AddBizProductReqeust();
|
|
|
|
|
productRequest.setProductId(String.valueOf(udiRelevance.getProductId()));
|
|
|
|
|
productRequest.setRelId(udiRelevance.getRelId());
|
|
|
|
|