Bladeren bron

copyScene -mq

lyhzzz 1 jaar geleden
bovenliggende
commit
5bb164ca9b

+ 1 - 1
src/main/java/com/fdkankan/manage_jp/mapper/IProjectSceneGpsMapper.java

@@ -24,6 +24,6 @@ public interface IProjectSceneGpsMapper extends BaseMapper<ProjectSceneGps> {
 
     List<SceneGpsDb> getNotGpsScene();
 
-    List<SceneGpsDbVp> listGps( SceneGpsParam param);
+    List<SceneGpsDbVp> listGps( @Param("param") SceneGpsParam param);
     Page<SceneGpsDbVp> listGps(Page<Object> page,SceneGpsParam param);
 }

+ 7 - 7
src/main/resources/mapper/manage_jp/ProjectSceneGpsMapper.xml

@@ -22,18 +22,18 @@
                 LEFT JOIN t_user u on s.user_id = u.id
                 LEFT JOIN t_company co on u.company_id = co.id
         WHERE s.rec_status = 'A' and is_upgrade = 0 and  s.`status` = -2 and gps.num is not null
-        <if test="searchKey != null and searchKey!='' ">
-            and s.scene_name like concat ('%',#{searchKey},'%')
+        <if test="param.searchKey != null and param.searchKey!='' ">
+            and s.scene_name like concat ('%',#{param.searchKey},'%')
         </if>
-        <if test="numList !=null and numList.size >0">
+        <if test="param.numList !=null and param.numList.size >0">
             and  s.num in
-            <foreach collection="numList" item="num" open="(" separator="," close=")">
+            <foreach collection="param.numList" item="num" open="(" separator="," close=")">
                 #{num}
             </foreach>
         </if>
-        <if test="userId !=null and companyId !=null and cooperateSceneCodes !=null and cooperateSceneCodes.size >0">
-            and ( s.user_id = #{userId} or co.id = #{companyId} or s.num in
-            <foreach collection="cooperateSceneCodes" item="coNum" open="(" separator="," close=")">
+        <if test="param.userId !=null and param.companyId !=null and param.cooperateSceneCodes !=null and param.cooperateSceneCodes.size >0">
+            and ( s.user_id = #{param.userId} or co.id = #{param.companyId} or s.num in
+            <foreach collection="param.cooperateSceneCodes" item="coNum" open="(" separator="," close=")">
                 #{coNum}
             </foreach>
             )