|
|
|
@ -41,18 +41,18 @@ public interface ApiMemberProductMapper extends ApiMemberProductMapperExt { |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into api_member_product (`name`, type_id, ", |
|
|
|
|
"brand_id, price, ", |
|
|
|
|
"product_id, sort, ", |
|
|
|
|
"operator_id, operator_name, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"cost_price, product_id, ", |
|
|
|
|
"sort, operator_id, ", |
|
|
|
|
"operator_name, create_time, ", |
|
|
|
|
"update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{name,jdbcType=VARCHAR}, #{typeId,jdbcType=INTEGER}, ", |
|
|
|
|
"#{brandId,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{productId,jdbcType=VARCHAR}, #{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})" |
|
|
|
|
"#{costPrice,jdbcType=DECIMAL}, #{productId,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{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); |
|
|
|
@ -68,6 +68,7 @@ public interface ApiMemberProductMapper extends ApiMemberProductMapperExt { |
|
|
|
|
@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="cost_price", property="costPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="product_id", property="productId", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -83,8 +84,8 @@ public interface ApiMemberProductMapper extends ApiMemberProductMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, `name`, type_id, brand_id, price, product_id, sort, operator_id, operator_name, ", |
|
|
|
|
"create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
|
"id, `name`, type_id, brand_id, price, cost_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}" |
|
|
|
|
}) |
|
|
|
@ -94,6 +95,7 @@ public interface ApiMemberProductMapper extends ApiMemberProductMapperExt { |
|
|
|
|
@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="cost_price", property="costPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="product_id", property="productId", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -122,6 +124,7 @@ public interface ApiMemberProductMapper extends ApiMemberProductMapperExt { |
|
|
|
|
"type_id = #{typeId,jdbcType=INTEGER},", |
|
|
|
|
"brand_id = #{brandId,jdbcType=INTEGER},", |
|
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|
|
"cost_price = #{costPrice,jdbcType=DECIMAL},", |
|
|
|
|
"product_id = #{productId,jdbcType=VARCHAR},", |
|
|
|
|
"sort = #{sort,jdbcType=INTEGER},", |
|
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
|