|
|
|
@ -566,7 +566,7 @@ b.MinValue,b.ItemRemark,b.ItemType |
|
|
|
a.ActualDate, |
|
|
|
a.FunctionType, |
|
|
|
a.CreateDate, |
|
|
|
a.CreateBy, |
|
|
|
d.operator_name as createBy, |
|
|
|
a.Remark, |
|
|
|
a.StartTime, |
|
|
|
a.EndTime, |
|
|
|
@ -585,6 +585,7 @@ b.MinValue,b.ItemRemark,b.ItemType |
|
|
|
FROM eam_workOrder a |
|
|
|
LEFT JOIN eam_defect_feedBack b on a.site = b.site and a.PlanID = b.feedBackID |
|
|
|
LEFT JOIN eam_defect c on b.DefectID = c.DefectID |
|
|
|
LEFT JOIN operator as d on a.site = d.site and a.CreateBy = d.operator_id and d.active = 'Y' |
|
|
|
<where> |
|
|
|
and a.Site = #{query.site} |
|
|
|
<if test="query.orderNo != null and query.orderNo != ''"> |
|
|
|
@ -639,7 +640,7 @@ b.MinValue,b.ItemRemark,b.ItemType |
|
|
|
a.ActualDate, |
|
|
|
a.FunctionType, |
|
|
|
a.CreateDate, |
|
|
|
a.CreateBy, |
|
|
|
d.operator_name as createBy, |
|
|
|
a.Remark, |
|
|
|
a.StartTime, |
|
|
|
a.EndTime, |
|
|
|
@ -657,6 +658,7 @@ b.MinValue,b.ItemRemark,b.ItemType |
|
|
|
FROM eam_workOrder a |
|
|
|
left join eam_defect_feedBack b on a.site = b.site and a.PlanID = b.feedBackID |
|
|
|
left join eam_defect c on b.DefectID = c.DefectID |
|
|
|
left join operator as d on a.site = d.site and a.CreateBy = d.operator_id and d.active = 'Y' |
|
|
|
<where> |
|
|
|
and a.Site = #{query.site} |
|
|
|
<if test="query.orderNo != null and query.orderNo != ''"> |
|
|
|
@ -1152,6 +1154,7 @@ b.MinValue,b.ItemRemark,b.ItemType |
|
|
|
a.deleteFlag, |
|
|
|
a.CreatedDate, |
|
|
|
a.CreatedBy, |
|
|
|
c.operator_name as feedbackBy, |
|
|
|
a.UpdateDate, |
|
|
|
a.UpdateBy, |
|
|
|
a.Version, |
|
|
|
@ -1161,8 +1164,8 @@ b.MinValue,b.ItemRemark,b.ItemType |
|
|
|
dbo.eam_Get_eamObjectDesc(a.Site,a.ObjectID) ObjectDesc, |
|
|
|
FinishDate |
|
|
|
from eam_defect_feedBack a |
|
|
|
left join eam_defect b |
|
|
|
on a.DefectID = b.DefectID |
|
|
|
left join eam_defect b on a.DefectID = b.DefectID |
|
|
|
left join operator as c on a.site = c.site and a.CreatedBy = c.operator_id and c.active = 'Y' |
|
|
|
<where> |
|
|
|
and a.Site = #{query.site} |
|
|
|
<if test="query.feedBackID != null and query.feedBackID != ''"> |
|
|
|
|