Sfoglia il codice sorgente

修复 楼栋 修改时只判断 page != -1 未判断为空

wuxw 6 anni fa
parent
commit
5521fc9108

+ 17 - 9
WebService/src/main/resources/components/floorPackage/add-floor/addFloor.html

@@ -1,27 +1,35 @@
-<div id = "addFloorModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" >
+<div id="addFloorModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
+     aria-hidden="true">
     <div class="modal-dialog modal-lg">
         <div class="modal-content">
             <div class="modal-body">
-                <h3 class="m-t-none m-b ">添加小区楼</h3>
+                <h3 class="m-t-none m-b ">添加楼</h3>
                 <div class="ibox-content">
                     <div>
                         <p style="color:red;">{{addFloorInfo.errorInfo}}</p>
                         <div>
                             <div class="form-group row">
-                                <label class="col-sm-2 col-form-label">楼名称</label>
-                                <div class="col-sm-10"><input v-model="addFloorInfo.name" type="text" placeholder="必填,请填写名称" class="form-control"></div>
+                                <label class="col-sm-2 col-form-label">楼栋编号</label>
+                                <div class="col-sm-10"><input v-model="addFloorInfo.floorNum" type="text"
+                                                              placeholder="必填,请填写编号" class="form-control"></div>
                             </div>
                             <div class="form-group row">
-                                <label class="col-sm-2 col-form-label">楼编号</label>
-                                <div class="col-sm-10"><input v-model="addFloorInfo.floorNum" type="text" placeholder="必填,请填写编号" class="form-control"></div>
+                                <label class="col-sm-2 col-form-label">楼栋名称</label>
+                                <div class="col-sm-10"><input v-model="addFloorInfo.name" readonly type="text"
+                                                              placeholder="必填,请填写名称" class="form-control"></div>
                             </div>
                             <div class="form-group row">
                                 <label class="col-sm-2 col-form-label">备注</label>
-                                <div class="col-sm-10"><input v-model="addFloorInfo.remark" type="tel" placeholder="可填,请填写备注" class="form-control"></div>
+                                <div class="col-sm-10"><textarea cols="5" v-model="addFloorInfo.remark" type="tel"
+                                                              placeholder="可填,请填写备注" class="form-control"></textarea></div>
                             </div>
                             <div class="ibox-content">
-                                <button class="btn btn-primary float-right" type="button" v-on:click="saveFloorInfo()" ><i class="fa fa-check"></i>&nbsp;保存</button>
-                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal">取消</button>
+                                <button class="btn btn-primary float-right" type="button" v-on:click="saveFloorInfo()">
+                                    <i class="fa fa-check"></i>&nbsp;保存
+                                </button>
+                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
+                                        data-dismiss="modal">取消
+                                </button>
                             </div>
                         </div>
                     </div>

+ 13 - 0
WebService/src/main/resources/components/floorPackage/add-floor/addFloor.js

@@ -14,6 +14,19 @@
                 errorInfo:''
             }
         },
+        watch:{
+            "addFloorInfo.floorNum":{//深度监听,可监听到对象、数组的变化
+                handler(val, oldVal){
+                    if(vc.notNull(val)){
+                        vc.component.addFloorInfo.name = vc.component.addFloorInfo.floorNum + "号楼";
+                    }else{
+                        vc.component.addFloorInfo.name = "";
+                    }
+
+                },
+                deep:true
+            }
+         },
          _initMethod:function(){
 
          },

+ 17 - 9
WebService/src/main/resources/components/floorPackage/edit-floor/editFloor.html

@@ -1,27 +1,35 @@
-<div id = "editFloorModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" >
+<div id="editFloorModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
+     aria-hidden="true">
     <div class="modal-dialog modal-lg">
         <div class="modal-content">
             <div class="modal-body">
-                <h3 class="m-t-none m-b ">修改小区楼</h3>
+                <h3 class="m-t-none m-b ">修改楼</h3>
                 <div class="ibox-content">
                     <div>
                         <p style="color:red;">{{editFloorInfo.errorInfo}}</p>
                         <div>
                             <div class="form-group row">
