|
|
|
@ -765,7 +765,8 @@ |
|
|
|
CASE WHEN (DATEDIFF(SECOND, a.CreateDate, a.reach_date) <![CDATA[<]]> 60) THEN DATEDIFF(SECOND, a.CreateDate, a.reach_date) / 60.0 |
|
|
|
ELSE DATEDIFF(MINUTE, a.CreateDate, a.reach_date) |
|
|
|
END AS responseTime, |
|
|
|
a.check_type |
|
|
|
a.check_type, |
|
|
|
a.is_return |
|
|
|
FROM eam_workOrder a |
|
|
|
left join eam_object as eo on eo.site = a.site and eo.ObjectID = a.ObjectID and eo.bu_no = a.bu_no |
|
|
|
left join sys_department as sd ON eo.site = sd.site and eo.dept_id = sd.department_id and eo.bu_no = sd.bu_no |
|
|
|
@ -781,6 +782,9 @@ |
|
|
|
<if test="query.buDesc != null and query.buDesc != ''"> |
|
|
|
AND dbo.get_bu_desc (a.site, a.bu_no) = #{query.buDesc} |
|
|
|
</if> |
|
|
|
<if test="query.isReturn != null and query.isReturn != ''"> |
|
|
|
AND a.is_return = #{query.isReturn} |
|
|
|
</if> |
|
|
|
<if test="query.orderNo != null and query.orderNo != ''"> |
|
|
|
AND a.OrderNo like '%' + #{query.orderNo} + '%' |
|
|
|
</if> |
|
|
|
@ -3718,6 +3722,11 @@ |
|
|
|
SET is_return = 'Y' |
|
|
|
WHERE Site = #{site} AND OrderNo = #{orderNo} and bu_no = #{buNo} |
|
|
|
</update> |
|
|
|
<update id="updateIsReturn2"> |
|
|
|
UPDATE eam_workOrder |
|
|
|
SET is_return = 'N' |
|
|
|
WHERE Site = #{site} AND OrderNo = #{orderNo} and bu_no = #{buNo} |
|
|
|
</update> |
|
|
|
<update id="reportWorkOrderForIsReturn"> |
|
|
|
update eam_workOrder |
|
|
|
set Remark = #{remark}, |
|
|
|
@ -3733,6 +3742,12 @@ |
|
|
|
set PlanOperator = #{planOperator} |
|
|
|
where site = #{site} and bu_no = #{buNo} and feedBackID = #{feedBackID} |
|
|
|
</update> |
|
|
|
<update id="returnWorkOrder"> |
|
|
|
UPDATE eam_workOrder |
|
|
|
SET Status = '已到达', |
|
|
|
is_return = 'Y' |
|
|
|
WHERE Site = #{site} AND OrderNo = #{orderNo} and bu_no = #{buNo} |
|
|
|
</update> |
|
|
|
<select id="getUpItemdataEam" resultType="com.xujie.sys.modules.pms.data.EamPropertiesModelDetailData"> |
|
|
|
select |
|
|
|
top 1 |
|
|
|
|