|
@@ -280,10 +280,13 @@ public class CustomerServiceImpl implements CustomerService {
|
|
|
ro.setSalesId(sor.getSalesId());
|
|
|
relationOrderList.add(ro);
|
|
|
}
|
|
|
- flag = relationOrderService.saveList(relationOrderList);
|
|
|
- if(flag < 1){
|
|
|
- throw new RuntimeException("添加客诉,关联订单失败");
|
|
|
+ if(relationOrderList != null && relationOrderList.size() > 0){
|
|
|
+ flag = relationOrderService.saveList(relationOrderList);
|
|
|
+ if(flag < 1){
|
|
|
+ throw new RuntimeException("添加客诉,关联订单失败");
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
for (SalesOrder sor : orderList) {
|
|
|
SalesOrder newOrder = new SalesOrder(); //salesOrderStatus
|
|
|
newOrder.setSalesId(sor.getSalesId());
|
|
@@ -525,10 +528,13 @@ public class CustomerServiceImpl implements CustomerService {
|
|
|
ro.setSalesId(sor.getSalesId());
|
|
|
relationOrderList.add(ro);
|
|
|
}
|
|
|
- flag = relationOrderService.saveList(relationOrderList);
|
|
|
- if(flag < 1){
|
|
|
- throw new RuntimeException("添加客诉,关联订单失败");
|
|
|
+ if(relationOrderList != null && relationOrderList.size() > 0){
|
|
|
+ flag = relationOrderService.saveList(relationOrderList);
|
|
|
+ if(flag < 1){
|
|
|
+ throw new RuntimeException("添加客诉,关联订单失败");
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
for (SalesOrder sor : orderList) {
|
|
|
SalesOrder newOrder = new SalesOrder(); //salesOrderStatus
|
|
|
newOrder.setSalesId(sor.getSalesId());
|