页面样式,一日流程评估

This commit is contained in:
zhanglipeng
2021-04-23 16:19:56 +08:00
parent aec2eb18c3
commit 480c520bbc
10 changed files with 361 additions and 325 deletions

View File

@ -66,6 +66,18 @@ public class ByDayflowassessmentController extends BaseController {
return getDataTable(list);
}
/**
* 查询幼儿园一日流程评估列表
*/
@PreAuthorize("@ss.hasPermi('benyi:dayflowassessment:list')")
@GetMapping("/listteacheravg")
public TableDataInfo listteacheravg(ByDayflowassessment byDayflowassessment) {
byDayflowassessment.setDeptId(SecurityUtils.getLoginUser().getUser().getDeptId());
startPage();
List<ByDayflowassessment> list = byDayflowassessmentService.selectByDayflowassessmentTeacherPjf(byDayflowassessment);
return getDataTable(list);
}
/**
* 查询幼儿园一日流程评估列表
*/

View File

@ -35,6 +35,15 @@ public interface ByDayflowassessmentMapper {
*/
public List<ByDayflowassessment> selectByDayflowassessmentPjf(ByDayflowassessment byDayflowassessment);
/**
* 查询幼儿园一日流程评估列表
*
* @param byDayflowassessment 幼儿园一日流程评估
* @return 幼儿园一日流程评估集合
*/
public List<ByDayflowassessment> selectByDayflowassessmentTeacherPjf(ByDayflowassessment byDayflowassessment);
/**
* 新增幼儿园一日流程评估
*

View File

@ -35,6 +35,14 @@ public interface IByDayflowassessmentService {
*/
public List<ByDayflowassessment> selectByDayflowassessmentPjf(ByDayflowassessment byDayflowassessment);
/**
* 查询幼儿园一日流程评估列表
*
* @param byDayflowassessment 幼儿园一日流程评估
* @return 幼儿园一日流程评估集合
*/
public List<ByDayflowassessment> selectByDayflowassessmentTeacherPjf(ByDayflowassessment byDayflowassessment);
/**
* 新增幼儿园一日流程评估

View File

@ -55,6 +55,18 @@ public class ByDayflowassessmentServiceImpl implements IByDayflowassessmentServi
return byDayflowassessmentMapper.selectByDayflowassessmentPjf(byDayflowassessment);
}
/**
* 查询幼儿园一日流程评估列表
*
* @param byDayflowassessment 幼儿园一日流程评估
* @return 幼儿园一日流程评估集合
*/
@Override
public List<ByDayflowassessment> selectByDayflowassessmentTeacherPjf(ByDayflowassessment byDayflowassessment) {
return byDayflowassessmentMapper.selectByDayflowassessmentTeacherPjf(byDayflowassessment);
}
/**
* 新增幼儿园一日流程评估
*

View File

@ -144,6 +144,37 @@ where a.dept_id=#{deptId}
group by t.classid,t.ny
</select>
<select id="selectByDayflowassessmentTeacherPjf" parameterType="ByDayflowassessment" resultMap="ByDayflowassessmentResult">
select t.pgdx,e.nick_name as pgdxxm,avg(t.zzdf) as bjpjf,avg(t.zjjd) as zjjdpjf,avg(t.yc) as ycpjf,avg(t.zjzq) as zjzqpjf,avg(t.fzjx) as fzjxpjf,avg(t.dxsj) as dxsjpjf,avg(t.rcxsys) as rcxsyspjf,avg(t.hdgd) as hdgdpjf,avg(t.hwhd) as hwhdpjf,avg(t.ws) as wspjf,avg(t.lyzj) as lyzjpjf,avg(t.aq) as aqpjf,avg(t.zyhd) as zyhdpjf,avg(t.gzyjlys) as gzyjlyspjf,avg(t.wxkc) as wxkcpjf,avg(t.qkc) as qkcpjf from (
select a.pgdx,a.zzdf,a.create_time,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='早间接待')) as zjjd,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='用餐')) as yc,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='早间坐圈')) as zjzq,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='分组教学')) as fzjx,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='点心时间')) as dxsj,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='如厕洗手饮水')) as rcxsys,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='活动过渡')) as hdgd,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='户外活动')) as hwhd,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='午睡')) as ws,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='离园再见')) as lyzj,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='安全')) as aq,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='自由活动')) as zyhd,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='规则与纪律约束')) as gzyjlys,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='微型课程')) as wxkc,
(select sum(b.value) from by_dayflowassessmentitem b where a.id=b.pid and b.item in (select id from by_day_flow where name='潜课程')) as qkc
from by_dayflowassessment a
where a.dept_id=#{deptId}
<if test="pgdx != null ">and a.pgdx = #{pgdx}</if>
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
AND date_format(a.create_time,'%y%m%d') &gt;= date_format(#{beginTime},'%y%m%d')
</if>
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
AND date_format(a.create_time,'%y%m%d') &lt;= date_format(#{endTime},'%y%m%d')
</if>
) t left join sys_user e on e.user_id=t.pgdx
group by t.pgdx
</select>
<insert id="insertByDayflowassessment" parameterType="ByDayflowassessment" useGeneratedKeys="true" keyProperty="id">
insert into by_dayflowassessment
<trim prefix="(" suffix=")" suffixOverrides=",">