| 
					
				 | 
			
			
				@@ -11,7 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="discountAmtStart"    column="discount_amt_start"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="discountAmtEnd"    column="discount_amt_end"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="presentAmt"    column="present_amt"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <result property="oilName"    column="oil_name"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="cardType"    column="car_type"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="status"    column="status"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="cardOilsType"    column="card_oils_type"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="discountTimeSetting"    column="discount_time_setting"    /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <sql id="selectCustomerCardSettingDetailVo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        select id, parent_id, setting_rule_type, discount_amt_start,discount_amt_end, present_amt,oil_name,status from customer_card_setting_detail 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select id, parent_id, setting_rule_type, discount_amt_start,discount_amt_end, present_amt,car_type,status from customer_card_setting_detail 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectCustomerCardSettingDetailList" parameterType="CustomerCardSettingDetail" resultMap="CustomerCardSettingDetailResult"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="discountAmtStart != null "> and discount_amt_start = #{discountAmtStart}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="discountAmtEnd != null "> and discount_amt_end = #{discountAmtEnd}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="presentAmt != null "> and present_amt = #{presentAmt}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <if test="oilName != null "> and oil_name = #{oilName}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="cardType != null "> and car_type = #{cardType}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="status != null "> and status = #{status}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="stationIdList != null "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 and station_id in 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="listDetailInfo" parameterType="CustomerCardSetting" resultMap="CustomerCardSettingDetailResult"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        SELECT a.setting_rule_type,a.discount_amt_start,a.discount_amt_end,a.present_amt,oil_name,b.card_oils_type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        SELECT a.setting_rule_type,a.discount_amt_start,a.discount_amt_end,a.present_amt,car_type,b.card_oils_type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         b.discount_time_setting,b.discount_time_type,b.is_discount_coupon,b.is_market,b.is_grade_setting,b.present_scale,b.enjoy_integral_multiple 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from customer_card_setting_detail a join customer_card_setting b on a.parent_id= b.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <where> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <!--            <if test="discountAmtStart != null "> and discount_amt_start = #{discountAmtStart}</if>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <!--            <if test="discountAmtEnd != null "> and discount_amt_end = #{discountAmtEnd}</if>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <!--            <if test="presentAmt != null "> and present_amt = #{presentAmt}</if>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<!--            <if test="oilName != null "> and oil_name = #{oilName}</if>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<!--            <if test="cardType != null "> and car_type = #{cardType}</if>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <!--            <if test="status != null "> and status = #{status}</if>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="stationIdList != null "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 and station_id in 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="discountAmtStart != null">discount_amt_start,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="discountAmtEnd != null">discount_amt_end,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="presentAmt != null">present_amt,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <if test="oilName != null">oil_name,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="cardType != null">car_type,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="status != null">status,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -94,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="discountAmtStart != null">#{discountAmtStart},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="discountAmtEnd != null">#{discountAmtEnd},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="presentAmt != null">#{presentAmt},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <if test="oilName != null">#{oilName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="cardType != null">#{cardType},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="status != null">#{status},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </insert> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -107,8 +107,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="discountAmtStart != null">discount_amt_start = #{discountAmtStart},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="discountAmtEnd != null">discount_amt_end = #{discountAmtEnd},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="presentAmt != null">present_amt = #{presentAmt},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <if test="oilName != null">#{oilName},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <if test="status != null">#{status},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="cardType != null">car_type = #{cardType},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="status != null">status = #{status},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </update> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -131,7 +131,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="discountAmtStart != null "> and discount_amt_start = #{discountAmtStart}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="discountAmtEnd != null "> and discount_amt_end = #{discountAmtEnd}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="presentAmt != null "> and present_amt = #{presentAmt}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <if test="oilName != null"> and oil_name = #{oilName}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="cardType != null"> and car_type = #{cardType}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="status != null"> and status = #{status}</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </delete> 
			 |