12/26 youhau

dev_unify
wangwei 3 months ago
parent 59bf6cd536
commit b870f76e4a

@ -28,6 +28,7 @@ import com.glxp.api.req.inout.AddOrderRequest;
import com.glxp.api.req.inout.FilterOrderRequest;
import com.glxp.api.res.basic.UdiRelevanceResponse;
import com.glxp.api.service.alihealth.AlihealthBusService;
import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.basic.UdiRelevanceService;
import com.glxp.api.service.inout.IoCodeLostService;
import com.glxp.api.service.inout.IoOrderDetailBizService;
@ -245,6 +246,9 @@ public class AlihealthBusServiceImpl implements AlihealthBusService {
}
}
@Resource
CustomerService customerService;
private AddBizProductReqeust buildProductRequest(YcFileOrderUploadVo orderUploadVo, IoOrderEntity orderEntity, String fromCorp) {
orderEntity.setYcBillNo(orderUploadVo.getYcBillNo());
@ -255,9 +259,10 @@ public class AlihealthBusServiceImpl implements AlihealthBusService {
Long id = udiRelevance.getId();
String supId = udiRelevance.getSupId();
String userId = customerService.getCustomerId();
List<CompanyProductRelevanceEntity> companyProductRelevanceEntities = companyProductRelevanceDao.selectList(new LambdaQueryWrapper<CompanyProductRelevanceEntity>()
.eq(CompanyProductRelevanceEntity::getUdiRlIdFk, id)
.eq(CompanyProductRelevanceEntity::getCustomerId, supId));
.eq(CompanyProductRelevanceEntity::getCustomerId, userId));
if (CollUtil.isEmpty(companyProductRelevanceEntities)){
throw new JsonException(500, "当前产品标识:【"+ udiRelevance.getNameCode()+"】未添加文件中供应商配送服务!");
}

Loading…
Cancel
Save