|
@ -18,6 +18,7 @@ |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
|
|
<result column="park_id" jdbcType="BIGINT" property="parkId" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
@ -80,7 +81,7 @@ |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, car_type, license_plate, plate_type, files_id, car_weight, in_out, car_brand, |
|
|
id, car_type, license_plate, plate_type, files_id, car_weight, in_out, car_brand, |
|
|
picture, closeup_pic, cam_id, warehouse_id, record_time, created_at, updated_at, |
|
|
picture, closeup_pic, cam_id, warehouse_id, record_time, created_at, updated_at, |
|
|
rec_status |
|
|
rec_status, park_id |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.logistics.bean.po.LogisticsCarRecordExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.logistics.bean.po.LogisticsCarRecordExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
@ -118,13 +119,13 @@ |
|
|
in_out, car_brand, picture, |
|
|
in_out, car_brand, picture, |
|
|
closeup_pic, cam_id, warehouse_id, |
|
|
closeup_pic, cam_id, warehouse_id, |
|
|
record_time, created_at, updated_at, |
|
|
record_time, created_at, updated_at, |
|
|
rec_status) |
|
|
rec_status, park_id) |
|
|
values (#{id,jdbcType=BIGINT}, #{carType,jdbcType=VARCHAR}, #{licensePlate,jdbcType=VARCHAR}, |
|
|
values (#{id,jdbcType=BIGINT}, #{carType,jdbcType=VARCHAR}, #{licensePlate,jdbcType=VARCHAR}, |
|
|
#{plateType,jdbcType=VARCHAR}, #{filesId,jdbcType=VARCHAR}, #{carWeight,jdbcType=BIGINT}, |
|
|
#{plateType,jdbcType=VARCHAR}, #{filesId,jdbcType=VARCHAR}, #{carWeight,jdbcType=BIGINT}, |
|
|
#{inOut,jdbcType=TINYINT}, #{carBrand,jdbcType=VARCHAR}, #{picture,jdbcType=VARCHAR}, |
|
|
#{inOut,jdbcType=TINYINT}, #{carBrand,jdbcType=VARCHAR}, #{picture,jdbcType=VARCHAR}, |
|
|
#{closeupPic,jdbcType=VARCHAR}, #{camId,jdbcType=VARCHAR}, #{warehouseId,jdbcType=BIGINT}, |
|
|
#{closeupPic,jdbcType=VARCHAR}, #{camId,jdbcType=VARCHAR}, #{warehouseId,jdbcType=BIGINT}, |
|
|
#{recordTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
#{recordTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
#{recStatus,jdbcType=TINYINT}, #{parkId,jdbcType=BIGINT}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.logistics.bean.po.LogisticsCarRecord"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.logistics.bean.po.LogisticsCarRecord"> |
|
|
insert into t_logistics_car_record |
|
|
insert into t_logistics_car_record |
|
@ -177,6 +178,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status, |
|
|
rec_status, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="parkId != null"> |
|
|
|
|
|
park_id, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
@ -227,6 +231,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="parkId != null"> |
|
|
|
|
|
#{parkId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.ccsens.logistics.bean.po.LogisticsCarRecordExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.ccsens.logistics.bean.po.LogisticsCarRecordExample" resultType="java.lang.Long"> |
|
@ -286,6 +293,9 @@ |
|
|
<if test="record.recStatus != null"> |
|
|
<if test="record.recStatus != null"> |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.parkId != null"> |
|
|
|
|
|
park_id = #{record.parkId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
@ -308,7 +318,8 @@ |
|
|
record_time = #{record.recordTime,jdbcType=BIGINT}, |
|
|
record_time = #{record.recordTime,jdbcType=BIGINT}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
|
|
park_id = #{record.parkId,jdbcType=BIGINT} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
@ -361,6 +372,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="parkId != null"> |
|
|
|
|
|
park_id = #{parkId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
@ -380,7 +394,8 @@ |
|
|
record_time = #{recordTime,jdbcType=BIGINT}, |
|
|
record_time = #{recordTime,jdbcType=BIGINT}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
|
|
park_id = #{parkId,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |