diff --git a/src/main/resources/mapper/pms/EamMapper.xml b/src/main/resources/mapper/pms/EamMapper.xml index b1a8f643..547b6528 100644 --- a/src/main/resources/mapper/pms/EamMapper.xml +++ b/src/main/resources/mapper/pms/EamMapper.xml @@ -919,9 +919,6 @@ fault_type FROM eam_defect - - AND dbo.get_bu_desc ( site, bu_no ) = #{query.buDesc} - AND defectID like '%' + #{query.defectID} + '%' @@ -1274,7 +1271,6 @@ 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 @@ -1312,8 +1308,7 @@ update eam_object_item set DefaultValue=#{defaultValue},ValueType=#{valueType},ValueType_DB=#{valueTypeDb} ,ValueChooseFlag=#{valueChooseFlag},MaxValue=#{maxValue,jdbcType=FLOAT},MinValue=#{minValue,jdbcType=FLOAT} - - where site=#{site} and objectID=#{objectID} and ItemType=#{itemType} + where site=#{site} and objectID=#{objectID} and ItemType=#{itemType} and ItemNo=#{itemNo} @@ -1350,17 +1345,17 @@ - delete from eam_object_item_available where site=#{site} and objectID=#{objectID} and ItemType=#{itemType} and ItemNo=#{itemNo} and ValueNo=#{valueNo} + delete from eam_object_item_available where site=#{site} and objectID=#{objectID} and ItemType=#{itemType} and ItemNo=#{itemNo} and ValueNo=#{valueNo} - delete from eam_object_item where site=#{site} and objectID=#{objectID} and ItemType=#{itemType} + delete from eam_object_item where site=#{site} and objectID=#{objectID} and ItemType=#{itemType} delete from eam_object_item_available where site=#{site} and objectID=#{objectID} and ItemType=#{itemType} - insert into eam_object_item (site,objectID,ItemNo,DefaultValue,ValueType,ValueType_DB,ValueChooseFlag,CreatedDate,CreatedBy,MaxValue,MinValue, + insert into eam_object_item (site,objectID,ItemNo,DefaultValue,ValueType,ValueType_DB,ValueChooseFlag,CreatedDate,CreatedBy,MaxValue,MinValue, ItemType) select #{site},#{objectID},ItemNo,DefaultValue,ValueType,ValueType_DB,ValueChooseFlag,GetDate(),#{createBy},MaxValue,MinValue,ItemType from eam_object_item where site=#{site} and objectID=#{oldObjectID} and ItemType=#{itemType}