|
|
|
@ -34,9 +34,9 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
|
|
|
|
|
@Delete({ |
|
|
|
|
"delete from en_oil_management", |
|
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
int deleteByPrimaryKey(Integer id); |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into en_oil_management (`type`, transport_car_id, ", |
|
|
|
@ -67,7 +67,7 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
|
|
|
|
|
@SelectProvider(type=EnOilManagementSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="transport_car_id", property="transportCarId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="transport_car_no", property="transportCarNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -95,10 +95,10 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
"out_quantity, remark, `status`, create_user, create_user_name, create_time, ", |
|
|
|
|
"update_user, update_user_name, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"from en_oil_management", |
|
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="transport_car_id", property="transportCarId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="transport_car_no", property="transportCarNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -118,7 +118,7 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
|
}) |
|
|
|
|
EnOilManagement selectByPrimaryKey(Integer id); |
|
|
|
|
EnOilManagement selectByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@UpdateProvider(type=EnOilManagementSqlProvider.class, method="updateByExampleSelective") |
|
|
|
|
int updateByExampleSelective(@Param("record") EnOilManagement record, @Param("example") EnOilManagementExample example); |
|
|
|
@ -149,7 +149,7 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
|
"where id = #{id,jdbcType=INTEGER}" |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
int updateByPrimaryKey(EnOilManagement record); |
|
|
|
|
} |