2023年6月30日 还原xml
This commit is contained in:
parent
aa5b798824
commit
771dea42a9
|
@ -5,12 +5,12 @@
|
|||
SELECT
|
||||
tk.upuserid AS userid, tk.upuser AS username, tksf1, tkyq, sjtksl, mltksl, tkdw
|
||||
FROM (
|
||||
SELECT ev.upuserid, ev.upuser, count( ev.id ) sjtksl, count( CASE WHEN kt.kkdw = '马列教研室' THEN 1 END ) mltksl, cu.dwh AS tkdw
|
||||
SELECT ev.upuserid, ev.upuser, count( ev.id ) sjtksl, count( CASE WHEN kt.kkdw = '马列教研室' THEN 1 END ) mltksl, college AS tkdw
|
||||
FROM
|
||||
kc_evaluation ev,
|
||||
kc_ketangbiao kt,
|
||||
xxhbuser cu
|
||||
WHERE ev.minkcid = kt.id AND ev.upuserid = cu.gh
|
||||
kc_casusers cu
|
||||
WHERE ev.minkcid = kt.id AND ev.upuserid = cu.`user`
|
||||
<if test="kcEvaluation.startTime != null and kcEvaluation.startTime != ''">
|
||||
and kt.skrq >= #{kcEvaluation.startTime}
|
||||
</if>
|
||||
|
@ -31,7 +31,7 @@
|
|||
<if test="kcEvaluation.username != null and kcEvaluation.username != ''">
|
||||
and (ev.upuserid like concat('%',#{kcEvaluation.username},'%') or ev.upuser like concat('%',#{kcEvaluation.username},'%'))
|
||||
</if>
|
||||
GROUP BY ev.upuserid, ev.upuser, cu.dwh
|
||||
GROUP BY ev.upuserid, ev.upuser, cu.college
|
||||
) tk,
|
||||
( SELECT usercode, username, GROUP_CONCAT( assess1 SEPARATOR ',' ) tksf1, GROUP_CONCAT( assess2 SEPARATOR ',' ) tksf2, max( tkyq ) tkyq
|
||||
FROM kc_assessuser WHERE 1 = 1
|
||||
|
@ -47,13 +47,13 @@
|
|||
SELECT pk.*, au.assess1 as tksf FROM
|
||||
(
|
||||
SELECT
|
||||
k.id,c.gh as userid, c.xm as username, c.dwh as college, k.kkdw, k.kcmc, k.kcxz, k.skjs, k.week as zc, k.hh as jc, p.up_date, p.up_time, p.id AS evaId, p.evaluationver,
|
||||
k.id,c.USER as userid, c.cn as username, c.college, k.kkdw, k.kcmc, k.kcxz, k.skjs, k.week as zc, k.hh as jc, p.up_date, p.up_time, p.id AS evaId, p.evaluationver,
|
||||
k.bz,
|
||||
p.source
|
||||
FROM kc_ketangbiao k, kc_evaluation p, xxhbuser c
|
||||
FROM kc_ketangbiao k, kc_evaluation p, kc_casusers c
|
||||
WHERE
|
||||
k.id = p.minkcid
|
||||
AND p.upuserid = c.gh
|
||||
AND p.upuserid = c.USER
|
||||
<if test="kcEvaluation.startTime != null and kcEvaluation.startTime != ''">
|
||||
and p.up_date >= #{kcEvaluation.startTime}
|
||||
</if>
|
||||
|
@ -61,7 +61,7 @@
|
|||
and p.up_date <= #{kcEvaluation.endTime}
|
||||
</if>
|
||||
<if test="kcEvaluation.username != null and kcEvaluation.username != ''">
|
||||
and (c.xm like concat('%',#{kcEvaluation.username},'%') or c.gh like concat('%',#{kcEvaluation.username},'%'))
|
||||
and (c.cn like concat('%',#{kcEvaluation.username},'%') or c.user like concat('%',#{kcEvaluation.username},'%'))
|
||||
</if>
|
||||
) AS pk
|
||||
LEFT JOIN kc_assessuser au ON pk.userid = au.usercode
|
||||
|
@ -267,12 +267,12 @@
|
|||
SELECT
|
||||
tk.upuserid AS userid, tk.upuser AS username, tksf1, tkyq, sjtksl, mltksl, tkdw, tk.source
|
||||
FROM (
|
||||
SELECT ev.upuserid, ev.upuser, count( ev.id ) sjtksl, count( CASE WHEN kt.kkdw = '马列教研室' THEN 1 END ) mltksl, cu.dwh AS tkdw,ev.source
|
||||
SELECT ev.upuserid, ev.upuser, count( ev.id ) sjtksl, count( CASE WHEN kt.kkdw = '马列教研室' THEN 1 END ) mltksl, college AS tkdw,ev.source
|
||||
FROM
|
||||
kc_evaluation ev,
|
||||
kc_ketangbiao kt,
|
||||
xxhbuser cu
|
||||
WHERE ev.minkcid = kt.id AND ev.upuserid = cu.gh
|
||||
kc_casusers cu
|
||||
WHERE ev.minkcid = kt.id AND ev.upuserid = cu.`user`
|
||||
<if test="startTime != null and startTime != ''">
|
||||
and kt.skrq >= #{startTime}
|
||||
</if>
|
||||
|
@ -287,9 +287,9 @@
|
|||
and kkdw = #{kkdw}
|
||||
</if>
|
||||
<if test="szdw != null and szdw != ''">
|
||||
and cu.dwh = #{szdw}
|
||||
and college = #{szdw}
|
||||
</if>
|
||||
GROUP BY ev.upuserid, ev.upuser, cu.dwh
|
||||
GROUP BY ev.upuserid, ev.upuser, cu.college
|
||||
) tk,
|
||||
( SELECT usercode, username, GROUP_CONCAT( assess1 SEPARATOR ',' ) tksf1, GROUP_CONCAT( assess2 SEPARATOR ',' ) tksf2, max( tkyq ) tkyq
|
||||
FROM kc_assessuser WHERE 1 = 1
|
||||
|
@ -306,14 +306,14 @@
|
|||
FROM
|
||||
(
|
||||
SELECT
|
||||
k.id,c.gh as userid, c.xm as username, c.dwh as college, k.kkdw, k.kcmc, k.kcxz, k.skjs, k.week as zc, k.hh as jc, p.up_date, p.up_time, p.id AS evaId, p.evaluationver,
|
||||
k.id,c.USER as userid, c.cn as username, c.college, k.kkdw, k.kcmc, k.kcxz, k.skjs, k.week as zc, k.hh as jc, p.up_date, p.up_time, p.id AS evaId, p.evaluationver,
|
||||
k.bz,
|
||||
p.source,
|
||||
k.kechengbiaoid
|
||||
FROM kc_ketangbiao k, kc_evaluation p, xxhbuser c
|
||||
FROM kc_ketangbiao k, kc_evaluation p, kc_casusers c
|
||||
WHERE
|
||||
k.id = p.minkcid
|
||||
AND p.upuserid = c.gh
|
||||
AND p.upuserid = c.USER
|
||||
<if test="startTime != null and startTime != ''">
|
||||
and p.up_date >= #{startTime}
|
||||
</if>
|
||||
|
|
Loading…
Reference in New Issue