|
|
|
@ -556,7 +556,7 @@ |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="searchPlanItemAvailable" resultType="com.xujie.sys.modules.pms.data.EamWorkPlanItemAvailableData"> |
|
|
|
<select id="searchPlanItemAvailable" resultType="com.xujie.sys.modules.pms.data.EamWorkPlanItemAvailableData"> |
|
|
|
SELECT |
|
|
|
Site, |
|
|
|
PlanID, |
|
|
|
@ -570,12 +570,8 @@ |
|
|
|
UpdateBy, |
|
|
|
ObjectID |
|
|
|
from eam_workPlan_item_available |
|
|
|
where PlanID = #{planID} |
|
|
|
and itemNo = #{itemNo} |
|
|
|
and site = #{site} |
|
|
|
and ItemType = #{itemType} |
|
|
|
and ObjectID = #{objectID} |
|
|
|
</select> |
|
|
|
where PlanID = #{planID} and itemNo = #{itemNo} and site = #{site} and ItemType = #{itemType} and ObjectID = #{objectID} |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updatePlanItems"> |
|
|
|
update eam_workPlan_item |
|
|
|
@ -672,7 +668,6 @@ |
|
|
|
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' |
|
|
|
|
|
|
|
left join eam_object as eo on eo.site = a.site and eo.ObjectID = a.ObjectID |
|
|
|
left join sys_department as sd ON eo.site = sd.site and eo.dept_id = sd.department_id |
|
|
|
left join eam_admin_dept as ead ON ead.site = sd.site and ead.dept_id = sd.department_id |
|
|
|
@ -976,6 +971,20 @@ |
|
|
|
where site = #{site} and orderNo = #{orderNo} and FunctionType = #{functionType} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="reportWorkOrder2" parameterType="EamWorkOrderInData"> |
|
|
|
update eam_workOrder |
|
|
|
set Status = '待审核', |
|
|
|
ActualOperator = #{actualOperator}, |
|
|
|
ActualDate = #{actualDate}, |
|
|
|
Remark = #{remark}, |
|
|
|
disposal_measures = #{disposalMeasures}, |
|
|
|
WorkTime = #{workTime}, |
|
|
|
result = #{result,jdbcType=VARCHAR}, |
|
|
|
checkResult = #{checkResult}, |
|
|
|
handling_method = #{handlingMethod} |
|
|
|
where site = #{site} and orderNo = #{orderNo} and FunctionType = #{functionType} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="defectReportWorkOrder" > |
|
|
|
update eam_workOrder |
|
|
|
set Status = '已完工', |
|
|
|
@ -1032,8 +1041,7 @@ |
|
|
|
FinishFlag, |
|
|
|
itemResult |
|
|
|
from eam_workOrder_item |
|
|
|
where site = #{site} |
|
|
|
and orderNo = #{orderNo} |
|
|
|
where site = #{site} and orderNo = #{orderNo} |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="cancelOrder" parameterType="EamWorkOrderInData"> |
|
|
|
@ -1779,10 +1787,7 @@ |
|
|
|
ewo.checkResult |
|
|
|
FROM eam_workOrder as ewo |
|
|
|
LEFT JOIN eam_object as eo ON ewo.site = eo.site and ewo.ObjectID = eo.ObjectID |
|
|
|
WHERE ewo.site = #{site} |
|
|
|
AND ewo.ObjectID = #{objectID} |
|
|
|
AND ewo.FunctionType = #{functionType} |
|
|
|
AND ewo.Status = '已完工' |
|
|
|
WHERE ewo.site = #{site} AND ewo.ObjectID = #{objectID} AND ewo.FunctionType = #{functionType} AND ewo.Status = '已完工' |
|
|
|
ORDER BY ewo.ActualDate desc |
|
|
|
</select> |
|
|
|
|
|
|
|
|