|
|
@@ -77,7 +77,7 @@
|
|
77
|
77
|
select * from base.d_talent_group
|
|
78
|
78
|
<where>
|
|
79
|
79
|
<if test="groupName!=null and groupName!='' ">
|
|
80
|
|
- and group_name like '%'||#{groupName}||'%'
|
|
|
80
|
+ and group_name LIKE CONCAT('%', #{groupName}, '%')
|
|
81
|
81
|
</if>
|
|
82
|
82
|
</where>
|
|
83
|
83
|
</select>
|
|
|
@@ -94,32 +94,32 @@
|
|
94
|
94
|
<select id="selectEducation" resultType="com.unis.base.common.vo.EducationVO">
|
|
95
|
95
|
select *
|
|
96
|
96
|
from base.d_education
|
|
97
|
|
- where rybh like '%'||#{rybh}||'%'
|
|
|
97
|
+ where rybh LIKE CONCAT('%', #{rybh}, '%')
|
|
98
|
98
|
</select>
|
|
99
|
99
|
<select id="selectReport" resultType="com.unis.base.common.vo.ReportVO">
|
|
100
|
100
|
select *
|
|
101
|
101
|
from base.d_report
|
|
102
|
|
- where rybh like '%'||#{rybh}||'%'
|
|
|
102
|
+ where rybh LIKE CONCAT('%', #{rybh}, '%')
|
|
103
|
103
|
</select>
|
|
104
|
104
|
<select id="selectSkill" resultType="com.unis.base.common.vo.SkillVO">
|
|
105
|
105
|
select *
|
|
106
|
106
|
from base.d_skill
|
|
107
|
|
- where rybh like '%'||#{rybh}||'%'
|
|
|
107
|
+ where rybh LIKE CONCAT('%', #{rybh}, '%')
|
|
108
|
108
|
</select>
|
|
109
|
109
|
<select id="selectRotaterotateVO" resultType="com.unis.base.common.vo.RotaterotateVO">
|
|
110
|
110
|
select *
|
|
111
|
111
|
from base.d_rotaterotate
|
|
112
|
|
- where rybh like '%'||#{rybh}||'%'
|
|
|
112
|
+ where rybh LIKE CONCAT('%', #{rybh}, '%')
|
|
113
|
113
|
</select>
|
|
114
|
114
|
<select id="selectFeiEducationVO" resultType="com.unis.base.common.vo.FeiEducationVO">
|
|
115
|
115
|
select *
|
|
116
|
116
|
from base.d_feieducation
|
|
117
|
|
- where rybh like '%'||#{rybh}||'%'
|
|
|
117
|
+ where rybh LIKE CONCAT('%', #{rybh}, '%')
|
|
118
|
118
|
</select>
|
|
119
|
119
|
<select id="selectOtherCertificatesVO" resultType="com.unis.base.common.vo.OtherCertificatesVO">
|
|
120
|
120
|
select *
|
|
121
|
121
|
from base.d_certificates
|
|
122
|
|
- where rybh like '%'||#{rybh}||'%'
|
|
|
122
|
+ where rybh LIKE CONCAT('%', #{rybh}, '%')
|
|
123
|
123
|
</select>
|
|
124
|
124
|
<select id="selectpersonId" resultType="com.unis.base.common.vo.SelectPersonVo">
|
|
125
|
125
|
select rybh userId
|
|
|
@@ -138,16 +138,30 @@
|
|
138
|
138
|
where u.rybh=#{userId}
|
|
139
|
139
|
</select>
|
|
140
|
140
|
<select id="selectGroups" resultType="com.unis.base.common.vo.GroupPersonSVO">
|
|
141
|
|
- select u.rybh,
|
|
|
141
|
+-- select u.rybh,
|
|
|
142
|
+-- u.ryxm,
|
|
|
143
|
+-- u.qymc,
|
|
|
144
|
+-- u.zwmc,
|
|
|
145
|
+-- e.quan_highest_education xw,
|
|
|
146
|
+-- (select wm_concat(r.honorary_name) from base.d_report r where r.rybh=u.rybh) rych,
|
|
|
147
|
+-- u.lxdh
|
|
|
148
|
+-- from base.d_ryxxsjy u
|
|
|
149
|
+-- left join base.d_education e on u.rybh=e.rybh
|
|
|
150
|
+-- where u.group_id LIKE CONCAT('%', #{groupId}, '%')
|
|
|
151
|
+
|
|
|
152
|
+ SELECT u.rybh,
|
|
142
|
153
|
u.ryxm,
|
|
143
|
154
|
u.qymc,
|
|
144
|
155
|
u.zwmc,
|
|
145
|
|
- e.quan_highest_education xw,
|
|
146
|
|
- (select wm_concat(r.honorary_name) from base.d_report r where r.rybh=u.rybh) rych,
|
|
|
156
|
+ e.quan_highest_education AS xw,
|
|
|
157
|
+ GROUP_CONCAT(r.honorary_name ORDER BY r.honorary_name SEPARATOR ',') AS rych,
|
|
147
|
158
|
u.lxdh
|
|
148
|
|
- from base.d_ryxxsjy u
|
|
149
|
|
- left join base.d_education e on u.rybh=e.rybh
|
|
150
|
|
- where u.group_id like '%'||#{groupId}||'%'
|
|
|
159
|
+ FROM base.d_ryxxsjy u
|
|
|
160
|
+ LEFT JOIN base.d_education e ON u.rybh = e.rybh
|
|
|
161
|
+ LEFT JOIN base.d_report r ON u.rybh = r.rybh
|
|
|
162
|
+ WHERE u.group_id LIKE CONCAT('%', #{groupId}, '%')
|
|
|
163
|
+ GROUP BY u.rybh, u.ryxm, u.qymc, u.zwmc, e.quan_highest_education, u.lxdh
|
|
|
164
|
+
|
|
151
|
165
|
</select>
|
|
152
|
166
|
<select id="selectname" resultType="java.lang.String">
|
|
153
|
167
|
select id
|
|
|
@@ -162,7 +176,7 @@
|
|
162
|
176
|
<select id="selectBm" resultType="com.unis.base.common.vo.BmRecordVO">
|
|
163
|
177
|
select distinct bmmc qymc, bmdm tyshxydm
|
|
164
|
178
|
from base.d_ryxxsjy
|
|
165
|
|
- where qymc like '%'||#{qymc}||'%'
|
|
|
179
|
+ where qymc LIKE CONCAT('%', #{qymc}, '%')
|
|
166
|
180
|
and bmmc is not null
|
|
167
|
181
|
</select>
|
|
168
|
182
|
<select id="seleRy" resultType="com.unis.base.common.vo.BRyVO">
|
|
|
@@ -218,7 +232,7 @@
|
|
218
|
232
|
<select id="selectPersons" resultType="java.lang.String">
|
|
219
|
233
|
select rybh
|
|
220
|
234
|
from base.d_ryxxsjy
|
|
221
|
|
- where group_id like '%'||#{groupId}||'%'
|
|
|
235
|
+ where group_id LIKE CONCAT('%', #{groupId}, '%')
|
|
222
|
236
|
</select>
|
|
223
|
237
|
<select id="selectGroupInfo" resultType="com.unis.base.server.entity.TalentGroupDO">
|
|
224
|
238
|
select *
|