|  | @@ -5,12 +5,14 @@
 | 
	
		
			
				|  |  |          <!--@Table sys_payment_config-->
 | 
	
		
			
				|  |  |          <id column="id_" jdbcType="INTEGER" property="id"/>
 | 
	
		
			
				|  |  |          <result column="organ_id_" property="organId"/>
 | 
	
		
			
				|  |  | -        <result column="account_type_" property="accountType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  | +        <result column="account_type_" property="accountType"
 | 
	
		
			
				|  |  | +                typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  |          <result column="pay_type_" property="payType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  |          <result column="yq_mer_no_" property="yqMerNo"/>
 | 
	
		
			
				|  |  |          <result column="hf_mer_no_" property="hfMerNo"/>
 | 
	
		
			
				|  |  |          <result column="type_" property="type"/>
 | 
	
		
			
				|  |  |          <result column="route_scale_" property="routeScale"/>
 | 
	
		
			
				|  |  | +        <result column="type_route_scale_" property="typeRouteScale"/>
 | 
	
		
			
				|  |  |          <result column="organ_name" property="organName"/>
 | 
	
		
			
				|  |  |          <result column="per_scale_" property="perScale"/>
 | 
	
		
			
				|  |  |          <result column="com_scale_" property="comScale"/>
 | 
	
	
		
			
				|  | @@ -23,7 +25,8 @@
 | 
	
		
			
				|  |  |      </resultMap>
 | 
	
		
			
				|  |  |      <sql id="Base_Column_List">
 | 
	
		
			
				|  |  |          <!--@mbg.generated-->
 | 
	
		
			
				|  |  | -        id_, organ_id_,account_type_,pay_type_,yq_mer_no_,hf_mer_no_,type_,route_scale_,create_time_, update_time_
 | 
	
		
			
				|  |  | +        id_, organ_id_,account_type_,pay_type_,yq_mer_no_,hf_mer_no_,type_,route_scale_,type_route_scale_,create_time_,
 | 
	
		
			
				|  |  | +        update_time_
 | 
	
		
			
				|  |  |      </sql>
 | 
	
		
			
				|  |  |      <select id="get" parameterType="java.lang.Integer" resultMap="SysPaymentConfig">
 | 
	
		
			
				|  |  |          <!--@mbg.generated-->
 | 
	
	
		
			
				|  | @@ -60,6 +63,9 @@
 | 
	
		
			
				|  |  |              <if test="routeScale != null">
 | 
	
		
			
				|  |  |                  route_scale_,
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  | +            <if test="typeRouteScale != null">
 | 
	
		
			
				|  |  | +                type_route_scale_,
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  |              <if test="type != null">
 | 
	
		
			
				|  |  |                  type_,
 | 
	
		
			
				|  |  |              </if>
 | 
	
	
		
			
				|  | @@ -89,6 +95,9 @@
 | 
	
		
			
				|  |  |              <if test="routeScale != null">
 | 
	
		
			
				|  |  |                  #{routeScale},
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  | +            <if test="typeRouteScale != null">
 | 
	
		
			
				|  |  | +                #{typeRouteScale},
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  |              <if test="type != null">
 | 
	
		
			
				|  |  |                  #{type},
 | 
	
		
			
				|  |  |              </if>
 | 
	
	
		
			
				|  | @@ -122,6 +131,9 @@
 | 
	
		
			
				|  |  |              <if test="routeScale != null">
 | 
	
		
			
				|  |  |                  route_scale_ = #{routeScale},
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  | +            <if test="typeRouteScale != null">
 | 
	
		
			
				|  |  | +                type_route_scale_ = #{typeRouteScale},
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  |              <if test="type != null">
 | 
	
		
			
				|  |  |                  type_ = #{type},
 | 
	
		
			
				|  |  |              </if>
 | 
	
	
		
			
				|  | @@ -137,15 +149,31 @@
 | 
	
		
			
				|  |  |          ORDER BY id_
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    <sql id="queryCondition">
 | 
	
		
			
				|  |  | +        <where>
 | 
	
		
			
				|  |  | +            <if test="organId!=null">
 | 
	
		
			
				|  |  | +                AND spc.organ_id_=#{organId}
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  | +            <if test='hasTypeRoute != null and hasTypeRoute.toString()=="1".toString()'>
 | 
	
		
			
				|  |  | +                AND spc.type_route_scale_ != ''
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  | +            <if test='hasTypeRoute != null and hasTypeRoute.toString()=="0".toString()'>
 | 
	
		
			
				|  |  | +                AND spc.type_route_scale_ = ''
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  | +        </where>
 | 
	
		
			
				|  |  | +    </sql>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <!-- 分页查询 -->
 | 
	
		
			
				|  |  |      <select id="queryPage" resultMap="SysPaymentConfig" parameterType="map">
 | 
	
		
			
				|  |  |          SELECT spc.*,o.name_ organ_name FROM sys_payment_config spc LEFT JOIN organization o on spc.organ_id_ = o.id_
 | 
	
		
			
				|  |  | +        <include refid="queryCondition"/>
 | 
	
		
			
				|  |  |          <include refid="global.limit"/>
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <!-- 查询当前表的总记录数 -->
 | 
	
		
			
				|  |  |      <select id="queryCount" resultType="int">
 | 
	
		
			
				|  |  | -        SELECT COUNT(*) FROM sys_payment_config
 | 
	
		
			
				|  |  | +        SELECT COUNT(*) FROM sys_payment_config spc
 | 
	
		
			
				|  |  | +        <include refid="queryCondition"/>
 | 
	
		
			
				|  |  |          <include refid="global.limit"/>
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 |