This commit is contained in:
chenyanchang
2026-06-03 15:16:41 +08:00
parent fec3d6eb64
commit 3e8b1d63f3
24 changed files with 198 additions and 37 deletions

View File

@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
)
</update>
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
<select id="selectCompanyList" parameterType="CompanySearch" resultMap="CompanyResult">
<include refid="selectCompanyVo"/>
<where> del_flag = '0'
<if test="name != null and name != ''"> and name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
@@ -76,6 +76,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="code != null and code != ''"> and code = #{code}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="companyId != null and companyId != ''"> and company_id = #{companyId}</if>
<if test="startDate != null and startDate != ''">
and create_time >= #{startDate}
</if>
<if test="endDate != null and endDate != ''">
and create_time &lt;= #{endDate}
</if>
</where>
</select>
<select id="label" resultMap="CompanyResult">

View File

@@ -21,10 +21,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark" />
<result property="description" column="description" />
<result property="address" column="address" />
<result property="viewNum" column="view_num" />
</resultMap>
<sql id="selectJobFairVo">
select job_fair_id, name, job_fair_type, location, latitude, longitude, start_time, end_time, del_flag, create_by, create_time, update_by, update_time, remark,address,description from job_fair
select job_fair_id, name, job_fair_type, location, latitude, longitude, start_time, end_time, del_flag, create_by, create_time, update_by, update_time, remark,address,description, view_num from job_fair
</sql>
<select id="selectJobFairList" parameterType="JobFair" resultMap="JobFairResult">
@@ -35,8 +36,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="location != null and location != ''"> and location = #{location}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="startTime != null "> and start_time = #{startTime}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
<if test="startTime != null "> and start_time >= #{startTime}</if>
<if test="endTime != null "> and end_time &lt;= #{endTime}</if>
</where>
</select>
<select id="appList" resultType="com.ruoyi.cms.domain.JobFair" parameterType="com.ruoyi.cms.domain.JobFair">
@@ -91,4 +92,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
ORDER BY start_time DESC
</select>
<update id="updateViewNumById">
update job_fair set view_num = view_num + 1 where job_fair_id = #{fairId}
</update>
</mapper>

View File

@@ -35,6 +35,7 @@
<result property="cover" column="cover" />
<result property="jobType" column="job_type" />
<result property="jobAddress" column="job_address" />
<result property="reviewStatus" column="review_status" />
</resultMap>
@@ -79,6 +80,7 @@
<result property="companyNature" column="company_nature" />
<result property="code" column="code" />
<result property="jobAddress" column="job_address" />
<result property="reviewStatus" column="review_status" />
<association property="companyVo" resultMap="CompanyResult"/>
</resultMap>
@@ -97,7 +99,7 @@
</resultMap>
<sql id="selectJobVo">
select job_id, job_title, min_salary, max_salary, education, experience, company_name, job_location, posting_date, vacancies, del_flag, create_by, create_time, update_by, update_time, remark, latitude, longitude, "view", company_id , is_hot ,apply_num,is_publish, description,job_location_area_code,data_source,job_url,job_category,is_explain,explain_url,cover,job_type,job_address from job
select job_id, job_title, min_salary, max_salary, education, experience, company_name, job_location, posting_date, vacancies, del_flag, create_by, create_time, update_by, update_time, remark, latitude, longitude, "view", company_id , is_hot ,apply_num,is_publish, description,job_location_area_code,data_source,job_url,job_category,is_explain,explain_url,cover,job_type,job_address, review_status from job
</sql>
<insert id="insertBatchRowWork">
INSERT INTO row_work (
@@ -177,7 +179,7 @@
);
</update>
<select id="selectJobList" parameterType="Job" resultMap="JobResult">
<select id="selectJobList" parameterType="JobSearch" resultMap="JobResult">
<include refid="selectJobVo"/>
<where> del_flag = '0'
<if test="jobTitle != null and jobTitle != ''"> and job_title = #{jobTitle}</if>
@@ -216,6 +218,12 @@
and min_salary &gt; 5000
</if>
</if>
<if test="startDate != null and startDate != ''">
and posting_date >= #{startDate}
</if>
<if test="endDate != null and endDate != ''">
and posting_date &lt;= #{endDate}
</if>
</where>
order by is_explain desc
</select>
@@ -349,4 +357,7 @@
</where>
</select>
<update id="updateReviewStatus">
update job set review_status = #{reviewStatus} where job_id = #{jobId}
</update>
</mapper>