|
|
|
@ -39,18 +39,18 @@ public interface ApiMemberProductMapper extends ApiMemberProductMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into api_member_product (`type`, price, ", |
|
|
|
|
"product_id, sort, ", |
|
|
|
|
"operator_id, operator_name, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"values (#{type,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{productId,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER}, ", |
|
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"insert into api_member_product (type_id, brand_id, ", |
|
|
|
|
"price, product_id, ", |
|
|
|
|
"sort, operator_id, ", |
|
|
|
|
"operator_name, create_time, ", |
|
|
|
|
"update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{typeId,jdbcType=INTEGER}, #{brandId,jdbcType=INTEGER}, ", |
|
|
|
|
"#{price,jdbcType=DECIMAL}, #{productId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{sort,jdbcType=INTEGER}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(ApiMemberProduct record); |
|
|
|
@ -62,7 +62,8 @@ public interface ApiMemberProductMapper extends ApiMemberProductMapperExt { |
|
|
|
|
@SelectProvider(type=ApiMemberProductSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="type_id", property="typeId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="product_id", property="productId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -79,14 +80,15 @@ public interface ApiMemberProductMapper extends ApiMemberProductMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, `type`, price, product_id, sort, operator_id, operator_name, create_time, ", |
|
|
|
|
"update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"id, type_id, brand_id, price, product_id, sort, operator_id, operator_name, ", |
|
|
|
|
"create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"from api_member_product", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="type_id", property="typeId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="product_id", property="productId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
|
|
|
@ -112,7 +114,8 @@ public interface ApiMemberProductMapper extends ApiMemberProductMapperExt { |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"update api_member_product", |
|
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
"set type_id = #{typeId,jdbcType=INTEGER},", |
|
|
|
|
"brand_id = #{brandId,jdbcType=INTEGER},", |
|
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|
|
"product_id = #{productId,jdbcType=BIGINT},", |
|
|
|
|
"sort = #{sort,jdbcType=INTEGER},", |
|
|
|
|