|
|
@ -41,15 +41,17 @@ public interface GoodsPresentRecordMapper extends GoodsPresentRecordMapperExt { |
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into goods_present_record (present_id, order_no, ", |
|
|
|
"insert into goods_present_record (present_id, order_no, ", |
|
|
|
"order_id, child_order_id, ", |
|
|
|
"order_id, child_order_id, ", |
|
|
|
"`type`, source_id, num, ", |
|
|
|
"`type`, source_id, source_name, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"num, create_time, ", |
|
|
|
"op_id, op_name, `status`, ", |
|
|
|
"update_time, op_id, ", |
|
|
|
|
|
|
|
"op_name, `status`, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{presentId,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{presentId,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{orderId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
"#{orderId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
"#{type,jdbcType=INTEGER}, #{sourceId,jdbcType=BIGINT}, #{num,jdbcType=INTEGER}, ", |
|
|
|
"#{type,jdbcType=INTEGER}, #{sourceId,jdbcType=BIGINT}, #{sourceName,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{num,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{opId,jdbcType=BIGINT}, ", |
|
|
|
|
|
|
|
"#{opName,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
@ -68,6 +70,7 @@ public interface GoodsPresentRecordMapper extends GoodsPresentRecordMapperExt { |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="source_id", property="sourceId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="source_id", property="sourceId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="source_name", property="sourceName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -82,8 +85,8 @@ public interface GoodsPresentRecordMapper extends GoodsPresentRecordMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, present_id, order_no, order_id, child_order_id, `type`, source_id, num, ", |
|
|
|
"id, present_id, order_no, order_id, child_order_id, `type`, source_id, source_name, ", |
|
|
|
"create_time, update_time, op_id, op_name, `status`, ext_1, ext_2, ext_3", |
|
|
|
"num, create_time, update_time, op_id, op_name, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from goods_present_record", |
|
|
|
"from goods_present_record", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -95,6 +98,7 @@ public interface GoodsPresentRecordMapper extends GoodsPresentRecordMapperExt { |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="source_id", property="sourceId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="source_id", property="sourceId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="source_name", property="sourceName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -124,6 +128,7 @@ public interface GoodsPresentRecordMapper extends GoodsPresentRecordMapperExt { |
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
"source_id = #{sourceId,jdbcType=BIGINT},", |
|
|
|
"source_id = #{sourceId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"source_name = #{sourceName,jdbcType=VARCHAR},", |
|
|
|
"num = #{num,jdbcType=INTEGER},", |
|
|
|
"num = #{num,jdbcType=INTEGER},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|