瀏覽代碼

小列表居住地址

LIVE_YE 3 年之前
父節點
當前提交
537dd41117

+ 16 - 0
boman-web-core/src/main/resources/mapper/CzrkJzdzMapper.xml

@@ -288,4 +288,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectCzrkJzdzListPage" parameterType="Integer" resultMap="CzrkJzdzResult">
         select * from czrk_jzdz where village_id = '' and  now_in != ''  limit   #{startNum}, #{endNum}
     </select>
+
+    <select id="selectCzrkJzdzListByDeptId" resultMap="CzrkJzdzResult">
+        select id, dept_id, create_time, status from czrk_jzdz
+        where 1=1
+        <if test="deptIdList != null  and deptIdList.size() > 0">
+            and dept_id in
+            <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
+                #{deptId}
+            </foreach>
+        </if>
+    </select>
+    <select id="selectCzrkJzdzListByRegionId" resultMap="CzrkJzdzResult">
+        elect id, dept_id, region_id, region, town_id, town, village_id, village create_time, status
+        from czrk_jzdz
+        where region_id = #{regionId};
+    </select>
 </mapper>

+ 15 - 0
boman-web-core/src/main/resources/mapper/CzrkMapper.xml

@@ -1143,4 +1143,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectCzrkVo"/>
         where is_confirm = 'Y' and (village_towns is null or village_towns = '') and is_del ='N'
     </select>
+    <select id="selectCzrkListByDeptId" resultMap="CzrkResult">
+        select id, dept_id, create_time, is_del from czrk
+        where 1=1
+        <if test="deptIdList != null  and deptIdList.size() > 0">
+            and dept_id in
+            <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
+                #{deptId}
+            </foreach>
+        </if>
+    </select>
+    <select id="getAllCzrkRegionId" resultMap="CzrkResult">
+        select id, dept_id, region_id, region, village_towns_id, village_towns
+                 , village_id, village create_time, is_del, area_id from czrk
+        where region_id = #{regionId};
+    </select>
 </mapper>