|
|
@ -3,13 +3,16 @@ |
|
|
|
<mapper namespace="com.ccsens.logistics.persist.mapper.LogisticsCarRecordMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.logistics.bean.po.LogisticsCarRecord"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="car_type" jdbcType="TINYINT" property="carType" /> |
|
|
|
<result column="car_type" jdbcType="VARCHAR" property="carType" /> |
|
|
|
<result column="license_plate" jdbcType="VARCHAR" property="licensePlate" /> |
|
|
|
<result column="plate_type" jdbcType="TINYINT" property="plateType" /> |
|
|
|
<result column="plate_type" jdbcType="VARCHAR" property="plateType" /> |
|
|
|
<result column="files_id" jdbcType="VARCHAR" property="filesId" /> |
|
|
|
<result column="car_weight" jdbcType="BIGINT" property="carWeight" /> |
|
|
|
<result column="in_out" jdbcType="TINYINT" property="inOut" /> |
|
|
|
<result column="car_brand" jdbcType="VARCHAR" property="carBrand" /> |
|
|
|
<result column="picture" jdbcType="VARCHAR" property="picture" /> |
|
|
|
<result column="closeup_pic" jdbcType="VARCHAR" property="closeupPic" /> |
|
|
|
<result column="cam_id" jdbcType="VARCHAR" property="camId" /> |
|
|
|
<result column="warehouse_id" jdbcType="BIGINT" property="warehouseId" /> |
|
|
|
<result column="record_time" jdbcType="BIGINT" property="recordTime" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
@ -76,7 +79,8 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, car_type, license_plate, plate_type, files_id, car_weight, in_out, car_brand, |
|
|
|
warehouse_id, record_time, created_at, updated_at, rec_status |
|
|
|
picture, closeup_pic, cam_id, warehouse_id, record_time, created_at, updated_at, |
|
|
|
rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.logistics.bean.po.LogisticsCarRecordExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -111,12 +115,14 @@ |
|
|
|
<insert id="insert" parameterType="com.ccsens.logistics.bean.po.LogisticsCarRecord"> |
|
|
|
insert into t_logistics_car_record (id, car_type, license_plate, |
|
|
|
plate_type, files_id, car_weight, |
|
|
|
in_out, car_brand, warehouse_id, |
|
|
|
in_out, car_brand, picture, |
|
|
|
closeup_pic, cam_id, warehouse_id, |
|
|
|
record_time, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{carType,jdbcType=TINYINT}, #{licensePlate,jdbcType=VARCHAR}, |
|
|
|
#{plateType,jdbcType=TINYINT}, #{filesId,jdbcType=VARCHAR}, #{carWeight,jdbcType=BIGINT}, |
|
|
|
#{inOut,jdbcType=TINYINT}, #{carBrand,jdbcType=VARCHAR}, #{warehouseId,jdbcType=BIGINT}, |
|
|
|
values (#{id,jdbcType=BIGINT}, #{carType,jdbcType=VARCHAR}, #{licensePlate,jdbcType=VARCHAR}, |
|
|
|
#{plateType,jdbcType=VARCHAR}, #{filesId,jdbcType=VARCHAR}, #{carWeight,jdbcType=BIGINT}, |
|
|
|
#{inOut,jdbcType=TINYINT}, #{carBrand,jdbcType=VARCHAR}, #{picture,jdbcType=VARCHAR}, |
|
|
|
#{closeupPic,jdbcType=VARCHAR}, #{camId,jdbcType=VARCHAR}, #{warehouseId,jdbcType=BIGINT}, |
|
|
|
#{recordTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
@ -147,6 +153,15 @@ |
|
|
|
<if test="carBrand != null"> |
|
|
|
car_brand, |
|
|
|
</if> |
|
|
|
<if test="picture != null"> |
|
|
|
picture, |
|
|
|
</if> |
|
|
|
<if test="closeupPic != null"> |
|
|
|
closeup_pic, |
|
|
|
</if> |
|
|
|
<if test="camId != null"> |
|
|
|
cam_id, |
|
|
|
</if> |
|
|
|
<if test="warehouseId != null"> |
|
|
|
warehouse_id, |
|
|
|
</if> |
|
|
@ -168,13 +183,13 @@ |
|
|
|
#{id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="carType != null"> |
|
|
|
#{carType,jdbcType=TINYINT}, |
|
|
|
#{carType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="licensePlate != null"> |
|
|
|
#{licensePlate,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="plateType != null"> |
|
|
|
#{plateType,jdbcType=TINYINT}, |
|
|
|
#{plateType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="filesId != null"> |
|
|
|
#{filesId,jdbcType=VARCHAR}, |
|
|
@ -188,6 +203,15 @@ |
|
|
|
<if test="carBrand != null"> |
|
|
|
#{carBrand,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="picture != null"> |
|
|
|
#{picture,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="closeupPic != null"> |
|
|
|
#{closeupPic,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="camId != null"> |
|
|
|
#{camId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="warehouseId != null"> |
|
|
|
#{warehouseId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -218,13 +242,13 @@ |
|
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.carType != null"> |
|
|
|
car_type = #{record.carType,jdbcType=TINYINT}, |
|
|
|
car_type = #{record.carType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.licensePlate != null"> |
|
|
|
license_plate = #{record.licensePlate,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.plateType != null"> |
|
|
|
plate_type = #{record.plateType,jdbcType=TINYINT}, |
|
|
|
plate_type = #{record.plateType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.filesId != null"> |
|
|
|
files_id = #{record.filesId,jdbcType=VARCHAR}, |
|
|
@ -238,6 +262,15 @@ |
|
|
|
<if test="record.carBrand != null"> |
|
|
|
car_brand = #{record.carBrand,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.picture != null"> |
|
|
|
picture = #{record.picture,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.closeupPic != null"> |
|
|
|
closeup_pic = #{record.closeupPic,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.camId != null"> |
|
|
|
cam_id = #{record.camId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.warehouseId != null"> |
|
|
|
warehouse_id = #{record.warehouseId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -261,13 +294,16 @@ |
|
|
|
<update id="updateByExample" parameterType="map"> |
|
|
|
update t_logistics_car_record |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
car_type = #{record.carType,jdbcType=TINYINT}, |
|
|
|
car_type = #{record.carType,jdbcType=VARCHAR}, |
|
|
|
license_plate = #{record.licensePlate,jdbcType=VARCHAR}, |
|
|
|
plate_type = #{record.plateType,jdbcType=TINYINT}, |
|
|
|
plate_type = #{record.plateType,jdbcType=VARCHAR}, |
|
|
|
files_id = #{record.filesId,jdbcType=VARCHAR}, |
|
|
|
car_weight = #{record.carWeight,jdbcType=BIGINT}, |
|
|
|
in_out = #{record.inOut,jdbcType=TINYINT}, |
|
|
|
car_brand = #{record.carBrand,jdbcType=VARCHAR}, |
|
|
|
picture = #{record.picture,jdbcType=VARCHAR}, |
|
|
|
closeup_pic = #{record.closeupPic,jdbcType=VARCHAR}, |
|
|
|
cam_id = #{record.camId,jdbcType=VARCHAR}, |
|
|
|
warehouse_id = #{record.warehouseId,jdbcType=BIGINT}, |
|
|
|
record_time = #{record.recordTime,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
@ -281,13 +317,13 @@ |
|
|
|
update t_logistics_car_record |
|
|
|
<set> |
|
|
|
<if test="carType != null"> |
|
|
|
car_type = #{carType,jdbcType=TINYINT}, |
|
|
|
car_type = #{carType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="licensePlate != null"> |
|
|
|
license_plate = #{licensePlate,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="plateType != null"> |
|
|
|
plate_type = #{plateType,jdbcType=TINYINT}, |
|
|
|
plate_type = #{plateType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="filesId != null"> |
|
|
|
files_id = #{filesId,jdbcType=VARCHAR}, |
|
|
@ -301,6 +337,15 @@ |
|
|
|
<if test="carBrand != null"> |
|
|
|
car_brand = #{carBrand,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="picture != null"> |
|
|
|
picture = #{picture,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="closeupPic != null"> |
|
|
|
closeup_pic = #{closeupPic,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="camId != null"> |
|
|
|
cam_id = #{camId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="warehouseId != null"> |
|
|
|
warehouse_id = #{warehouseId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
@ -321,13 +366,16 @@ |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.logistics.bean.po.LogisticsCarRecord"> |
|
|
|
update t_logistics_car_record |
|
|
|
set car_type = #{carType,jdbcType=TINYINT}, |
|
|
|
set car_type = #{carType,jdbcType=VARCHAR}, |
|
|
|
license_plate = #{licensePlate,jdbcType=VARCHAR}, |
|
|
|
plate_type = #{plateType,jdbcType=TINYINT}, |
|
|
|
plate_type = #{plateType,jdbcType=VARCHAR}, |
|
|
|
files_id = #{filesId,jdbcType=VARCHAR}, |
|
|
|
car_weight = #{carWeight,jdbcType=BIGINT}, |
|
|
|
in_out = #{inOut,jdbcType=TINYINT}, |
|
|
|
car_brand = #{carBrand,jdbcType=VARCHAR}, |
|
|
|
picture = #{picture,jdbcType=VARCHAR}, |
|
|
|
closeup_pic = #{closeupPic,jdbcType=VARCHAR}, |
|
|
|
cam_id = #{camId,jdbcType=VARCHAR}, |
|
|
|
warehouse_id = #{warehouseId,jdbcType=BIGINT}, |
|
|
|
record_time = #{recordTime,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|