|
@@ -20,10 +20,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="growthValue" column="growth_value" />
|
|
|
<result property="date" column="date" />
|
|
|
<result property="deductionGrowthValue" column="deduction_growth_value" />
|
|
|
+ <result property="memberCondit" column="member_condit" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCustomerGradeSettingVo">
|
|
|
- select id, grade, discount_way, gasoil_discount_litre, dieseloil_discount_litre, grade_type, gasoil_consume, gasoil_growth_value, dieseloil_consume, dieseloil_growth_value, member_recharge, member_growth_value, growth_value, date, deduction_growth_value from customer_grade_setting
|
|
|
+ select id, grade, discount_way, gasoil_discount_litre, dieseloil_discount_litre, grade_type, gasoil_consume, gasoil_growth_value, dieseloil_consume, dieseloil_growth_value, member_recharge, member_growth_value, growth_value, date, deduction_growth_value, member_condit from customer_grade_setting
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCustomerGradeSettingList" parameterType="CustomerGradeSetting" resultMap="CustomerGradeSettingResult">
|
|
@@ -43,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="growthValue != null and growthValue != ''"> and growth_value = #{growthValue}</if>
|
|
|
<if test="date != null "> and date = #{date}</if>
|
|
|
<if test="deductionGrowthValue != null and deductionGrowthValue != ''"> and deduction_growth_value = #{deductionGrowthValue}</if>
|
|
|
+ <if test="memberCondit != null and memberCondit != ''"> and member_condit = #{memberCondit}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -68,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="growthValue != null">growth_value,</if>
|
|
|
<if test="date != null">date,</if>
|
|
|
<if test="deductionGrowthValue != null">deduction_growth_value,</if>
|
|
|
+ <if test="memberCondit != null">member_condit,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="grade != null">#{grade},</if>
|
|
@@ -84,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="growthValue != null">#{growthValue},</if>
|
|
|
<if test="date != null">#{date},</if>
|
|
|
<if test="deductionGrowthValue != null">#{deductionGrowthValue},</if>
|
|
|
+ <if test="memberCondit != null">#{memberCondit},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -104,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="growthValue != null">growth_value = #{growthValue},</if>
|
|
|
<if test="date != null">date = #{date},</if>
|
|
|
<if test="deductionGrowthValue != null">deduction_growth_value = #{deductionGrowthValue},</if>
|
|
|
+ <if test="memberCondit != null">member_condit = #{memberCondit},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|