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

@@ -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>