|
|
|
@ -43,20 +43,20 @@ public interface HighOilCardMapper extends HighOilCardMapperExt { |
|
|
|
|
"org_id, org_name, card_no, ", |
|
|
|
|
"amount, amount_consume, ", |
|
|
|
|
"contact_name, contact_phone, ", |
|
|
|
|
"`status`, bind_status, ", |
|
|
|
|
"bind_time, create_time, ", |
|
|
|
|
"update_time, op_user_id, ", |
|
|
|
|
"op_user_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"`status`, get_type, ", |
|
|
|
|
"bind_status, bind_time, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"op_user_id, op_user_name, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{orgId,jdbcType=BIGINT}, #{orgName,jdbcType=VARCHAR}, #{cardNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{amount,jdbcType=DECIMAL}, #{amountConsume,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{contactName,jdbcType=VARCHAR}, #{contactPhone,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{bindStatus,jdbcType=INTEGER}, ", |
|
|
|
|
"#{bindTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{opUserId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{opUserName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{getType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{bindStatus,jdbcType=INTEGER}, #{bindTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{opUserId,jdbcType=BIGINT}, #{opUserName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighOilCard record); |
|
|
|
@ -78,6 +78,7 @@ public interface HighOilCardMapper extends HighOilCardMapperExt { |
|
|
|
|
@Result(column="contact_name", property="contactName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="contact_phone", property="contactPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="get_type", property="getType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="bind_status", property="bindStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="bind_time", property="bindTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -93,7 +94,7 @@ public interface HighOilCardMapper extends HighOilCardMapperExt { |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, company_id, company_name, org_id, org_name, card_no, amount, amount_consume, ", |
|
|
|
|
"contact_name, contact_phone, `status`, bind_status, bind_time, create_time, ", |
|
|
|
|
"contact_name, contact_phone, `status`, get_type, bind_status, bind_time, create_time, ", |
|
|
|
|
"update_time, op_user_id, op_user_name, ext_1, ext_2, ext_3", |
|
|
|
|
"from high_oil_card", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
@ -110,6 +111,7 @@ public interface HighOilCardMapper extends HighOilCardMapperExt { |
|
|
|
|
@Result(column="contact_name", property="contactName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="contact_phone", property="contactPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="get_type", property="getType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="bind_status", property="bindStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="bind_time", property="bindTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -143,6 +145,7 @@ public interface HighOilCardMapper extends HighOilCardMapperExt { |
|
|
|
|
"contact_name = #{contactName,jdbcType=VARCHAR},", |
|
|
|
|
"contact_phone = #{contactPhone,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"get_type = #{getType,jdbcType=INTEGER},", |
|
|
|
|
"bind_status = #{bindStatus,jdbcType=INTEGER},", |
|
|
|
|
"bind_time = #{bindTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|