Commit 2af75632 by chongli

更新社员订单状态

parent a4c21c14
...@@ -858,8 +858,8 @@ public class OrderDao extends GenericHibernateDao<Order, Integer> { ...@@ -858,8 +858,8 @@ public class OrderDao extends GenericHibernateDao<Order, Integer> {
* *
* @param orderIdList * @param orderIdList
*/ */
public void updateOrderStatusForMiniApps(String ordersSn) { public void updateOrderStatusForMiniApps(Long ordersSn) {
if (ordersSn == null || "".equals(ordersSn)) { if (ordersSn == null) {
return; return;
} }
Query query = this.getSession().createQuery("Update Order set orderType = 1,processStatus=20 where orderNo=:orderNo"); Query query = this.getSession().createQuery("Update Order set orderType = 1,processStatus=20 where orderNo=:orderNo");
......
...@@ -36,7 +36,7 @@ public class CommuneNotifyService extends AbstractNotifyService { ...@@ -36,7 +36,7 @@ public class CommuneNotifyService extends AbstractNotifyService {
//根据订单号查询订单,修改订单相关信息 //根据订单号查询订单,修改订单相关信息
Order order = this.getOrderDao().getOrderByOrderNo(Long.parseLong(ordersSn)); Order order = this.getOrderDao().getOrderByOrderNo(Long.parseLong(ordersSn));
try { try {
this.getOrderDao().updateOrderStatusForMiniApps(ordersSn); this.getOrderDao().updateOrderStatusForMiniApps(Long.parseLong(ordersSn));
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment