提交时间筛选条件
This commit is contained in:
parent
78b343531c
commit
8c64deec2e
@ -1,6 +1,39 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
:inline="true"
|
||||
label-width="70px"
|
||||
>
|
||||
<el-form-item label="选择月份" prop="createTime">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="queryParams.createTime"
|
||||
type="month"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择月份"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="dayflowassessmentList"
|
||||
@ -14,7 +47,7 @@
|
||||
prop="classid"
|
||||
:formatter="classFormat"
|
||||
/>
|
||||
<el-table-column label="班级综合平均分" align="center" prop="bjpjf" />
|
||||
<el-table-column label="班级综合平均分1" align="center" prop="bjpjf" />
|
||||
<el-table-column label="早间接待" align="center" prop="zjjdpjf" />
|
||||
<el-table-column label="用餐" align="center" prop="ycpjf" />
|
||||
<el-table-column label="早间坐圈" align="center" prop="zjzqpjf" />
|
||||
@ -88,6 +121,7 @@ export default {
|
||||
pgdx: undefined,
|
||||
classdf: undefined,
|
||||
createUserid: undefined,
|
||||
createTime: undefined
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
|
@ -5,6 +5,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
||||
import com.ruoyi.framework.web.domain.BaseEntity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -147,6 +148,11 @@ public class ByDayflowassessment extends BaseEntity {
|
||||
@Excel(name = "执行人")
|
||||
private Long createUserid;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Excel(name = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
public Double getBjpjf() {
|
||||
return bjpjf;
|
||||
|
@ -82,7 +82,7 @@
|
||||
where d.id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectByDayflowassessmentPjf" parameterType="Long" resultMap="ByDayflowassessmentResult">
|
||||
<select id="selectByDayflowassessmentPjf" parameterType="ByDayflowassessment" resultMap="ByDayflowassessmentResult">
|
||||
select t.classid,t.ny,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.classid,a.zzdf,a.create_time,date_format(a.create_time,'%Y-%m') as 'ny',
|
||||
(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,
|
||||
@ -102,6 +102,8 @@ select a.classid,a.zzdf,a.create_time,date_format(a.create_time,'%Y-%m') as 'ny'
|
||||
(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="createTime != null ">and date_format(create_time,'%Y-%m') = date_format(#{createTime},'%Y-%m')</if>
|
||||
|
||||
) t
|
||||
group by t.classid,t.ny
|
||||
</select>
|
||||
|
Loading…
x
Reference in New Issue
Block a user