|
|
@@ -721,7 +721,7 @@ public class OrderItems extends Controller {
|
|
|
}else if(convenient.equals("待审核")){
|
|
|
where.append(" and t5.status ='提交' ");
|
|
|
}else if(convenient.equals("待发货")){
|
|
|
- where.append(" t5.status not in ('预提交','新建') and not exists(select 1 from st_stockbill_items s1 inner join st_stockbill s2 on s1.st_stockbillid=s2.st_stockbillid and s1.siteid=s2.siteid where s2.status='审核' and s2.rb=1 and s1.sa_orderitemsid=t1.sa_orderitemsid)");
|
|
|
+ where.append(" and t5.status not in ('预提交','新建') and not exists(select 1 from st_stockbill_items s1 inner join st_stockbill s2 on s1.st_stockbillid=s2.st_stockbillid and s1.siteid=s2.siteid where s2.status='审核' and s2.rb=1 and s1.sa_orderitemsid=t1.sa_orderitemsid)");
|
|
|
}else if(convenient.equals("已发货")){
|
|
|
where.append(" and exists(select 1 from st_stockbill_items s1 inner join st_stockbill s2 on s1.st_stockbillid=s2.st_stockbillid and s1.siteid=s2.siteid where s2.status='审核' and s2.rb=1 and s1.sa_orderitemsid=t1.sa_orderitemsid)");
|
|
|
}else if(convenient.equals("已取消")){
|