事业部评价人可能存在多人评价,如果未全部完成评价显示可以保存,所有项全部评价完成才可以提交

This commit is contained in:
liang.chao 2025-06-04 17:53:48 +08:00
parent 2c52b486ed
commit 9a4c6e2eb0
2 changed files with 9 additions and 4 deletions

View File

@ -18,10 +18,15 @@
</delete>
<insert id="saveEvaluateData">
insert into pj_evaluate_details_child(details_id,template_id,evaluate_id,post_id,person_id,sub_id,
sub_name,pro_id,pro_name,title_id,score)values
sub_name,pro_id,pro_name,title_id,score)values
<foreach collection="list" item="item" separator=",">
(#{item.parentId},#{item.templateId},#{item.evaluateId},#{item.deptId},#{item.userId},
#{item.subId},#{item.subName},#{item.proId},#{item.proName},#{item.titleId},#{item.score})
#{item.subId},#{item.subName},#{item.proId},#{item.proName},#{item.titleId},
<choose>
<when test="item.score == ''">NULL</when>
<otherwise>#{item.score}</otherwise>
</choose>
)
</foreach>
</insert>
<insert id="insertEvaluateChildData">

View File

@ -514,7 +514,7 @@
function getTableData() {
for (var i = 0; i < tableRowList.length; i++) {
/* for (var i = 0; i < tableRowList.length; i++) {
var item = tableRowList[i];
for (var key in item) {
if (key.indexOf("-") !== -1) {
@ -524,7 +524,7 @@
}
}
}
}
}*/
// //获取表格填写的数据