浏览代码

项目导出bug

yang 4 年之前
父节点
当前提交
33f9e67463

+ 1 - 1
lift-business-service/src/main/java/cn/com/ty/lift/business/project/dao/mapper/ProjectMapper.java

@@ -64,7 +64,7 @@ public interface ProjectMapper extends BaseMapper<Project> {
      */
      */
     MaintenancePlanPrintResponse findProjectByIdAndCompanyId(@Param("request") ProjectRequest request);
     MaintenancePlanPrintResponse findProjectByIdAndCompanyId(@Param("request") ProjectRequest request);
 
 
-    List<Map<String, String>> List(@Param("exportList") List<String> ids);
+    List<Map<String, String>> exportList(@Param("exportList") List<String> ids);
 
 
     List<Map<String, String>> exportLiftList(@Param("exportLiftList") List<String> ids);
     List<Map<String, String>> exportLiftList(@Param("exportLiftList") List<String> ids);
 
 

+ 1 - 1
lift-business-service/src/main/java/cn/com/ty/lift/business/project/service/ProjectService.java

@@ -683,7 +683,7 @@ public class ProjectService extends ServiceImpl<ProjectMapper, Project> {
 
 
 
 
     public List<Map<String, String>> exportList(List<String> ids) {
     public List<Map<String, String>> exportList(List<String> ids) {
-        return baseMapper.List(ids);
+        return baseMapper.exportList(ids);
     }
     }
 
 
     public List<Map<String, String>> exportLiftList(List<String> ids) {
     public List<Map<String, String>> exportLiftList(List<String> ids) {

+ 1 - 1
lift-business-service/src/main/resources/mapper/project/ProjectMapper.xml

@@ -302,7 +302,7 @@
 				LEFT JOIN contracts c ON p.id = c.project_id
 				LEFT JOIN contracts c ON p.id = c.project_id
 		<where>
 		<where>
 			<if test="exportList != null and exportList.size > 0">
 			<if test="exportList != null and exportList.size > 0">
-				id IN
+				p.id IN
 				<foreach collection="exportList" item="id" open="(" separator="," close=")">
 				<foreach collection="exportList" item="id" open="(" separator="," close=")">
 					#{id}
 					#{id}
 				</foreach>
 				</foreach>