-                                <label class="col-sm-2 col-form-label">楼名称</label>
-                                <div class="col-sm-10"><input v-model="editFloorInfo.floorName" type="text" placeholder="必填,请填写名称" class="form-control"></div>
+                                <label class="col-sm-2 col-form-label">楼栋编号</label>
+                                <div class="col-sm-10"><input v-model="editFloorInfo.floorNum" type="email"
+                                                              placeholder="必填,请填写编号" class="form-control"></div>
                             </div>
                             <div class="form-group row">
-                                <label class="col-sm-2 col-form-label">楼编号</label>
-                                <div class="col-sm-10"><input v-model="editFloorInfo.floorNum" type="email" placeholder="必填,请填写编号" class="form-control"></div>
+                                <label class="col-sm-2 col-form-label">楼栋名称</label>
+                                <div class="col-sm-10"><input v-model="editFloorInfo.floorName" readonly type="text"
+                                                              placeholder="必填,请填写名称" class="form-control"></div>
                             </div>
                             <div class="form-group row">
                                 <label class="col-sm-2 col-form-label">备注</label>
-                                <div class="col-sm-10"><input v-model="editFloorInfo.remark" type="tel" placeholder="可填,请填写备注" class="form-control"></div>
+                                <div class="col-sm-10"><textarea cols="5" v-model="editFloorInfo.remark" type="tel"
+                                                                 placeholder="可填,请填写备注" class="form-control"></textarea></div>
                             </div>
                             <div class="ibox-content">
-                                <button class="btn btn-primary float-right" type="button" v-on:click="editFloorMethod()" ><i class="fa fa-check"></i>&nbsp;修改</button>
-                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" data-dismiss="modal">取消</button>
+                                <button class="btn btn-primary float-right" type="button"
+                                        v-on:click="editFloorMethod()"><i class="fa fa-check"></i>&nbsp;修改
+                                </button>
+                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
+                                        data-dismiss="modal">取消
+                                </button>
                             </div>
                         </div>
                     </div>

+ 13 - 1
WebService/src/main/resources/components/floorPackage/edit-floor/editFloor.js

@@ -8,8 +8,20 @@
                 floorNum:'',
                 remark:'',
                 errorInfo:''
+editFloor        },
+        watch:{
+            "editFloorInfo.floorNum":{//深度监听,可监听到对象、数组的变化
+                handler(val, oldVal){
+                    if(vc.notNull(val)){
+                        vc.component.editFloorInfo.floorName = vc.component.editFloorInfo.floorNum + "号楼";
+                    }else{
+                        vc.component.editFloorInfo.floorName = "";
+                    }
+
+                },
+                deep:true
             }
-        },
+         },
          _initMethod:function(){
 
          },

+ 12 - 17
WebService/src/main/resources/components/floorPackage/floor-manage/listFloor.html

@@ -3,11 +3,11 @@
         <div class="col-lg-12">
             <div class="ibox">
                 <div class="ibox-title">
-                    <h5>小区楼信息</h5>
+                    <h5>楼信息</h5>
                     <div class="ibox-tools" style="top:10px;">
                         <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddFloorModal()">
                             <i class="glyphicon glyphicon-plus"></i>
-                            初始化楼
+                            添加楼栋
                         </button>
                     </div>
                 </div>
@@ -16,32 +16,27 @@
                     <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                         <thead>
                         <tr>
-                            <th>楼ID</th>
-                            <th data-hide="phone">名称</th>
-                            <th data-hide="phone">编号</th>
-                            <th data-hide="phone">创建员工</th>
-                            <th data-hide="phone">备注</th>
+                            <th class="text-center">楼ID</th>
+                            <th class="text-center">编号</th>
+                            <th class="text-center">名称</th>
+                            <th class="text-center">创建员工</th>
                             <th class="text-right">操作</th>
 
                         </tr>
                         </thead>
                         <tbody>
                         <tr v-for="floor in listFloorInfo.floors">
-                            <td>
+                            <td class="text-center">
                                 {{floor.floorId}}
                             </td>
-
-                            <td>
-                                {{floor.floorName}}
-                            </td>
-                            <td>
+                            <td class="text-center">
                                 {{floor.floorNum}}
                             </td>
