幼儿紧急联系人
This commit is contained in:
@ -0,0 +1,97 @@
|
||||
package com.ruoyi.project.benyi.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
||||
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
||||
import com.ruoyi.project.benyi.domain.ByChildContactpeople;
|
||||
import com.ruoyi.project.benyi.service.IByChildContactpeopleService;
|
||||
import com.ruoyi.framework.web.controller.BaseController;
|
||||
import com.ruoyi.framework.web.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 幼儿紧急情况联系人Controller
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/contactpeople")
|
||||
public class ByChildContactpeopleController extends BaseController {
|
||||
@Autowired
|
||||
private IByChildContactpeopleService byChildContactpeopleService;
|
||||
|
||||
/**
|
||||
* 查询幼儿紧急情况联系人列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:contactpeople:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByChildContactpeople byChildContactpeople) {
|
||||
startPage();
|
||||
List<ByChildContactpeople> list = byChildContactpeopleService.selectByChildContactpeopleList(byChildContactpeople);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出幼儿紧急情况联系人列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:contactpeople:export')")
|
||||
@Log(title = "幼儿紧急情况联系人", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByChildContactpeople byChildContactpeople) {
|
||||
List<ByChildContactpeople> list = byChildContactpeopleService.selectByChildContactpeopleList(byChildContactpeople);
|
||||
ExcelUtil<ByChildContactpeople> util = new ExcelUtil<ByChildContactpeople>(ByChildContactpeople.class);
|
||||
return util.exportExcel(list, "contactpeople");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取幼儿紧急情况联系人详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:contactpeople:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(byChildContactpeopleService.selectByChildContactpeopleById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增幼儿紧急情况联系人
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:contactpeople:add')")
|
||||
@Log(title = "幼儿紧急情况联系人", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByChildContactpeople byChildContactpeople) {
|
||||
return toAjax(byChildContactpeopleService.insertByChildContactpeople(byChildContactpeople));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿紧急情况联系人
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:contactpeople:edit')")
|
||||
@Log(title = "幼儿紧急情况联系人", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByChildContactpeople byChildContactpeople) {
|
||||
return toAjax(byChildContactpeopleService.updateByChildContactpeople(byChildContactpeople));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿紧急情况联系人
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:contactpeople:remove')")
|
||||
@Log(title = "幼儿紧急情况联系人", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(byChildContactpeopleService.deleteByChildContactpeopleByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,292 @@
|
||||
package com.ruoyi.project.benyi.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
||||
import com.ruoyi.framework.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 幼儿紧急情况联系人对象 by_child_contactpeople
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-13
|
||||
*/
|
||||
public class ByChildContactpeople extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 幼儿id
|
||||
*/
|
||||
@Excel(name = "幼儿id")
|
||||
private Long childid;
|
||||
|
||||
/**
|
||||
* 父亲姓名
|
||||
*/
|
||||
@Excel(name = "父亲姓名")
|
||||
private String fathername;
|
||||
|
||||
/**
|
||||
* 父亲联系电话
|
||||
*/
|
||||
@Excel(name = "父亲联系电话")
|
||||
private String fphone;
|
||||
|
||||
/**
|
||||
* 父亲办公电话
|
||||
*/
|
||||
@Excel(name = "父亲办公电话")
|
||||
private String foffphone;
|
||||
|
||||
/**
|
||||
* 母亲姓名
|
||||
*/
|
||||
@Excel(name = "母亲姓名")
|
||||
private String mothername;
|
||||
|
||||
/**
|
||||
* 母亲联系电话
|
||||
*/
|
||||
@Excel(name = "母亲联系电话")
|
||||
private String mphone;
|
||||
|
||||
/**
|
||||
* 母亲办公电话
|
||||
*/
|
||||
@Excel(name = "母亲办公电话")
|
||||
private String moffphone;
|
||||
|
||||
/**
|
||||
* 其他紧急联系姓名
|
||||
*/
|
||||
@Excel(name = "其他紧急联系姓名")
|
||||
private String grandfathername;
|
||||
|
||||
/**
|
||||
* 与幼儿关系
|
||||
*/
|
||||
@Excel(name = "与幼儿关系")
|
||||
private String gfgx;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
@Excel(name = "联系电话")
|
||||
private String gfphone;
|
||||
|
||||
/**
|
||||
* 办公电话
|
||||
*/
|
||||
@Excel(name = "办公电话")
|
||||
private String gfoffphone;
|
||||
|
||||
/**
|
||||
* 住址
|
||||
*/
|
||||
@Excel(name = "住址")
|
||||
private String gfaddress;
|
||||
|
||||
/**
|
||||
* 其他联系人姓名2
|
||||
*/
|
||||
@Excel(name = "其他联系人姓名2")
|
||||
private String grandmothername;
|
||||
|
||||
/**
|
||||
* 与幼儿关系2
|
||||
*/
|
||||
@Excel(name = "与幼儿关系2")
|
||||
private String gmgx;
|
||||
|
||||
/**
|
||||
* 联系电话2
|
||||
*/
|
||||
@Excel(name = "联系电话2")
|
||||
private String gmphone;
|
||||
|
||||
/**
|
||||
* 住址2
|
||||
*/
|
||||
@Excel(name = "住址2")
|
||||
private String gmaddress;
|
||||
|
||||
/**
|
||||
* 办公电话2
|
||||
*/
|
||||
@Excel(name = "办公电话2")
|
||||
private String gmoffphone;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setChildid(Long childid) {
|
||||
this.childid = childid;
|
||||
}
|
||||
|
||||
public Long getChildid() {
|
||||
return childid;
|
||||
}
|
||||
|
||||
public void setFathername(String fathername) {
|
||||
this.fathername = fathername;
|
||||
}
|
||||
|
||||
public String getFathername() {
|
||||
return fathername;
|
||||
}
|
||||
|
||||
public void setFphone(String fphone) {
|
||||
this.fphone = fphone;
|
||||
}
|
||||
|
||||
public String getFphone() {
|
||||
return fphone;
|
||||
}
|
||||
|
||||
public void setFoffphone(String foffphone) {
|
||||
this.foffphone = foffphone;
|
||||
}
|
||||
|
||||
public String getFoffphone() {
|
||||
return foffphone;
|
||||
}
|
||||
|
||||
public void setMothername(String mothername) {
|
||||
this.mothername = mothername;
|
||||
}
|
||||
|
||||
public String getMothername() {
|
||||
return mothername;
|
||||
}
|
||||
|
||||
public void setMphone(String mphone) {
|
||||
this.mphone = mphone;
|
||||
}
|
||||
|
||||
public String getMphone() {
|
||||
return mphone;
|
||||
}
|
||||
|
||||
public void setMoffphone(String moffphone) {
|
||||
this.moffphone = moffphone;
|
||||
}
|
||||
|
||||
public String getMoffphone() {
|
||||
return moffphone;
|
||||
}
|
||||
|
||||
public void setGrandfathername(String grandfathername) {
|
||||
this.grandfathername = grandfathername;
|
||||
}
|
||||
|
||||
public String getGrandfathername() {
|
||||
return grandfathername;
|
||||
}
|
||||
|
||||
public void setGfgx(String gfgx) {
|
||||
this.gfgx = gfgx;
|
||||
}
|
||||
|
||||
public String getGfgx() {
|
||||
return gfgx;
|
||||
}
|
||||
|
||||
public void setGfphone(String gfphone) {
|
||||
this.gfphone = gfphone;
|
||||
}
|
||||
|
||||
public String getGfphone() {
|
||||
return gfphone;
|
||||
}
|
||||
|
||||
public void setGfoffphone(String gfoffphone) {
|
||||
this.gfoffphone = gfoffphone;
|
||||
}
|
||||
|
||||
public String getGfoffphone() {
|
||||
return gfoffphone;
|
||||
}
|
||||
|
||||
public void setGfaddress(String gfaddress) {
|
||||
this.gfaddress = gfaddress;
|
||||
}
|
||||
|
||||
public String getGfaddress() {
|
||||
return gfaddress;
|
||||
}
|
||||
|
||||
public void setGrandmothername(String grandmothername) {
|
||||
this.grandmothername = grandmothername;
|
||||
}
|
||||
|
||||
public String getGrandmothername() {
|
||||
return grandmothername;
|
||||
}
|
||||
|
||||
public void setGmgx(String gmgx) {
|
||||
this.gmgx = gmgx;
|
||||
}
|
||||
|
||||
public String getGmgx() {
|
||||
return gmgx;
|
||||
}
|
||||
|
||||
public void setGmphone(String gmphone) {
|
||||
this.gmphone = gmphone;
|
||||
}
|
||||
|
||||
public String getGmphone() {
|
||||
return gmphone;
|
||||
}
|
||||
|
||||
public void setGmaddress(String gmaddress) {
|
||||
this.gmaddress = gmaddress;
|
||||
}
|
||||
|
||||
public String getGmaddress() {
|
||||
return gmaddress;
|
||||
}
|
||||
|
||||
public void setGmoffphone(String gmoffphone) {
|
||||
this.gmoffphone = gmoffphone;
|
||||
}
|
||||
|
||||
public String getGmoffphone() {
|
||||
return gmoffphone;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("childid", getChildid())
|
||||
.append("fathername", getFathername())
|
||||
.append("fphone", getFphone())
|
||||
.append("foffphone", getFoffphone())
|
||||
.append("mothername", getMothername())
|
||||
.append("mphone", getMphone())
|
||||
.append("moffphone", getMoffphone())
|
||||
.append("grandfathername", getGrandfathername())
|
||||
.append("gfgx", getGfgx())
|
||||
.append("gfphone", getGfphone())
|
||||
.append("gfoffphone", getGfoffphone())
|
||||
.append("gfaddress", getGfaddress())
|
||||
.append("grandmothername", getGrandmothername())
|
||||
.append("gmgx", getGmgx())
|
||||
.append("gmphone", getGmphone())
|
||||
.append("gmaddress", getGmaddress())
|
||||
.append("gmoffphone", getGmoffphone())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByChildContactpeople;
|
||||
|
||||
/**
|
||||
* 幼儿紧急情况联系人Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-13
|
||||
*/
|
||||
public interface ByChildContactpeopleMapper {
|
||||
/**
|
||||
* 查询幼儿紧急情况联系人
|
||||
*
|
||||
* @param id 幼儿紧急情况联系人ID
|
||||
* @return 幼儿紧急情况联系人
|
||||
*/
|
||||
public ByChildContactpeople selectByChildContactpeopleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询幼儿紧急情况联系人列表
|
||||
*
|
||||
* @param byChildContactpeople 幼儿紧急情况联系人
|
||||
* @return 幼儿紧急情况联系人集合
|
||||
*/
|
||||
public List<ByChildContactpeople> selectByChildContactpeopleList(ByChildContactpeople byChildContactpeople);
|
||||
|
||||
/**
|
||||
* 新增幼儿紧急情况联系人
|
||||
*
|
||||
* @param byChildContactpeople 幼儿紧急情况联系人
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByChildContactpeople(ByChildContactpeople byChildContactpeople);
|
||||
|
||||
/**
|
||||
* 修改幼儿紧急情况联系人
|
||||
*
|
||||
* @param byChildContactpeople 幼儿紧急情况联系人
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByChildContactpeople(ByChildContactpeople byChildContactpeople);
|
||||
|
||||
/**
|
||||
* 删除幼儿紧急情况联系人
|
||||
*
|
||||
* @param id 幼儿紧急情况联系人ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByChildContactpeopleById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除幼儿紧急情况联系人
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByChildContactpeopleByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.project.benyi.domain.ByChildContactpeople;
|
||||
|
||||
/**
|
||||
* 幼儿紧急情况联系人Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-13
|
||||
*/
|
||||
public interface IByChildContactpeopleService {
|
||||
/**
|
||||
* 查询幼儿紧急情况联系人
|
||||
*
|
||||
* @param id 幼儿紧急情况联系人ID
|
||||
* @return 幼儿紧急情况联系人
|
||||
*/
|
||||
public ByChildContactpeople selectByChildContactpeopleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询幼儿紧急情况联系人列表
|
||||
*
|
||||
* @param byChildContactpeople 幼儿紧急情况联系人
|
||||
* @return 幼儿紧急情况联系人集合
|
||||
*/
|
||||
public List<ByChildContactpeople> selectByChildContactpeopleList(ByChildContactpeople byChildContactpeople);
|
||||
|
||||
/**
|
||||
* 新增幼儿紧急情况联系人
|
||||
*
|
||||
* @param byChildContactpeople 幼儿紧急情况联系人
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByChildContactpeople(ByChildContactpeople byChildContactpeople);
|
||||
|
||||
/**
|
||||
* 修改幼儿紧急情况联系人
|
||||
*
|
||||
* @param byChildContactpeople 幼儿紧急情况联系人
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByChildContactpeople(ByChildContactpeople byChildContactpeople);
|
||||
|
||||
/**
|
||||
* 批量删除幼儿紧急情况联系人
|
||||
*
|
||||
* @param ids 需要删除的幼儿紧急情况联系人ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByChildContactpeopleByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除幼儿紧急情况联系人信息
|
||||
*
|
||||
* @param id 幼儿紧急情况联系人ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByChildContactpeopleById(Long id);
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.project.benyi.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.project.benyi.mapper.ByChildContactpeopleMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByChildContactpeople;
|
||||
import com.ruoyi.project.benyi.service.IByChildContactpeopleService;
|
||||
|
||||
/**
|
||||
* 幼儿紧急情况联系人Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-08-13
|
||||
*/
|
||||
@Service
|
||||
public class ByChildContactpeopleServiceImpl implements IByChildContactpeopleService {
|
||||
@Autowired
|
||||
private ByChildContactpeopleMapper byChildContactpeopleMapper;
|
||||
|
||||
/**
|
||||
* 查询幼儿紧急情况联系人
|
||||
*
|
||||
* @param id 幼儿紧急情况联系人ID
|
||||
* @return 幼儿紧急情况联系人
|
||||
*/
|
||||
@Override
|
||||
public ByChildContactpeople selectByChildContactpeopleById(Long id) {
|
||||
return byChildContactpeopleMapper.selectByChildContactpeopleById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询幼儿紧急情况联系人列表
|
||||
*
|
||||
* @param byChildContactpeople 幼儿紧急情况联系人
|
||||
* @return 幼儿紧急情况联系人
|
||||
*/
|
||||
@Override
|
||||
public List<ByChildContactpeople> selectByChildContactpeopleList(ByChildContactpeople byChildContactpeople) {
|
||||
return byChildContactpeopleMapper.selectByChildContactpeopleList(byChildContactpeople);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增幼儿紧急情况联系人
|
||||
*
|
||||
* @param byChildContactpeople 幼儿紧急情况联系人
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByChildContactpeople(ByChildContactpeople byChildContactpeople) {
|
||||
byChildContactpeople.setCreateTime(DateUtils.getNowDate());
|
||||
return byChildContactpeopleMapper.insertByChildContactpeople(byChildContactpeople);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改幼儿紧急情况联系人
|
||||
*
|
||||
* @param byChildContactpeople 幼儿紧急情况联系人
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByChildContactpeople(ByChildContactpeople byChildContactpeople) {
|
||||
return byChildContactpeopleMapper.updateByChildContactpeople(byChildContactpeople);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除幼儿紧急情况联系人
|
||||
*
|
||||
* @param ids 需要删除的幼儿紧急情况联系人ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByChildContactpeopleByIds(Long[] ids) {
|
||||
return byChildContactpeopleMapper.deleteByChildContactpeopleByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除幼儿紧急情况联系人信息
|
||||
*
|
||||
* @param id 幼儿紧急情况联系人ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByChildContactpeopleById(Long id) {
|
||||
return byChildContactpeopleMapper.deleteByChildContactpeopleById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,148 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.benyi.mapper.ByChildContactpeopleMapper">
|
||||
|
||||
<resultMap type="ByChildContactpeople" id="ByChildContactpeopleResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="childid" column="childid"/>
|
||||
<result property="fathername" column="fathername"/>
|
||||
<result property="fphone" column="fphone"/>
|
||||
<result property="foffphone" column="foffphone"/>
|
||||
<result property="mothername" column="mothername"/>
|
||||
<result property="mphone" column="mphone"/>
|
||||
<result property="moffphone" column="moffphone"/>
|
||||
<result property="grandfathername" column="grandfathername"/>
|
||||
<result property="gfgx" column="gfgx"/>
|
||||
<result property="gfphone" column="gfphone"/>
|
||||
<result property="gfoffphone" column="gfoffphone"/>
|
||||
<result property="gfaddress" column="gfaddress"/>
|
||||
<result property="grandmothername" column="grandmothername"/>
|
||||
<result property="gmgx" column="gmgx"/>
|
||||
<result property="gmphone" column="gmphone"/>
|
||||
<result property="gmaddress" column="gmaddress"/>
|
||||
<result property="gmoffphone" column="gmoffphone"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<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
|
||||
</sql>
|
||||
|
||||
<select id="selectByChildContactpeopleList" parameterType="ByChildContactpeople"
|
||||
resultMap="ByChildContactpeopleResult">
|
||||
<include refid="selectByChildContactpeopleVo"/>
|
||||
<where>
|
||||
<if test="childid != null ">and childid = #{childid}</if>
|
||||
<if test="fathername != null and fathername != ''">and fathername like concat('%', #{fathername}, '%')</if>
|
||||
<if test="fphone != null and fphone != ''">and fphone = #{fphone}</if>
|
||||
<if test="foffphone != null and foffphone != ''">and foffphone = #{foffphone}</if>
|
||||
<if test="mothername != null and mothername != ''">and mothername like concat('%', #{mothername}, '%')</if>
|
||||
<if test="mphone != null and mphone != ''">and mphone = #{mphone}</if>
|
||||
<if test="moffphone != null and moffphone != ''">and moffphone = #{moffphone}</if>
|
||||
<if test="grandfathername != null and grandfathername != ''">and grandfathername like concat('%',
|
||||
#{grandfathername}, '%')
|
||||
</if>
|
||||
<if test="gfgx != null and gfgx != ''">and gfgx = #{gfgx}</if>
|
||||
<if test="gfphone != null and gfphone != ''">and gfphone = #{gfphone}</if>
|
||||
<if test="gfoffphone != null and gfoffphone != ''">and gfoffphone = #{gfoffphone}</if>
|
||||
<if test="gfaddress != null and gfaddress != ''">and gfaddress = #{gfaddress}</if>
|
||||
<if test="grandmothername != null and grandmothername != ''">and grandmothername like concat('%',
|
||||
#{grandmothername}, '%')
|
||||
</if>
|
||||
<if test="gmgx != null and gmgx != ''">and gmgx = #{gmgx}</if>
|
||||
<if test="gmphone != null and gmphone != ''">and gmphone = #{gmphone}</if>
|
||||
<if test="gmaddress != null and gmaddress != ''">and gmaddress = #{gmaddress}</if>
|
||||
<if test="gmoffphone != null and gmoffphone != ''">and gmoffphone = #{gmoffphone}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByChildContactpeopleById" parameterType="Long" resultMap="ByChildContactpeopleResult">
|
||||
<include refid="selectByChildContactpeopleVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByChildContactpeople" parameterType="ByChildContactpeople">
|
||||
insert into by_child_contactpeople
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null ">id,</if>
|
||||
<if test="childid != null ">childid,</if>
|
||||
<if test="fathername != null and fathername != ''">fathername,</if>
|
||||
<if test="fphone != null and fphone != ''">fphone,</if>
|
||||
<if test="foffphone != null and foffphone != ''">foffphone,</if>
|
||||
<if test="mothername != null and mothername != ''">mothername,</if>
|
||||
<if test="mphone != null and mphone != ''">mphone,</if>
|
||||
<if test="moffphone != null and moffphone != ''">moffphone,</if>
|
||||
<if test="grandfathername != null and grandfathername != ''">grandfathername,</if>
|
||||
<if test="gfgx != null and gfgx != ''">gfgx,</if>
|
||||
<if test="gfphone != null and gfphone != ''">gfphone,</if>
|
||||
<if test="gfoffphone != null and gfoffphone != ''">gfoffphone,</if>
|
||||
<if test="gfaddress != null and gfaddress != ''">gfaddress,</if>
|
||||
<if test="grandmothername != null and grandmothername != ''">grandmothername,</if>
|
||||
<if test="gmgx != null and gmgx != ''">gmgx,</if>
|
||||
<if test="gmphone != null and gmphone != ''">gmphone,</if>
|
||||
<if test="gmaddress != null and gmaddress != ''">gmaddress,</if>
|
||||
<if test="gmoffphone != null and gmoffphone != ''">gmoffphone,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null ">#{id},</if>
|
||||
<if test="childid != null ">#{childid},</if>
|
||||
<if test="fathername != null and fathername != ''">#{fathername},</if>
|
||||
<if test="fphone != null and fphone != ''">#{fphone},</if>
|
||||
<if test="foffphone != null and foffphone != ''">#{foffphone},</if>
|
||||
<if test="mothername != null and mothername != ''">#{mothername},</if>
|
||||
<if test="mphone != null and mphone != ''">#{mphone},</if>
|
||||
<if test="moffphone != null and moffphone != ''">#{moffphone},</if>
|
||||
<if test="grandfathername != null and grandfathername != ''">#{grandfathername},</if>
|
||||
<if test="gfgx != null and gfgx != ''">#{gfgx},</if>
|
||||
<if test="gfphone != null and gfphone != ''">#{gfphone},</if>
|
||||
<if test="gfoffphone != null and gfoffphone != ''">#{gfoffphone},</if>
|
||||
<if test="gfaddress != null and gfaddress != ''">#{gfaddress},</if>
|
||||
<if test="grandmothername != null and grandmothername != ''">#{grandmothername},</if>
|
||||
<if test="gmgx != null and gmgx != ''">#{gmgx},</if>
|
||||
<if test="gmphone != null and gmphone != ''">#{gmphone},</if>
|
||||
<if test="gmaddress != null and gmaddress != ''">#{gmaddress},</if>
|
||||
<if test="gmoffphone != null and gmoffphone != ''">#{gmoffphone},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByChildContactpeople" parameterType="ByChildContactpeople">
|
||||
update by_child_contactpeople
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="childid != null ">childid = #{childid},</if>
|
||||
<if test="fathername != null and fathername != ''">fathername = #{fathername},</if>
|
||||
<if test="fphone != null and fphone != ''">fphone = #{fphone},</if>
|
||||
<if test="foffphone != null and foffphone != ''">foffphone = #{foffphone},</if>
|
||||
<if test="mothername != null and mothername != ''">mothername = #{mothername},</if>
|
||||
<if test="mphone != null and mphone != ''">mphone = #{mphone},</if>
|
||||
<if test="moffphone != null and moffphone != ''">moffphone = #{moffphone},</if>
|
||||
<if test="grandfathername != null and grandfathername != ''">grandfathername = #{grandfathername},</if>
|
||||
<if test="gfgx != null and gfgx != ''">gfgx = #{gfgx},</if>
|
||||
<if test="gfphone != null and gfphone != ''">gfphone = #{gfphone},</if>
|
||||
<if test="gfoffphone != null and gfoffphone != ''">gfoffphone = #{gfoffphone},</if>
|
||||
<if test="gfaddress != null and gfaddress != ''">gfaddress = #{gfaddress},</if>
|
||||
<if test="grandmothername != null and grandmothername != ''">grandmothername = #{grandmothername},</if>
|
||||
<if test="gmgx != null and gmgx != ''">gmgx = #{gmgx},</if>
|
||||
<if test="gmphone != null and gmphone != ''">gmphone = #{gmphone},</if>
|
||||
<if test="gmaddress != null and gmaddress != ''">gmaddress = #{gmaddress},</if>
|
||||
<if test="gmoffphone != null and gmoffphone != ''">gmoffphone = #{gmoffphone},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByChildContactpeopleById" parameterType="Long">
|
||||
delete from by_child_contactpeople where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByChildContactpeopleByIds" parameterType="String">
|
||||
delete from by_child_contactpeople where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user