Explorar o código

查询目标列表添加查询条件

hu %!s(int64=2) %!d(string=hai) anos
pai
achega
2df4d37652

+ 2 - 1
src/custom/restcontroller/webmanage/sale/salestarget/personnel.java

@@ -182,6 +182,7 @@ public class personnel extends Controller {
          /*
          /*
           过滤条件设置
           过滤条件设置
          */
          */
+         String targettype =content.getString("targettype");
         StringBuffer where = new StringBuffer(" 1=1 ");
         StringBuffer where = new StringBuffer(" 1=1 ");
         if (content.containsKey("where")) {
         if (content.containsKey("where")) {
             JSONObject whereObject = content.getJSONObject("where");
             JSONObject whereObject = content.getJSONObject("where");
@@ -201,7 +202,7 @@ public class personnel extends Controller {
         SQLFactory sqlFactory = new SQLFactory(this, "年度目标列表", pageSize, pageNumber, pageSorting);
         SQLFactory sqlFactory = new SQLFactory(this, "年度目标列表", pageSize, pageNumber, pageSorting);
         sqlFactory.addParameter("siteid", siteid);
         sqlFactory.addParameter("siteid", siteid);
         sqlFactory.addParameter_SQL("where", where);
         sqlFactory.addParameter_SQL("where", where);
-        sqlFactory.addParameter("targettype", "人员目标");
+        sqlFactory.addParameter("targettype", targettype);
         Rows rows = dbConnect.runSqlQuery(sqlFactory);
         Rows rows = dbConnect.runSqlQuery(sqlFactory);