|
|
|
@ -43,12 +43,14 @@ public interface ApiMerchantsMapper extends ApiMerchantsMapperExt { |
|
|
|
|
"phone, api_key, mch_id, ", |
|
|
|
|
"operator_id, operator_name, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"values (#{merchantName,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{phone,jdbcType=VARCHAR}, #{apiKey,jdbcType=VARCHAR}, #{mchId,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(ApiMerchants record); |
|
|
|
@ -69,6 +71,7 @@ public interface ApiMerchantsMapper extends ApiMerchantsMapperExt { |
|
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@ -78,7 +81,7 @@ public interface ApiMerchantsMapper extends ApiMerchantsMapperExt { |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, merchant_name, user_name, phone, api_key, mch_id, operator_id, operator_name, ", |
|
|
|
|
"create_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"from api_merchants", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -93,6 +96,7 @@ public interface ApiMerchantsMapper extends ApiMerchantsMapperExt { |
|
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@ -119,6 +123,7 @@ public interface ApiMerchantsMapper extends ApiMerchantsMapperExt { |
|
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
|