Ver código fonte

求职信息导出问题

yanliming 1 ano atrás
pai
commit
4f43714bfb

+ 10 - 9
common/src/main/resources/mapper/base/JobInformationInfo.xml

@@ -130,30 +130,31 @@
 	</select>
 	<select id="search" parameterType="hashmap" resultMap="JobInformationInfoMap">
 		<![CDATA[
-			select * from base_job_information_info
+			select * from base_job_information_info a left join base_person_info b
+			on a.person_id=b.id_
 		]]>
 		<where>
-			del_flag=false
+			a.del_flag=false
 			<if test="searchParams.name != null">
-				and name_ like #{searchParams.name}
+				and b.real_name like #{searchParams.name}
 			</if>
 			<if test="searchParams.intendedPosition != null">
-				and Intended_position like #{searchParams.intendedPosition}
+				and a.Intended_position like #{searchParams.intendedPosition}
 			</if>
 			<if test="searchParams.intendedIndustries != null">
-				and Intended_industries = #{searchParams.intendedIndustries}
+				and a.Intended_industries = #{searchParams.intendedIndustries}
 			</if>
 			<if test="searchParams.method != null">
-				and method_ = #{searchParams.method}
+				and a.method_ = #{searchParams.method}
 			</if>
 			<if test="searchParams.workExperience != null">
-				and work_experience = #{searchParams.workExperience}
+				and a.work_experience = #{searchParams.workExperience}
 			</if>
 			<if test="searchParams.education != null">
-				and education_ = #{searchParams.education}
+				and a.education_ = #{searchParams.education}
 			</if>
 			<if test="searchParams.status != null">
-				and status_ = #{searchParams.status}
+				and a.status_ = #{searchParams.status}
 			</if>
 		</where>
 		<foreach item="sort" collection="sortList"  open="order by" separator=",">

+ 1 - 1
web/src/main/java/com/jpsoft/employment/modules/base/controller/JobInformationInfoController.java

@@ -235,7 +235,7 @@ public class JobInformationInfoController {
             Map<String, Object> searchParams = new HashMap<>();
 
             List<Sort> sortList = new ArrayList<>();
-            sortList.add(new Sort("create_time", "desc"));
+            sortList.add(new Sort("a.create_time", "desc"));
 
             if (StringUtils.isNotEmpty(name)) {
                 searchParams.put("name", "%" + name + "%");