|
@@ -235,8 +235,8 @@
|
|
|
<select id="getPresentInfo" resultType="com.tofly.xrtymis.custom.vo.CurrentNodeInformationVo">
|
|
|
SELECT m.presentPerson as presentPerson,
|
|
|
(SELECT wm_concat(REAL_NAME) FROM TF_SMPN_USER_X WHERE instr(m.presentPerson, id) > 0) as presentPersonName,
|
|
|
- (SELECT distinct (DEPARTMENT_ID) FROM TF_SMPN_USER_X WHERE instr(m.presentPerson, id) > 0) as presentDept,
|
|
|
- (SELECT NAME FROM TF_SMPN_DEPARTMENT_X where id =
|
|
|
+ (SELECT wm_concat(distinct(DEPARTMENT_ID)) FROM TF_SMPN_USER_X WHERE instr(m.presentPerson, id) > 0) as presentDept,
|
|
|
+ (SELECT wm_concat(NAME) FROM TF_SMPN_DEPARTMENT_X where id in
|
|
|
(SELECT distinct (DEPARTMENT_ID) FROM TF_SMPN_USER_X WHERE instr(m.presentPerson, id) > 0)) as presentDeptName
|
|
|
FROM (SELECT id,
|
|
|
CASE LCJD
|
|
@@ -374,9 +374,12 @@
|
|
|
WHERE ID = #{gdlx}
|
|
|
</select>
|
|
|
<select id="slbmName" resultType="string">
|
|
|
- select NAME
|
|
|
+ select wm_concat(NAME)
|
|
|
FROM "TF_SMPN_DEPARTMENT_X"
|
|
|
- WHERE ID = #{slbm}
|
|
|
+ WHERE ID in
|
|
|
+ <foreach collection="slbm.split(',')" item="id" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
</select>
|
|
|
<select id="shbmName" resultType="string">
|
|
|
select NAME
|