|
@@ -409,12 +409,14 @@ public class ComplaintDetectInfoServiceImpl implements ComplaintDetectInfoServic
|
|
|
}
|
|
|
Product product = productMapper.getProduce(complaintDetectInfo.getProductId());
|
|
|
Produce temp = new Produce();
|
|
|
- if (product != null && product.getProduceId() != null) {
|
|
|
+ if (product != null && product.getProduceId() != null && product.getProduceId() != null) {
|
|
|
temp.setProduceId(product.getProduceId());
|
|
|
temp = produceMapper.getProduceByPro(temp);
|
|
|
if (temp == null) {
|
|
|
throw new RuntimeException("销售产品未获取到对应的绑定生产产品");
|
|
|
}
|
|
|
+ } else {
|
|
|
+ throw new RuntimeException("销售产品未获取到对应的绑定生产产品");
|
|
|
}
|
|
|
|
|
|
try {
|