WechatGroup

This commit is contained in:
Lishundong
2025-09-22 17:06:47 +08:00
commit 410182ec79
542 changed files with 155561 additions and 0 deletions

View File

@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.AppNoticeMapper">
<resultMap type="SysNotice" id="SysNoticeResult">
<result property="noticeId" column="notice_id" />
<result property="noticeTitle" column="notice_title" />
<result property="noticeType" column="notice_type" />
<result property="noticeContent" column="notice_content" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectNoticeVo">
select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark
from app_notice
</sql>
<select id="selectNoticeById" parameterType="Long" resultMap="SysNoticeResult">
<include refid="selectNoticeVo"/>
where notice_id = #{noticeId}
</select>
<select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult">
<include refid="selectNoticeVo"/>
<where>
<if test="noticeTitle != null and noticeTitle != ''">
AND notice_title like concat('%', #{noticeTitle}, '%')
</if>
<if test="noticeType != null and noticeType != ''">
AND notice_type = #{noticeType}
</if>
<if test="createBy != null and createBy != ''">
AND create_by like concat('%', #{createBy}, '%')
</if>
</where>
</select>
<select id="recommend" resultType="com.ruoyi.cms.domain.Job">
SELECT j.*
FROM JOB AS j
INNER JOIN JOB_RECOMMEND AS jr ON jr.JOB_ID = j.JOB_ID
WHERE j.DEL_FLAG = '0' AND jr.DEL_FLAG = '0'
AND jr.USER_ID = #{userId}
<if test="jobTitle!=null and jobTitle!=''">
AND j.JOB_CATEGORY = #{jobTitle}
</if>
</select>
<insert id="insertNotice" parameterType="SysNotice">
insert into app_notice (
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
<if test="noticeContent != null and noticeContent != '' ">notice_content, </if>
<if test="status != null and status != '' ">status, </if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="noticeTitle != null and noticeTitle != ''">#{noticeTitle}, </if>
<if test="noticeType != null and noticeType != ''">#{noticeType}, </if>
<if test="noticeContent != null and noticeContent != ''">#{noticeContent}, </if>
<if test="status != null and status != ''">#{status}, </if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
<update id="updateNotice" parameterType="SysNotice">
update app_notice
<set>
<if test="noticeTitle != null and noticeTitle != ''">notice_title = #{noticeTitle}, </if>
<if test="noticeType != null and noticeType != ''">notice_type = #{noticeType}, </if>
<if test="noticeContent != null">notice_content = #{noticeContent}, </if>
<if test="status != null and status != ''">status = #{status}, </if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where notice_id = #{noticeId}
</update>
<delete id="deleteNoticeById" parameterType="Long">
delete from app_notice where notice_id = #{noticeId}
</delete>
<delete id="deleteNoticeByIds" parameterType="Long">
delete from app_notice where notice_id in
<foreach item="noticeId" collection="array" open="(" separator="," close=")">
#{noticeId}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.AppReviewJobMapper">
<resultMap type="AppReviewJob" id="AppReviewJobResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
<result property="jobId" column="job_id" />
<result property="reviewDate" column="review_date" />
</resultMap>
<sql id="selectAppReviewJobVo">
select id, user_id, work_id, review_date from app_review_job
</sql>
<select id="selectAppReviewJobList" parameterType="AppReviewJob" resultMap="AppReviewJobResult">
<include refid="selectAppReviewJobVo"/>
<where> del_flag = 0
<if test="userId != null "> and user_id = #{userId}</if>
<if test="jobId != null "> and job_id = #{jobId}</if>
<if test="reviewDate != null "> and review_date = #{reviewDate}</if>
</where>
</select>
<select id="review" resultType="com.ruoyi.cms.domain.vo.JobReviewVO">
select j.*,r.review_date
from job as j
inner join app_review_job as r on r.job_id = j.job_id and user_id = #{userId}
where j.del_flag = 0
and r.del_flag = 0
<if test="jobQuery.startDate != null "> and r.review_date &gt; concat(#{jobQuery.startDate},' 23:59:59')</if>
<if test="jobQuery.endDate != null "> and r.review_date &lt; concat(#{jobQuery.endDate},' 23:59:59')</if>
<if test="jobQuery.jobTitle != null and jobQuery.jobTitle!=''"> and j.job_title like concat('%',#{jobQuery.jobTitle},'%') </if>
order by r.review_date desc
</select>
<select id="reviewArray" resultType="com.ruoyi.cms.domain.AppReviewJob">
select r.review_date
from job as j
inner join app_review_job as r on r.job_id = j.job_id and user_id = #{userId}
where j.del_flag = 0
and r.del_flag = 0
group by r.review_date
</select>
</mapper>

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.AppUserMapper">
<resultMap type="AppUser" id="AppUserResult">
<result property="userId" column="user_id" />
<result property="name" column="name" />
<result property="age" column="age" />
<result property="sex" column="sex" />
<result property="birthDate" column="birth_date" />
<result property="education" column="education" />
<result property="politicalAffiliation" column="political_affiliation" />
<result property="phone" column="phone" />
<result property="avatar" column="avatar" />
<result property="salaryMin" column="salary_min" />
<result property="salaryMax" column="salary_max" />
<result property="area" column="area" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="loginIp" column="login_ip" />
<result property="loginDate" column="login_date" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="jobTitleId" column="job_title_id" />
<result property="isRecommend" column="is_recommend" />
</resultMap>
<sql id="selectAppUserVo">
select user_id, name, age, sex, birth_date, education, political_affiliation, phone, avatar, salary_min, salary_max, area, status, del_flag, login_ip, login_date, create_by, create_time, update_by, update_time, remark,job_title_id,is_recommend from app_user
</sql>
<select id="selectAppUserList" parameterType="AppUser" resultMap="AppUserResult">
<include refid="selectAppUserVo"/>
<where> del_flag = 0
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="age != null and age != ''"> and age = #{age}</if>
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
<if test="birthDate != null "> and birth_date = #{birthDate}</if>
<if test="education != null and education != ''"> and education = #{education}</if>
<if test="politicalAffiliation != null and politicalAffiliation != ''"> and political_affiliation = #{politicalAffiliation}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="avatar != null and avatar != ''"> and avatar = #{avatar}</if>
<if test="salaryMin != null and salaryMin != ''"> and salary_min = #{salaryMin}</if>
<if test="salaryMax != null and salaryMax != ''"> and salary_max = #{salaryMax}</if>
<if test="area != null and area != ''"> and area = #{area}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="loginIp != null and loginIp != ''"> and login_ip = #{loginIp}</if>
<if test="loginDate != null "> and login_date = #{loginDate}</if>
<if test="experience != null "> and experience = #{experience}</if>
</where>
</select>
</mapper>

View File

@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.BussinessDictDataMapper">
<resultMap type="BussinessDictData" id="SysDictDataResult">
<id property="dictCode" column="dict_code" />
<result property="dictSort" column="dict_sort" />
<result property="dictLabel" column="dict_label" />
<result property="dictValue" column="dict_value" />
<result property="dictType" column="dict_type" />
<result property="cssClass" column="css_class" />
<result property="listClass" column="list_class" />
<result property="isDefault" column="is_default" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDictDataVo">
select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark
from bussiness_dict_data
</sql>
<select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
<where>
<if test="dictType != null and dictType != ''">
AND dict_type = #{dictType}
</if>
<if test="dictLabel != null and dictLabel != ''">
AND dict_label like concat('%', #{dictLabel}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
</where>
order by dict_sort asc
</select>
<select id="selectDictDataByType" parameterType="String" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
where status = '0' and dict_type = #{dictType} order by dict_sort asc
</select>
<select id="selectDictLabel" resultType="String">
select dict_label from bussiness_dict_data
where dict_type = #{dictType} and dict_value = #{dictValue}
</select>
<select id="selectDictDataById" parameterType="Long" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
where dict_code = #{dictCode}
</select>
<select id="countDictDataByType" resultType="Integer">
select count(1) from bussiness_dict_data where dict_type=#{dictType}
</select>
<delete id="deleteDictDataById" parameterType="Long">
delete from bussiness_dict_data where dict_code = #{dictCode}
</delete>
<delete id="deleteDictDataByIds" parameterType="Long">
delete from bussiness_dict_data where dict_code in
<foreach collection="array" item="dictCode" open="(" separator="," close=")">
#{dictCode}
</foreach>
</delete>
<update id="updateDictData" parameterType="SysDictData">
update bussiness_dict_data
<set>
<if test="dictSort != null">dict_sort = #{dictSort},</if>
<if test="dictLabel != null and dictLabel != ''">dict_label = #{dictLabel},</if>
<if test="dictValue != null and dictValue != ''">dict_value = #{dictValue},</if>
<if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
<if test="cssClass != null">css_class = #{cssClass},</if>
<if test="listClass != null">list_class = #{listClass},</if>
<if test="isDefault != null and isDefault != ''">is_default = #{isDefault},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where dict_code = #{dictCode}
</update>
<update id="updateDictDataType" parameterType="String">
update bussiness_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
</update>
<insert id="insertDictData" parameterType="SysDictData">
insert into bussiness_dict_data(
<if test="dictSort != null">dict_sort,</if>
<if test="dictLabel != null and dictLabel != ''">dict_label,</if>
<if test="dictValue != null and dictValue != ''">dict_value,</if>
<if test="dictType != null and dictType != ''">dict_type,</if>
<if test="cssClass != null and cssClass != ''">css_class,</if>
<if test="listClass != null and listClass != ''">list_class,</if>
<if test="isDefault != null and isDefault != ''">is_default,</if>
<if test="status != null">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="dictSort != null">#{dictSort},</if>
<if test="dictLabel != null and dictLabel != ''">#{dictLabel},</if>
<if test="dictValue != null and dictValue != ''">#{dictValue},</if>
<if test="dictType != null and dictType != ''">#{dictType},</if>
<if test="cssClass != null and cssClass != ''">#{cssClass},</if>
<if test="listClass != null and listClass != ''">#{listClass},</if>
<if test="isDefault != null and isDefault != ''">#{isDefault},</if>
<if test="status != null">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
</mapper>

View File

@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.BussinessDictTypeMapper">
<resultMap type="BussinessDictType" id="SysDictTypeResult">
<id property="dictId" column="dict_id" />
<result property="dictName" column="dict_name" />
<result property="dictType" column="dict_type" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectDictTypeVo">
select dict_id, dict_name, dict_type, status, create_by, create_time, remark
from bussiness_dict_type
</sql>
<select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
<where>
<if test="dictName != null and dictName != ''">
AND dict_name like concat('%', #{dictName}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<if test="dictType != null and dictType != ''">
AND dict_type like concat('%', #{dictType}, '%')
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
and date_format(create_time,'%Y%m%d') &gt;= date_format(#{params.beginTime},'%Y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(create_time,'%Y%m%d') &lt;= date_format(#{params.endTime},'%Y%m%d')
</if>
</where>
</select>
<select id="selectDictTypeAll" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
</select>
<select id="selectDictTypeById" parameterType="Long" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
where dict_id = #{dictId}
</select>
<select id="selectDictTypeByType" parameterType="String" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
where dict_type = #{dictType}
</select>
<select id="checkDictTypeUnique" parameterType="String" resultMap="SysDictTypeResult">
<include refid="selectDictTypeVo"/>
where dict_type = #{dictType} limit 1
</select>
<delete id="deleteDictTypeById" parameterType="Long">
delete from bussiness_dict_type where dict_id = #{dictId}
</delete>
<delete id="deleteDictTypeByIds" parameterType="Long">
delete from bussiness_dict_type where dict_id in
<foreach collection="array" item="dictId" open="(" separator="," close=")">
#{dictId}
</foreach>
</delete>
<update id="updateDictType" parameterType="SysDictType">
update bussiness_dict_type
<set>
<if test="dictName != null and dictName != ''">dict_name = #{dictName},</if>
<if test="dictType != null and dictType != ''">dict_type = #{dictType},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where dict_id = #{dictId}
</update>
<insert id="insertDictType" parameterType="SysDictType">
insert into bussiness_dict_type(
<if test="dictName != null and dictName != ''">dict_name,</if>
<if test="dictType != null and dictType != ''">dict_type,</if>
<if test="status != null">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
create_time
)values(
<if test="dictName != null and dictName != ''">#{dictName},</if>
<if test="dictType != null and dictType != ''">#{dictType},</if>
<if test="status != null">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
sysdate()
)
</insert>
</mapper>

View File

@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.BussinessOperLogMapper">
<resultMap type="BussinessOperLog" id="SysOperLogResult">
<id property="operId" column="oper_id" />
<result property="title" column="title" />
<result property="businessType" column="business_type" />
<result property="method" column="method" />
<result property="requestMethod" column="request_method" />
<result property="operatorType" column="operator_type" />
<result property="operName" column="oper_name" />
<result property="deptName" column="dept_name" />
<result property="operUrl" column="oper_url" />
<result property="operIp" column="oper_ip" />
<result property="operLocation" column="oper_location" />
<result property="operParam" column="oper_param" />
<result property="jsonResult" column="json_result" />
<result property="status" column="status" />
<result property="errorMsg" column="error_msg" />
<result property="operTime" column="oper_time" />
<result property="costTime" column="cost_time" />
</resultMap>
<sql id="selectOperLogVo">
select oper_id, title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, oper_time, cost_time
from bussiness_oper_log
</sql>
<insert id="insertOperlog" parameterType="BussinessOperLog">
insert into bussiness_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, cost_time, oper_time)
values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, sysdate())
</insert>
<select id="selectOperLogList" parameterType="BussinessOperLog" resultMap="SysOperLogResult">
<include refid="selectOperLogVo"/>
<where>
<if test="operIp != null and operIp != ''">
AND oper_ip like concat('%', #{operIp}, '%')
</if>
<if test="title != null and title != ''">
AND title like concat('%', #{title}, '%')
</if>
<if test="businessType != null">
AND business_type = #{businessType}
</if>
<if test="businessTypes != null and businessTypes.length > 0">
AND business_type in
<foreach collection="businessTypes" item="businessType" open="(" separator="," close=")">
#{businessType}
</foreach>
</if>
<if test="status != null">
AND status = #{status}
</if>
<if test="operName != null and operName != ''">
AND oper_name like concat('%', #{operName}, '%')
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
AND oper_time &gt;= #{params.beginTime}
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
AND oper_time &lt;= #{params.endTime}
</if>
</where>
order by oper_id desc
</select>
<delete id="deleteOperLogByIds" parameterType="Long">
delete from bussiness_oper_log where oper_id in
<foreach collection="array" item="operId" open="(" separator="," close=")">
#{operId}
</foreach>
</delete>
<select id="selectOperLogById" parameterType="Long" resultMap="SysOperLogResult">
<include refid="selectOperLogVo"/>
where oper_id = #{operId}
</select>
<update id="cleanOperLog">
truncate table bussiness_oper_log
</update>
</mapper>

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.CommercialAreaMapper">
<resultMap type="CommercialArea" id="CommercialAreaResult">
<result property="commercialAreaId" column="commercial_area_id" />
<result property="commercialAreaName" column="commercial_area_name" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="latitude" column="latitude" />
<result property="longitude" column="longitude" />
<result property="address" column="address" />
</resultMap>
<sql id="selectCommercialAreaVo">
select commercial_area_id, commercial_area_name, del_flag, create_by, create_time, update_by, update_time, remark, latitude, longitude,address from commercial_area
</sql>
<select id="selectCommercialAreaList" parameterType="CommercialArea" resultMap="CommercialAreaResult">
<include refid="selectCommercialAreaVo"/>
<where> del_flag = 0
<if test="commercialAreaName != null and commercialAreaName != ''"> and commercial_area_name like concat('%', #{commercialAreaName}, '%')</if>
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
</where>
</select>
</mapper>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.CompanyCardCollectionMapper">
<resultMap type="CompanyCardCollection" id="CompanyCardCollectionResult">
<result property="companyCardCollectionId" column="company_card_collection_id" />
<result property="userId" column="user_id" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="companyCardId" column="company_card_id" />
</resultMap>
<sql id="selectCompanyCardCollectionVo">
select company_card_collection_id, user_id, del_flag, create_by, create_time, update_by, update_time, remark,company_card_id from company_card_collection
</sql>
<select id="selectCompanyCardCollectionList" parameterType="CompanyCardCollection" resultMap="CompanyCardCollectionResult">
<include refid="selectCompanyCardCollectionVo"/>
<where> del_flag = 0
<if test="userId != null "> and user_id = #{userId}</if>
<if test="companyCardId != null "> and company_card_id = #{companyCardId}</if>
</where>
</select>
</mapper>

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.CompanyCardMapper">
<resultMap type="CompanyCard" id="CompanyCardResult">
<result property="companyCardId" column="company_card_id" />
<result property="name" column="name" />
<result property="targ" column="targ" />
<result property="backgroudColor" column="backgroud_color" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="status" column="status" />
<result property="companyNature" column="company_nature" />
<result property="cardOrder" column="card_order" />
<result property="description" column="description" />
<result property="icon" column="icon" />
</resultMap>
<sql id="selectCompanyCardVo">
select company_card_id, name, targ, backgroud_color, del_flag, create_by, create_time, update_by, update_time, remark,status,company_nature,card_order,description,icon from company_card
</sql>
<select id="selectCompanyCardList" parameterType="CompanyCard" resultMap="CompanyCardResult">
<include refid="selectCompanyCardVo"/>
<where> del_flag = 0
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="targ != null and targ != ''"> and targ = #{targ}</if>
<if test="backgroudColor != null and backgroudColor != ''"> and backgroud_color = #{backgroudColor}</if>
<if test="companyNature != null and companyNature != ''"> and company_nature = #{companyNature}</if>
<if test="status != null"> and status = #{status}</if>
</where>
</select>
<select id="selectCompanyCardListVO" resultType="com.ruoyi.cms.domain.vo.CompanyCardVO">
<include refid="selectCompanyCardVo"/>
<where> del_flag = 0
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="targ != null and targ != ''"> and targ = #{targ}</if>
<if test="backgroudColor != null and backgroudColor != ''"> and backgroud_color = #{backgroudColor}</if>
<if test="companyNature != null and companyNature != ''"> and company_nature = #{companyNature}</if>
<if test="status != null"> and status = #{status}</if>
</where>
</select>
</mapper>

View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.CompanyCollectionMapper">
<resultMap type="CompanyCollection" id="CompanyCollectionResult">
<result property="id" column="id" />
<result property="companyId" column="company_id" />
<result property="userId" column="user_id" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectCompanyCollectionVo">
select id, company_id, user_id, del_flag, create_by, create_time, update_by, update_time, remark from company_collection
</sql>
<select id="selectCompanyCollectionList" parameterType="CompanyCollection" resultMap="CompanyCollectionResult">
<include refid="selectCompanyCollectionVo"/>
<where> del_flag = 0
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
</where>
</select>
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Company">
select *
from company
where del_flag = 0
and company_id in (SELECT DISTINCT (company_id)
FROM qd.company_collection
where del_flag = 0 and user_id = #{userId}
order by create_time desc)
</select>
</mapper>

View File

@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.CompanyMapper">
<resultMap type="Company" id="CompanyResult">
<result property="companyId" column="company_id" />
<result property="name" column="name" />
<result property="location" column="location" />
<result property="industry" column="industry" />
<result property="scale" column="scale" />
<result property="code" column="code" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="description" column="description" />
<result property="nature" column="nature" />
<result property="totalRecruitment" column="total_recruitment" />
</resultMap>
<sql id="selectCompanyVo">
select company_id, name, location, industry, scale, del_flag, create_by, create_time, update_by, update_time, remark,code,description,nature,total_recruitment from company
</sql>
<insert id="batchInsert" parameterType="java.util.List">
INSERT INTO company (
name, location, industry, scale, code, description, nature,
create_by, create_time, del_flag
) VALUES
<foreach collection="list" item="company" separator=",">
(
#{company.name}, #{company.location}, #{company.industry}, #{company.scale},
#{company.code}, #{company.description}, #{company.nature},
#{company.createBy}, #{company.createTime}, #{company.delFlag}
)
</foreach>
</insert>
<update id="updateJobCountOfCompany">
UPDATE company c
SET TOTAL_RECRUITMENT = (
SELECT COUNT(*)
FROM job j
WHERE j.company_id = c.company_id
);
</update>
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
<include refid="selectCompanyVo"/>
<where> del_flag = 0
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="location != null and location != ''"> and location = #{location}</if>
<if test="industry != null and industry != ''"> and industry = #{industry}</if>
<if test="scale != null and scale != ''"> and scale = #{scale}</if>
<if test="nature != null and nature != ''"> and nature = #{nature}</if>
<if test="code != null and code != ''"> and code = #{code}</if>
</where>
</select>
<select id="label" resultMap="CompanyResult">
SELECT * FROM COMPANY WHERE COMPANY_ID IN (select -1
<if test="companyNature!=null and companyNature!=''">
UNION
SELECT COMPANY_ID FROM COMPANY WHERE nature = #{companyNature}
</if>
<if test="targ!=null and targ!=''">
UNION
SELECT company_id FROM COMPANY_LABEL WHERE dict_value = #{targ}
</if>)
<if test="companyName != null and companyName != ''"> and name like concat('%',#{companyName},'%')</if>
</select>
</mapper>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.JobCollectionMapper">
</mapper>

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.FairCompanyMapper">
<resultMap type="FairCompany" id="FairCompanyResult">
<result property="id" column="id" />
<result property="companyId" column="company_id" />
<result property="jobFairId" column="job_fair_id" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectFairCompanyVo">
select id, company_id, job_fair_id, del_flag, create_by, create_time, update_by, update_time, remark from fair_company
</sql>
<select id="selectFairCompanyList" parameterType="FairCompany" resultMap="FairCompanyResult">
<include refid="selectFairCompanyVo"/>
<where> del_flag = 0
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="jobFairId != null "> and job_fair_id = #{jobFairId}</if>
</where>
</select>
</mapper>

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.FileMapper">
<resultMap type="File" id="FileResult">
<result property="id" column="id" />
<result property="fileUrl" column="file_url" />
<result property="bussinessId" column="bussinessId" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectFileVo">
select id, file_url, bussinessId, del_flag, create_by, create_time, update_by, update_time from file
</sql>
<select id="selectFileList" parameterType="File" resultMap="FileResult">
<include refid="selectFileVo"/>
<where> del_flag = 0
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
<if test="bussinessId != null "> and bussinessId = #{bussinessId}</if>
</where>
</select>
</mapper>

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.IndustryMapper">
<resultMap type="Industry" id="IndustryResult">
<result property="industryId" column="industry_id" />
<result property="parentId" column="parent_id" />
<result property="industryName" column="industry_name" />
<result property="orderNum" column="order_num" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectIndustryVo">
select industry_id, parent_id, industry_name, order_num, status, del_flag, create_by, create_time, update_by, update_time from industry
</sql>
<select id="selectIndustryList" parameterType="Industry" resultMap="IndustryResult">
<include refid="selectIndustryVo"/>
<where> del_flag = 0
<if test="parentId != null "> and parent_id = #{parentId}</if>
<if test="industryName != null and industryName != ''"> and industry_name like concat('%', #{industryName}, '%')</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
</mapper>

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.JobApplyMapper">
<resultMap type="JobApply" id="JobApplyResult">
<result property="id" column="id" />
<result property="jobId" column="job_id" />
<result property="userId" column="user_id" />
<result property="matchingDegree" column="matching_degree" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectJobApplyVo">
select id, job_id, user_id, matching_degree, del_flag, create_by, create_time, update_by, update_time, remark from job_apply
</sql>
<select id="selectJobApplyList" parameterType="JobApply" resultMap="JobApplyResult">
<include refid="selectJobApplyVo"/>
<where> del_flag = 0
<if test="jobId != null "> and job_id = #{jobId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="matchingDegree != null "> and matching_degree = #{matchingDegree}</if>
</where>
</select>
<select id="applyJob" resultType="com.ruoyi.cms.domain.Job">
select '2025-4-1' as applyTime,*
from job
where del_flag = 0
and is_publish = 1
and job_id in (SELECT DISTINCT (job_id)
FROM qd.job_apply
where del_flag = 0 and user_id = #{userId}
order by create_time desc)
</select>
<select id="candidates" resultType="com.ruoyi.cms.domain.vo.CandidateVO">
SELECT au.*,jc.create_time as apply_date,jc.matching_degree
from job_apply as jc
inner join app_user as au on jc.user_id = au.user_id
where jc.job_id = #{jobId} and jc.del_flag = 0 and au.del_flag =0
</select>
</mapper>

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.JobCollectionMapper">
<resultMap type="JobCollection" id="JobCollectionResult">
<result property="id" column="id" />
<result property="jobId" column="job_id" />
<result property="userId" column="user_id" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectJobCollectionVo">
select id, job_id, user_id, del_flag, create_by, create_time, update_by, update_time, remark from job_collection
</sql>
<select id="selectJobCollectionList" parameterType="JobCollection" resultMap="JobCollectionResult">
<include refid="selectJobCollectionVo"/>
<where> del_flag = 0
<if test="jobId != null "> and job_id = #{jobId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
</where>
</select>
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Job">
select *
from job
where del_flag = 0
and is_publish = 1
and job_id in (SELECT DISTINCT (job_id)
FROM qd.job_collection
where del_flag = 0 and user_id = #{userId}
order by create_time desc)
</select>
</mapper>

View File

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.JobFairMapper">
<resultMap type="JobFair" id="JobFairResult">
<result property="jobFairId" column="job_fair_id" />
<result property="name" column="name" />
<result property="jobFairType" column="job_fair_type" />
<result property="location" column="location" />
<result property="latitude" column="latitude" />
<result property="longitude" column="longitude" />
<result property="startTime" column="start_time" />
<result property="endTime" column="end_time" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="description" column="description" />
<result property="address" column="address" />
</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
</sql>
<select id="selectJobFairList" parameterType="JobFair" resultMap="JobFairResult">
<include refid="selectJobFairVo"/>
<where> del_flag = 0
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="jobFairType != null and jobFairType != ''"> and job_fair_type = #{jobFairType}</if>
<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>
</where>
</select>
<select id="appList" resultType="com.ruoyi.cms.domain.JobFair" parameterType="com.ruoyi.cms.domain.JobFair">
<include refid="selectJobFairVo"/>
<where> del_flag = 0
<if test="jobFairType != null and jobFairType != ''"> and job_fair_type = #{jobFairType}</if>
<if test="queryDate != null "> and start_time &gt;= #{queryDate} and end_time &lt;= #{queryDate}</if>
</where>
</select>
<select id="selectAppList" resultType="com.ruoyi.cms.domain.JobFair">
select j.*
from qd.job_fair as j
inner join qd.fair_collection as f on f.fair_id = j.job_fair_id and f.USER_ID = #{userId}
where j.DEL_FLAG = 0 and f.DEL_FLAG = 0
<if test="type!=null and type==1">
-- 未开始
and j.START_TIME &gt; now()
</if>
<if test="type!=null and type==2">
-- 进行中
and j.START_TIME &lt; NOW() AND J.END_TIME &gt; NOW()
</if>
<if test="type!=null and type==3">
-- 已结束
and j.END_TIME &lt; now()
</if>
order by j.START_TIME desc
</select>
</mapper>

View File

@@ -0,0 +1,227 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.JobMapper">
<resultMap type="Job" id="JobResult">
<result property="jobId" column="job_id" />
<result property="jobTitle" column="job_title" />
<result property="minSalary" column="min_salary" />
<result property="maxSalary" column="max_salary" />
<result property="education" column="education" />
<result property="experience" column="experience" />
<result property="companyName" column="company_name" />
<result property="jobLocation" column="job_location" />
<result property="postingDate" column="posting_date" />
<result property="vacancies" column="vacancies" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="latitude" column="latitude" />
<result property="longitude" column="longitude" />
<result property="view" column="view" />
<result property="companyId" column="company_id" />
<result property="isHot" column="is_hot" />
<result property="dataSource" column="data_source" />
<result property="jobUrl" column="job_url" />
<result property="rowId" column="row_id" />
<result property="jobCategory" column="job_category" />
<result property="isExplain" column="is_explain" />
<result property="explainUrl" column="explain_url" />
<result property="cover" column="cover" />
</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 from job
</sql>
<insert id="insertBatchRowWork">
INSERT INTO row_work (
TaskId, TaskName, Std_class, SF, ZCMC, Aca112, Acb22a, Aac011, Acb240,
Recruit_Num, Acb202, Aab302, Acb241, Salary, SalaryLow, SalaryHight, Aae397,
AAB004, AAB022, AAB019, AAE006, AAB092, ORG, ACE760, AAE004, AAE005,
Num_employers, Experience, Highlight, Minimum_age, Maximum_age, Sex,
IndustryType, IndustrySub, AAB019_OK, Aac011_OK, Experience_OK, Num_OK,
Collect_time, ClearFlag, Province, City, County, importdate, YearMonth,
IsRepeat, latitude, longitude
) VALUES
<foreach collection="list" item="job" separator=",">
(
#{job.TaskId}, #{job.TaskName}, #{job.Std_class}, #{job.SF}, #{job.ZCMC}, #{job.Aca112}, #{job.Acb22a},
#{job.Aac011}, #{job.Acb240}, #{job.Recruit_Num}, #{job.Acb202}, #{job.Aab302}, #{job.Acb241}, #{job.Salary},
#{job.SalaryLow}, #{job.SalaryHight}, #{job.Aae397}, #{job.AAB004}, #{job.AAB022}, #{job.AAB019},
#{job.AAE006}, #{job.AAB092}, #{job.ORG}, #{job.ACE760}, #{job.AAE004}, #{job.AAE005}, #{job.Num_employers},
#{job.Experience}, #{job.Highlight}, #{job.Minimum_age}, #{job.Maximum_age}, #{job.Sex},
#{job.IndustryType}, #{job.IndustrySub}, #{job.AAB019_OK}, #{job.Aac011_OK}, #{job.Experience_OK},
#{job.Num_OK}, #{job.Collect_time}, #{job.ClearFlag}, #{job.Province}, #{job.City}, #{job.County},
#{job.importdate}, #{job.YearMonth}, #{job.IsRepeat}, #{job.latitude}, #{job.longitude}
)
</foreach>
</insert>
<insert id="batchInsert">
INSERT INTO job (
job_title, min_salary, max_salary, education, experience, company_name, job_location,
job_location_area_code, posting_date, vacancies, latitude, longitude, "VIEW", company_id,
is_hot, apply_num, description, is_publish, data_source, job_url, remark, del_flag,
create_by, create_time, row_id, job_category
) VALUES
<foreach collection="list" item="job" separator=",">
(
#{job.jobTitle}, #{job.minSalary}, #{job.maxSalary}, #{job.education}, #{job.experience},
#{job.companyName}, #{job.jobLocation}, #{job.jobLocationAreaCode}, #{job.postingDate},
#{job.vacancies}, #{job.latitude}, #{job.longitude}, #{job.view}, #{job.companyId},
#{job.isHot}, #{job.applyNum}, #{job.description}, #{job.isPublish}, #{job.dataSource},
#{job.jobUrl}, #{job.remark}, #{job.delFlag}, #{job.createBy}, #{job.createTime},
#{job.rowId}, #{job.jobCategory}
)
</foreach>
</insert>
<insert id="insertBatchRowWorkTmp">
INSERT INTO row_work_tmp (
TaskId, TaskName, Std_class, SF, ZCMC, Aca112, Acb22a, Aac011, Acb240,
Recruit_Num, Acb202, Aab302, Acb241, Salary, SalaryLow, SalaryHight, Aae397,
AAB004, AAB022, AAB019, AAE006, AAB092, ORG, ACE760, AAE004, AAE005,
Num_employers, Experience, Highlight, Minimum_age, Maximum_age, Sex,
IndustryType, IndustrySub, AAB019_OK, Aac011_OK, Experience_OK, Num_OK,
Collect_time, ClearFlag, Province, City, County, importdate, YearMonth,
IsRepeat, latitude, longitude
) VALUES
<foreach collection="list" item="job" separator=",">
(
#{job.TaskId}, #{job.TaskName}, #{job.Std_class}, #{job.SF}, #{job.ZCMC}, #{job.Aca112}, #{job.Acb22a},
#{job.Aac011}, #{job.Acb240}, #{job.Recruit_Num}, #{job.Acb202}, #{job.Aab302}, #{job.Acb241}, #{job.Salary},
#{job.SalaryLow}, #{job.SalaryHight}, #{job.Aae397}, #{job.AAB004}, #{job.AAB022}, #{job.AAB019},
#{job.AAE006}, #{job.AAB092}, #{job.ORG}, #{job.ACE760}, #{job.AAE004}, #{job.AAE005}, #{job.Num_employers},
#{job.Experience}, #{job.Highlight}, #{job.Minimum_age}, #{job.Maximum_age}, #{job.Sex},
#{job.IndustryType}, #{job.IndustrySub}, #{job.AAB019_OK}, #{job.Aac011_OK}, #{job.Experience_OK},
#{job.Num_OK}, #{job.Collect_time}, #{job.ClearFlag}, #{job.Province}, #{job.City}, #{job.County},
#{job.importdate}, #{job.YearMonth}, #{job.IsRepeat}, #{job.latitude}, #{job.longitude}
)
</foreach>
</insert>
<update id="isHot">
UPDATE job
SET is_hot = 1
WHERE job_id IN (
select b.job_id
from(
SELECT job_id
FROM job
ORDER BY "VIEW" DESC
LIMIT 10)
as b
);
</update>
<select id="selectJobList" parameterType="Job" resultMap="JobResult">
<include refid="selectJobVo"/>
<where> del_flag = 0
<if test="jobTitle != null and jobTitle != ''"> and job_title = #{jobTitle}</if>
<if test="minSalary != null "> and min_salary = #{minSalary}</if>
<if test="maxSalary != null "> and max_salary = #{maxSalary}</if>
<if test="education != null and education != ''"> and education = #{education}</if>
<if test="experience != null and experience != ''"> and experience = #{experience}</if>
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
<if test="jobLocation != null and jobLocation != ''"> and job_location = #{jobLocation}</if>
<if test="postingDate != null "> and posting_date = #{postingDate}</if>
<if test="vacancies != null "> and vacancies = #{vacancies}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="view != null "> and "VIEW" = #{view}</if>
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="isHot != null "> and is_hot = #{isHot}</if>
<if test="applyNum != null "> and apply_num = #{applyNum}</if>
</where>
order by is_explain desc
</select>
<select id="selectAppJobList" resultType="com.ruoyi.cms.domain.query.ESJobSearch">
<include refid="selectJobVo"/>
<where> del_flag = 0
<if test="jobTitle != null and jobTitle != ''"> and job_title = #{jobTitle}</if>
<if test="minSalary != null "> and min_salary = #{minSalary}</if>
<if test="maxSalary != null "> and max_salary = #{maxSalary}</if>
<if test="education != null and education != ''"> and education = #{education}</if>
<if test="experience != null and experience != ''"> and experience = #{experience}</if>
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
<if test="jobLocation != null and jobLocation != ''"> and job_location = #{jobLocation}</if>
<if test="postingDate != null "> and posting_date = #{postingDate}</if>
<if test="vacancies != null "> and vacancies = #{vacancies}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="view != null "> and "VIEW" = #{view}</if>
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="isHot != null "> and is_hot = #{isHot}</if>
<if test="applyNum != null "> and apply_num = #{applyNum}</if>
<if test="isPublish != null "> and is_publish = #{isPublish}</if>
<if test="countyIds!=null and countyIds.size!=0">
and job_location_area_code in <foreach collection="countyIds" index="item" close=")" open="(">
#{item}
</foreach>
</if>
</where>
</select>
<select id="selectAllRowWork" resultType="com.ruoyi.cms.domain.RowWork">
select Id, TaskId, TaskName, Std_class, SF, ZCMC, Aca112, Acb22a, Aac011, Acb240,
Recruit_Num, Acb202, Aab302, Acb241, Salary, SalaryLow, SalaryHight, Aae397,
AAB004, AAB022, AAB019, AAE006, AAB092, ORG as "ORG", ACE760, AAE004, AAE005,
Num_employers, Experience, Highlight, Minimum_age, Maximum_age, Sex,
IndustryType, IndustrySub, AAB019_OK, Aac011_OK, Experience_OK, Num_OK,
Collect_time, ClearFlag, Province, City, County, importdate, YearMonth,
IsRepeat, latitude, longitude,Std_class as JobCategory from row_work
</select>
<select id="selectRowCompany" resultType="com.ruoyi.cms.domain.Company">
SELECT *
FROM (select AAB004 AS name,ANY_VALUE(AAE006) AS location,ANY_VALUE(IndustryType)
as remark,ANY_VALUE(IndustrySub) as industry,ANY_VALUE(Num_OK) as scale,ANY_VALUE(AAB092) as description,ANY_VALUE(AAB019_OK) as nature from row_work
group by AAB004
)AS b
where not exists (
select 1
from company
where b.name = company.name
)
</select>
<select id="selectAllJob" resultType="com.ruoyi.cms.domain.Job">
SELECT j.*,c.industry,c.scale,c.nature as company_nature FROM job as j
left join company as c on c.company_id = j.company_id limit #{offset},#{batchSize}
</select>
<select id="selectAllInsertRowWork" resultType="com.ruoyi.cms.domain.RowWork">
select Id, TaskId, TaskName, Std_class, SF, ZCMC, Aca112, Acb22a, Aac011, Acb240,
Recruit_Num, Acb202, Aab302, Acb241, Salary, SalaryLow, SalaryHight, Aae397,
AAB004, AAB022, AAB019, AAE006, AAB092, ORG as "ORG", ACE760, AAE004, AAE005,
Num_employers, Experience, Highlight, Minimum_age, Maximum_age, Sex,
IndustryType, IndustrySub, AAB019_OK, Aac011_OK, Experience_OK, Num_OK,
Collect_time, ClearFlag, Province, City, County, importdate, YearMonth,
IsRepeat, latitude, longitude,Std_class as JobCategory from row_work where not exists(
select 1
from job
where job.row_id = row_work.id
) AND id IN ( SELECT max(id) FROM row_work GROUP BY Aca112,Acb22a)
</select>
<select id="selectVectorJob" resultType="com.ruoyi.cms.domain.VectorJob">
SELECT
ANY_VALUE(job_id) as job_id,
j.job_title,
ed.dict_label as education,
ex.dict_label as experience,
j.company_name,
j.job_location,
j.description,
ar.dict_label as area,
ab.dict_label as nature,
ac.dict_label as scale,
concat(j.min_salary,"元-",j.max_salary,"元") as salary
FROM
job as j
inner join company as c on c.company_id = j.company_id
inner join qd.bussiness_dict_data as ed on ed.dict_type = 'education' and ed.dict_value = j.education
inner join qd.bussiness_dict_data as ex on ex.dict_type = 'experience' and ex.dict_value = j.experience
left join qd.bussiness_dict_data as ar on ar.dict_type = 'area' and ar.dict_value = j.job_location_area_code
left join qd.bussiness_dict_data as ab on ab.dict_type = 'company_nature' and ab.dict_value = c.nature
left join qd.bussiness_dict_data as ac on ac.dict_type = 'scale' and ac.dict_value = c.scale
where job_id =#{jobId}
</select>
</mapper>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.JobRecommentMapper">
<insert id="recommendJobForUser" parameterType="java.lang.Long">
INSERT INTO QD.JOB_RECOMMEND (
JOB_ID, USER_ID, DEL_FLAG, CREATE_BY, CREATE_TIME,
UPDATE_BY, UPDATE_TIME, REMARK, IS_READ
)
SELECT
JOB_ID,
#{userId},
'0',
'system',
SYSDATE,
'system',
SYSDATE,
'测试数据' || ROWNUM,
MOD(ROWNUM, 2)
FROM
QD.JOB
WHERE
ROWNUM = 10;
</insert>
</mapper>

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.JobTitleMapper">
<resultMap type="JobTitle" id="JobTitleResult">
<result property="jobId" column="job_id" />
<result property="parentId" column="parent_id" />
<result property="jobName" column="job_name" />
<result property="orderNum" column="order_num" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectJobTitleVo">
select job_id, parent_id, job_name, order_num, status, del_flag, create_by, create_time, update_by, update_time from job_title
</sql>
<select id="selectJobTitleList" parameterType="JobTitle" resultMap="JobTitleResult">
<include refid="selectJobTitleVo"/>
<where> del_flag = 0
<if test="parentId != null "> and parent_id = #{parentId}</if>
<if test="jobName != null and jobName != ''"> and job_name like concat('%', #{jobName}, '%')</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
</mapper>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.NoticeMapper">
</mapper>

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.SubwayLineMapper">
<resultMap type="SubwayLine" id="SubwayLineResult">
<result property="lineId" column="line_id" />
<result property="lineName" column="line_name" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<resultMap type="SubwayLine" id="SubwayLineStationResult">
<id property="lineId" column="line_id" />
<result property="lineName" column="line_name" />
<collection property="subwayStationList" javaType="java.util.List" resultMap="stationList" />
</resultMap>
<resultMap type="SubwayStation" id="stationList">
<id property="stationId" column="station_id" />
<result property="lineId" column="line_id" />
<result property="stationName" column="station_name" />
<result property="lineName" column="line_name" />
<result property="latitude" column="latitude" />
<result property="longitude" column="longitude" />
</resultMap>
<sql id="selectSubwayLineVo">
select line_id, line_name, del_flag, create_by, create_time, update_by, update_time, remark from subway_line
</sql>
<select id="selectSubwayLineList" parameterType="SubwayLine" resultMap="SubwayLineResult">
<include refid="selectSubwayLineVo"/>
<where> del_flag = 0
<if test="lineName != null and lineName != ''"> and line_name like concat('%', #{lineName}, '%')</if>
</where>
</select>
<select id="appSubway" resultMap="SubwayLineStationResult">
select l.line_id, l.line_name,s.station_id, s.station_name, s.line_name,s.latitude, s.longitude,s.station_order
from subway_line as l
inner join subway_station as s on s.line_id = l.line_id
where l.del_flag = 0 and s.del_flag = 0
</select>
</mapper>

View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.SubwayStationMapper">
<resultMap type="SubwayStation" id="SubwayStationResult">
<result property="stationId" column="station_id" />
<result property="stationName" column="station_name" />
<result property="lineName" column="line_name" />
<result property="lineId" column="line_id" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="latitude" column="latitude" />
<result property="longitude" column="longitude" />
<result property="stationOrder" column="station_order" />
<result property="address" column="address" />
</resultMap>
<sql id="selectSubwayStationVo">
select station_id, station_name, line_name, line_id, del_flag, create_by, create_time, update_by, update_time, remark, latitude, longitude,station_order,address from subway_station
</sql>
<select id="selectSubwayStationList" parameterType="SubwayStation" resultMap="SubwayStationResult">
<include refid="selectSubwayStationVo"/>
<where> del_flag = 0
<if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
<if test="lineName != null "> and line_name like concat('%', #{lineName}, '%')</if>
<if test="lineId != null "> and line_id = #{lineId}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
</where>
</select>
</mapper>