|
|
|
@@ -8,11 +8,12 @@ |
|
|
|
<result column="api_key" jdbcType="VARCHAR" property="apiKey"/> |
|
|
|
<result column="notify_url" jdbcType="VARCHAR" property="notifyUrl"/> |
|
|
|
<result column="cert_path" jdbcType="VARCHAR" property="certPath"/> |
|
|
|
<result column="type" jdbcType="VARCHAR" property="type"/> |
|
|
|
<result column="type" jdbcType="INTEGER" property="type"/> |
|
|
|
<result column="share" jdbcType="INTEGER" property="share"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`mch_id`,`parent_mch_id`,`api_key`,`notify_url`,`cert_path`,`type` |
|
|
|
`id`,`mch_id`,`parent_mch_id`,`api_key`,`notify_url`,`cert_path`,`type`,`share` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -42,7 +43,10 @@ |
|
|
|
and `cert_path` like concat('%', #{certPath},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != type "> |
|
|
|
and `type` like concat('%', #{type},'%') |
|
|
|
and `type` = #{type} |
|
|
|
</if> |
|
|
|
<if test=" null != share "> |
|
|
|
and `share` = #{share} |
|
|
|
</if> |
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
|