幼儿紧急联系人
This commit is contained in:
53
ruoyi-ui/src/api/benyi/contactpeople.js
Normal file
53
ruoyi-ui/src/api/benyi/contactpeople.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询幼儿紧急情况联系人列表
|
||||
export function listContactpeople(query) {
|
||||
return request({
|
||||
url: '/benyi/contactpeople/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询幼儿紧急情况联系人详细
|
||||
export function getContactpeople(id) {
|
||||
return request({
|
||||
url: '/benyi/contactpeople/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增幼儿紧急情况联系人
|
||||
export function addContactpeople(data) {
|
||||
return request({
|
||||
url: '/benyi/contactpeople',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改幼儿紧急情况联系人
|
||||
export function updateContactpeople(data) {
|
||||
return request({
|
||||
url: '/benyi/contactpeople',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除幼儿紧急情况联系人
|
||||
export function delContactpeople(id) {
|
||||
return request({
|
||||
url: '/benyi/contactpeople/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出幼儿紧急情况联系人
|
||||
export function exportContactpeople(query) {
|
||||
return request({
|
||||
url: '/benyi/contactpeople/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
353
ruoyi-ui/src/views/benyi/contactpeople/index.vue
Normal file
353
ruoyi-ui/src/views/benyi/contactpeople/index.vue
Normal file
@ -0,0 +1,353 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
|
||||
<el-form-item label="幼儿id" prop="childid">
|
||||
<el-input
|
||||
v-model="queryParams.childid"
|
||||
placeholder="请输入幼儿id"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="父亲姓名" prop="fathername">
|
||||
<el-input
|
||||
v-model="queryParams.fathername"
|
||||
placeholder="请输入父亲姓名"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="母亲姓名" prop="mothername">
|
||||
<el-input
|
||||
v-model="queryParams.mothername"
|
||||
placeholder="请输入母亲姓名"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</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-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['benyi:contactpeople:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['benyi:contactpeople:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['benyi:contactpeople:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="contactpeopleList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="编号" align="center" prop="id" />
|
||||
<el-table-column label="幼儿id" align="center" prop="childid" />
|
||||
<el-table-column label="父亲姓名" align="center" prop="fathername" />
|
||||
<el-table-column label="父亲联系电话" align="center" prop="fphone" />
|
||||
<el-table-column label="父亲办公电话" align="center" prop="foffphone" />
|
||||
<el-table-column label="母亲姓名" align="center" prop="mothername" />
|
||||
<el-table-column label="母亲联系电话" align="center" prop="mphone" />
|
||||
<el-table-column label="母亲办公电话" align="center" prop="moffphone" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['benyi:contactpeople:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['benyi:contactpeople:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改幼儿紧急情况联系人对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="幼儿id" prop="childid">
|
||||
<el-input v-model="form.childid" placeholder="请输入幼儿id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="父亲姓名" prop="fathername">
|
||||
<el-input v-model="form.fathername" placeholder="请输入父亲姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="父亲联系电话" prop="fphone">
|
||||
<el-input v-model="form.fphone" placeholder="请输入父亲联系电话" />
|
||||
</el-form-item>
|
||||
<el-form-item label="父亲办公电话" prop="foffphone">
|
||||
<el-input v-model="form.foffphone" placeholder="请输入父亲办公电话" />
|
||||
</el-form-item>
|
||||
<el-form-item label="母亲姓名" prop="mothername">
|
||||
<el-input v-model="form.mothername" placeholder="请输入母亲姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="母亲联系电话" prop="mphone">
|
||||
<el-input v-model="form.mphone" placeholder="请输入母亲联系电话" />
|
||||
</el-form-item>
|
||||
<el-form-item label="母亲办公电话" prop="moffphone">
|
||||
<el-input v-model="form.moffphone" placeholder="请输入母亲办公电话" />
|
||||
</el-form-item>
|
||||
<el-form-item label="其他紧急联系姓名" prop="grandfathername">
|
||||
<el-input v-model="form.grandfathername" placeholder="请输入其他紧急联系姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="与幼儿关系" prop="gfgx">
|
||||
<el-input v-model="form.gfgx" placeholder="请输入与幼儿关系" />
|
||||
</el-form-item>
|
||||
<el-form-item label="联系电话" prop="gfphone">
|
||||
<el-input v-model="form.gfphone" placeholder="请输入联系电话" />
|
||||
</el-form-item>
|
||||
<el-form-item label="办公电话" prop="gfoffphone">
|
||||
<el-input v-model="form.gfoffphone" placeholder="请输入办公电话" />
|
||||
</el-form-item>
|
||||
<el-form-item label="住址" prop="gfaddress">
|
||||
<el-input v-model="form.gfaddress" placeholder="请输入住址" />
|
||||
</el-form-item>
|
||||
<el-form-item label="其他联系人姓名2" prop="grandmothername">
|
||||
<el-input v-model="form.grandmothername" placeholder="请输入其他联系人姓名2" />
|
||||
</el-form-item>
|
||||
<el-form-item label="与幼儿关系2" prop="gmgx">
|
||||
<el-input v-model="form.gmgx" placeholder="请输入与幼儿关系2" />
|
||||
</el-form-item>
|
||||
<el-form-item label="联系电话2" prop="gmphone">
|
||||
<el-input v-model="form.gmphone" placeholder="请输入联系电话2" />
|
||||
</el-form-item>
|
||||
<el-form-item label="住址2" prop="gmaddress">
|
||||
<el-input v-model="form.gmaddress" placeholder="请输入住址2" />
|
||||
</el-form-item>
|
||||
<el-form-item label="办公电话2" prop="gmoffphone">
|
||||
<el-input v-model="form.gmoffphone" placeholder="请输入办公电话2" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listContactpeople,
|
||||
getContactpeople,
|
||||
delContactpeople,
|
||||
addContactpeople,
|
||||
updateContactpeople,
|
||||
} from "@/api/benyi/contactpeople";
|
||||
|
||||
export default {
|
||||
name: "Contactpeople",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 幼儿紧急情况联系人表格数据
|
||||
contactpeopleList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
childid: undefined,
|
||||
fathername: undefined,
|
||||
fphone: undefined,
|
||||
foffphone: undefined,
|
||||
mothername: undefined,
|
||||
mphone: undefined,
|
||||
moffphone: undefined,
|
||||
grandfathername: undefined,
|
||||
gfgx: undefined,
|
||||
gfphone: undefined,
|
||||
gfoffphone: undefined,
|
||||
gfaddress: undefined,
|
||||
grandmothername: undefined,
|
||||
gmgx: undefined,
|
||||
gmphone: undefined,
|
||||
gmaddress: undefined,
|
||||
gmoffphone: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询幼儿紧急情况联系人列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listContactpeople(this.queryParams).then((response) => {
|
||||
this.contactpeopleList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
childid: undefined,
|
||||
fathername: undefined,
|
||||
fphone: undefined,
|
||||
foffphone: undefined,
|
||||
mothername: undefined,
|
||||
mphone: undefined,
|
||||
moffphone: undefined,
|
||||
grandfathername: undefined,
|
||||
gfgx: undefined,
|
||||
gfphone: undefined,
|
||||
gfoffphone: undefined,
|
||||
gfaddress: undefined,
|
||||
grandmothername: undefined,
|
||||
gmgx: undefined,
|
||||
gmphone: undefined,
|
||||
gmaddress: undefined,
|
||||
gmoffphone: undefined,
|
||||
createTime: undefined,
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length != 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加幼儿紧急情况联系人";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getContactpeople(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改幼儿紧急情况联系人";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm: function () {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != undefined) {
|
||||
updateContactpeople(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addContactpeople(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$confirm(
|
||||
'是否确认删除幼儿紧急情况联系人编号为"' + ids + '"的数据项?',
|
||||
"警告",
|
||||
{
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
}
|
||||
)
|
||||
.then(function () {
|
||||
return delContactpeople(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(function () {});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
@ -204,7 +204,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
handleAvatarSuccess(res, file) {
|
||||
console.log(res);
|
||||
//console.log(res);
|
||||
if (res.code == "200") {
|
||||
this.form.fileurl = res.fileName;
|
||||
this.form.filetype = res.fileName.split(".")[1];
|
||||
@ -213,13 +213,13 @@ export default {
|
||||
}
|
||||
},
|
||||
handleRemove(file, fileList) {
|
||||
console.log(file, fileList);
|
||||
//console.log(file, fileList);
|
||||
if (file.response.code == "200") {
|
||||
this.form.fileurl = "";
|
||||
}
|
||||
},
|
||||
handlePreview(file) {
|
||||
console.log(file);
|
||||
//console.log(file);
|
||||
},
|
||||
handleExceed(files, fileList) {
|
||||
this.$message.warning(
|
||||
|
@ -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