| | |
| | | </insert> |
| | | <!-- 查询费用配置信息 add by wuxw 2018-07-03 --> |
| | | <select id="getFeeConfigInfo" parameterType="Map" resultType="Map"> |
| | | select t.fee_type_cd,t.fee_type_cd feeTypeCd,t.secondary_fee_type_cd,t.secondary_fee_type_cd secondaryFeeTypeCd,s.secondary_fee_type_cd_name,s.secondary_fee_type_cd_name secondaryFeeTypeCdName,t.computing_formula,t.computing_formula |
| | | select t.fee_type_cd,t.fee_type_cd feeTypeCd,t.secondary_fee_type_cd, |
| | | t.secondary_fee_type_cd secondaryFeeTypeCd,s.secondary_fee_type_cd_name,s.secondary_fee_type_cd_name secondaryFeeTypeCdName, |
| | | s.is_contract_fee ,s.is_contract_fee isContractFee, |
| | | t.computing_formula,t.computing_formula |
| | | computingFormula,t.additional_amount,t.additional_amount additionalAmount,t.status_cd,t.status_cd |
| | | statusCd,t.square_price,t.square_price squarePrice,t.is_default,t.is_default isDefault,t.config_id,t.config_id |
| | | configId,t.fee_flag,t.fee_flag feeFlag,t.fee_name,t.fee_name feeName,t.start_time,t.start_time |
| | |
| | | <if test="configId !=null and configId != ''"> |
| | | and t.config_id= #{configId} |
| | | </if> |
| | | <if test="feeFlag !=null and feeFlag != ''"> |
| | | and t.fee_flag= #{feeFlag} |
| | | </if> |
| | | <!-- <if test="feeFlag !=null and feeFlag != ''">--> |
| | | <!-- and t.fee_flag= #{feeFlag}--> |
| | | <!-- </if>--> |
| | | <if test="feeName !=null and feeName != ''"> |
| | | and t.fee_name like '%${feeName}%' |
| | | </if> |
| | |
| | | and t.start_time < #{curTime} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | and t.community_id in (#{communityId}, '9999') |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state = #{state} |
| | | </if> |
| | | <if test="feeTypeCdName != null"> |
| | | and td1.name = #{feeTypeCdName} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | |
| | | and t.end_time > now() |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | and t.community_id in (#{communityId}, '9999') |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectSssBySecondaryFeeTypeCd" parameterType="Map" resultType="Map"> |
| | | select secondary_fee_type_cd secondaryFeeTypeCd, |
| | | fee_type_cd feeTypeCd, |
| | | secondary_fee_type_cd_name secondartyFeeTypeCdName |
| | | from secondary_fee_type_cd_tb where 1 = 1 |
| | | <if test="secondaryFeeTypeCd !=null and secondaryFeeTypeCd != ''"> |
| | | and secondary_fee_type_cd = #{secondaryFeeTypeCd} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectSss" parameterType="Map" resultType="Map"> |
| | | SELECT |