幼儿
This commit is contained in:
parent
006b9c3e6e
commit
8af3981f77
@ -53,6 +53,14 @@ public class ByChildCheckinDetailController extends BaseController {
|
|||||||
if (byChildCheckinDetail.getCreateTime() == null) {
|
if (byChildCheckinDetail.getCreateTime() == null) {
|
||||||
byChildCheckinDetail.setCreateTime(new Date());
|
byChildCheckinDetail.setCreateTime(new Date());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
byChildCheckinDetail.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
|
//判断是否为班主任
|
||||||
|
System.out.println(schoolCommon.getClassId());
|
||||||
|
if (!schoolCommon.isStringEmpty(schoolCommon.getClassId())) {
|
||||||
|
byChildCheckinDetail.setClassid(schoolCommon.getClassId());
|
||||||
|
}
|
||||||
|
|
||||||
List<ByChildCheckinDetail> list = byChildCheckinDetailService.selectByChildCheckinDetailList(byChildCheckinDetail);
|
List<ByChildCheckinDetail> list = byChildCheckinDetailService.selectByChildCheckinDetailList(byChildCheckinDetail);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,8 @@ package com.ruoyi.project.benyi.controller;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ruoyi.common.utils.SecurityUtils;
|
||||||
|
import com.ruoyi.project.common.SchoolCommon;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@ -32,6 +34,8 @@ import com.ruoyi.framework.web.page.TableDataInfo;
|
|||||||
public class ByChildContactpeopleController extends BaseController {
|
public class ByChildContactpeopleController extends BaseController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private IByChildContactpeopleService byChildContactpeopleService;
|
private IByChildContactpeopleService byChildContactpeopleService;
|
||||||
|
@Autowired
|
||||||
|
private SchoolCommon schoolCommon;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询幼儿紧急情况联系人列表
|
* 查询幼儿紧急情况联系人列表
|
||||||
@ -40,6 +44,12 @@ public class ByChildContactpeopleController extends BaseController {
|
|||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByChildContactpeople byChildContactpeople) {
|
public TableDataInfo list(ByChildContactpeople byChildContactpeople) {
|
||||||
startPage();
|
startPage();
|
||||||
|
byChildContactpeople.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
|
//判断是否为班主任
|
||||||
|
System.out.println(schoolCommon.getClassId());
|
||||||
|
if (!schoolCommon.isStringEmpty(schoolCommon.getClassId())) {
|
||||||
|
byChildContactpeople.setClassid(schoolCommon.getClassId());
|
||||||
|
}
|
||||||
List<ByChildContactpeople> list = byChildContactpeopleService.selectByChildContactpeopleList(byChildContactpeople);
|
List<ByChildContactpeople> list = byChildContactpeopleService.selectByChildContactpeopleList(byChildContactpeople);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,12 @@ public class ByChildController extends BaseController {
|
|||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByChild byChild) {
|
public TableDataInfo list(ByChild byChild) {
|
||||||
startPage();
|
startPage();
|
||||||
|
byChild.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
|
//判断是否为班主任
|
||||||
|
System.out.println(schoolCommon.getClassId());
|
||||||
|
if (!schoolCommon.isStringEmpty(schoolCommon.getClassId())) {
|
||||||
|
byChild.setClassid(schoolCommon.getClassId());
|
||||||
|
}
|
||||||
List<ByChild> list = byChildService.selectByChildList(byChild);
|
List<ByChild> list = byChildService.selectByChildList(byChild);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
@ -54,6 +60,12 @@ public class ByChildController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:checkindetail:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:checkindetail:list')")
|
||||||
@GetMapping("/listByCheck")
|
@GetMapping("/listByCheck")
|
||||||
public TableDataInfo listByCheck(ByChild byChild) {
|
public TableDataInfo listByCheck(ByChild byChild) {
|
||||||
|
byChild.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
|
//判断是否为班主任
|
||||||
|
System.out.println(schoolCommon.getClassId());
|
||||||
|
if (!schoolCommon.isStringEmpty(schoolCommon.getClassId())) {
|
||||||
|
byChild.setClassid(schoolCommon.getClassId());
|
||||||
|
}
|
||||||
List<ByChild> list = byChildService.selectByCheckList(byChild);
|
List<ByChild> list = byChildService.selectByCheckList(byChild);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,18 @@ public class ByChildContactpeople extends BaseEntity {
|
|||||||
@Excel(name = "幼儿id")
|
@Excel(name = "幼儿id")
|
||||||
private Long childid;
|
private Long childid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 学校id
|
||||||
|
*/
|
||||||
|
@Excel(name = "学校id")
|
||||||
|
private Long schoolid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 班级id
|
||||||
|
*/
|
||||||
|
@Excel(name = "班级id")
|
||||||
|
private String classid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 父亲姓名
|
* 父亲姓名
|
||||||
*/
|
*/
|
||||||
@ -137,6 +149,22 @@ public class ByChildContactpeople extends BaseEntity {
|
|||||||
return childid;
|
return childid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setSchoolid(Long schoolid) {
|
||||||
|
this.schoolid = schoolid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getSchoolid() {
|
||||||
|
return schoolid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setClassid(String classid) {
|
||||||
|
this.classid = classid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClassid() {
|
||||||
|
return classid;
|
||||||
|
}
|
||||||
|
|
||||||
public void setFathername(String fathername) {
|
public void setFathername(String fathername) {
|
||||||
this.fathername = fathername;
|
this.fathername = fathername;
|
||||||
}
|
}
|
||||||
@ -270,6 +298,8 @@ public class ByChildContactpeople extends BaseEntity {
|
|||||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
.append("id", getId())
|
.append("id", getId())
|
||||||
.append("childid", getChildid())
|
.append("childid", getChildid())
|
||||||
|
.append("schoolid", getSchoolid())
|
||||||
|
.append("classid", getClassid())
|
||||||
.append("fathername", getFathername())
|
.append("fathername", getFathername())
|
||||||
.append("fphone", getFphone())
|
.append("fphone", getFphone())
|
||||||
.append("foffphone", getFoffphone())
|
.append("foffphone", getFoffphone())
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
<resultMap type="ByChildContactpeople" id="ByChildContactpeopleResult">
|
<resultMap type="ByChildContactpeople" id="ByChildContactpeopleResult">
|
||||||
<result property="id" column="id"/>
|
<result property="id" column="id"/>
|
||||||
<result property="childid" column="childid"/>
|
<result property="childid" column="childid"/>
|
||||||
|
<result property="schoolid" column="schoolid"/>
|
||||||
|
<result property="classid" column="classid"/>
|
||||||
<result property="fathername" column="fathername"/>
|
<result property="fathername" column="fathername"/>
|
||||||
<result property="fphone" column="fphone"/>
|
<result property="fphone" column="fphone"/>
|
||||||
<result property="foffphone" column="foffphone"/>
|
<result property="foffphone" column="foffphone"/>
|
||||||
@ -27,40 +29,42 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectByChildContactpeopleVo">
|
<sql id="selectByChildContactpeopleVo">
|
||||||
select id, childid, fathername, fphone, foffphone, mothername, mphone, moffphone, grandfathername, gfgx, gfphone, gfoffphone, gfaddress, grandmothername, gmgx, gmphone, gmaddress, gmoffphone, create_time from by_child_contactpeople
|
select a.id, a.childid, a.fathername, a.fphone, a.foffphone, a.mothername, a.mphone, a.moffphone, a.grandfathername, a.gfgx, a.gfphone, a.gfoffphone, a.gfaddress, a.grandmothername, a.gmgx, a.gmphone, a.gmaddress, a.gmoffphone, a.create_time,b.schoolid, b.classid from by_child_contactpeople a left join by_child b on a.childid=b.id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectByChildContactpeopleList" parameterType="ByChildContactpeople"
|
<select id="selectByChildContactpeopleList" parameterType="ByChildContactpeople"
|
||||||
resultMap="ByChildContactpeopleResult">
|
resultMap="ByChildContactpeopleResult">
|
||||||
<include refid="selectByChildContactpeopleVo"/>
|
<include refid="selectByChildContactpeopleVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="childid != null ">and childid = #{childid}</if>
|
<if test="childid != null ">and a.childid = #{childid}</if>
|
||||||
<if test="fathername != null and fathername != ''">and fathername like concat('%', #{fathername}, '%')</if>
|
<if test="schoolid != null ">and b.schoolid = #{schoolid}</if>
|
||||||
<if test="fphone != null and fphone != ''">and fphone = #{fphone}</if>
|
<if test="classid != null and classid != ''">and b.classid = #{classid}</if>
|
||||||
<if test="foffphone != null and foffphone != ''">and foffphone = #{foffphone}</if>
|
<if test="fathername != null and fathername != ''">and a.fathername like concat('%', #{fathername}, '%')</if>
|
||||||
<if test="mothername != null and mothername != ''">and mothername like concat('%', #{mothername}, '%')</if>
|
<if test="fphone != null and fphone != ''">and a.fphone = #{fphone}</if>
|
||||||
<if test="mphone != null and mphone != ''">and mphone = #{mphone}</if>
|
<if test="foffphone != null and foffphone != ''">and a.foffphone = #{foffphone}</if>
|
||||||
<if test="moffphone != null and moffphone != ''">and moffphone = #{moffphone}</if>
|
<if test="mothername != null and mothername != ''">and a.mothername like concat('%', #{mothername}, '%')</if>
|
||||||
<if test="grandfathername != null and grandfathername != ''">and grandfathername like concat('%',
|
<if test="mphone != null and mphone != ''">and a.mphone = #{mphone}</if>
|
||||||
|
<if test="moffphone != null and moffphone != ''">and a.moffphone = #{moffphone}</if>
|
||||||
|
<if test="grandfathername != null and grandfathername != ''">and a.grandfathername like concat('%',
|
||||||
#{grandfathername}, '%')
|
#{grandfathername}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="gfgx != null and gfgx != ''">and gfgx = #{gfgx}</if>
|
<if test="gfgx != null and gfgx != ''">and a.gfgx = #{gfgx}</if>
|
||||||
<if test="gfphone != null and gfphone != ''">and gfphone = #{gfphone}</if>
|
<if test="gfphone != null and gfphone != ''">and a.gfphone = #{gfphone}</if>
|
||||||
<if test="gfoffphone != null and gfoffphone != ''">and gfoffphone = #{gfoffphone}</if>
|
<if test="gfoffphone != null and gfoffphone != ''">and a.gfoffphone = #{gfoffphone}</if>
|
||||||
<if test="gfaddress != null and gfaddress != ''">and gfaddress = #{gfaddress}</if>
|
<if test="gfaddress != null and gfaddress != ''">and a.gfaddress = #{gfaddress}</if>
|
||||||
<if test="grandmothername != null and grandmothername != ''">and grandmothername like concat('%',
|
<if test="grandmothername != null and grandmothername != ''">and a.grandmothername like concat('%',
|
||||||
#{grandmothername}, '%')
|
#{grandmothername}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="gmgx != null and gmgx != ''">and gmgx = #{gmgx}</if>
|
<if test="gmgx != null and gmgx != ''">and a.gmgx = #{gmgx}</if>
|
||||||
<if test="gmphone != null and gmphone != ''">and gmphone = #{gmphone}</if>
|
<if test="gmphone != null and gmphone != ''">and a.gmphone = #{gmphone}</if>
|
||||||
<if test="gmaddress != null and gmaddress != ''">and gmaddress = #{gmaddress}</if>
|
<if test="gmaddress != null and gmaddress != ''">and a.gmaddress = #{gmaddress}</if>
|
||||||
<if test="gmoffphone != null and gmoffphone != ''">and gmoffphone = #{gmoffphone}</if>
|
<if test="gmoffphone != null and gmoffphone != ''">and a.gmoffphone = #{gmoffphone}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectByChildContactpeopleById" parameterType="Long" resultMap="ByChildContactpeopleResult">
|
<select id="selectByChildContactpeopleById" parameterType="Long" resultMap="ByChildContactpeopleResult">
|
||||||
<include refid="selectByChildContactpeopleVo"/>
|
<include refid="selectByChildContactpeopleVo"/>
|
||||||
where id = #{id}
|
where a.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertByChildContactpeople" parameterType="ByChildContactpeople">
|
<insert id="insertByChildContactpeople" parameterType="ByChildContactpeople">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user