|
|
|
@ -203,14 +203,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<select id="selectCountBF" resultType="com.ruoyi.system.domain.count.PropertyStateCountDTO">
|
|
|
|
|
SELECT
|
|
|
|
|
SUM (CASE WHEN destory_type = 1 THEN 1 ELSE 0 END) AS ybf,
|
|
|
|
|
SUM (CASE WHEN destory_type = 0 THEN 1 ELSE 0 END) AS wbf
|
|
|
|
|
SUM (CASE WHEN destory_type = '1' THEN 1 ELSE 0 END) AS ybf,
|
|
|
|
|
SUM (CASE WHEN destory_type = '0' THEN 1 ELSE 0 END) AS wbf
|
|
|
|
|
FROM td_property_info
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectCountXH" resultType="com.ruoyi.system.domain.count.PropertyDesCountDTO">
|
|
|
|
|
SELECT
|
|
|
|
|
SUM (CASE WHEN destory_state = 1 THEN 1 ELSE 0 END) AS yxh,
|
|
|
|
|
SUM (CASE WHEN destory_state = '1' THEN 1 ELSE 0 END) AS yxh,
|
|
|
|
|
SUM (CASE WHEN destory_state='' THEN 1 ELSE 0 END) AS wxh
|
|
|
|
|
FROM td_property_info
|
|
|
|
|
</select>
|
|
|
|
|