|
|
|
@ -39,24 +39,26 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into en_oil_management (`type`, transport_car_id, ", |
|
|
|
|
"transport_car_no, oil_type, ", |
|
|
|
|
"supplier, num, before_num, ", |
|
|
|
|
"insert into en_oil_management (oil_depots_id, `type`, ", |
|
|
|
|
"transport_car_id, transport_car_no, ", |
|
|
|
|
"oil_type, supplier, ", |
|
|
|
|
"num, before_num, ", |
|
|
|
|
"change_num, remark, ", |
|
|
|
|
"img, `status`, create_user, ", |
|
|
|
|
"create_user_name, create_time, ", |
|
|
|
|
"update_user, update_user_name, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{type,jdbcType=INTEGER}, #{transportCarId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{transportCarNo,jdbcType=VARCHAR}, #{oilType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{supplier,jdbcType=VARCHAR}, #{num,jdbcType=DECIMAL}, #{beforeNum,jdbcType=DECIMAL}, ", |
|
|
|
|
"img, sign_img, `status`, ", |
|
|
|
|
"create_user, create_user_name, ", |
|
|
|
|
"create_time, update_user, ", |
|
|
|
|
"update_user_name, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{oilDepotsId,jdbcType=BIGINT}, #{type,jdbcType=INTEGER}, ", |
|
|
|
|
"#{transportCarId,jdbcType=BIGINT}, #{transportCarNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{oilType,jdbcType=INTEGER}, #{supplier,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{num,jdbcType=DECIMAL}, #{beforeNum,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{changeNum,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{img,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createUser,jdbcType=BIGINT}, ", |
|
|
|
|
"#{createUserName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateUser,jdbcType=BIGINT}, #{updateUserName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{img,jdbcType=VARCHAR}, #{signImg,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createUser,jdbcType=BIGINT}, #{createUserName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=BIGINT}, ", |
|
|
|
|
"#{updateUserName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(EnOilManagement record); |
|
|
|
@ -68,6 +70,7 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
@SelectProvider(type=EnOilManagementSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="oil_depots_id", property="oilDepotsId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@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), |
|
|
|
@ -78,6 +81,7 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
@Result(column="change_num", property="changeNum", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="sign_img", property="signImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="create_user_name", property="createUserName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -93,14 +97,15 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, `type`, transport_car_id, transport_car_no, oil_type, supplier, num, before_num, ", |
|
|
|
|
"change_num, remark, img, `status`, create_user, create_user_name, create_time, ", |
|
|
|
|
"update_user, update_user_name, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"id, oil_depots_id, `type`, transport_car_id, transport_car_no, oil_type, supplier, ", |
|
|
|
|
"num, before_num, change_num, remark, img, sign_img, `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=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="oil_depots_id", property="oilDepotsId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@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), |
|
|
|
@ -111,6 +116,7 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
@Result(column="change_num", property="changeNum", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="sign_img", property="signImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_user", property="createUser", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="create_user_name", property="createUserName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -135,7 +141,8 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"update en_oil_management", |
|
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
"set oil_depots_id = #{oilDepotsId,jdbcType=BIGINT},", |
|
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
"transport_car_id = #{transportCarId,jdbcType=BIGINT},", |
|
|
|
|
"transport_car_no = #{transportCarNo,jdbcType=VARCHAR},", |
|
|
|
|
"oil_type = #{oilType,jdbcType=INTEGER},", |
|
|
|
@ -145,6 +152,7 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
"change_num = #{changeNum,jdbcType=DECIMAL},", |
|
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
|
"sign_img = #{signImg,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"create_user = #{createUser,jdbcType=BIGINT},", |
|
|
|
|
"create_user_name = #{createUserName,jdbcType=VARCHAR},", |
|
|
|
|