commit
This commit is contained in:
+4
-3
@@ -64,13 +64,14 @@ public class GhkhXghshController {
|
|||||||
kh_bz
|
kh_bz
|
||||||
WHERE
|
WHERE
|
||||||
nr_id IN ( SELECT id FROM kh_nr WHERE zb_id = zb.id )) bzf,
|
nr_id IN ( SELECT id FROM kh_nr WHERE zb_id = zb.id )) bzf,
|
||||||
re.*
|
re.*,
|
||||||
|
(select ifnull(sum(schools), 0) from kh_xghsh where flatid = re.union_id and nr_id in (select id from kh_nr where zb_id = re.zb_id and auditUser = @loginName)) as self_score
|
||||||
FROM
|
FROM
|
||||||
kh_record re
|
kh_record re
|
||||||
LEFT JOIN kh_zb zb ON re.zb_id = zb.id
|
LEFT JOIN kh_zb zb ON re.zb_id = zb.id
|
||||||
LEFT JOIN `vw_user` un ON re.union_id = un.unionId
|
LEFT JOIN `vw_user` un ON re.union_id = un.unionId
|
||||||
$condition
|
$condition
|
||||||
""");
|
""").setParam("loginName", SecurityUtil.getUserLoginname());
|
||||||
Cnd cnd = Cnd.NEW();
|
Cnd cnd = Cnd.NEW();
|
||||||
/*cnd.and("re.state", "=", 2);*/
|
/*cnd.and("re.state", "=", 2);*/
|
||||||
cnd.and("zb.disabled", "=", true);
|
cnd.and("zb.disabled", "=", true);
|
||||||
@@ -146,8 +147,8 @@ public class GhkhXghshController {
|
|||||||
for (Kh_xghsh p : pf) {
|
for (Kh_xghsh p : pf) {
|
||||||
if(contentIds.contains(p.getNr_id())) {
|
if(contentIds.contains(p.getNr_id())) {
|
||||||
khzpService.dao().insert(p);
|
khzpService.dao().insert(p);
|
||||||
score += p.getSchools() != null ? p.getSchools() : 0;
|
|
||||||
}
|
}
|
||||||
|
score += p.getSchools() != null ? p.getSchools() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Kh_record record = baseService.dao().fetch(Kh_record.class, Cnd.where("zb_id", "=", pf[0].getZb_id()).and("union_id", "=", pf[0].getFlatid()));
|
Kh_record record = baseService.dao().fetch(Kh_record.class, Cnd.where("zb_id", "=", pf[0].getZb_id()).and("union_id", "=", pf[0].getFlatid()));
|
||||||
|
|||||||
@@ -74,11 +74,15 @@ layout("/layouts/platform.html"){
|
|||||||
show-overflow-tooltip v-if="examConfig.selfAssessment === true"
|
show-overflow-tooltip v-if="examConfig.selfAssessment === true"
|
||||||
align="center"></el-table-column>
|
align="center"></el-table-column>
|
||||||
|
|
||||||
<el-table-column label="校工会评分" sortable prop="xgh_score"
|
<el-table-column label="您的评分" sortable prop="self_score"
|
||||||
header-align="center"
|
header-align="center"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
align="center"></el-table-column>
|
align="center"></el-table-column>
|
||||||
|
|
||||||
|
<el-table-column label="校工会评分" sortable prop="xgh_score"
|
||||||
|
header-align="center"
|
||||||
|
show-overflow-tooltip
|
||||||
|
align="center"></el-table-column>
|
||||||
|
|
||||||
<el-table-column label="状态" prop="name" header-align="center"
|
<el-table-column label="状态" prop="name" header-align="center"
|
||||||
align="center">
|
align="center">
|
||||||
@@ -397,7 +401,7 @@ layout("/layouts/platform.html"){
|
|||||||
sums[index] = '';
|
sums[index] = '';
|
||||||
return;
|
return;
|
||||||
} else if (column.property === 'fileCount') {
|
} else if (column.property === 'fileCount') {
|
||||||
const zpfs = data.map(v => v['zp']['files']?.length || 0)
|
const zpfs = data.map(v => v.zp?.files?.length || 0)
|
||||||
sums[index] = zpfs.reduce((a, b) => {
|
sums[index] = zpfs.reduce((a, b) => {
|
||||||
return a + b;
|
return a + b;
|
||||||
}) + ' 个'
|
}) + ' 个'
|
||||||
|
|||||||
Reference in New Issue
Block a user