|
|
@@ -77,6 +77,11 @@ public class B2cOrderServiceImpl implements B2cOrderService {
|
|
|
@Autowired
|
|
|
private EnterpriseDao enterpriseDao;
|
|
|
|
|
|
+ /**
|
|
|
+ * 成功标语
|
|
|
+ */
|
|
|
+ private static final String SUCCESS = "success";
|
|
|
+
|
|
|
@Override
|
|
|
public List<B2cOrder> getAllOrder() {
|
|
|
// 要获取的采购的状态
|
|
|
@@ -171,11 +176,13 @@ public class B2cOrderServiceImpl implements B2cOrderService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public B2cOrder ensury(String orderid) {
|
|
|
+ public String ensury(String orderid) {
|
|
|
Order order = orderDao.findByOrderid(orderid);
|
|
|
if (order != null) {
|
|
|
orderService.ensureOrderAccept(order.getId().toString());
|
|
|
+ return SUCCESS;
|
|
|
+ } else {
|
|
|
+ throw new IllegalOperatorException("警告!订单编号有误");
|
|
|
}
|
|
|
- return null;
|
|
|
}
|
|
|
}
|