|
|
@@ -24,6 +24,7 @@ import com.uas.platform.b2c.trade.order.dao.OrderDao;
|
|
|
import com.uas.platform.b2c.trade.order.model.Order;
|
|
|
import com.uas.platform.b2c.trade.order.model.OrderDetail;
|
|
|
import com.uas.platform.b2c.trade.order.service.OrderService;
|
|
|
+import com.uas.platform.core.exception.IllegalOperatorException;
|
|
|
import com.uas.platform.core.model.Status;
|
|
|
import com.uas.platform.core.model.Type;
|
|
|
import com.uas.platform.core.persistence.criteria.LogicalExpression;
|
|
|
@@ -158,6 +159,9 @@ public class B2cOrderServiceImpl implements B2cOrderService {
|
|
|
// erp部分修改当前处理人信息
|
|
|
Order order = orderDao.findByOrderid(payment.getOrderid());
|
|
|
List<User> users = userDao.findUserByUserUU(order.getBuyeruu());
|
|
|
+ if (!SystemSession.getUser().getEnterprise().getUu().equals(order.getBuyerenuu())){
|
|
|
+ throw new IllegalOperatorException("警告!订单不能确认!您无权限操作");
|
|
|
+ }
|
|
|
if (!CollectionUtils.isEmpty(users)){
|
|
|
users.get(0).setCurrentEnterprise(order.getBuyerenuu());
|
|
|
}
|