|
|
|
@ -42,19 +42,19 @@ public interface EnTransportCompanyCarMapper extends EnTransportCompanyCarMapper |
|
|
|
|
"insert into en_transport_company_car (transport_id, car_no, ", |
|
|
|
|
"car_type, credentials_img, ", |
|
|
|
|
"person, contact_info, ", |
|
|
|
|
"`status`, create_user, ", |
|
|
|
|
"create_user_name, create_time, ", |
|
|
|
|
"update_user, update_user_name, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"oil_tank_capacity, `status`, ", |
|
|
|
|
"create_user, create_user_name, ", |
|
|
|
|
"create_time, update_user, ", |
|
|
|
|
"update_user_name, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{transportId,jdbcType=BIGINT}, #{carNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{carType,jdbcType=INTEGER}, #{credentialsImg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{person,jdbcType=VARCHAR}, #{contactInfo,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})" |
|
|
|
|
"#{oilTankCapacity,jdbcType=DECIMAL}, #{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(EnTransportCompanyCar record); |
|
|
|
@ -72,6 +72,7 @@ public interface EnTransportCompanyCarMapper extends EnTransportCompanyCarMapper |
|
|
|
|
@Result(column="credentials_img", property="credentialsImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="person", property="person", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="contact_info", property="contactInfo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="oil_tank_capacity", property="oilTankCapacity", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@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), |
|
|
|
@ -87,9 +88,9 @@ public interface EnTransportCompanyCarMapper extends EnTransportCompanyCarMapper |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, transport_id, car_no, car_type, credentials_img, person, contact_info, `status`, ", |
|
|
|
|
"create_user, create_user_name, create_time, update_user, update_user_name, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
|
"id, transport_id, car_no, car_type, credentials_img, person, contact_info, oil_tank_capacity, ", |
|
|
|
|
"`status`, create_user, create_user_name, create_time, update_user, update_user_name, ", |
|
|
|
|
"update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"from en_transport_company_car", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -101,6 +102,7 @@ public interface EnTransportCompanyCarMapper extends EnTransportCompanyCarMapper |
|
|
|
|
@Result(column="credentials_img", property="credentialsImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="person", property="person", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="contact_info", property="contactInfo", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="oil_tank_capacity", property="oilTankCapacity", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@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), |
|
|
|
@ -131,6 +133,7 @@ public interface EnTransportCompanyCarMapper extends EnTransportCompanyCarMapper |
|
|
|
|
"credentials_img = #{credentialsImg,jdbcType=VARCHAR},", |
|
|
|
|
"person = #{person,jdbcType=VARCHAR},", |
|
|
|
|
"contact_info = #{contactInfo,jdbcType=VARCHAR},", |
|
|
|
|
"oil_tank_capacity = #{oilTankCapacity,jdbcType=DECIMAL},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"create_user = #{createUser,jdbcType=BIGINT},", |
|
|
|
|
"create_user_name = #{createUserName,jdbcType=VARCHAR},", |
|
|
|
|