|
|
|
|
@ -18,7 +18,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
<result property="positionName" column="position_name" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBizOrderTireDetailVo">
|
|
|
|
|
@ -26,19 +25,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBizOrderTireDetailList" parameterType="BizOrderTireDetail" resultMap="BizOrderTireDetailResult">
|
|
|
|
|
select botd.detail_id, botd.order_id, botd.position_id, botd.tire_id, botd.tire_code, botd.tread_depth,
|
|
|
|
|
botd.tire_press, botd.tire_status, botd.create_by, botd.create_time, botd.update_by, botd.update_time, botd.remark,
|
|
|
|
|
sda.dict_label as position_name
|
|
|
|
|
from biz_order_tire_detail botd
|
|
|
|
|
LEFT JOIN sys_dict_data sda ON sda.dict_value = botd.position_id
|
|
|
|
|
<include refid="selectBizOrderTireDetailVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="orderId != null "> and botd.order_id = #{orderId}</if>
|
|
|
|
|
<if test="positionId != null "> and botd.position_id = #{positionId}</if>
|
|
|
|
|
<if test="tireId != null "> and botd.tire_id = #{tireId}</if>
|
|
|
|
|
<if test="tireCode != null and tireCode != ''"> and botd.tire_code = #{tireCode}</if>
|
|
|
|
|
<if test="treadDepth != null "> and botd.tread_depth = #{treadDepth}</if>
|
|
|
|
|
<if test="tirePress != null "> and botd.tire_press = #{tirePress}</if>
|
|
|
|
|
<if test="tireStatus != null and tireStatus != ''"> and botd.tire_status = #{tireStatus}</if>
|
|
|
|
|
<if test="orderId != null "> and order_id = #{orderId}</if>
|
|
|
|
|
<if test="positionId != null "> and position_id = #{positionId}</if>
|
|
|
|
|
<if test="tireId != null "> and tire_id = #{tireId}</if>
|
|
|
|
|
<if test="tireCode != null and tireCode != ''"> and tire_code = #{tireCode}</if>
|
|
|
|
|
<if test="treadDepth != null "> and tread_depth = #{treadDepth}</if>
|
|
|
|
|
<if test="tirePress != null "> and tire_press = #{tirePress}</if>
|
|
|
|
|
<if test="tireStatus != null and tireStatus != ''"> and tire_status = #{tireStatus}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|