1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225 |
- <?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.hz.employmentsite.mapper.cquery.StatisticsCQuery">
- <select id="findSystemDataCount" resultType="com.hz.employmentsite.vo.statistics.SystemDataCount">
- SELECT
- site.SiteID,
- site.RegionCode,
- site.SiteName,
- area.`name` AS regionName,
- -- 驿站人员数量
- (
- SELECT
- COUNT( 1 )
- FROM
- pc_site_user site_user
- LEFT JOIN sys_user sys_user ON site_user.UserID = sys_user.UserID
- WHERE
- site_user.SiteID = site.SiteID
- AND sys_user.RecordStatus = 1
- ) AS siteUserCount,
- -- 指定时间段的登记企业数量
- (
- SELECT
- COUNT( 1 )
- FROM
- pc_company
- WHERE
- SiteID = site.SiteID
- <if test="startDate != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- ) AS companyCount,
- -- 指定时间段的登记岗位数量
- (
- SELECT
- COUNT( 1 )
- FROM
- pc_post post
- WHERE
- CompanyID IN ( SELECT company.CompanyID FROM pc_company company WHERE company.SiteID = site.SiteID )
- <if test="startDate != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- ) AS postCount,
- (case when (
- SELECT
- COUNT( 1 )
- FROM
- pc_post post
- WHERE
- CompanyID IN ( SELECT company.CompanyID FROM pc_company company WHERE company.SiteID = site.SiteID )
- <if test="startDate != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- )=0 then 0 else
- (
- SELECT
- sum(post.RecruitCount)
- FROM
- pc_post post
- WHERE
- CompanyID IN ( SELECT company.CompanyID FROM pc_company company WHERE company.SiteID = site.SiteID )
- <if test="startDate != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- ) end )AS postRecruitCount,
- -- 指定时间段的登记求职人员数量
- (
- SELECT
- COUNT( 1 )
- FROM
- pc_jobuser
- WHERE
- SiteID = site.SiteID
- <if test="startDate != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- ) AS jobUserCount
- FROM
- pc_site site
- LEFT JOIN area_code area ON site.RegionCode = area.`code`
- ORDER BY site.RegionCode
- </select>
- <select id="findWeekSystemDataCount" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- subquery.RegionCode,
- subquery.RegionName,
- SUM(subquery.companyCount) AS companyCount,
- SUM(subquery.postCount) AS postCount,
- SUM(subquery.jobUserCount) AS jobUserCount
- FROM
- (
- SELECT
- site.SiteID,
- site.RegionCode,
- area.`Name` AS RegionName,
- -- 指定时间段的登记企业数量
- (
- SELECT COUNT(1)
- FROM pc_company
- WHERE
- SiteID = site.SiteID
- <if test="startDate != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- ) AS companyCount,
- -- 指定时间段的登记岗位数量
- (
- SELECT COUNT(1)
- FROM pc_post post
- WHERE
- CompanyID IN (SELECT company.CompanyID FROM pc_company company WHERE company.SiteID = site.SiteID)
- <if test="startDate != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- ) AS postCount,
- -- 指定时间段的登记求职人员数量
- (
- SELECT COUNT(1)
- FROM pc_jobuser
- WHERE
- SiteID = site.SiteID
- <if test="startDate != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- ) AS jobUserCount
- FROM
- pc_site site
- LEFT JOIN area_code area ON site.RegionCode = area.`code`
- LEFT JOIN pc_site_institution siteInst ON site.SiteID = siteInst.SiteID
- WHERE
- 1=1
- <if test="siteID!='' and siteID!=null">
- and site.siteID = #{siteID}
- </if>
- <if test="institutionID!='' and institutionID!=null">
- and siteInst.institutionID = #{institutionID}
- </if>
- <if test="regionCode!='' and regionCode!=null">
- and area.`code` = #{regionCode}
- </if>
- ) AS subquery
- GROUP BY
- subquery.RegionCode,
- subquery.RegionName
- ORDER BY
- subquery.RegionCode;
- </select>
- <select id="findRegionSiteUserCount" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- area.`code` AS regionCode,
- area.`name` AS regionName,
- COUNT( sysUser.UserID ) AS siteUserCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON site.RegionCode = area.`code`
- LEFT JOIN pc_site_user siteUser ON site.SiteID = siteUser.SiteID
- LEFT JOIN sys_user sysUser ON siteUser.UserID = sysUser.UserID AND sysUser.RecordStatus = 1
- LEFT JOIN pc_site_institution siteInst ON site.SiteID = siteInst.SiteID
- WHERE
- area.lv = 3
- <if test="siteID!='' and siteID!=null">
- and site.siteID = #{siteID}
- </if>
- <if test="institutionID!='' and institutionID!=null">
- and siteInst.institutionID = #{institutionID}
- </if>
- <if test="regionCode!='' and regionCode!=null">
- and area.`code` = #{regionCode}
- </if>
- GROUP BY
- area.`code`,
- area.`name`
- ORDER BY
- area.`code`
- </select>
- <select id="findJobUserCountByAgeRange" resultType="com.hz.employmentsite.vo.statistics.jobUser.AgeRangeJobUserCount">
- SELECT
- CASE
- WHEN TIMESTAMPDIFF(YEAR, BirthDay, CURDATE()) BETWEEN 16 AND 25 THEN '16-25岁'
- WHEN TIMESTAMPDIFF(YEAR, BirthDay, CURDATE()) BETWEEN 26 AND 35 THEN '26-35岁'
- WHEN TIMESTAMPDIFF(YEAR, BirthDay, CURDATE()) BETWEEN 36 AND 45 THEN '36-45岁'
- WHEN TIMESTAMPDIFF(YEAR, BirthDay, CURDATE()) BETWEEN 46 AND 55 THEN '46-55岁'
- ELSE '55岁以上'
- END AS AgeRange,
- Sex,
- COUNT(1) AS jobUserCount
- FROM
- pc_jobuser jobUser
- LEFT JOIN pc_site site ON jobUser.SiteID = site.SiteID
- WHERE
- 1=1
- <if test="isNotCity!=null">
- and site.RegionCode != '441301000000000'
- </if>
- <if test="year!='' and year!=null">
- and YEAR(CreateTime) = #{year}
- </if>
- <if test="month!='' and month!=null">
- and MONTH(CreateTime) = #{month}
- </if>
- GROUP BY
- AgeRange,
- Sex
- ORDER BY
- AgeRange,
- Sex;
- </select>
- <select id="findJobUserCountByPersonType" resultType="com.hz.employmentsite.vo.statistics.jobUser.PersonTypeJobUserCount">
- SELECT
- jobuser.KeyPersonTypeID,
- keytype.`Name` AS KeyTypeName,
- jobuser.CultureRank,
- culture.`Name` AS CultureName,
- COUNT( 1 ) AS jobUserCount
- FROM
- `pc_jobuser` jobuser
- LEFT JOIN sys_dictionary_item keytype ON jobuser.KeyPersonTypeID = keytype.`Value`
- AND keytype.DictionaryCode = 'KeyPersonType'
- LEFT JOIN sys_dictionary_item culture ON jobuser.CultureRank = culture.`Value`
- AND culture.DictionaryCode = 'HighestDegree'
- WHERE
- CultureRank IS NOT NULL
- <if test="year!='' and year!=null">
- and YEAR(jobuser.CreateTime) = #{year}
- </if>
- <if test="month!='' and month!=null">
- and MONTH(jobuser.CreateTime) = #{month}
- </if>
- GROUP BY
- jobuser.KeyPersonTypeID,
- keytype.`Name`,
- jobuser.CultureRank
- ORDER BY
- jobuser.KeyPersonTypeID,
- jobuser.CultureRank DESC
- </select>
- <select id="findJobUserByRegion" resultType="com.hz.employmentsite.vo.statistics.jobUser.RegionJobUserCount">
- SELECT
- area.`code` AS regionCode,
- area.`name` AS regionName,
- COUNT( jobUser.JobuserID ) AS jobUserCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_jobuser jobUser ON site.SiteID = jobUser.SiteID
- WHERE
- area.lv = 3
- <if test="isNotCity!=null">
- and site.RegionCode != '441301000000000'
- </if>
- <if test="year!='' and year!=null">
- and YEAR(jobUser.CreateTime) = #{year}
- </if>
- <if test="month!='' and month!=null">
- and MONTH(jobUser.CreateTime) = #{month}
- </if>
- <if test="startDate != null">
- and DATE(jobUser.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(jobUser.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- area.`code`,
- area.`name`
- ORDER BY
- area.`code`
- </select>
- <select id="findJobUserByRegionAndPersonType" resultType="com.hz.employmentsite.vo.statistics.jobUser.RegionJobUserCount">
- SELECT
- area.`code` AS regionCode,
- area.`name` AS regionName,
- COUNT( jobUser.JobuserID ) AS jobUserCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_jobuser jobUser ON site.SiteID = jobUser.SiteID
- WHERE
- area.lv = 3
- AND jobUser.KeyPersonTypeID IN (13,14,15,16,17,18,19,20,21,22,23,24)
- <if test="year!='' and year!=null">
- and YEAR(jobUser.CreateTime) = #{year}
- </if>
- <if test="month!='' and month!=null">
- and MONTH(jobUser.CreateTime) = #{month}
- </if>
- GROUP BY
- area.`code`,
- area.`name`
- ORDER BY
- area.`code`
- </select>
- <select id="findYearCompanyCount" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- area.`code` AS RegionCode,
- area.`name` AS RegionName,
- DATE_FORMAT( company.CreateTime, '%m' ) AS `Month`,
- COUNT( 1 ) AS CompanyCount
- FROM
- pc_company company
- LEFT JOIN pc_site site ON company.SiteID = site.SiteID
- LEFT JOIN pc_site_institution siteInst ON site.SiteID = siteInst.SiteID
- LEFT JOIN area_code area ON area.`code` = site.RegionCode
- WHERE
- 1=1
- <if test="year!='' and year!=null">
- and YEAR(company.CreateTime) = #{year}
- </if>
- <if test="startDate != null">
- and DATE(company.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(company.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- <if test="siteID!='' and siteID!=null">
- and site.siteID = #{siteID}
- </if>
- <if test="institutionID!='' and institutionID!=null">
- and siteInst.institutionID = #{institutionID}
- </if>
- <if test="regionCode!='' and regionCode!=null">
- and area.`code` = #{regionCode}
- </if>
- GROUP BY
- area.`code`,
- area.`name`,
- `Month`
- ORDER BY
- area.`code`,
- `Month` ASC
- </select>
- <select id="findYearPostCount" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- area.`code` AS RegionCode,
- area.`name` AS RegionName,
- DATE_FORMAT( post.CreateTime, '%m' ) AS `Month`,
- COUNT( 1 ) AS PostCount,
- SUM( post.RecruitCount ) AS PostRecruitCount
- FROM
- pc_post post
- LEFT JOIN pc_company company ON post.CompanyID = company.CompanyID
- LEFT JOIN pc_site site ON company.SiteID = site.SiteID
- LEFT JOIN pc_site_institution siteInst ON site.SiteID = siteInst.SiteID
- LEFT JOIN area_code area ON area.`code` = site.RegionCode
- WHERE
- 1=1
- <if test="year!='' and year!=null">
- and YEAR(post.CreateTime) = #{year}
- </if>
- <if test="startDate != null">
- and DATE(post.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(post.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- <if test="siteID!='' and siteID!=null">
- and site.siteID = #{siteID}
- </if>
- <if test="institutionID!='' and institutionID!=null">
- and siteInst.institutionID = #{institutionID}
- </if>
- <if test="regionCode!='' and regionCode!=null">
- and area.`code` = #{regionCode}
- </if>
- GROUP BY
- area.`code`,
- area.`name`,
- `Month`
- ORDER BY
- area.`code`,
- `Month` ASC
- </select>
- <select id="findYearJobUserCount" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- area.`code` AS RegionCode,
- area.`name` AS RegionName,
- DATE_FORMAT( jobUser.CreateTime, '%m' ) AS `Month`,
- COUNT( 1 ) AS JobUserCount
- FROM
- pc_jobuser jobUser
- LEFT JOIN pc_site site ON jobUser.SiteID = site.SiteID
- LEFT JOIN pc_site_institution siteInst ON site.SiteID = siteInst.SiteID
- LEFT JOIN area_code area ON area.`code` = site.RegionCode
- WHERE
- 1=1
- <if test="year!='' and year!=null">
- and YEAR(jobUser.CreateTime) = #{year}
- </if>
- <if test="startDate != null">
- and DATE(jobUser.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(jobUser.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- <if test="siteID!='' and siteID!=null">
- and site.siteID = #{siteID}
- </if>
- <if test="institutionID!='' and institutionID!=null">
- and siteInst.institutionID = #{institutionID}
- </if>
- <if test="regionCode!='' and regionCode!=null">
- and area.`code` = #{regionCode}
- </if>
- GROUP BY
- area.`code`,
- area.`name`,
- `Month`
- ORDER BY
- area.`code`,
- `Month` ASC
- </select>
- <select id="findMonthCompanyCount" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- area.`code` AS RegionCode,
- area.`name` AS RegionName,
- WEEK ( company.CreateTime, 5 ) AS `Week`,
- COUNT( 1 ) AS CompanyCount
- FROM
- pc_company company
- LEFT JOIN pc_site site ON company.SiteID = site.SiteID
- LEFT JOIN pc_site_institution siteInst ON site.SiteID = siteInst.SiteID
- LEFT JOIN area_code area ON area.`code` = site.RegionCode
- WHERE
- YEAR ( company.CreateTime ) = #{year}
- AND MONTH ( company.CreateTime ) = #{month}
- <if test="siteID!='' and siteID!=null">
- and site.siteID = #{siteID}
- </if>
- <if test="institutionID!='' and institutionID!=null">
- and siteInst.institutionID = #{institutionID}
- </if>
- <if test="regionCode!='' and regionCode!=null">
- and area.`code` = #{regionCode}
- </if>
- GROUP BY
- area.`code`,
- area.`name`,
- `Week`
- ORDER BY
- area.`code`,
- `Week` ASC
- </select>
- <select id="findMonthPostCount" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- area.`code` AS RegionCode,
- area.`name` AS RegionName,
- WEEK( post.CreateTime, 5 ) AS `Week`,
- COUNT( 1 ) AS PostCount,
- SUM( post.RecruitCount ) AS PostRecruitCount
- FROM
- pc_post post
- LEFT JOIN pc_company company ON post.CompanyID = company.CompanyID
- LEFT JOIN pc_site site ON company.SiteID = site.SiteID
- LEFT JOIN pc_site_institution siteInst ON site.SiteID = siteInst.SiteID
- LEFT JOIN area_code area ON area.`code` = site.RegionCode
- WHERE
- YEAR ( post.CreateTime ) = #{year}
- AND MONTH ( post.CreateTime ) = #{month}
- <if test="siteID!='' and siteID!=null">
- and site.siteID = #{siteID}
- </if>
- <if test="institutionID!='' and institutionID!=null">
- and siteInst.institutionID = #{institutionID}
- </if>
- <if test="regionCode!='' and regionCode!=null">
- and area.`code` = #{regionCode}
- </if>
- GROUP BY
- area.`code`,
- area.`name`,
- `Week`
- ORDER BY
- area.`code`,
- `Week` ASC
- </select>
- <select id="findMonthJobUserCount" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- area.`code` AS RegionCode,
- area.`name` AS RegionName,
- WEEK( jobUser.CreateTime, 5 ) AS `Week`,
- COUNT( 1 ) AS JobUserCount
- FROM
- pc_jobuser jobUser
- LEFT JOIN pc_site site ON jobUser.SiteID = site.SiteID
- LEFT JOIN pc_site_institution siteInst ON site.SiteID = siteInst.SiteID
- LEFT JOIN area_code area ON area.`code` = site.RegionCode
- WHERE
- YEAR ( jobUser.CreateTime ) = #{year}
- AND MONTH ( jobUser.CreateTime ) = #{month}
- <if test="siteID!='' and siteID!=null">
- and site.siteID = #{siteID}
- </if>
- <if test="institutionID!='' and institutionID!=null">
- and siteInst.institutionID = #{institutionID}
- </if>
- <if test="regionCode!='' and regionCode!=null">
- and area.`code` = #{regionCode}
- </if>
- GROUP BY
- area.`code`,
- area.`name`,
- `Week`
- ORDER BY
- area.`code`,
- `Week` ASC
- </select>
- <select id="findJobUserCountByStatus" resultType="com.hz.employmentsite.vo.statistics.jobUser.RegionJobUserCount">
- SELECT
- area.`code` AS regionCode,
- area.`name` AS regionName,
- COUNT( jobUser.JobuserID ) AS jobUserCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_jobuser jobUser ON site.SiteID = jobUser.SiteID
- WHERE
- area.lv = 3
- <if test="jobStatus != null and jobStatus == 1">
- AND jobUser.JobStatusID = 1
- </if>
- <if test="jobStatus != null and jobStatus > 1">
- AND jobUser.JobStatusID > 1
- </if>
- GROUP BY
- area.`code`,
- area.`name`
- ORDER BY
- area.`code`
- </select>
- <select id="findCompanyCountByRegion" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- area.`code` AS RegionCode,
- area.`name` AS RegionName,
- COUNT( company.CompanyID ) AS companyCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_company company ON site.SiteID = company.SiteID
- WHERE
- area.lv = 3
- <if test="startDate != null">
- and DATE(company.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(company.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- area.`code`,
- area.`name`
- ORDER BY
- area.`code`
- </select>
- <select id="findPostRecruitCountByRegion" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- area.`code` AS RegionCode,
- area.`name` AS RegionName,
- SUM( post.RecruitCount ) AS postRecruitCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_company company ON site.SiteID = company.SiteID
- LEFT JOIN pc_post post ON company.CompanyID = post.CompanyID
- WHERE
- area.lv = 3
- <if test="startDate != null">
- and DATE(post.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(post.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- area.`code`,
- area.`name`
- ORDER BY
- area.`code`
- </select>
- <select id="findCompanyModelDataByRegion" resultType="com.hz.employmentsite.vo.statistics.company.ModelCompanyCount">
- SELECT
- area.`code` AS RegionCode,
- area.`name` AS RegionName,
- modelDit.`Value` AS CompanyModel,
- modelDit.`Name` AS CompanyModelName,
- COUNT( company.CompanyID ) AS companyCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_company company ON site.SiteID = company.SiteID
- LEFT JOIN sys_dictionary_item modelDit ON company.CompanyModel = modelDit.`Value` AND modelDit.DictionaryCode = 'CompanyModel'
- WHERE
- area.lv = 3
- AND company.CompanyModel IS NOT NULL
- GROUP BY
- area.`code`,
- area.`name`,
- modelDit.`Value`,
- modelDit.`Name`
- ORDER BY
- area.`code`
- </select>
- <select id="findDifficultyPersonTypeCount" resultType="com.hz.employmentsite.vo.statistics.jobUser.PersonTypeJobUserCount">
- SELECT
- item.`Name` AS keyTypeName,
- item.`Value` AS keyPersonTypeID,
- COUNT( jobUser.JobuserID ) AS jobUserCount
- FROM
- sys_dictionary_item item
- LEFT JOIN pc_jobuser jobUser ON jobUser.KeyPersonTypeID = item.`Value`
- LEFT JOIN pc_site site ON jobUser.SiteID = site.SiteID
- WHERE
- item.DictionaryCode = 'KeyPersonType'
- AND item.`Value` IN ( 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 )
- AND site.RegionCode != '441301000000000'
- GROUP BY
- item.`Name`,
- item.`Value`
- ORDER BY
- item.`Value`
- </select>
- <select id="findJobHuntByRegion" resultType="com.hz.employmentsite.vo.statistics.jobUser.RegionJobUserCount">
- SELECT
- area.`code` AS regionCode,
- area.`name` AS regionName,
- COUNT( jobHunt.JobHuntID ) AS jobHuntCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_jobuser jobUser ON site.SiteID = jobUser.SiteID
- LEFT JOIN pc_jobhunt jobHunt ON jobUser.JobuserID = jobHunt.JobUserID
- WHERE
- area.lv = 3
- <if test="isNotCity!=null">
- and site.RegionCode != '441301000000000'
- </if>
- <if test="startDate != null">
- and DATE(jobHunt.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(jobHunt.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- area.`code`,
- area.`name`
- ORDER BY
- area.`code`
- </select>
- <select id="findSiteCountByRegion" resultType="com.hz.employmentsite.vo.statistics.RegionSystemDataCount">
- SELECT
- area.`code` AS regionCode,
- area.`name` AS regionName,
- COUNT( site.SiteID ) AS siteCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- WHERE
- area.lv = 3
- GROUP BY
- area.`code`,
- area.`name`
- ORDER BY
- area.`code`
- </select>
- <select id="findSiteJobUserCount" resultType="com.hz.employmentsite.vo.statistics.jobUser.SiteJobUserCount">
- SELECT
- site.SiteID,
- site.SiteName,
- COUNT( jobUser.JobuserID ) AS jobUserCount
- FROM
- pc_site site
- LEFT JOIN pc_jobuser jobUser ON jobUser.SiteID = site.SiteID
- WHERE
- 1=1
- <if test="jobStatus != null and jobStatus == 1">
- AND jobUser.JobStatusID = 1
- </if>
- <if test="isDifficulty != null">
- AND jobUser.KeyPersonTypeID IN (13,14,15,16,17,18,19,20,21,22,23,24)
- </if>
- <if test="isNotCity != null">
- and site.RegionCode != '441301000000000'
- </if>
- GROUP BY
- site.SiteID,
- site.SiteName
- </select>
- <select id="findJobUserHourNewAddCount" resultType="com.hz.employmentsite.vo.statistics.HourNewAddCount">
- SELECT
- HOUR( CreateTime ) AS `Hour`,
- COUNT( 1 ) AS jobUserCount
- FROM
- pc_jobuser
- WHERE
- 1=1
- <if test="day != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{day})
- </if>
- GROUP BY
- `Hour`
- ORDER BY
- `Hour`
- </select>
- <select id="findCompanyHourNewAddCount" resultType="com.hz.employmentsite.vo.statistics.HourNewAddCount">
- SELECT
- HOUR( CreateTime ) AS `Hour`,
- COUNT( 1 ) AS companyCount
- FROM
- pc_company
- WHERE
- 1=1
- <if test="day != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{day})
- </if>
- GROUP BY
- `Hour`
- ORDER BY
- `Hour`
- </select>
- <select id="findPostHourNewAddCount" resultType="com.hz.employmentsite.vo.statistics.HourNewAddCount">
- SELECT
- HOUR( CreateTime ) AS `Hour`,
- SUM( RecruitCount ) AS postRecruitCount
- FROM
- pc_post
- WHERE
- 1=1
- <if test="day != null">
- and DATE(CreateTime) <![CDATA[ >= ]]> DATE(#{day})
- </if>
- GROUP BY
- `Hour`
- ORDER BY
- `Hour`
- </select>
- <select id="findSiteCompanyServiceCount" resultType="com.hz.employmentsite.vo.statistics.SiteServiceCount">
- SELECT
- site.SiteID,
- site.SiteName,
- COUNT(CompanyID) AS companyCount
- FROM
- pc_site site
- LEFT JOIN pc_company company ON company.SiteID = site.SiteID
- WHERE
- 1=1
- <if test="startDate != null">
- and DATE(company.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(company.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- site.SiteID,
- site.SiteName
- </select>
- <select id="findSitePostServiceCount" resultType="com.hz.employmentsite.vo.statistics.SiteServiceCount">
- SELECT
- site.SiteID,
- site.SiteName,
- COUNT(PostID) AS postCount
- FROM
- pc_site site
- LEFT JOIN pc_company company ON company.SiteID = site.SiteID
- LEFT JOIN pc_post post ON company.CompanyID = post.CompanyID
- WHERE
- 1=1
- <if test="startDate != null">
- and DATE(post.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(post.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- site.SiteID,
- site.SiteName
- </select>
- <select id="findSiteJobUserServiceCount" resultType="com.hz.employmentsite.vo.statistics.SiteServiceCount">
- SELECT
- site.SiteID,
- site.SiteName,
- COUNT(JobuserID) AS jobUserCount
- FROM
- pc_site site
- LEFT JOIN pc_jobuser jobUser ON jobUser.SiteID = site.SiteID
- WHERE
- 1=1
- <if test="startDate != null">
- and DATE(jobUser.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(jobUser.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- site.SiteID,
- site.SiteName
- </select>
- <select id="findSitePostRecruitServiceCount" resultType="com.hz.employmentsite.vo.statistics.SiteServiceCount">
- SELECT
- site.SiteID,
- site.SiteName,
- SUM(post.RecruitCount) AS postRecruitCount
- FROM
- pc_site site
- LEFT JOIN pc_company company ON company.SiteID = site.SiteID
- LEFT JOIN pc_post post ON company.CompanyID = post.CompanyID
- WHERE
- 1=1
- <if test="startDate != null">
- and DATE(post.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(post.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- site.SiteID,
- site.SiteName
- </select>
- <select id="findPersonTypeCountInRegion" resultType="com.hz.employmentsite.vo.statistics.jobUser.PersonTypeJobUserCount">
- SELECT
- jobuser.KeyPersonTypeID,
- keytype.`Name` AS KeyTypeName,
- site.RegionCode,
- area.`name` AS regionName,
- COUNT( 1 ) AS jobUserCount
- FROM
- `pc_jobuser` jobuser
- LEFT JOIN sys_dictionary_item keytype ON jobuser.KeyPersonTypeID = keytype.`Value`
- AND keytype.DictionaryCode = 'KeyPersonType'
- LEFT JOIN pc_site site ON jobuser.SiteID = site.SiteID
- LEFT JOIN area_code area ON site.RegionCode = area.`code`
- WHERE
- 1=1
- <if test="keyPersonTypeID != null">
- and jobuser.KeyPersonTypeID = #{keyPersonTypeID}
- </if>
- <if test="startDate != null">
- and DATE(jobuser.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(jobuser.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- <if test="regionCode != null and regionCode != ''">
- and site.RegionCode = #{regionCode}
- </if>
- <if test="siteID != null and siteID != ''">
- and jobuser.siteID = #{siteID}
- </if>
- GROUP BY
- jobuser.KeyPersonTypeID,
- keytype.`Name`,
- site.RegionCode,
- area.`name`
- ORDER BY
- jobuser.KeyPersonTypeID DESC
- </select>
- <select id="findPersonTypeCountInSex" resultType="com.hz.employmentsite.vo.statistics.jobUser.PersonTypeJobUserCount">
- SELECT
- jobuser.KeyPersonTypeID,
- keytype.`Name` AS KeyTypeName,
- gender.`Value` AS genderID,
- gender.`name` AS genderName,
- COUNT( 1 ) AS jobUserCount
- FROM
- `pc_jobuser` jobuser
- LEFT JOIN sys_dictionary_item keytype ON jobuser.KeyPersonTypeID = keytype.`Value`
- AND keytype.DictionaryCode = 'KeyPersonType'
- LEFT JOIN sys_dictionary_item gender ON jobuser.Sex = gender.`Value`
- AND gender.DictionaryCode = 'Gender'
- LEFT JOIN pc_site site ON jobuser.SiteID = site.SiteID
- LEFT JOIN area_code area ON site.RegionCode = area.`code`
- WHERE
- 1=1
- <if test="keyPersonTypeID != null">
- and jobuser.KeyPersonTypeID = #{keyPersonTypeID}
- </if>
- <if test="startDate != null">
- and DATE(jobuser.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(jobuser.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- <if test="regionCode != null and regionCode != ''">
- and site.RegionCode = #{regionCode}
- </if>
- <if test="siteID != null and siteID != ''">
- and jobuser.siteID = #{siteID}
- </if>
- GROUP BY
- jobuser.KeyPersonTypeID,
- keytype.`Name`,
- gender.`Value`,
- gender.`name`
- ORDER BY
- jobuser.KeyPersonTypeID DESC
- </select>
- <select id="findPersonTypeCountInAgeRange" resultType="com.hz.employmentsite.vo.statistics.jobUser.PersonTypeJobUserCount">
- SELECT
- jobuser.KeyPersonTypeID,
- keytype.`Name` AS KeyTypeName,
- CASE
- WHEN TIMESTAMPDIFF(YEAR, BirthDay, CURDATE()) BETWEEN 18 AND 20 THEN '18-20岁'
- WHEN TIMESTAMPDIFF(YEAR, BirthDay, CURDATE()) BETWEEN 21 AND 30 THEN '21-30岁'
- WHEN TIMESTAMPDIFF(YEAR, BirthDay, CURDATE()) BETWEEN 31 AND 40 THEN '31-40岁'
- WHEN TIMESTAMPDIFF(YEAR, BirthDay, CURDATE()) BETWEEN 41 AND 50 THEN '41-50岁'
- WHEN TIMESTAMPDIFF(YEAR, BirthDay, CURDATE()) BETWEEN 51 AND 60 THEN '51-60岁'
- END AS AgeRange,
- COUNT( 1 ) AS jobUserCount
- FROM
- `pc_jobuser` jobuser
- LEFT JOIN sys_dictionary_item keytype ON jobuser.KeyPersonTypeID = keytype.`Value`
- AND keytype.DictionaryCode = 'KeyPersonType'
- LEFT JOIN pc_site site ON jobuser.SiteID = site.SiteID
- LEFT JOIN area_code area ON site.RegionCode = area.`code`
- WHERE
- 1=1
- <if test="keyPersonTypeID != null">
- and jobuser.KeyPersonTypeID = #{keyPersonTypeID}
- </if>
- <if test="startDate != null">
- and DATE(jobuser.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(jobuser.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- <if test="regionCode != null and regionCode != ''">
- and site.RegionCode = #{regionCode}
- </if>
- <if test="siteID != null and siteID != ''">
- and jobuser.siteID = #{siteID}
- </if>
- GROUP BY
- jobuser.KeyPersonTypeID,
- keytype.`Name`,
- AgeRange
- ORDER BY
- jobuser.KeyPersonTypeID DESC
- </select>
- <select id="findPersonTypeCountInCultureRank" resultType="com.hz.employmentsite.vo.statistics.jobUser.PersonTypeJobUserCount">
- SELECT
- jobuser.KeyPersonTypeID,
- keytype.`Name` AS KeyTypeName,
- jobuser.CultureRank,
- culture.`Name` AS CultureName,
- COUNT( 1 ) AS jobUserCount
- FROM
- `pc_jobuser` jobuser
- LEFT JOIN sys_dictionary_item keytype ON jobuser.KeyPersonTypeID = keytype.`Value`
- AND keytype.DictionaryCode = 'KeyPersonType'
- LEFT JOIN sys_dictionary_item culture ON jobuser.CultureRank = culture.`Value`
- AND culture.DictionaryCode = 'HighestDegree'
- WHERE
- 1=1
- <if test="keyPersonTypeID != null">
- and jobuser.KeyPersonTypeID = #{keyPersonTypeID}
- </if>
- <if test="startDate != null">
- and DATE(jobuser.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(jobuser.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- <if test="regionCode != null and regionCode != ''">
- and site.RegionCode = #{regionCode}
- </if>
- <if test="siteID != null and siteID != ''">
- and jobuser.siteID = #{siteID}
- </if>
- GROUP BY
- jobuser.KeyPersonTypeID,
- keytype.`Name`,
- jobuser.CultureRank
- ORDER BY
- jobuser.KeyPersonTypeID DESC
- </select>
- <select id="findRegionCompanyModelCompanyCount" resultType="com.hz.employmentsite.vo.statistics.company.ModelCompanyCount">
- SELECT
- area.`code` AS regionCode,
- area.`name` AS regionName,
- company.CompanyModel,
- dict.`Name` AS companyModelName,
- COUNT( company.CompanyID ) AS companyCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_company company ON site.SiteID = company.SiteID
- LEFT JOIN sys_dictionary_item dict ON company.CompanyModel = dict.`Value`
- AND dict.DictionaryCode = 'CompanyModel'
- WHERE
- area.lv = 3
- AND area.`code` != '441301000000000'
- AND company.CompanyModel IS NOT NULL
- <if test="startDate != null">
- and DATE(company.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(company.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- area.`code`,
- area.`name`,
- company.CompanyModel,
- dict.`Name`
- ORDER BY
- area.`code`
- </select>
- <select id="findRegionCompanyModelSigninCompanyCount" resultType="com.hz.employmentsite.vo.statistics.company.ModelCompanyCount">
- SELECT
- area.`code` AS regionCode,
- area.`name` AS regionName,
- company.CompanyModel,
- dict.`Name` AS companyModelName,
- COUNT( signin.CompanyID ) AS signinCompanyCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_company company ON site.SiteID = company.SiteID
- LEFT JOIN pc_signin signin ON company.CompanyID = signin.CompanyID
- LEFT JOIN sys_dictionary_item dict ON company.CompanyModel = dict.`Value`
- AND dict.DictionaryCode = 'CompanyModel'
- WHERE
- area.lv = 3
- AND area.`code` != '441301000000000'
- AND company.CompanyModel IS NOT NULL
- AND signin.SigninType = 1
- <if test="startDate != null">
- and DATE(signin.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(signin.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- area.`code`,
- area.`name`,
- company.CompanyModel,
- dict.`Name`
- ORDER BY
- area.`code`
- </select>
- <select id="findRegionCompanyWorkSituationCount" resultType="com.hz.employmentsite.vo.statistics.company.ModelCompanyCount">
- SELECT
- area.`code` AS regionCode,
- area.`name` AS regionName,
- company.CompanyModel,
- dict.`Name` AS companyModelName,
- SUM( company.workSituation ) AS workSituationCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_company company ON site.SiteID = company.SiteID
- LEFT JOIN sys_dictionary_item dict ON company.CompanyModel = dict.`Value`
- AND dict.DictionaryCode = 'CompanyModel'
- WHERE
- area.lv = 3
- AND area.`code` != '441301000000000'
- AND company.CompanyModel IS NOT NULL
- AND company.WorkSituation IS NOT NULL
- <if test="startDate != null">
- and DATE(company.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(company.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- area.`code`,
- area.`name`,
- company.CompanyModel,
- dict.`Name`
- ORDER BY
- area.`code`
- </select>
- <select id="findRegionCompanyRecruitCount" resultType="com.hz.employmentsite.vo.statistics.company.ModelCompanyCount">
- SELECT
- area.`code` AS regionCode,
- area.`name` AS regionName,
- company.CompanyModel,
- dict.`Name` AS companyModelName,
- SUM( post.recruitCount ) AS recruitCount
- FROM
- area_code area
- LEFT JOIN pc_site site ON area.`code` = site.RegionCode
- LEFT JOIN pc_company company ON site.SiteID = company.SiteID
- LEFT JOIN pc_post post ON company.CompanyID = post.CompanyID
- LEFT JOIN sys_dictionary_item dict ON company.CompanyModel = dict.`Value`
- AND dict.DictionaryCode = 'CompanyModel'
- WHERE
- area.lv = 3
- AND area.`code` != '441301000000000'
- AND company.CompanyModel IS NOT NULL
- AND post.RecruitCount IS NOT NULL
- <if test="startDate != null">
- and DATE(post.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(post.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- area.`code`,
- area.`name`,
- company.CompanyModel,
- dict.`Name`
- ORDER BY
- area.`code`
- </select>
- <select id="findIndustryCompanyWorkSituationCount" resultType="com.hz.employmentsite.vo.statistics.company.ModelCompanyCount">
- SELECT
- pIndustry.industryName AS parentIndustryName,
- industry.industryName,
- company.CompanyModel,
- dict.`Name` AS companyModelName,
- SUM( company.WorkSituation ) AS workSituationCount
- FROM
- pc_industry industry
- LEFT JOIN pc_industry pIndustry ON industry.parentId = pIndustry.industryId
- LEFT JOIN pc_company company ON company.IndustryID = industry.industryId
- LEFT JOIN sys_dictionary_item dict ON company.CompanyModel = dict.`Value`
- AND dict.DictionaryCode = 'CompanyModel'
- WHERE
- industry.parentId != ''
- AND industry.parentId IS NOT NULL
- <if test="startDate != null">
- and DATE(company.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(company.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- pIndustry.industryName,
- industry.industryName,
- company.CompanyModel,
- dict.`Name`
- ORDER BY
- industry.parentId
- </select>
- <select id="findIndustryCompanyRecruitCount" resultType="com.hz.employmentsite.vo.statistics.company.ModelCompanyCount">
- SELECT
- pIndustry.industryName AS parentIndustryName,
- industry.industryName,
- company.CompanyModel,
- dict.`Name` AS companyModelName,
- COUNT( post.RecruitCount ) AS recruitCount
- FROM
- pc_industry industry
- LEFT JOIN pc_industry pIndustry ON industry.parentId = pIndustry.industryId
- LEFT JOIN pc_company company ON company.IndustryID = industry.industryId
- LEFT JOIN pc_post post on company.CompanyID = post.CompanyID
- LEFT JOIN sys_dictionary_item dict ON company.CompanyModel = dict.`Value`
- AND dict.DictionaryCode = 'CompanyModel'
- WHERE
- industry.parentId != ''
- AND industry.parentId IS NOT NULL
- <if test="startDate != null">
- and DATE(post.CreateTime) <![CDATA[ >= ]]> DATE(#{startDate})
- </if>
- <if test="endDate != null ">
- and DATE(post.CreateTime) <![CDATA[ <= ]]> DATE(#{endDate})
- </if>
- GROUP BY
- pIndustry.industryName,
- industry.industryName,
- company.CompanyModel,
- dict.`Name`
- ORDER BY
- industry.parentId
- </select>
- </mapper>
|