diff --git a/src/main/java/com/xujie/sys/modules/pms/data/EamDefectFeedBackInData.java b/src/main/java/com/xujie/sys/modules/pms/data/EamDefectFeedBackInData.java index 58a4beb1..a962eb31 100644 --- a/src/main/java/com/xujie/sys/modules/pms/data/EamDefectFeedBackInData.java +++ b/src/main/java/com/xujie/sys/modules/pms/data/EamDefectFeedBackInData.java @@ -86,4 +86,24 @@ public class EamDefectFeedBackInData extends EamDefectFeedBackData{ public void setUserId(String userId) { this.userId = userId; } + + private String department; + + private String locationName; + + public String getLocationName() { + return locationName; + } + + public void setLocationName(String locationName) { + this.locationName = locationName; + } + + public String getDepartment() { + return department; + } + + public void setDepartment(String department) { + this.department = department; + } } diff --git a/src/main/resources/mapper/pms/EamMapper.xml b/src/main/resources/mapper/pms/EamMapper.xml index d4f8cbe5..15338a5b 100644 --- a/src/main/resources/mapper/pms/EamMapper.xml +++ b/src/main/resources/mapper/pms/EamMapper.xml @@ -1655,7 +1655,9 @@ FinishDate, dbo.joint_name(a.Site, a.bu_no, (select OrderNo from eam_workOrder where PlanID = a.FeedBackID and site = a.site and Result = '维修完成' and bu_no = a.bu_no),a.FunctionType) as actualOperatorName, a.repair_reporting_type, - a.repair_type + a.repair_type, + f.department_name as department, + g.LocationName from eam_defect_feedBack a 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 @@ -1663,6 +1665,7 @@ left join sys_department as f on e.site = f.site and e.dept_id = f.department_id and e.bu_no = f.bu_no left join Access_dept as ead ON ead.site = f.site and ead.department_id = f.department_id and ead.bu_no = f.bu_no left join sys_user as ea on ead.username = ea.username + left join eam_location as g on e.site = g.site and e.LocationID = g.LocationID and e.bu_no = g.bu_no a.site in (select site from eam_access_site where username = #{query.userName}) and (a.site + '-' + a.bu_no) in (select * from dbo.query_bu(#{query.userName})) @@ -1700,6 +1703,12 @@ AND a.repair_type = #{query.repairType} + + AND f.department_name like '%' + #{query.department} + '%' + + + AND g.LocationName like '%' + #{query.locationName} + '%' + and a.FunctionType = #{query.functionType} ORDER BY a.DefectDate,