feat: 上传阳采追溯码

dev_drug_dmyh250207
chenhc 1 week ago
parent 89b469b9ce
commit 15292e793a

@ -143,9 +143,16 @@ public class AlihealthBusServiceImpl implements AlihealthBusService {
AddOrderRequest addOrderRequest = new AddOrderRequest();
BeanUtils.copyProperties(ioOrderEntity, addOrderRequest);
String ycBillNo = ioOrderEntity.getYcBillNo();
for (int j = 0; j < list.size(); j++) {
YcFileCodeUploadVo ycFileCodeUploadVo = list.get(j);
//第一条进行 阳采单号的校验
if (j == 0 && StringUtils.isNotEmpty(ycBillNo)){
String ycBillNo1 = ycFileCodeUploadVo.getYcBillNo();
throw new JsonException("导入订单编号错误:当前绑定阳采业务单号【" + ycBillNo + "】 导入阳采业务单号【" + ycBillNo1 + "】 ");
}
String code = ycFileCodeUploadVo.getCode();
addOrderRequest.setCode(code);
UdiEntity udiEntity = FilterUdiUtils.getUdi(code);

Loading…
Cancel
Save