|
|
@ -1679,15 +1679,45 @@ |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
<select id="getWorkPlanDataWithObjectID" resultType="com.xujie.sys.modules.pms.data.EamWorkPlanInData"> |
|
|
<select id="getWorkPlanDataWithObjectID" resultType="com.xujie.sys.modules.pms.data.EamWorkPlanInData"> |
|
|
SELECT a.Site,a.PlanID,a.PlanDesc,a.ObjectID,a.FunctionType,a.PropertiesCode,a.Operator,a.PlanPeriod,a.Status, |
|
|
|
|
|
a.PlanStartDate,a.PlanEndDate,a.CreatedDate,a.CreatedBy,a.UpdateDate,a.UpdateBy,a.Version,a.Remark |
|
|
|
|
|
,a.NextWorkDate,b.ObjectDesc,c.adminName,d.code_desc |
|
|
|
|
|
FROM eam_workPlan a |
|
|
|
|
|
left join eam_object b on a.Site=b.Site and a.ObjectID=b.ObjectID |
|
|
|
|
|
left join eam_admin c on a.Site=c.Site and a.operator=c.AdminID |
|
|
|
|
|
left join eam_properties_model_header d on a.FunctionType=d.function_type and a.PropertiesCode=d.code_no |
|
|
|
|
|
where a.site=#{site} and a.ObjectID=#{objectID} and a.FunctionType=#{functionType} and a.DeleteFlag='N' |
|
|
|
|
|
and status in ('已计划','进行中') |
|
|
|
|
|
|
|
|
SELECT |
|
|
|
|
|
a.site AS site, |
|
|
|
|
|
a.plan_id AS planID, |
|
|
|
|
|
a.plan_desc AS planDesc, |
|
|
|
|
|
wp.ObjectID AS objectID, |
|
|
|
|
|
a.function_type AS functionType, |
|
|
|
|
|
a.properties_code AS propertiesCode, |
|
|
|
|
|
a.operator AS operator, |
|
|
|
|
|
a.plan_period AS planPeriod, |
|
|
|
|
|
a.status AS status, |
|
|
|
|
|
a.plan_start_date AS planStartDate, |
|
|
|
|
|
a.plan_end_date AS planEndDate, |
|
|
|
|
|
a.created_date AS createdDate, |
|
|
|
|
|
a.created_by AS createdBy, |
|
|
|
|
|
a.update_date AS updateDate, |
|
|
|
|
|
a.update_by AS updateBy, |
|
|
|
|
|
a.remark AS remark, |
|
|
|
|
|
a.next_work_date AS nextWorkDate, |
|
|
|
|
|
b.ObjectDesc AS objectDesc, |
|
|
|
|
|
a.operator_name AS adminName, |
|
|
|
|
|
d.code_desc AS codeDesc |
|
|
|
|
|
FROM eam_workPlan_overview a |
|
|
|
|
|
LEFT JOIN eam_workPlan wp |
|
|
|
|
|
ON a.site = wp.Site |
|
|
|
|
|
AND a.bu_no = wp.bu_no |
|
|
|
|
|
AND a.plan_id = wp.PlanID |
|
|
|
|
|
AND wp.deleteFlag = 'N' |
|
|
|
|
|
LEFT JOIN eam_object b |
|
|
|
|
|
ON wp.Site = b.Site |
|
|
|
|
|
AND wp.ObjectID = b.ObjectID |
|
|
|
|
|
LEFT JOIN eam_properties_model_header d |
|
|
|
|
|
ON a.function_type = d.function_type |
|
|
|
|
|
AND a.properties_code = d.code_no |
|
|
|
|
|
WHERE a.site = #{site} |
|
|
|
|
|
AND wp.ObjectID = #{objectID} |
|
|
|
|
|
AND a.function_type = #{functionType} |
|
|
|
|
|
AND a.delete_flag = 'N' |
|
|
|
|
|
AND a.status IN ('已计划','进行中') |
|
|
|
|
|
|
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="getObjectItemList" resultType="com.xujie.sys.modules.pms.data.EamObjectItemInData"> |
|
|
<select id="getObjectItemList" resultType="com.xujie.sys.modules.pms.data.EamObjectItemInData"> |
|
|
|