|
|
@@ -193,7 +193,6 @@ public class itemclass extends Controller {
|
|
|
if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
|
|
|
where = where + " and (brandname like'%" + whereObject.getString("condition") + "%') ";
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
String where2 = " 1=1 ";
|
|
|
@@ -203,9 +202,6 @@ public class itemclass extends Controller {
|
|
|
if (whereObject.containsKey("istool") && !"".equals(whereObject.getString("istool"))) {
|
|
|
where2 = where2 + " and (t1.istool ='" + whereObject.getString("istool") + "') ";
|
|
|
}
|
|
|
- if (whereObject.containsKey("classtype") && !"".equals(whereObject.getString("classtype"))) {
|
|
|
- where2 = where2 + " and t1.classtype ='" + whereObject.getString("classtype") + "' ";
|
|
|
- }
|
|
|
}
|
|
|
/*
|
|
|
* SQL通告板块查询参数设置并查询
|
|
|
@@ -297,9 +293,6 @@ public class itemclass extends Controller {
|
|
|
if (whereObject.containsKey("istool") && !"".equals(whereObject.getString("istool"))) {
|
|
|
where = where + " and t1.istool=" + whereObject.getLongValue("istool");
|
|
|
}
|
|
|
- if (whereObject.containsKey("classtype") && !"".equals(whereObject.getString("classtype"))) {
|
|
|
- where = where + " and t1.classtype=" + whereObject.getLongValue("classtype");
|
|
|
- }
|
|
|
}
|
|
|
SQLFactory factory = new SQLFactory(this, "营销类别末级列表查询");
|
|
|
factory.addParameter("siteid", siteid);
|
|
|
@@ -357,7 +350,7 @@ public class itemclass extends Controller {
|
|
|
throws YosException {
|
|
|
if (parentid > 0) {
|
|
|
Rows rows = dbConnect.runSqlQuery(
|
|
|
- "select ifnull(parentid,0) as parentid from plm_itemclass where itemclassid= '"
|
|
|
+ "select ifnull(parentid,0) as parentid from plm_itemclass where classtype='营销' and itemclassid= '"
|
|
|
+ parentid + "'");
|
|
|
if (!rows.isEmpty()) {
|
|
|
level++;
|
|
|
@@ -373,7 +366,7 @@ public class itemclass extends Controller {
|
|
|
String fullnum = "";
|
|
|
if (parentid > 0) {
|
|
|
Rows rows = dbConnect.runSqlQuery(
|
|
|
- "select ifnull(parentid,0) as parentid,itemclassfullnum from plm_itemclass where itemclassid= '"
|
|
|
+ "select ifnull(parentid,0) as parentid,itemclassfullnum from plm_itemclass where classtype='营销' and itemclassid= '"
|
|
|
+ parentid + "'");
|
|
|
if (!rows.isEmpty()) {
|
|
|
fullnum = rows.get(0).getString("itemclassfullnum") + "/" + fullname;
|
|
|
@@ -392,7 +385,7 @@ public class itemclass extends Controller {
|
|
|
String fullnum = "";
|
|
|
if (parentid > 0) {
|
|
|
Rows rows = dbConnect.runSqlQuery(
|
|
|
- "select ifnull(parentid,0) as parentid,itemclassfullname from plm_itemclass where itemclassid= '"
|
|
|
+ "select ifnull(parentid,0) as parentid,itemclassfullname from plm_itemclass where classtype='营销' and itemclassid= '"
|
|
|
+ parentid + "'");
|
|
|
if (!rows.isEmpty()) {
|
|
|
fullnum = rows.get(0).getString("itemclassfullname") + "/" + fullname;
|