highgo database

This commit is contained in:
577732344@qq.com
2025-09-24 10:49:59 +08:00
parent c85805c336
commit 312a04a42b
17 changed files with 33 additions and 33 deletions

View File

@@ -17,7 +17,7 @@
<select id="selectAppReviewJobList" parameterType="AppReviewJob" resultMap="AppReviewJobResult">
<include refid="selectAppReviewJobVo"/>
<where> del_flag = 0
<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>
@@ -27,8 +27,8 @@
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
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>
@@ -38,8 +38,8 @@
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
where j.del_flag = '0'
and r.del_flag = '0'
group by r.review_date
</select>
</mapper>

View File

@@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectAppUserList" parameterType="AppUser" resultMap="AppUserResult">
<include refid="selectAppUserVo"/>
<where> del_flag = 0
<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>
@@ -58,6 +58,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT * FROM app_user WHERE user_id IN (
select DISTINCT au.USER_ID from APP_USER au
INNER JOIN JOB_APPLY ja ON ja.USER_ID = au.USER_ID
WHERE au.DEL_FLAG = 0 AND ja.DEL_FLAG = 0 AND ja.JOB_Id = #{jobId})
WHERE au.DEL_FLAG = '0' AND ja.DEL_FLAG = '0' AND ja.JOB_Id = #{jobId})
</select>
</mapper>

View File

@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectCommercialAreaList" parameterType="CommercialArea" resultMap="CommercialAreaResult">
<include refid="selectCommercialAreaVo"/>
<where> del_flag = 0
<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>

View File

@@ -22,7 +22,7 @@
<select id="selectCompanyCardCollectionList" parameterType="CompanyCardCollection" resultMap="CompanyCardCollectionResult">
<include refid="selectCompanyCardCollectionVo"/>
<where> del_flag = 0
<where> del_flag = '0'
<if test="userId != null "> and user_id = #{userId}</if>
<if test="companyCardId != null "> and company_card_id = #{companyCardId}</if>
</where>

View File

@@ -27,7 +27,7 @@
<select id="selectCompanyCardList" parameterType="CompanyCard" resultMap="CompanyCardResult">
<include refid="selectCompanyCardVo"/>
<where> del_flag = 0
<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>
@@ -37,7 +37,7 @@
</select>
<select id="selectCompanyCardListVO" resultType="com.ruoyi.cms.domain.vo.CompanyCardVO">
<include refid="selectCompanyCardVo"/>
<where> del_flag = 0
<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>

View File

@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectCompanyCollectionList" parameterType="CompanyCollection" resultMap="CompanyCollectionResult">
<include refid="selectCompanyCollectionVo"/>
<where> del_flag = 0
<where> del_flag = '0'
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
</where>
@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Company">
select *
from company
where del_flag = 0
where del_flag = '0'
and company_id in (SELECT DISTINCT (company_id)
FROM qd.company_collection
where del_flag = 0 and user_id = #{userId}

View File

@@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
<include refid="selectCompanyVo"/>
<where> del_flag = 0
<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>

View File

@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectFairCompanyList" parameterType="FairCompany" resultMap="FairCompanyResult">
<include refid="selectFairCompanyVo"/>
<where> del_flag = 0
<where> del_flag = '0'
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="jobFairId != null "> and job_fair_id = #{jobFairId}</if>
</where>

View File

@@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectFileList" parameterType="File" resultMap="FileResult">
<include refid="selectFileVo"/>
<where> del_flag = 0
<where> del_flag = '0'
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
<if test="bussinessId != null "> and bussinessId = #{bussinessId}</if>
</where>

View File

@@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectIndustryList" parameterType="Industry" resultMap="IndustryResult">
<include refid="selectIndustryVo"/>
<where> del_flag = 0
<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>

View File

@@ -23,7 +23,7 @@
<select id="selectJobApplyList" parameterType="JobApply" resultMap="JobApplyResult">
<include refid="selectJobApplyVo"/>
<where> del_flag = 0
<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>
@@ -33,9 +33,9 @@
SELECT ja.create_time AS applyTime, j.*
FROM job j
INNER JOIN job_apply ja ON j.job_id = ja.job_id
WHERE j.del_flag = 0
WHERE j.del_flag = '0'
AND j.is_publish = 1
AND ja.del_flag = 0
AND ja.del_flag = '0'
AND ja.user_id = #{userId}
ORDER BY ja.create_time DESC
</select>
@@ -43,7 +43,7 @@
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
where jc.job_id = #{jobId} and jc.del_flag = '0' and au.del_flag ='0'
</select>
</mapper>

View File

@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectJobCollectionList" parameterType="JobCollection" resultMap="JobCollectionResult">
<include refid="selectJobCollectionVo"/>
<where> del_flag = 0
<where> del_flag = '0'
<if test="jobId != null "> and job_id = #{jobId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
</where>
@@ -30,11 +30,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Job">
select *
from job
where del_flag = 0
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}
where del_flag = '0' and user_id = #{userId}
order by create_time desc)
</select>
</mapper>

View File

@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectJobFairList" parameterType="JobFair" resultMap="JobFairResult">
<include refid="selectJobFairVo"/>
<where> del_flag = 0
<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>
@@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="appList" resultType="com.ruoyi.cms.domain.JobFair" parameterType="com.ruoyi.cms.domain.JobFair">
<include refid="selectJobFairVo"/>
<where> del_flag = 0
<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>
@@ -50,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
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
where j.DEL_FLAG = '0' and f.DEL_FLAG = '0'
<if test="type!=null and type==1">
-- 未开始
and j.START_TIME &gt; now()

View File

@@ -118,7 +118,7 @@
<select id="selectJobList" parameterType="Job" resultMap="JobResult">
<include refid="selectJobVo"/>
<where> del_flag = 0
<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>
@@ -139,7 +139,7 @@
</select>
<select id="selectAppJobList" resultType="com.ruoyi.cms.domain.query.ESJobSearch">
<include refid="selectJobVo"/>
<where> del_flag = 0
<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>

View File

@@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectJobTitleList" parameterType="JobTitle" resultMap="JobTitleResult">
<include refid="selectJobTitleVo"/>
<where> del_flag = 0
<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>

View File

@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectSubwayLineList" parameterType="SubwayLine" resultMap="SubwayLineResult">
<include refid="selectSubwayLineVo"/>
<where> del_flag = 0
<where> del_flag = '0'
<if test="lineName != null and lineName != ''"> and line_name like concat('%', #{lineName}, '%')</if>
</where>
</select>
@@ -41,6 +41,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
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
where l.del_flag = '0' and s.del_flag = '0'
</select>
</mapper>

View File

@@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectSubwayStationList" parameterType="SubwayStation" resultMap="SubwayStationResult">
<include refid="selectSubwayStationVo"/>
<where> del_flag = 0
<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>