old mode 100644
new mode 100755
| | |
| | | <!-- 查询费用属性信息 add by wuxw 2018-07-03 --> |
| | | <select id="getFeeAttrInfo" parameterType="Map" resultType="Map"> |
| | | select t.attr_id,t.attr_id attrId,t.spec_cd,t.spec_cd specCd,t.status_cd,t.status_cd |
| | | statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.fee_id,t.fee_id feeId,t.value |
| | | statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.fee_id,t.fee_id feeId,t.value, |
| | | td.name specCdName |
| | | from pay_fee_attrs t |
| | | left join t_dict td on t.spec_cd = td.status_cd and td.table_name = 'pay_fee_attrs' and td.table_columns = 'spec_cd' |
| | | where 1 =1 |
| | | <if test="attrId !=null and attrId != ''"> |
| | | and t.attr_id= #{attrId} |
| | |
| | | </if> |
| | | <if test="feeId !=null and feeId != ''"> |
| | | and t.fee_id= #{feeId} |
| | | </if> |
| | | <if test="feeIds !=null"> |
| | | and t.fee_id in |
| | | <foreach collection="feeIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="value !=null and value != ''"> |
| | | and t.value= #{value} |
| | |
| | | |
| | | <!-- 批量插入费用 --> |
| | | <insert id="saveFeeAttrs" parameterType="Map"> |
| | | insert into pay_fee_attrs (attr_id,operate,spec_cd,community_id,b_id,fee_id,value) |
| | | insert into pay_fee_attrs (attr_id,status_cd,spec_cd,community_id,b_id,fee_id,value) |
| | | VALUES |
| | | <foreach collection="feeAttrPos" item="item" separator=","> |
| | | (#{item.attrId},'0',#{item.specCd},#{item.communityId},'-1',#{item.feeId},#{item.value}) |