| | |
| | | <where> |
| | | 1=1 and t2.type=1 and classification = 1 |
| | | <if test="commonPage.communityId!=null and commonPage.communityId!=0"> |
| | | and t.community_id = #{commonPage.communityId} |
| | | and t.community_id = ${commonPage.communityId} |
| | | </if> |
| | | <if test="commonPage.userId!=null"> |
| | | and t.create_user=#{commonPage.userId} |
| | |
| | | |
| | | <select id="statics" resultType="com.panzhihua.common.model.vos.community.rentHouse.PreOrderStatics"> |
| | | select * from ( |
| | | (select count(ding_money) as allOrder from renting_hourse_pre_order where 1=1 <if test="communityId !=null and communityId !=0">and community_id=#{communityId}</if> ) allOrder, |
| | | (select count(ding_money) as allRefuse from renting_hourse_pre_order where (status = 3 or status =4) <if test="communityId !=null and communityId !=0">and community_id=#{communityId}</if>) allRefuse, |
| | | (select count(*) as refuseNum from renting_hourse_pre_order where (status = 3 or status =4) <if test="communityId !=null and communityId !=0">and community_id=#{communityId}</if>) refuseNum, |
| | | (select count(ding_money) as settledOrder from renting_hourse_pre_order where status = 2 <if test="communityId !=null and communityId !=0">and community_id=#{communityId}</if>) settledOrder, |
| | | (select count(ding_money) as deductOrder from renting_hourse_pre_order where status = 1 <if test="communityId !=null and communityId !=0">and community_id=#{communityId}</if>) deductOrder ) |
| | | (select count(ding_money) as allOrder from renting_hourse_pre_order where 1=1 <if test="communityId !=null and communityId !=0">and community_id = ${communityId}</if> ) allOrder, |
| | | (select count(ding_money) as allRefuse from renting_hourse_pre_order where (status = 3 or status =4) <if test="communityId !=null and communityId !=0">and community_id = ${communityId}</if>) allRefuse, |
| | | (select count(*) as refuseNum from renting_hourse_pre_order where (status = 3 or status =4) <if test="communityId !=null and communityId !=0">and community_id = ${communityId}</if>) refuseNum, |
| | | (select count(ding_money) as settledOrder from renting_hourse_pre_order where status = 2 <if test="communityId !=null and communityId !=0">and community_id = ${communityId}</if>) settledOrder, |
| | | (select count(ding_money) as deductOrder from renting_hourse_pre_order where status = 1 <if test="communityId !=null and communityId !=0">and community_id = ${communityId}</if>) deductOrder ) |
| | | </select> |
| | | |
| | | </mapper> |