|
|
|
@ -24,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="patternDepth" column="pattern_depth" />
|
|
|
|
<result property="patternDepth" column="pattern_depth" />
|
|
|
|
<result property="company" column="company" />
|
|
|
|
<result property="company" column="company" />
|
|
|
|
<result property="carTeam" column="carTeam" />
|
|
|
|
<result property="carTeam" column="carTeam" />
|
|
|
|
|
|
|
|
<result property="stageMileage" column="stage_mileage" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectRecordTyreInstallVo">
|
|
|
|
<sql id="selectRecordTyreInstallVo">
|
|
|
|
@ -33,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<select id="selectRecordTyreInstallList" parameterType="RecordTyreInstall" resultMap="RecordTyreInstallResult">
|
|
|
|
<select id="selectRecordTyreInstallList" parameterType="RecordTyreInstall" resultMap="RecordTyreInstallResult">
|
|
|
|
select rti.id, rti.tyre_rfid, rti.type, rti.mileage, su.user_name as create_by, rti.create_time,rti.update_by,rti.car_no,
|
|
|
|
select rti.id, rti.tyre_rfid, rti.type, rti.mileage, su.user_name as create_by, rti.create_time,rti.update_by,rti.car_no,
|
|
|
|
rti.wheel_postion,rti.update_time, rti.remark,rti.pattern_depth,bt.tyre_brand,bt.tyre_no,bt.self_no,bt.tyre_model,
|
|
|
|
rti.wheel_postion,rti.update_time, rti.remark,rti.pattern_depth,bt.tyre_brand,bt.tyre_no,bt.self_no,bt.tyre_model,
|
|
|
|
sdss.dept_name as company,bt.team,sd.dept_name as carTeam
|
|
|
|
sdss.dept_name as company,bt.team,sd.dept_name as carTeam,rtm.mileage as stage_mileage
|
|
|
|
from record_tyre_install rti
|
|
|
|
from record_tyre_install rti
|
|
|
|
LEFT JOIN base_tyre bt ON rti.tyre_rfid = bt.tyre_epc
|
|
|
|
LEFT JOIN base_tyre bt ON rti.tyre_rfid = bt.tyre_epc
|
|
|
|
left join sys_user su ON su.login_name = rti.create_by
|
|
|
|
left join sys_user su ON su.login_name = rti.create_by
|
|
|
|
@ -41,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
LEFT JOIN sys_dept sd ON bc.dept_id = sd.dept_id
|
|
|
|
LEFT JOIN sys_dept sd ON bc.dept_id = sd.dept_id
|
|
|
|
LEFT JOIN sys_dept sds ON sd.parent_id = sds.dept_id
|
|
|
|
LEFT JOIN sys_dept sds ON sd.parent_id = sds.dept_id
|
|
|
|
LEFT JOIN sys_dept sdss ON sds.parent_id = sdss.dept_id
|
|
|
|
LEFT JOIN sys_dept sdss ON sds.parent_id = sdss.dept_id
|
|
|
|
|
|
|
|
LEFT JOIN record_tyre_mileage rtm ON rtm.record_id = rti.record_id
|
|
|
|
where rti.id is not null
|
|
|
|
where rti.id is not null
|
|
|
|
|
|
|
|
|
|
|
|
<if test="tyreRfid != null and tyreRfid != ''"> and rti.tyre_rfid = #{tyreRfid}</if>
|
|
|
|
<if test="tyreRfid != null and tyreRfid != ''"> and rti.tyre_rfid = #{tyreRfid}</if>
|
|
|
|
@ -89,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
|
|
<if test="carNo != null and carNo != ''">car_no,</if>
|
|
|
|
<if test="carNo != null and carNo != ''">car_no,</if>
|
|
|
|
<if test="wheelPostion != null and wheelPostion != ''">wheel_postion,</if>
|
|
|
|
<if test="wheelPostion != null and wheelPostion != ''">wheel_postion,</if>
|
|
|
|
|
|
|
|
<if test="recordId != null and recordId != ''">record_id,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null ">#{id},</if>
|
|
|
|
<if test="id != null ">#{id},</if>
|
|
|
|
@ -103,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
|
|
<if test="carNo != null and carNo != ''">#{carNo},</if>
|
|
|
|
<if test="carNo != null and carNo != ''">#{carNo},</if>
|
|
|
|
<if test="wheelPostion != null and wheelPostion != ''">#{wheelPostion},</if>
|
|
|
|
<if test="wheelPostion != null and wheelPostion != ''">#{wheelPostion},</if>
|
|
|
|
|
|
|
|
<if test="recordId != null and recordId != ''">#{recordId},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|