-                            <td>
-                                {{floor.userName}}
+                            <td class="text-center">
+                                {{floor.floorName}}
                             </td>
-                            <td>
-                                {{floor.remark}}
+                            <td class="text-center">
+                                {{floor.userName}}
                             </td>
                             <td class="text-right">
                                 <div class="btn-group">

+ 1 - 1
WebService/src/main/resources/static/js/core.js

@@ -259,7 +259,7 @@
     }
     //空判断 true 为非空 false 为空
     vc.notNull = function(_paramObj){
-        if(_paramObj == null || _paramObj == undefined || _paramObj == ''){
+        if(_paramObj == null || _paramObj == undefined || _paramObj.trim() == ''){
             return false;
         }
         return true;

+ 148 - 153
java110-db/src/main/resources/mapper/floor/FloorServiceDaoImplMapper.xml

@@ -5,215 +5,210 @@
 <mapper namespace="floorServiceDaoImpl">
 
     <!-- 保存小区楼信息 add by wuxw 2018-07-03 -->
-       <insert id="saveBusinessFloorInfo" parameterType="Map">
-           insert into business_floor(
-floor_id,operate,name,remark,b_id,user_id,floor_num
-) values (
-#{floorId},#{operate},#{name},#{remark},#{bId},#{userId},#{floorNum}
-)
-       </insert>
-
-
-       <!-- 查询小区楼信息(Business) add by wuxw 2018-07-03 -->
-       <select id="getBusinessFloorInfo" parameterType="Map" resultType="Map">
-           select  t.floor_id,t.operate,t.name,t.remark,t.b_id,t.user_id,t.floor_num 
-from business_floor t 
-where 1 =1 
-<if test="floorId !=null and floorId != ''">
-   and t.floor_id= #{floorId}
-</if> 
-<if test="operate !=null and operate != ''">
-   and t.operate= #{operate}
-</if> 
-<if test="name !=null and name != ''">
-   and t.name= #{name}
-</if> 
-<if test="remark !=null and remark != ''">
-   and t.remark= #{remark}
-</if> 
-<if test="bId !=null and bId != ''">
-   and t.b_id= #{bId}
-</if> 
-<if test="userId !=null and userId != ''">
-   and t.user_id= #{userId}
-</if> 
-<if test="floorNum !=null and floorNum != ''">
-   and t.floor_num= #{floorNum}
-</if> 
-
-       </select>
+    <insert id="saveBusinessFloorInfo" parameterType="Map">
+        insert into business_floor(
+        floor_id,operate,name,remark,b_id,user_id,floor_num
+        ) values (
+        #{floorId},#{operate},#{name},#{remark},#{bId},#{userId},#{floorNum}
+        )
+    </insert>
 
 
+    <!-- 查询小区楼信息(Business) add by wuxw 2018-07-03 -->
+    <select id="getBusinessFloorInfo" parameterType="Map" resultType="Map">
+        select t.floor_id,t.operate,t.name,t.remark,t.b_id,t.user_id,t.floor_num
+        from business_floor t
+        where 1 =1
+        <if test="floorId !=null and floorId != ''">
+            and t.floor_id= #{floorId}
+        </if>
+        <if test="operate !=null and operate != ''">
+            and t.operate= #{operate}
+        </if>
+        <if test="name !=null and name != ''">
+            and t.name= #{name}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and t.remark= #{remark}
+        </if>
+        <if test="bId !=null and bId != ''">
+            and t.b_id= #{bId}
+        </if>
+        <if test="userId !=null and userId != ''">
+            and t.user_id= #{userId}
+        </if>
+        <if test="floorNum !=null and floorNum != ''">
+            and t.floor_num= #{floorNum}
+        </if>
 
+    </select>
 
 
     <!-- 保存小区楼信息至 instance表中 add by wuxw 2018-07-03 -->
     <insert id="saveFloorInfoInstance" parameterType="Map">
         insert into f_floor(
-floor_id,name,status_cd,remark,b_id,user_id,floor_num
-) select t.floor_id,t.name,'0',t.remark,t.b_id,t.user_id,t.floor_num from business_floor t where 1=1
-<if test="floorId !=null and floorId != ''">
-   and t.floor_id= #{floorId}
-</if> 
-   and t.operate= 'ADD'
-<if test="name !=null and name != ''">
-   and t.name= #{name}
-</if> 
-<if test="remark !=null and remark != ''">
-   and t.remark= #{remark}
-</if> 
-<if test="bId !=null and bId != ''">
-   and t.b_id= #{bId}
-</if> 
-<if test="userId !=null and userId != ''">
-   and t.user_id= #{userId}
-</if> 
-<if test="floorNum !=null and floorNum != ''">
-   and t.floor_num= #{floorNum}
-</if> 
+        floor_id,name,status_cd,remark,b_id,user_id,floor_num
+        ) select t.floor_id,t.name,'0',t.remark,t.b_id,t.user_id,t.floor_num from business_floor t where 1=1
+        <if test="floorId !=null and floorId != ''">
+            and t.floor_id= #{floorId}
+        </if>
+        and t.operate= 'ADD'
+        <if test="name !=null and name != ''">
+            and t.name= #{name}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and t.remark= #{remark}
+        </if>
+        <if test="bId !=null and bId != ''">
+            and t.b_id= #{bId}
+        </if>
+        <if test="userId !=null and userId != ''">
+            and t.user_id= #{userId}
+        </if>
+        <if test="floorNum !=null and floorNum != ''">
+            and t.floor_num= #{floorNum}
+        </if>
 
     </insert>
 
 
-
     <!-- 查询小区楼信息 add by wuxw 2018-07-03 -->
     <select id="getFloorInfo" parameterType="Map" resultType="Map">
-        select  t.floor_id,t.floor_id floorId,t.name,t.status_cd, t.status_cd statusCd,t.remark,t.b_id,
+        select t.floor_id,t.floor_id floorId,t.name,t.status_cd, t.status_cd statusCd,t.remark,t.b_id,
         t.b_id bId,t.user_id, t.user_id userId,t.floor_num ,t.floor_num floorNum
         from f_floor t
         where 1 =1
         <if test="floorId !=null and floorId != ''">
-           and t.floor_id= #{floorId}
+            and t.floor_id= #{floorId}
         </if>
         <if test="name !=null and name != ''">
-           and t.name= #{name}
+            and t.name= #{name}
         </if>
         <if test="statusCd !=null and statusCd != ''">
-           and t.status_cd= #{statusCd}
+            and t.status_cd= #{statusCd}
         </if>
         <if test="remark !=null and remark != ''">
-           and t.remark= #{remark}
+            and t.remark= #{remark}
         </if>
         <if test="bId !=null and bId != ''">
-           and t.b_id= #{bId}
+            and t.b_id= #{bId}
         </if>
         <if test="userId !=null and userId != ''">
-           and t.user_id= #{userId}
+            and t.user_id= #{userId}
         </if>
         <if test="floorNum !=null and floorNum != ''">
-           and t.floor_num= #{floorNum}
+            and t.floor_num= #{floorNum}
         </if>
-        <if test="page != -1">
+        <if test="page != -1 and page != null ">
             limit #{page}, #{row}
         </if>
 
     </select>
 
 
-
-
     <!-- 修改小区楼信息 add by wuxw 2018-07-03 -->
     <update id="updateFloorInfoInstance" parameterType="Map">
-        update  f_floor t set t.status_cd = #{statusCd}
+        update f_floor t set t.status_cd = #{statusCd}
         <if test="newBId != null and newBId != ''">
             ,t.b_id = #{newBId}
         </if>
-<if test="name !=null and name != ''">
-, t.name= #{name}
-</if> 
-<if test="remark !=null and remark != ''">
-, t.remark= #{remark}
-</if> 
-<if test="userId !=null and userId != ''">
-, t.user_id= #{userId}
-</if> 
-<if test="floorNum !=null and floorNum != ''">
-, t.floor_num= #{floorNum}
-</if> 
- where 1=1 <if test="floorId !=null and floorId != ''">
-and t.floor_id= #{floorId}
-</if> 
-<if test="bId !=null and bId != ''">
-and t.b_id= #{bId}
-</if> 
+        <if test="name !=null and name != ''">
+            , t.name= #{name}
+        </if>
+        <if test="remark !=null and remark != ''">
+            , t.remark= #{remark}
+        </if>
+        <if test="userId !=null and userId != ''">
+            , t.user_id= #{userId}
+        </if>
+        <if test="floorNum !=null and floorNum != ''">
+            , t.floor_num= #{floorNum}
+        </if>
+        where 1=1
+        <if test="floorId !=null and floorId != ''">
+            and t.floor_id= #{floorId}
+        </if>
+        <if test="bId !=null and bId != ''">
+            and t.b_id= #{bId}
+        </if>
 
     </update>
 
     <select id="queryFloorsCount" parameterType="Map" resultType="Map">
         SELECT
-            COUNT(1) count
+        COUNT(1) count
         FROM
-            f_floor f,
-            s_community_member cm
+        f_floor f,
+        s_community_member cm
         WHERE f.`floor_id` = cm.`member_id`
-            AND cm.`member_type_cd` = '390001200004'
-            AND cm.`community_id` = #{communityId}
-            <if test="floorId !=null and floorId != ''">
-                and f.floor_id= #{floorId}
-            </if>
-            <if test="name !=null and name != ''">
-                and f.name= #{name}
-            </if>
-            <if test="statusCd !=null and statusCd != ''">
-                and f.status_cd= #{statusCd}
-            </if>
-            <if test="remark !=null and remark != ''">
-                and f.remark= #{remark}
-            </if>
-            <if test="bId !=null and bId != ''">
-                and f.b_id= #{bId}
-            </if>
-            <if test="userId !=null and userId != ''">
-                and f.user_id= #{userId}
-            </if>
-            <if test="floorNum !=null and floorNum != ''">
-                and f.floor_num= #{floorNum}
-            </if>
-            AND f.`status_cd` = '0'
-            AND cm.`status_cd` = '0'
+        AND cm.`member_type_cd` = '390001200004'
+        AND cm.`community_id` = #{communityId}
+        <if test="floorId !=null and floorId != ''">
+            and f.floor_id= #{floorId}
+        </if>
+        <if test="name !=null and name != ''">
+            and f.name= #{name}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and f.status_cd= #{statusCd}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and f.remark= #{remark}
+        </if>
+        <if test="bId !=null and bId != ''">
+            and f.b_id= #{bId}
+        </if>
+        <if test="userId !=null and userId != ''">
+            and f.user_id= #{userId}
+        </if>
+        <if test="floorNum !=null and floorNum != ''">
+            and f.floor_num= #{floorNum}
+        </if>
+        AND f.`status_cd` = '0'
+        AND cm.`status_cd` = '0'
     </select>
     <!-- 查询小区 内的楼 -->
     <select id="queryFloors" parameterType="Map" resultType="Map">
 
         SELECT
-            f.`floor_id` floorId,
-            f.`floor_num` floorNum,
-            f.`name` floorName,
-            f.`remark`,
-            f.`user_id` userId,
-            cm.`community_id` communityId
+        f.`floor_id` floorId,
+        f.`floor_num` floorNum,
+        f.`name` floorName,
+        f.`remark`,
+        f.`user_id` userId,
+        cm.`community_id` communityId
         FROM
-            f_floor f,
-            s_community_member cm
+        f_floor f,
+        s_community_member cm
         WHERE f.`floor_id` = cm.`member_id`
-            AND cm.`member_type_cd` = '390001200004'
-            AND cm.`community_id` = #{communityId}
-            <if test="floorId !=null and floorId != ''">
-                and f.floor_id= #{floorId}
-            </if>
-            <if test="name !=null and name != ''">
-                and f.name= #{name}
-            </if>
-            <if test="statusCd !=null and statusCd != ''">
-                and f.status_cd= #{statusCd}
-            </if>
-            <if test="remark !=null and remark != ''">
-                and f.remark= #{remark}
-            </if>
-            <if test="bId !=null and bId != ''">
-                and f.b_id= #{bId}
-            </if>
-            <if test="userId !=null and userId != ''">
-                and f.user_id= #{userId}
-            </if>
-            <if test="floorNum !=null and floorNum != ''">
-                and f.floor_num= #{floorNum}
-            </if>
-            AND f.`status_cd` = '0'
-            AND cm.`status_cd` = '0'
-            <if test="page != -1">
-                LIMIT #{page}, #{row}
-            </if>
+        AND cm.`member_type_cd` = '390001200004'
+        AND cm.`community_id` = #{communityId}
+        <if test="floorId !=null and floorId != ''">
+            and f.floor_id= #{floorId}
+        </if>
+        <if test="name !=null and name != ''">
+            and f.name= #{name}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and f.status_cd= #{statusCd}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and f.remark= #{remark}
+        </if>
+        <if test="bId !=null and bId != ''">
+            and f.b_id= #{bId}
+        </if>
+        <if test="userId !=null and userId != ''">
+            and f.user_id= #{userId}
+        </if>
+        <if test="floorNum !=null and floorNum != ''">
+            and f.floor_num= #{floorNum}
+        </if>
+        AND f.`status_cd` = '0'
+        AND cm.`status_cd` = '0'
+        <if test="page != -1 and page != null ">
+            LIMIT #{page}, #{row}
+        </if>
     </select>
 
 

+ 1 - 1
java110-service/src/main/java/com/java110/service/develop/notice/GetNoticesByJava.java

@@ -44,7 +44,7 @@ public class GetNoticesByJava implements IDevelop {
             sqlParams.add(params.get("userId"));
         }
         if(params.containsKey("title") && !StringUtils.isEmpty(params.getString("title"))){
-            sql += "and nn.`notice_id` LIKE CONCAT('%',?,'%') ";
+            sql += "and nn.`title` LIKE CONCAT('%',?,'%') ";
             sqlParams.add(params.get("title"));
         }
 

+ 58 - 0
java110-service/src/main/java/com/java110/service/develop/user/GetUserByJava.java

@@ -0,0 +1,58 @@
+package com.java110.service.develop.user;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.service.context.DataQuery;
+import com.java110.service.develop.IDevelop;
+import org.apache.commons.lang.StringUtils;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @ClassName GetNoticesByJava
+ * @Description TODO
+ * @Author wuxw
+ * @Date 2019/9/8 14:31
+ * @Version 1.0
+ * add by wuxw 2019/9/8
+ **/
+public class GetUserByJava implements IDevelop {
+    @Override
+    public JSONObject execute(DataQuery dataQuery) {
+        JSONObject params = dataQuery.getRequestParams();
+        List sqlParams = new ArrayList();
+
+        String sql = "SELECT nn.`notice_id` noticeId," +
+                "nn.`title`," +
+                "nn.`notice_type_cd` noticeTypeCd," +
+                "nn.`context`," +
+                "nn.`community_id` communityId," +
+                "nn.`user_id` userId," +
+                "nn.`start_time` startTime " +
+                "FROM n_notice nn\n" +
+                "WHERE nn.status_cd = '0'" ;
+        if(params.containsKey("noticeId") && !StringUtils.isEmpty(params.getString("noticeId"))){
+            sql += "and nn.`notice_id` = ? ";
+            sqlParams.add(params.get("noticeId"));
+        }
+        if(params.containsKey("communityId") && !StringUtils.isEmpty(params.getString("communityId"))){
+            sql += "and nn.`community_id` = ? ";
+            sqlParams.add(params.get("communityId"));
+        }
+        if(params.containsKey("userId") && !StringUtils.isEmpty(params.getString("userId"))){
+            sql += "and nn.`user_id` = ? ";
+            sqlParams.add(params.get("userId"));
+        }
+        if(params.containsKey("title") && !StringUtils.isEmpty(params.getString("title"))){
+            sql += "and nn.`title` LIKE CONCAT('%',?,'%') ";
+            sqlParams.add(params.get("title"));
+        }
+
+        List outParam = dataQuery.queryDataBySql(sql,sqlParams);
+
+        JSONObject outObj = new JSONObject();
+        outObj.put("notices", outParam);
+
+        return outObj;
+    }
+}