|
|
|
@ -43,18 +43,18 @@ public interface ApiAmountRecordMapper extends ApiAmountRecordMapperExt { |
|
|
|
|
"before_amount, after_amount, ", |
|
|
|
|
"mch_id, source_type, ", |
|
|
|
|
"source_id, source_order_no, ", |
|
|
|
|
"operator_id, operator_name, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"source_content, operator_id, ", |
|
|
|
|
"operator_name, create_time, ", |
|
|
|
|
"update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{amountType,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{beforeAmount,jdbcType=DECIMAL}, #{afterAmount,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{mchId,jdbcType=VARCHAR}, #{sourceType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{sourceId,jdbcType=BIGINT}, #{sourceOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{sourceContent,jdbcType=VARCHAR}, #{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(ApiAmountRecord record); |
|
|
|
@ -74,6 +74,7 @@ public interface ApiAmountRecordMapper extends ApiAmountRecordMapperExt { |
|
|
|
|
@Result(column="source_type", property="sourceType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="source_id", property="sourceId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="source_order_no", property="sourceOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="source_content", property="sourceContent", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -88,8 +89,8 @@ public interface ApiAmountRecordMapper extends ApiAmountRecordMapperExt { |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, amount_type, amount, before_amount, after_amount, mch_id, source_type, source_id, ", |
|
|
|
|
"source_order_no, operator_id, operator_name, create_time, update_time, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
|
"source_order_no, source_content, operator_id, operator_name, create_time, update_time, ", |
|
|
|
|
"`status`, ext_1, ext_2, ext_3", |
|
|
|
|
"from api_amount_record", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -103,6 +104,7 @@ public interface ApiAmountRecordMapper extends ApiAmountRecordMapperExt { |
|
|
|
|
@Result(column="source_type", property="sourceType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="source_id", property="sourceId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="source_order_no", property="sourceOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="source_content", property="sourceContent", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -133,6 +135,7 @@ public interface ApiAmountRecordMapper extends ApiAmountRecordMapperExt { |
|
|
|
|
"source_type = #{sourceType,jdbcType=INTEGER},", |
|
|
|
|
"source_id = #{sourceId,jdbcType=BIGINT},", |
|
|
|
|
"source_order_no = #{sourceOrderNo,jdbcType=VARCHAR},", |
|
|
|
|
"source_content = #{sourceContent,jdbcType=VARCHAR},", |
|
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|