|
|
|
|
@ -7,7 +7,6 @@ import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import jakarta.annotation.Resource; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.common.exception.BusinessException; |
|
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.secure.BladeUser; |
|
|
|
|
@ -209,17 +208,16 @@ public class StBuyOrderServiceImpl extends BaseServiceImpl<StBuyOrderMapper, StB |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 3. 玻璃物料发送校验
|
|
|
|
|
for (StBuyOrder buyOrder : list) { |
|
|
|
|
StGoods goods = stGoodsService.getById(buyOrder.getGoodsId()); |
|
|
|
|
if (buyOrder.getGoodsId() != null && StrUtil.contains(goods.getGoodsName(), "玻璃")) { |
|
|
|
|
try { |
|
|
|
|
erpDataWmsClient.sendRbfirtChk(goods.getGoodsCode(), goods.getGoodsName()); |
|
|
|
|
} catch (BusinessException e) { |
|
|
|
|
throw new RuntimeException("玻璃粉验证通知单发送失败:" + e.getMessage()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// for (StBuyOrder buyOrder : list) {
|
|
|
|
|
// StGoods goods = stGoodsService.getById(buyOrder.getGoodsId());
|
|
|
|
|
// if (buyOrder.getGoodsId() != null && StrUtil.contains(goods.getGoodsName(), "玻璃")) {
|
|
|
|
|
// try {
|
|
|
|
|
// erpDataWmsClient.sendRbfirtChk(goods.getGoodsCode(), goods.getGoodsName());
|
|
|
|
|
// } catch (BusinessException e) {
|
|
|
|
|
// throw new RuntimeException("玻璃粉验证通知单发送失败:" + e.getMessage());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|