|
@@ -203,9 +203,9 @@
|
|
select
|
|
select
|
|
jl_service_user.id,
|
|
jl_service_user.id,
|
|
jl_service_user.truename,
|
|
jl_service_user.truename,
|
|
- jl_service_user_info.constellation,
|
|
|
|
|
|
+ fgetconstellationname(jl_service_user_info.constellation) constellation,
|
|
year(CURDATE())-substring(jl_service_user_info.idcard,7,4) age,
|
|
year(CURDATE())-substring(jl_service_user_info.idcard,7,4) age,
|
|
- jl_service_user_info.zodiac,
|
|
|
|
|
|
+ fgetzodiacname(jl_service_user_info.zodiac) zodiac,
|
|
fgetcityname(CONCAT(substring(jl_service_user_info.idcard,1,4),'00')) np,
|
|
fgetcityname(CONCAT(substring(jl_service_user_info.idcard,1,4),'00')) np,
|
|
city.cityname,
|
|
city.cityname,
|
|
jl_service_user_info.seniority,
|
|
jl_service_user_info.seniority,
|
|
@@ -296,6 +296,98 @@
|
|
select
|
|
select
|
|
jl_service_user.id,
|
|
jl_service_user.id,
|
|
jl_service_user.truename,
|
|
jl_service_user.truename,
|
|
|
|
+ fgetconstellationname(jl_service_user_info.constellation) constellation,
|
|
|
|
+ jl_service_user_info.idcard,
|
|
|
|
+ year(CURDATE())-substring(jl_service_user_info.idcard,7,4) age,
|
|
|
|
+ fgetzodiacname(jl_service_user_info.zodiac) zodiac,
|
|
|
|
+ fgetcityname(CONCAT(substring(jl_service_user_info.idcard,1,4),'00')) np,
|
|
|
|
+ city.cityname,
|
|
|
|
+ jl_service_user_info.seniority,
|
|
|
|
+ jl_service_user_info.gender,
|
|
|
|
+ jl_service_user_info.city,
|
|
|
|
+ jl_service_user.status,
|
|
|
|
+ jl_service_user_info.babynumber,
|
|
|
|
+ jl_service_user_info.ethnicgroup,
|
|
|
|
+ jl_service_user_info.education,
|
|
|
|
+ jl_service_user_info.height,
|
|
|
|
+ jl_service_user_info.marriage,
|
|
|
|
+ jl_service_user_info.highlight,
|
|
|
|
+ jl_service_user_info.weight,
|
|
|
|
+ city.citycode,
|
|
|
|
+ IFNULL(mm_info_resume.resume_path,0) resume_path
|
|
|
|
+ from jl_service_user
|
|
|
|
+ LEFT JOIN jl_service_user_info on jl_service_user.id = jl_service_user_info.id
|
|
|
|
+ LEFT JOIN (select service_id,GROUP_CONCAT(jl_region.`name`) cityname,GROUP_CONCAT(store_id) citycode from jl_store_service LEFT JOIN jl_region
|
|
|
|
+ on jl_store_service.store_id = jl_region.`code` group by service_id) as
|
|
|
|
+ city ON jl_service_user.id = city.service_id
|
|
|
|
+ left join mm_info_resume on jl_service_user.id = mm_info_resume.servant_code
|
|
|
|
+ where 1=1
|
|
|
|
+ <if test="ids != null ">
|
|
|
|
+ and jl_service_user.id not in ( #{ids,jdbcType=INTEGER} )
|
|
|
|
+ </if>
|
|
|
|
+ <if test="id != null ">
|
|
|
|
+ and jl_service_user.id = #{id,jdbcType=INTEGER}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="truename != null ">
|
|
|
|
+ and jl_service_user.truename like "%"#{truename,jdbcType=VARCHAR}"%"
|
|
|
|
+ </if>
|
|
|
|
+ <if test="constellation != null ">
|
|
|
|
+ and constellation like "%"#{constellation,jdbcType=VARCHAR}"%"
|
|
|
|
+ </if>
|
|
|
|
+ <if test="zodiac != null ">
|
|
|
|
+ and zodiac = #{zodiac,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="np != null ">
|
|
|
|
+ and city = #{np,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="experience != null ">
|
|
|
|
+ and seniority = #{experience,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="gender != null ">
|
|
|
|
+ and gender = #{gender,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="status != null ">
|
|
|
|
+ and status = #{status,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="gender != null ">
|
|
|
|
+ and gender = #{gender,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="babynumber != null ">
|
|
|
|
+ and babynumber = #{babynumber,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="cityname != null ">
|
|
|
|
+ and citycode like "%"#{cityname,jdbcType=VARCHAR}"%"
|
|
|
|
+ </if>
|
|
|
|
+ <if test="ethnicgroup != null ">
|
|
|
|
+ and ethnicgroup = #{ethnicgroup,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="education != null ">
|
|
|
|
+ and education = #{education,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="height != null ">
|
|
|
|
+ and height = #{height,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="marriage != null ">
|
|
|
|
+ and marriage = #{marriage,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="highlight != null ">
|
|
|
|
+ and highlight like "%"#{highlight,jdbcType=VARCHAR}"%"
|
|
|
|
+ </if>
|
|
|
|
+ <if test="weight != null ">
|
|
|
|
+ and weight = #{weight,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="agestart != null and ageend != null ">
|
|
|
|
+ and year(CURDATE())-substring(jl_service_user_info.idcard,7,4) >= #{agestart,jdbcType=VARCHAR}
|
|
|
|
+ and year(CURDATE())-substring(jl_service_user_info.idcard,7,4) <= #{ageend,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
|
|
+ <!--age-->
|
|
|
|
+ order by gender desc , babynumber desc , status asc
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="queryEditServiceUser" resultMap="queryStockResultMap" parameterType="com.ygj.yuemum.domain.maternitymatron.QueryServiceUser">
|
|
|
|
+ select
|
|
|
|
+ jl_service_user.id,
|
|
|
|
+ jl_service_user.truename,
|
|
jl_service_user_info.constellation,
|
|
jl_service_user_info.constellation,
|
|
jl_service_user_info.idcard,
|
|
jl_service_user_info.idcard,
|
|
year(CURDATE())-substring(jl_service_user_info.idcard,7,4) age,
|
|
year(CURDATE())-substring(jl_service_user_info.idcard,7,4) age,
|