Commit af325a35 authored by 张永's avatar 张永

1

parent 39a6f8ad
......@@ -150,7 +150,7 @@ public class OrderServiceImpl implements OrderService {
status = 0;
}
//订单状态 0.全部 1. 待付款 2.待审核 3.待发货 4.已发货 5.已完成 6.已取消 7待补款
String sql = "select distinct a.* from tSalesOrder a, tSalesOrderSub b where a.sSalesOrderID = b.sSalesOrderID and a.sShopNO = '" + shopNo + "' and a.sOrgNO = '" + orgNo + "'";
String sql = "select distinct a.* from tSalesOrder a left join tSalesOrderSub b on a.sSalesOrderID = b.sSalesOrderID where a.sShopNO = '" + shopNo + "' and a.sOrgNO = '" + orgNo + "'";
if(status == 0) {
sql += "";
} else if(status == 1) {
......@@ -166,7 +166,7 @@ public class OrderServiceImpl implements OrderService {
} else if(status == 6) {
sql += " and a.nOrderStatus&1 = 1";
} else if(status == 7) {
sql += " and b.sSalesOrderTypeID = '0'and b.nDebtAmount > 0 ";
sql += " and b.sSalesOrderTypeID = '0' and b.nDebtAmount > 0 ";
}else {
throw new XException("订单状态不存在");
}
......
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 to comment