|
|
@@ -644,6 +644,9 @@ public class accessoryorder extends Controller {
|
|
|
querySQL.setWhere("t1.siteid", siteid);
|
|
|
querySQL.setWhere("t2.status not in('新建','提交') and t2.type='配件订单' ");
|
|
|
querySQL.setWhere("t1.cardno",cardno);
|
|
|
+ if(StringUtils.isBlank(cardno)){
|
|
|
+ querySQL.setWhere("1=2");
|
|
|
+ }
|
|
|
querySQL.setWhere("t1.itemid",itemid);
|
|
|
Rows rows = querySQL.query();
|
|
|
|
|
|
@@ -683,6 +686,9 @@ public class accessoryorder extends Controller {
|
|
|
querySQL.setWhere("t1.siteid", siteid);
|
|
|
querySQL.setWhere("t2.status not in('新建','提交') and t2.type='配件订单' ");
|
|
|
querySQL.setWhere("t1.cardno",cardno);
|
|
|
+ if(StringUtils.isBlank(cardno)){
|
|
|
+ querySQL.setWhere("1=2");
|
|
|
+ }
|
|
|
querySQL.setWhere("t1.itemid",itemid);
|
|
|
querySQL.setPage(pageSize, pageNumber);
|
|
|
Rows rows = querySQL.query();
|