feat: 优化提示

dev_drug_dmyh250207
chenhc 1 week ago
parent 8cb86331ae
commit 311e2e8193

@ -258,9 +258,10 @@ public class AlihealthBusServiceImpl implements AlihealthBusService {
UdiRelevanceResponse udiRelevance = udiRelevanceService.selectByMainIdOne(orderUploadVo.getDrugUnifiedCode());
if (udiRelevance == null) {
throw new JsonException(500, "未通过药品标识获取详情信息!");
throw new JsonException(500, "文件中的药品统一编码:【"+orderUploadVo.getDrugUnifiedCode() + "】" +"没有维护产品信息!");
}
Long id = udiRelevance.getId();
String supId = udiRelevance.getSupId();
String userId = customerService.getCustomerId();
@ -268,7 +269,7 @@ public class AlihealthBusServiceImpl implements AlihealthBusService {
.eq(CompanyProductRelevanceEntity::getUdiRlIdFk, id)
.eq(CompanyProductRelevanceEntity::getCustomerId, userId));
if (CollUtil.isEmpty(companyProductRelevanceEntities)) {
throw new JsonException(500, "当前产品标识:【" + udiRelevance.getNameCode() + "】未添加文件中供应商配送服务!");
throw new JsonException(500, "文件中的药品统一编码:【"+orderUploadVo.getDrugUnifiedCode() + "】 产品标识:【" + udiRelevance.getNameCode() + "】未添加文件中供应商配送服务!");
}
AddBizProductReqeust productRequest = new AddBizProductReqeust();

Loading…
Cancel
Save