|
|
@@ -70,7 +70,8 @@ public class Titem extends Controller {
|
|
|
if (flongsaleslsRows.isEmpty()) {
|
|
|
where = where + " and 1=2";
|
|
|
} else {
|
|
|
- where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ //where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ where = where + " and exists(select *from titem_saleclsnum where titem_saleclsnum.siteid=t1.siteid and titem_saleclsnum.fitemno=t1.fitemno and titem_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
}
|
|
|
}
|
|
|
if (whereObject.containsKey("fiscollection") && !"".equals(whereObject.getString("fiscollection"))) {
|
|
|
@@ -145,6 +146,13 @@ public class Titem extends Controller {
|
|
|
*/
|
|
|
RowsMap installationtutorialmap = RowsPool.getRowsMap(siteid, RowsPool.GroupName.ITEM_INSTALLATIONTUTORIAL, itemarray);
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品营销类别
|
|
|
+ */
|
|
|
+ SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "货品营销类别查询");
|
|
|
+ saleclsnumsqlFactory.addParameter("siteid", siteid);
|
|
|
+ saleclsnumsqlFactory.addParameter_in("fitemno", itemarray);
|
|
|
+ RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fitemno");
|
|
|
|
|
|
/**
|
|
|
*更新即时库存
|
|
|
@@ -185,6 +193,8 @@ public class Titem extends Controller {
|
|
|
itemrow.put("instructions", instructionsmap.get(fitemno));
|
|
|
//安装教程
|
|
|
itemrow.put("installationtutorial", installationtutorialmap.get(fitemno));
|
|
|
+ //营销分类
|
|
|
+ itemrow.put("saleclsnum", saleclsnumRowsMap.get(fitemno));
|
|
|
}
|
|
|
titemset.close();
|
|
|
return getReturnObject_suc_page(rows, true, 1, sortmsg).toString();
|
|
|
@@ -233,7 +243,8 @@ public class Titem extends Controller {
|
|
|
if (flongsaleslsRows.isEmpty()) {
|
|
|
where = where + " and 1=2";
|
|
|
} else {
|
|
|
- where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ // where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ where = where + " and exists(select *from titem_saleclsnum where titem_saleclsnum.siteid=t1.siteid and titem_saleclsnum.fitemno=t1.fitemno and titem_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
}
|
|
|
}
|
|
|
if (whereObject.containsKey("fieldname") && !"".equals(whereObject.getString("fieldname"))) {
|
|
|
@@ -274,6 +285,13 @@ public class Titem extends Controller {
|
|
|
*/
|
|
|
RowsMap installationtutorialmap = RowsPool.getRowsMap(siteid, RowsPool.GroupName.ITEM_INSTALLATIONTUTORIAL, itemarray);
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品营销类别
|
|
|
+ */
|
|
|
+ SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "货品营销类别查询");
|
|
|
+ saleclsnumsqlFactory.addParameter("siteid", siteid);
|
|
|
+ saleclsnumsqlFactory.addParameter_in("fitemno", itemarray);
|
|
|
+ RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fitemno");
|
|
|
|
|
|
/**
|
|
|
*更新即时库存
|
|
|
@@ -313,6 +331,8 @@ public class Titem extends Controller {
|
|
|
itemrow.put("instructions", instructionsmap.get(fitemno));
|
|
|
//安装教程
|
|
|
itemrow.put("installationtutorial", installationtutorialmap.get(fitemno));
|
|
|
+ //营销分类
|
|
|
+ itemrow.put("saleclsnum", saleclsnumRowsMap.get(fitemno));
|
|
|
}
|
|
|
|
|
|
titemset.close();
|
|
|
@@ -362,7 +382,8 @@ public class Titem extends Controller {
|
|
|
if (flongsaleslsRows.isEmpty()) {
|
|
|
where = where + " and 1=2";
|
|
|
} else {
|
|
|
- where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ //where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ where = where + " and exists(select *from titem_saleclsnum where titem_saleclsnum.siteid=t1.siteid and titem_saleclsnum.fitemno=t1.fitemno and titem_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
}
|
|
|
}
|
|
|
if (whereObject.containsKey("fieldname") && !"".equals(whereObject.getString("fieldname"))) {
|
|
|
@@ -401,6 +422,13 @@ public class Titem extends Controller {
|
|
|
*商品安装教程查询参数设置,并将结果存放置map
|
|
|
*/
|
|
|
RowsMap installationtutorialmap = RowsPool.getRowsMap(siteid, RowsPool.GroupName.ITEM_INSTALLATIONTUTORIAL, itemarray);
|
|
|
+ /**
|
|
|
+ * 商品营销类别
|
|
|
+ */
|
|
|
+ SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "货品营销类别查询");
|
|
|
+ saleclsnumsqlFactory.addParameter("siteid", siteid);
|
|
|
+ saleclsnumsqlFactory.addParameter_in("fitemno", itemarray);
|
|
|
+ RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fitemno");
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -439,6 +467,8 @@ public class Titem extends Controller {
|
|
|
itemrow.put("instructions", instructionsmap.get(fitemno));
|
|
|
//安装教程
|
|
|
itemrow.put("installationtutorial", installationtutorialmap.get(fitemno));
|
|
|
+ //营销分类
|
|
|
+ itemrow.put("saleclsnum", saleclsnumRowsMap.get(fitemno));
|
|
|
}
|
|
|
|
|
|
titemset.close();
|
|
|
@@ -488,7 +518,8 @@ public class Titem extends Controller {
|
|
|
if (flongsaleslsRows.isEmpty()) {
|
|
|
where = where + " and 1=2";
|
|
|
} else {
|
|
|
- where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ //where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ where = where + " and exists(select *from titem_saleclsnum where titem_saleclsnum.siteid=t1.siteid and titem_saleclsnum.fitemno=t1.fitemno and titem_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
}
|
|
|
}
|
|
|
if (whereObject.containsKey("fiscollection") && !"".equals(whereObject.getString("fiscollection"))) {
|
|
|
@@ -529,6 +560,15 @@ public class Titem extends Controller {
|
|
|
*/
|
|
|
RowsMap picmap = RowsPool.getRowsMap(siteid, RowsPool.GroupName.ITEM_PIC, rows.toArray("fitemno"));
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品营销类别
|
|
|
+ */
|
|
|
+ SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "货品营销类别查询");
|
|
|
+ saleclsnumsqlFactory.addParameter("siteid", siteid);
|
|
|
+ saleclsnumsqlFactory.addParameter_in("fitemno", rows.toArray("fitemno"));
|
|
|
+ RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fitemno");
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
*更新即时库存
|
|
|
*/
|
|
|
@@ -558,6 +598,8 @@ public class Titem extends Controller {
|
|
|
itemrow.put("fprice", foldprice);
|
|
|
//图片
|
|
|
itemrow.put("pics", picmap.get(fitemno));
|
|
|
+ //营销分类
|
|
|
+ itemrow.put("saleclsnum", saleclsnumRowsMap.get(fitemno));
|
|
|
}
|
|
|
|
|
|
titemset.close();
|
|
|
@@ -611,7 +653,8 @@ public class Titem extends Controller {
|
|
|
if (flongsaleslsRows.isEmpty()) {
|
|
|
where = where + " and 1=2";
|
|
|
} else {
|
|
|
- where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ //where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ where = where + " and exists(select *from titem_saleclsnum where titem_saleclsnum.siteid=t1.siteid and titem_saleclsnum.fitemno=t1.fitemno and titem_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
}
|
|
|
}
|
|
|
if (whereObject.containsKey("fiscollection") && !"".equals(whereObject.getString("fiscollection"))) {
|
|
|
@@ -645,6 +688,15 @@ public class Titem extends Controller {
|
|
|
*/
|
|
|
RowsMap picmap = RowsPool.getRowsMap(siteid, RowsPool.GroupName.ITEM_PIC, rows.toArray("fitemno"));
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品营销类别
|
|
|
+ */
|
|
|
+ SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "货品营销类别查询");
|
|
|
+ saleclsnumsqlFactory.addParameter("siteid", siteid);
|
|
|
+ saleclsnumsqlFactory.addParameter_in("fitemno", rows.toArray("fitemno"));
|
|
|
+ RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fitemno");
|
|
|
+
|
|
|
+
|
|
|
HashMap<String, PaoRemote> itemmap = null;
|
|
|
if (withprice) {
|
|
|
/**
|
|
|
@@ -672,6 +724,9 @@ public class Titem extends Controller {
|
|
|
itemrow.put("foldprice", foldprice);
|
|
|
//销售价
|
|
|
itemrow.put("fprice", fprice);
|
|
|
+
|
|
|
+ //营销分类
|
|
|
+ itemrow.put("saleclsnum", saleclsnumRowsMap.get(fitemno));
|
|
|
}
|
|
|
}
|
|
|
return getReturnObject_suc_page(rows, true, 1, sortmsg).toString();
|
|
|
@@ -725,7 +780,8 @@ public class Titem extends Controller {
|
|
|
if (flongsaleslsRows.isEmpty()) {
|
|
|
where = where + " and 1=2";
|
|
|
} else {
|
|
|
- where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ //where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ where = where + " and exists(select *from titem_saleclsnum where titem_saleclsnum.siteid=t1.siteid and titem_saleclsnum.fitemno=t1.fitemno and titem_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
}
|
|
|
}
|
|
|
if (whereObject.containsKey("fiscollection") && !"".equals(whereObject.getString("fiscollection"))) {
|
|
|
@@ -760,6 +816,15 @@ public class Titem extends Controller {
|
|
|
*/
|
|
|
RowsMap picmap = RowsPool.getRowsMap(siteid, RowsPool.GroupName.ITEM_PIC, rows.toArray("fitemno"));
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品营销类别
|
|
|
+ */
|
|
|
+ SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "货品营销类别查询");
|
|
|
+ saleclsnumsqlFactory.addParameter("siteid", siteid);
|
|
|
+ saleclsnumsqlFactory.addParameter_in("fitemno", rows.toArray("fitemno"));
|
|
|
+ RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fitemno");
|
|
|
+
|
|
|
+
|
|
|
HashMap<String, PaoRemote> itemmap = null;
|
|
|
if (withprice) {
|
|
|
/**
|
|
|
@@ -787,6 +852,9 @@ public class Titem extends Controller {
|
|
|
itemrow.put("foldprice", foldprice);
|
|
|
//销售价
|
|
|
itemrow.put("fprice", fprice);
|
|
|
+
|
|
|
+ //营销分类
|
|
|
+ itemrow.put("saleclsnum", saleclsnumRowsMap.get(fitemno));
|
|
|
}
|
|
|
}
|
|
|
return getReturnObject_suc_page(rows, true, 1, sortmsg).toString();
|
|
|
@@ -831,7 +899,8 @@ public class Titem extends Controller {
|
|
|
if (flongsaleslsRows.isEmpty()) {
|
|
|
where = where + " and 1=2";
|
|
|
} else {
|
|
|
- where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ //where = where + " and t1.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%'";
|
|
|
+ where = where + " and exists(select *from titem_saleclsnum where titem_saleclsnum.siteid=t1.siteid and titem_saleclsnum.fitemno=t1.fitemno and titem_saleclsnum.flongsaleclsnum like'" + flongsaleslsRows.get(0).getString("flongsaleslsnum") + "%') ";
|
|
|
}
|
|
|
}
|
|
|
if (whereObject.containsKey("fiscollection") && !"".equals(whereObject.getString("fiscollection"))) {
|
|
|
@@ -884,6 +953,14 @@ public class Titem extends Controller {
|
|
|
*/
|
|
|
RowsMap installationtutorialmap = RowsPool.getRowsMap(siteid, RowsPool.GroupName.ITEM_INSTALLATIONTUTORIAL, itemarray);
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品营销类别
|
|
|
+ */
|
|
|
+ SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "货品营销类别查询");
|
|
|
+ saleclsnumsqlFactory.addParameter("siteid", siteid);
|
|
|
+ saleclsnumsqlFactory.addParameter_in("fitemno", itemarray);
|
|
|
+ RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fitemno");
|
|
|
+
|
|
|
/**
|
|
|
*更新即时库存
|
|
|
*/
|
|
|
@@ -920,6 +997,8 @@ public class Titem extends Controller {
|
|
|
itemrow.put("instructions", instructionsmap.get(fitemno));
|
|
|
//安装教程
|
|
|
itemrow.put("installationtutorial", installationtutorialmap.get(fitemno));
|
|
|
+ //营销分类
|
|
|
+ itemrow.put("saleclsnum", saleclsnumRowsMap.get(fitemno));
|
|
|
}
|
|
|
titemset.close();
|
|
|
return getReturnObject_suc_page(rows, true, 1, sortmsg).toString();
|
|
|
@@ -971,6 +1050,14 @@ public class Titem extends Controller {
|
|
|
*/
|
|
|
RowsMap installationtutorialmap = RowsPool.getRowsMap(siteid, RowsPool.GroupName.ITEM_INSTALLATIONTUTORIAL, itemarray);
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品营销类别
|
|
|
+ */
|
|
|
+ SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "货品营销类别查询");
|
|
|
+ saleclsnumsqlFactory.addParameter("siteid", siteid);
|
|
|
+ saleclsnumsqlFactory.addParameter_in("fitemno", itemarray);
|
|
|
+ RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fitemno");
|
|
|
+
|
|
|
/**
|
|
|
*更新即时库存
|
|
|
*/
|
|
|
@@ -1019,6 +1106,8 @@ public class Titem extends Controller {
|
|
|
itemrow.put("instructions", instructionsmap.get(fitemno));
|
|
|
//安装教程
|
|
|
itemrow.put("installationtutorial", installationtutorialmap.get(fitemno));
|
|
|
+ //营销分类
|
|
|
+ itemrow.put("saleclsnum", saleclsnumRowsMap.get(fitemno));
|
|
|
}
|
|
|
titemset.close();
|
|
|
return getReturnObject_suc(rows, true).toString();
|
|
|
@@ -1071,6 +1160,13 @@ public class Titem extends Controller {
|
|
|
*/
|
|
|
RowsMap installationtutorialmap = RowsPool.getRowsMap(siteid, RowsPool.GroupName.ITEM_INSTALLATIONTUTORIAL, itemarray);
|
|
|
|
|
|
+ /**
|
|
|
+ * 商品营销类别
|
|
|
+ */
|
|
|
+ SQLFactory saleclsnumsqlFactory = new SQLFactory(this, "货品营销类别查询");
|
|
|
+ saleclsnumsqlFactory.addParameter("siteid", siteid);
|
|
|
+ saleclsnumsqlFactory.addParameter_in("fitemno", itemarray);
|
|
|
+ RowsMap saleclsnumRowsMap = drpConnect.runSqlQuery(saleclsnumsqlFactory.getSQL()).toRowsMap("fitemno");
|
|
|
|
|
|
/**
|
|
|
*更新即时库存
|
|
|
@@ -1120,6 +1216,8 @@ public class Titem extends Controller {
|
|
|
itemrow.put("instructions", instructionsmap.get(fitemno));
|
|
|
//安装教程
|
|
|
itemrow.put("installationtutorial", installationtutorialmap.get(fitemno));
|
|
|
+ //营销分类
|
|
|
+ itemrow.put("saleclsnum", saleclsnumRowsMap.get(fitemno));
|
|
|
}
|
|
|
titemset.close();
|
|
|
return getReturnObject_suc(rows, true).toString();
|