highgo database
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<select id="selectAppReviewJobList" parameterType="AppReviewJob" resultMap="AppReviewJobResult">
|
<select id="selectAppReviewJobList" parameterType="AppReviewJob" resultMap="AppReviewJobResult">
|
||||||
<include refid="selectAppReviewJobVo"/>
|
<include refid="selectAppReviewJobVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
<if test="jobId != null "> and job_id = #{jobId}</if>
|
<if test="jobId != null "> and job_id = #{jobId}</if>
|
||||||
<if test="reviewDate != null "> and review_date = #{reviewDate}</if>
|
<if test="reviewDate != null "> and review_date = #{reviewDate}</if>
|
||||||
@@ -27,8 +27,8 @@
|
|||||||
select j.*,r.review_date
|
select j.*,r.review_date
|
||||||
from job as j
|
from job as j
|
||||||
inner join app_review_job as r on r.job_id = j.job_id and user_id = #{userId}
|
inner join app_review_job as r on r.job_id = j.job_id and user_id = #{userId}
|
||||||
where j.del_flag = 0
|
where j.del_flag = '0'
|
||||||
and r.del_flag = 0
|
and r.del_flag = '0'
|
||||||
<if test="jobQuery.startDate != null "> and r.review_date > concat(#{jobQuery.startDate},' 23:59:59')</if>
|
<if test="jobQuery.startDate != null "> and r.review_date > concat(#{jobQuery.startDate},' 23:59:59')</if>
|
||||||
<if test="jobQuery.endDate != null "> and r.review_date < concat(#{jobQuery.endDate},' 23:59:59')</if>
|
<if test="jobQuery.endDate != null "> and r.review_date < concat(#{jobQuery.endDate},' 23:59:59')</if>
|
||||||
<if test="jobQuery.jobTitle != null and jobQuery.jobTitle!=''"> and j.job_title like concat('%',#{jobQuery.jobTitle},'%') </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
|
select r.review_date
|
||||||
from job as j
|
from job as j
|
||||||
inner join app_review_job as r on r.job_id = j.job_id and user_id = #{userId}
|
inner join app_review_job as r on r.job_id = j.job_id and user_id = #{userId}
|
||||||
where j.del_flag = 0
|
where j.del_flag = '0'
|
||||||
and r.del_flag = 0
|
and r.del_flag = '0'
|
||||||
group by r.review_date
|
group by r.review_date
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
@@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectAppUserList" parameterType="AppUser" resultMap="AppUserResult">
|
<select id="selectAppUserList" parameterType="AppUser" resultMap="AppUserResult">
|
||||||
<include refid="selectAppUserVo"/>
|
<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="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
<if test="age != null and age != ''"> and age = #{age}</if>
|
<if test="age != null and age != ''"> and age = #{age}</if>
|
||||||
<if test="sex != null and sex != ''"> and sex = #{sex}</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 * FROM app_user WHERE user_id IN (
|
||||||
select DISTINCT au.USER_ID from APP_USER au
|
select DISTINCT au.USER_ID from APP_USER au
|
||||||
INNER JOIN JOB_APPLY ja ON ja.USER_ID = au.USER_ID
|
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>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectCommercialAreaList" parameterType="CommercialArea" resultMap="CommercialAreaResult">
|
<select id="selectCommercialAreaList" parameterType="CommercialArea" resultMap="CommercialAreaResult">
|
||||||
<include refid="selectCommercialAreaVo"/>
|
<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="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="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||||
<if test="latitude != null "> and latitude = #{latitude}</if>
|
<if test="latitude != null "> and latitude = #{latitude}</if>
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<select id="selectCompanyCardCollectionList" parameterType="CompanyCardCollection" resultMap="CompanyCardCollectionResult">
|
<select id="selectCompanyCardCollectionList" parameterType="CompanyCardCollection" resultMap="CompanyCardCollectionResult">
|
||||||
<include refid="selectCompanyCardCollectionVo"/>
|
<include refid="selectCompanyCardCollectionVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
<if test="companyCardId != null "> and company_card_id = #{companyCardId}</if>
|
<if test="companyCardId != null "> and company_card_id = #{companyCardId}</if>
|
||||||
</where>
|
</where>
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<select id="selectCompanyCardList" parameterType="CompanyCard" resultMap="CompanyCardResult">
|
<select id="selectCompanyCardList" parameterType="CompanyCard" resultMap="CompanyCardResult">
|
||||||
<include refid="selectCompanyCardVo"/>
|
<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="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
<if test="targ != null and targ != ''"> and targ = #{targ}</if>
|
<if test="targ != null and targ != ''"> and targ = #{targ}</if>
|
||||||
<if test="backgroudColor != null and backgroudColor != ''"> and backgroud_color = #{backgroudColor}</if>
|
<if test="backgroudColor != null and backgroudColor != ''"> and backgroud_color = #{backgroudColor}</if>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="selectCompanyCardListVO" resultType="com.ruoyi.cms.domain.vo.CompanyCardVO">
|
<select id="selectCompanyCardListVO" resultType="com.ruoyi.cms.domain.vo.CompanyCardVO">
|
||||||
<include refid="selectCompanyCardVo"/>
|
<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="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
<if test="targ != null and targ != ''"> and targ = #{targ}</if>
|
<if test="targ != null and targ != ''"> and targ = #{targ}</if>
|
||||||
<if test="backgroudColor != null and backgroudColor != ''"> and backgroud_color = #{backgroudColor}</if>
|
<if test="backgroudColor != null and backgroudColor != ''"> and backgroud_color = #{backgroudColor}</if>
|
||||||
|
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectCompanyCollectionList" parameterType="CompanyCollection" resultMap="CompanyCollectionResult">
|
<select id="selectCompanyCollectionList" parameterType="CompanyCollection" resultMap="CompanyCollectionResult">
|
||||||
<include refid="selectCompanyCollectionVo"/>
|
<include refid="selectCompanyCollectionVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="companyId != null "> and company_id = #{companyId}</if>
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
</where>
|
</where>
|
||||||
@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Company">
|
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Company">
|
||||||
select *
|
select *
|
||||||
from company
|
from company
|
||||||
where del_flag = 0
|
where del_flag = '0'
|
||||||
and company_id in (SELECT DISTINCT (company_id)
|
and company_id in (SELECT DISTINCT (company_id)
|
||||||
FROM qd.company_collection
|
FROM qd.company_collection
|
||||||
where del_flag = 0 and user_id = #{userId}
|
where del_flag = 0 and user_id = #{userId}
|
||||||
|
@@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
|
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
|
||||||
<include refid="selectCompanyVo"/>
|
<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="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
<if test="location != null and location != ''"> and location = #{location}</if>
|
<if test="location != null and location != ''"> and location = #{location}</if>
|
||||||
<if test="industry != null and industry != ''"> and industry = #{industry}</if>
|
<if test="industry != null and industry != ''"> and industry = #{industry}</if>
|
||||||
|
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectFairCompanyList" parameterType="FairCompany" resultMap="FairCompanyResult">
|
<select id="selectFairCompanyList" parameterType="FairCompany" resultMap="FairCompanyResult">
|
||||||
<include refid="selectFairCompanyVo"/>
|
<include refid="selectFairCompanyVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="companyId != null "> and company_id = #{companyId}</if>
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
||||||
<if test="jobFairId != null "> and job_fair_id = #{jobFairId}</if>
|
<if test="jobFairId != null "> and job_fair_id = #{jobFairId}</if>
|
||||||
</where>
|
</where>
|
||||||
|
@@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectFileList" parameterType="File" resultMap="FileResult">
|
<select id="selectFileList" parameterType="File" resultMap="FileResult">
|
||||||
<include refid="selectFileVo"/>
|
<include refid="selectFileVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
||||||
<if test="bussinessId != null "> and bussinessId = #{bussinessId}</if>
|
<if test="bussinessId != null "> and bussinessId = #{bussinessId}</if>
|
||||||
</where>
|
</where>
|
||||||
|
@@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectIndustryList" parameterType="Industry" resultMap="IndustryResult">
|
<select id="selectIndustryList" parameterType="Industry" resultMap="IndustryResult">
|
||||||
<include refid="selectIndustryVo"/>
|
<include refid="selectIndustryVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||||
<if test="industryName != null and industryName != ''"> and industry_name like concat('%', #{industryName}, '%')</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="orderNum != null "> and order_num = #{orderNum}</if>
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<select id="selectJobApplyList" parameterType="JobApply" resultMap="JobApplyResult">
|
<select id="selectJobApplyList" parameterType="JobApply" resultMap="JobApplyResult">
|
||||||
<include refid="selectJobApplyVo"/>
|
<include refid="selectJobApplyVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="jobId != null "> and job_id = #{jobId}</if>
|
<if test="jobId != null "> and job_id = #{jobId}</if>
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
<if test="matchingDegree != null "> and matching_degree = #{matchingDegree}</if>
|
<if test="matchingDegree != null "> and matching_degree = #{matchingDegree}</if>
|
||||||
@@ -33,9 +33,9 @@
|
|||||||
SELECT ja.create_time AS applyTime, j.*
|
SELECT ja.create_time AS applyTime, j.*
|
||||||
FROM job j
|
FROM job j
|
||||||
INNER JOIN job_apply ja ON j.job_id = ja.job_id
|
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 j.is_publish = 1
|
||||||
AND ja.del_flag = 0
|
AND ja.del_flag = '0'
|
||||||
AND ja.user_id = #{userId}
|
AND ja.user_id = #{userId}
|
||||||
ORDER BY ja.create_time DESC
|
ORDER BY ja.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
SELECT au.*,jc.create_time as apply_date,jc.matching_degree
|
SELECT au.*,jc.create_time as apply_date,jc.matching_degree
|
||||||
from job_apply as jc
|
from job_apply as jc
|
||||||
inner join app_user as au on jc.user_id = au.user_id
|
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>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectJobCollectionList" parameterType="JobCollection" resultMap="JobCollectionResult">
|
<select id="selectJobCollectionList" parameterType="JobCollection" resultMap="JobCollectionResult">
|
||||||
<include refid="selectJobCollectionVo"/>
|
<include refid="selectJobCollectionVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="jobId != null "> and job_id = #{jobId}</if>
|
<if test="jobId != null "> and job_id = #{jobId}</if>
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
</where>
|
</where>
|
||||||
@@ -30,11 +30,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Job">
|
<select id="collectionJob" resultType="com.ruoyi.cms.domain.Job">
|
||||||
select *
|
select *
|
||||||
from job
|
from job
|
||||||
where del_flag = 0
|
where del_flag = '0'
|
||||||
and is_publish = 1
|
and is_publish = 1
|
||||||
and job_id in (SELECT DISTINCT (job_id)
|
and job_id in (SELECT DISTINCT (job_id)
|
||||||
FROM qd.job_collection
|
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)
|
order by create_time desc)
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectJobFairList" parameterType="JobFair" resultMap="JobFairResult">
|
<select id="selectJobFairList" parameterType="JobFair" resultMap="JobFairResult">
|
||||||
<include refid="selectJobFairVo"/>
|
<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="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
<if test="jobFairType != null and jobFairType != ''"> and job_fair_type = #{jobFairType}</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="location != null and location != ''"> and location = #{location}</if>
|
||||||
@@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</select>
|
</select>
|
||||||
<select id="appList" resultType="com.ruoyi.cms.domain.JobFair" parameterType="com.ruoyi.cms.domain.JobFair">
|
<select id="appList" resultType="com.ruoyi.cms.domain.JobFair" parameterType="com.ruoyi.cms.domain.JobFair">
|
||||||
<include refid="selectJobFairVo"/>
|
<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="jobFairType != null and jobFairType != ''"> and job_fair_type = #{jobFairType}</if>
|
||||||
<if test="queryDate != null "> and start_time >= #{queryDate} and end_time <= #{queryDate}</if>
|
<if test="queryDate != null "> and start_time >= #{queryDate} and end_time <= #{queryDate}</if>
|
||||||
</where>
|
</where>
|
||||||
@@ -50,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
select j.*
|
select j.*
|
||||||
from qd.job_fair as 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}
|
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">
|
<if test="type!=null and type==1">
|
||||||
-- 未开始
|
-- 未开始
|
||||||
and j.START_TIME > now()
|
and j.START_TIME > now()
|
||||||
|
@@ -118,7 +118,7 @@
|
|||||||
|
|
||||||
<select id="selectJobList" parameterType="Job" resultMap="JobResult">
|
<select id="selectJobList" parameterType="Job" resultMap="JobResult">
|
||||||
<include refid="selectJobVo"/>
|
<include refid="selectJobVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="jobTitle != null and jobTitle != ''"> and job_title = #{jobTitle}</if>
|
<if test="jobTitle != null and jobTitle != ''"> and job_title = #{jobTitle}</if>
|
||||||
<if test="minSalary != null "> and min_salary = #{minSalary}</if>
|
<if test="minSalary != null "> and min_salary = #{minSalary}</if>
|
||||||
<if test="maxSalary != null "> and max_salary = #{maxSalary}</if>
|
<if test="maxSalary != null "> and max_salary = #{maxSalary}</if>
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="selectAppJobList" resultType="com.ruoyi.cms.domain.query.ESJobSearch">
|
<select id="selectAppJobList" resultType="com.ruoyi.cms.domain.query.ESJobSearch">
|
||||||
<include refid="selectJobVo"/>
|
<include refid="selectJobVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="jobTitle != null and jobTitle != ''"> and job_title = #{jobTitle}</if>
|
<if test="jobTitle != null and jobTitle != ''"> and job_title = #{jobTitle}</if>
|
||||||
<if test="minSalary != null "> and min_salary = #{minSalary}</if>
|
<if test="minSalary != null "> and min_salary = #{minSalary}</if>
|
||||||
<if test="maxSalary != null "> and max_salary = #{maxSalary}</if>
|
<if test="maxSalary != null "> and max_salary = #{maxSalary}</if>
|
||||||
|
@@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectJobTitleList" parameterType="JobTitle" resultMap="JobTitleResult">
|
<select id="selectJobTitleList" parameterType="JobTitle" resultMap="JobTitleResult">
|
||||||
<include refid="selectJobTitleVo"/>
|
<include refid="selectJobTitleVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||||
<if test="jobName != null and jobName != ''"> and job_name like concat('%', #{jobName}, '%')</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="orderNum != null "> and order_num = #{orderNum}</if>
|
||||||
|
@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectSubwayLineList" parameterType="SubwayLine" resultMap="SubwayLineResult">
|
<select id="selectSubwayLineList" parameterType="SubwayLine" resultMap="SubwayLineResult">
|
||||||
<include refid="selectSubwayLineVo"/>
|
<include refid="selectSubwayLineVo"/>
|
||||||
<where> del_flag = 0
|
<where> del_flag = '0'
|
||||||
<if test="lineName != null and lineName != ''"> and line_name like concat('%', #{lineName}, '%')</if>
|
<if test="lineName != null and lineName != ''"> and line_name like concat('%', #{lineName}, '%')</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</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
|
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
|
from subway_line as l
|
||||||
inner join subway_station as s on s.line_id = l.line_id
|
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>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
@@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectSubwayStationList" parameterType="SubwayStation" resultMap="SubwayStationResult">
|
<select id="selectSubwayStationList" parameterType="SubwayStation" resultMap="SubwayStationResult">
|
||||||
<include refid="selectSubwayStationVo"/>
|
<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="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="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||||
<if test="lineName != null "> and line_name like concat('%', #{lineName}, '%')</if>
|
<if test="lineName != null "> and line_name like concat('%', #{lineName}, '%')</if>
|
||||||
|
Reference in New Issue
Block a user