|
|
|
@ -39,18 +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, sign_img, `status`, ", |
|
|
|
|
"create_user, create_user_name, ", |
|
|
|
|
"create_time, update_user, ", |
|
|
|
|
"update_user_name, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
"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}, ", |
|
|
|
|
======= |
|
|
|
|
"values (#{type,jdbcType=INTEGER}, #{transportCarId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{transportCarNo,jdbcType=VARCHAR}, #{oilType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{supplier,jdbcType=VARCHAR}, #{num,jdbcType=DECIMAL}, #{beforeNum,jdbcType=DECIMAL}, ", |
|
|
|
|
>>>>>>> 0d53478356273b9edc2a9c765bde3c6ddf2ac177 |
|
|
|
|
"#{changeNum,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{img,jdbcType=VARCHAR}, #{signImg,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createUser,jdbcType=BIGINT}, #{createUserName,jdbcType=VARCHAR}, ", |
|
|
|
@ -68,6 +76,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), |
|
|
|
@ -94,14 +103,20 @@ public interface EnOilManagementMapper extends EnOilManagementMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
"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, ", |
|
|
|
|
======= |
|
|
|
|
"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, ", |
|
|
|
|
>>>>>>> 0d53478356273b9edc2a9c765bde3c6ddf2ac177 |
|
|
|
|
"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), |
|
|
|
@ -137,7 +152,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},", |
|
|
|
|