@@ -159,6 +159,13 @@ public class invbal extends Controller {
if(all){
where=where+" or 1=1 ";
}
+ if (content.containsKey("where")) {
+ JSONObject whereObject = content.getJSONObject("where");
+ if (whereObject.containsKey("isonsale") && !"".equals(whereObject.getString("isonsale"))) {
+ where = where+" or t2.isonsale ='"+whereObject.getString("isonsale") + "' ";
+ }
+
if(!StringUtils.isBlank(agentinfo)){
sqlFactory =new SQLFactory(this,"订单明细未发商品列表", pageSize, pageNumber, pageSorting);
if (isExport) {