zhanghao 1 сар өмнө
parent
commit
8e5d014e09

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

@@ -18,7 +18,7 @@
             type
         FROM
             large_plat_housing_land
-        WHERE app_org = #{appOrg}
+        <if test="appOrg != '0000'"> WHERE app_org = #{appOrg} </if>
         GROUP BY
             type
     </select>
@@ -30,7 +30,7 @@
             COUNT( CASE WHEN ownership_flag = 1 THEN 1 END ) AS own
         FROM
             large_plat_housing_land
-        WHERE app_org = #{appOrg}
+        <if test="appOrg != '0000'"> WHERE app_org = #{appOrg} </if>
     </select>
 
     <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
         FROM
             large_plat_housing_land
-        WHERE app_org = #{appOrg}
+        <if test="appOrg != '0000'"> WHERE app_org = #{appOrg} </if>
     </select>
 
     <insert id="upload" parameterType="com.project.zcustom.domain.addional.LargeHousingLand">