瀏覽代碼

pad楼宇 修改

zhanghao 1 月之前
父節點
當前提交
8e5d014e09
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/resources/mapper/zcustom/logistics/PlatHousingLandMapper.xml

+ 3 - 3
src/main/resources/mapper/zcustom/logistics/PlatHousingLandMapper.xml

@@ -18,7 +18,7 @@
             type
             type
         FROM
         FROM
             large_plat_housing_land
             large_plat_housing_land
-        WHERE app_org = #{appOrg}
+        <if test="appOrg != '0000'"> WHERE app_org = #{appOrg} </if>
         GROUP BY
         GROUP BY
             type
             type
     </select>
     </select>
@@ -30,7 +30,7 @@
             COUNT( CASE WHEN ownership_flag = 1 THEN 1 END ) AS own
             COUNT( CASE WHEN ownership_flag = 1 THEN 1 END ) AS own
         FROM
         FROM
             large_plat_housing_land
             large_plat_housing_land
-        WHERE app_org = #{appOrg}
+        <if test="appOrg != '0000'"> WHERE app_org = #{appOrg} </if>
     </select>
     </select>
 
 
     <select id="getInvestFinishState" parameterType="String" resultType="map">
     <select id="getInvestFinishState" parameterType="String" resultType="map">
@@ -39,7 +39,7 @@
             COUNT( CASE WHEN ( investment_plan_flag = 1 AND YEAR ( construction_time ) >= YEAR ( CURDATE())) THEN 1 END ) AS invest
             COUNT( CASE WHEN ( investment_plan_flag = 1 AND YEAR ( construction_time ) >= YEAR ( CURDATE())) THEN 1 END ) AS invest
         FROM
         FROM
             large_plat_housing_land
             large_plat_housing_land
-        WHERE app_org = #{appOrg}
+        <if test="appOrg != '0000'"> WHERE app_org = #{appOrg} </if>
     </select>
     </select>
 
 
     <insert id="upload" parameterType="com.project.zcustom.domain.addional.LargeHousingLand">
     <insert id="upload" parameterType="com.project.zcustom.domain.addional.LargeHousingLand">