教师绩效考核优化

This commit is contained in:
zhanglipeng
2021-09-17 15:11:09 +08:00
parent 32d21b0f3f
commit 9740a679af
5 changed files with 68 additions and 56 deletions

View File

@ -1,5 +1,6 @@
package com.ruoyi.project.benyi.domain;
import com.ruoyi.project.system.domain.ByClass;
import com.ruoyi.project.system.domain.SysDept;
import com.ruoyi.project.system.domain.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
@ -91,6 +92,16 @@ public class ByTeacherassessment extends BaseEntity {
private SysUser sysUser;
public ByClass getByClass() {
return byClass;
}
public void setByClass(ByClass byClass) {
this.byClass = byClass;
}
private ByClass byClass;
public void setId(Long id) {
this.id = id;
}
@ -194,7 +205,8 @@ public class ByTeacherassessment extends BaseEntity {
.append("wsbl", getWsbl())
.append("zfbl", getZfbl())
.append("createTime", getCreateTime())
.append("sysUser",getSysUser())
.append("sysUser", getSysUser())
.append("byClass", getByClass())
.toString();
}
}

View File

@ -85,7 +85,9 @@
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='规则与纪律约束')) as gzyjlyspjf,
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='微型课程')) as wxkcpjf,
(select sum(b.value) from by_dayflowassessmentitem b where d.id=b.pid and b.item in (select id from by_day_flow where name='潜课程')) as qkcpjf
from by_dayflowassessment d left join by_class e on d.classid=e.bjbh left join sys_user f on d.pgdx=f.user_id
from by_dayflowassessment d
left join by_class e on d.classid=e.bjbh
left join sys_user f on d.pgdx=f.user_id
</sql>
<select id="selectByDayflowassessmentList" parameterType="ByDayflowassessment"

View File

@ -18,6 +18,7 @@
<result property="zfbl" column="zfbl"/>
<result property="createTime" column="create_time"/>
<association property="sysUser" column="jsid" javaType="SysUser" resultMap="SysUserResult"/>
<association property="byClass" column="classid" javaType="ByClass" resultMap="ByClassResult"/>
</resultMap>
<resultMap type="SysUser" id="SysUserResult">
@ -26,9 +27,29 @@
<result property="nickName" column="nick_name"/>
</resultMap>
<resultMap type="ByClass" id="ByClassResult">
<result property="bjbh" column="bjbh"/>
<result property="deptId" column="dept_id"/>
<result property="bjtype" column="bjtype"/>
<result property="bhxh" column="bhxh"/>
<result property="xn" column="xn"/>
<result property="bjmc" column="bjmc"/>
<result property="bjrych" column="bjrych"/>
<result property="jbny" column="jbny"/>
<result property="zbjs" column="zbjs"/>
<result property="zbjsxm" column="zbjsxm"/>
<result property="pbjs" column="pbjs"/>
<result property="pbjsxm" column="pbjsxm"/>
<result property="zljs" column="zljs"/>
<result property="zljsxm" column="zljsxm"/>
<result property="isdel" column="isdel"/>
<result property="createtime" column="createtime"/>
</resultMap>
<sql id="selectByTeacherassessmentVo">
select a.id, a.jsid, a.classid, a.dept_id, a.month, a.yrlcbl, a.jskqbl, a.yekqbl, a.sgbl, a.wsbl, a.zfbl, a.create_time,b.nick_name from by_teacherassessment a
select a.id, a.jsid, a.classid, c.bjmc, a.dept_id, a.month, a.yrlcbl, a.jskqbl, a.yekqbl, a.sgbl, a.wsbl, a.zfbl, a.create_time,b.nick_name from by_teacherassessment a
left join sys_user b on a.jsid=b.user_id
left join by_class c on a.classid=c.bjbh
</sql>
<select id="selectByTeacherassessmentList" parameterType="ByTeacherassessment"