|
@@ -5,6 +5,7 @@
|
|
|
id
|
|
|
, no,
|
|
|
financing_no,
|
|
|
+position_no,
|
|
|
financing_no_two,
|
|
|
financing_no_third,
|
|
|
financing_no_four,
|
|
@@ -81,15 +82,13 @@ scrap_user_name
|
|
|
</sql>
|
|
|
|
|
|
<sql id="Left_Column">
|
|
|
- sb
|
|
|
- .
|
|
|
- id
|
|
|
- , sb.no,
|
|
|
+ sb.id, sb.no,
|
|
|
sb.financing_no_two,
|
|
|
sb.financing_no_third,
|
|
|
sb.financing_no_four,
|
|
|
sb.financing_no_five,
|
|
|
sb.financing_no,
|
|
|
+sb.position_no,
|
|
|
sb.name, sb.initial_value,
|
|
|
sb.current_value, sb.cut_value,
|
|
|
sb.is_child, sb.is_measure, sb.measure_status,
|
|
@@ -218,6 +217,9 @@ user.real_name as saveUserName,sb.repair_dept_id
|
|
|
<if test="positionId != null and positionId!=''">
|
|
|
and sb.position_id = #{positionId}
|
|
|
</if>
|
|
|
+ <if test="positionNo != null and positionNo!=''">
|
|
|
+ and sb.position_no = #{positionNo}
|
|
|
+ </if>
|
|
|
<if test="likeDeptCode != null and likeDeptCode!=''">
|
|
|
and sdDept.dept_code like concat(#{likeDeptCode},'%')
|
|
|
</if>
|
|
@@ -408,6 +410,9 @@ user.real_name as saveUserName,sb.repair_dept_id
|
|
|
<if test="isMeasure != null">
|
|
|
and sb.is_measure = #{isMeasure}
|
|
|
</if>
|
|
|
+ <if test="positionNo != null and positionNo!=''">
|
|
|
+ and sb.position_no = #{positionNo}
|
|
|
+ </if>
|
|
|
<if test="measureStatus != null">
|
|
|
and sb.measure_status = #{measureStatus}
|
|
|
</if>
|
|
@@ -459,14 +464,8 @@ user.real_name as saveUserName,sb.repair_dept_id
|
|
|
|
|
|
<select id="selectPageInfoForWarn" parameterType="com.platform.dao.dto.sb.SbInfoDTO"
|
|
|
resultType="com.platform.dao.vo.sb.SbInfoVO">
|
|
|
- select
|
|
|
- <include refid="Left_Column"/>
|
|
|
+ select sb.*
|
|
|
from t_sb_info sb
|
|
|
- left join t_sb_type sbType on sb.type_id = sbType.id
|
|
|
- left join t_firm_producer producer on sb.producer_id = producer.id
|
|
|
- left join t_sb_position position on sb.position_id = position.id
|
|
|
- left join t_sys_user user on sb.save_user = user.user_id
|
|
|
- left join t_sys_dept sdDept on sb.save_dept = sdDept.dept_id
|
|
|
where
|
|
|
TIMESTAMPDIFF( DAY, CURDATE( ), sb.next_check_date ) <![CDATA[ <= ]]> sb.seat_number
|
|
|
<if test="keyword != null and keyword != ''">
|
|
@@ -476,9 +475,6 @@ user.real_name as saveUserName,sb.repair_dept_id
|
|
|
sb.no like concat('%',#{keyword},'%')
|
|
|
)
|
|
|
</if>
|
|
|
- <if test="likeDeptCode != null and likeDeptCode!=''">
|
|
|
- and sdDept.dept_code like concat(#{likeDeptCode},'%')
|
|
|
- </if>
|
|
|
<if test="financingNo != null and financingNo!=''">
|
|
|
and sb.financing_no like concat(#{financingNo},'%')
|
|
|
</if>
|
|
@@ -494,6 +490,9 @@ user.real_name as saveUserName,sb.repair_dept_id
|
|
|
<if test="isMeasure != null">
|
|
|
and sb.is_measure = #{isMeasure}
|
|
|
</if>
|
|
|
+ <if test="positionNo != null and positionNo!=''">
|
|
|
+ and sb.position_no = #{positionNo}
|
|
|
+ </if>
|
|
|
<if test="measureStatus != null">
|
|
|
and sb.measure_status = #{measureStatus}
|
|
|
</if>
|
|
@@ -624,9 +623,18 @@ user.real_name as saveUserName,sb.repair_dept_id
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
|
|
update t_sb_info
|
|
|
<set>
|
|
|
- last_baoyang_time=#{item.lastBaoyangTimes},
|
|
|
- last_baoyang_hours=#{item.lastBaoyangHours},
|
|
|
- last_baoyang_miles=#{item.lastBaoyangMiles}
|
|
|
+ <if test="item.lastBaoyangTimes != null">
|
|
|
+ last_baoyang_time=#{item.lastBaoyangTimes},
|
|
|
+ </if>
|
|
|
+ <if test="item.lastBaoyangHours != null">
|
|
|
+ last_baoyang_hours=#{item.lastBaoyangHours},
|
|
|
+ </if>
|
|
|
+ <if test="item.lastBaoyangMiles != null">
|
|
|
+ last_baoyang_miles=#{item.lastBaoyangMiles},
|
|
|
+ </if>
|
|
|
+ <if test="item.measureStatus != null">
|
|
|
+ measure_status= #{item.measureStatus}
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{item.id}
|
|
|
</foreach>
|