|
|
|
@@ -10,10 +10,11 @@ |
|
|
|
<result column="cert_path" jdbcType="VARCHAR" property="certPath"/> |
|
|
|
<result column="type" jdbcType="INTEGER" property="type"/> |
|
|
|
<result column="share" jdbcType="INTEGER" property="share"/> |
|
|
|
<result column="rate" jdbcType="INTEGER" property="rate"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`mch_id`,`parent_mch_id`,`api_key`,`notify_url`,`cert_path`,`type`,`share` |
|
|
|
`id`,`mch_id`,`parent_mch_id`,`api_key`,`notify_url`,`cert_path`,`type`,`share`,`rate` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -48,6 +49,9 @@ |
|
|
|
<if test=" null != share "> |
|
|
|
and `share` = #{share} |
|
|
|
</if> |
|
|
|
<if test=" null != rate "> |
|
|
|
and `rate` = #{rate} |
|
|
|
</if> |
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
|