| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="feeComboMemberV1ServiceDaoImpl">
- <!-- 保存套餐成员信息 add by wuxw 2018-07-03 -->
- <insert id="saveFeeComboMemberInfo" parameterType="Map">
- insert into fee_combo_member(
- config_id,combo_id,community_id,member_id
- ) values (
- #{configId},#{comboId},#{communityId},#{memberId}
- )
- </insert>
- <!-- 查询套餐成员信息 add by wuxw 2018-07-03 -->
- <select id="getFeeComboMemberInfo" parameterType="Map" resultType="Map">
- select t.config_id,t.config_id configId,t.combo_id,t.combo_id comboId,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.member_id,t.member_id memberId
- from fee_combo_member t
- where 1 =1
- <if test="configId !=null and configId != ''">
- and t.config_id= #{configId}
- </if>
- <if test="comboId !=null and comboId != ''">
- and t.combo_id= #{comboId}
- </if>
- <if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
- </if>
- <if test="communityId !=null and communityId != ''">
- and t.community_id= #{communityId}
- </if>
- <if test="memberId !=null and memberId != ''">
- and t.member_id= #{memberId}
- </if>
- order by t.create_time desc
- <if test="page != -1 and page != null ">
- limit #{page}, #{row}
- </if>
- </select>
- <!-- 修改套餐成员信息 add by wuxw 2018-07-03 -->
- <update id="updateFeeComboMemberInfo" parameterType="Map">
- update fee_combo_member t set t.status_cd = #{statusCd}
- <if test="newBId != null and newBId != ''">
- ,t.b_id = #{newBId}
- </if>
- <if test="configId !=null and configId != ''">
- , t.config_id= #{configId}
- </if>
- <if test="communityId !=null and communityId != ''">
- , t.community_id= #{communityId}
- </if>
- where 1=1 <if test="comboId !=null and comboId != ''">
- and t.combo_id= #{comboId}
- </if>
- <if test="memberId !=null and memberId != ''">
- and t.member_id= #{memberId}
- </if>
- </update>
- <!-- 查询套餐成员数量 add by wuxw 2018-07-03 -->
- <select id="queryFeeComboMembersCount" parameterType="Map" resultType="Map">
- select count(1) count
- from fee_combo_member t
- where 1 =1
- <if test="configId !=null and configId != ''">
- and t.config_id= #{configId}
- </if>
- <if test="comboId !=null and comboId != ''">
- and t.combo_id= #{comboId}
- </if>
- <if test="statusCd !=null and statusCd != ''">
- and t.status_cd= #{statusCd}
- </if>
- <if test="communityId !=null and communityId != ''">
- and t.community_id= #{communityId}
- </if>
- <if test="memberId !=null and memberId != ''">
- and t.member_id= #{memberId}
- </if>
- </select>
- </mapper>
|