删除原一日流程任务菜单

This commit is contained in:
sk1551 2020-05-14 17:01:02 +08:00
parent 0077611aa7
commit 36126ce877
8 changed files with 0 additions and 1064 deletions

View File

@ -1,53 +0,0 @@
import request from '@/utils/request'
// 查询一日流程任务列表
export function listDayflowtask(query) {
return request({
url: '/benyi/dayflowtask/list',
method: 'get',
params: query
})
}
// 查询一日流程任务详细
export function getDayflowtask(id) {
return request({
url: '/benyi/dayflowtask/' + id,
method: 'get'
})
}
// 新增一日流程任务
export function addDayflowtask(data) {
return request({
url: '/benyi/dayflowtask',
method: 'post',
data: data
})
}
// 修改一日流程任务
export function updateDayflowtask(data) {
return request({
url: '/benyi/dayflowtask',
method: 'put',
data: data
})
}
// 删除一日流程任务
export function delDayflowtask(id) {
return request({
url: '/benyi/dayflowtask/' + id,
method: 'delete'
})
}
// 导出一日流程任务
export function exportDayflowtask(query) {
return request({
url: '/benyi/dayflowtask/export',
method: 'get',
params: query
})
}

View File

@ -1,385 +0,0 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
<el-form-item label="任务名称" prop="rwmc">
<el-input
v-model="queryParams.rwmc"
placeholder="请输入任务名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="所属流程" prop="lcmc">
<el-input
v-model="queryParams.lcmc"
placeholder="请输入所属流程"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!--
<el-form-item label="创建人" prop="createuser">
<el-input
v-model="queryParams.createuser"
placeholder="请输入创建人"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="创建时间" prop="createtime">
<el-date-picker clearable size="small" style="width: 200px"
v-model="queryParams.createtime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择创建时间">
</el-date-picker>
</el-form-item>
<el-form-item label="标准数量" prop="standardCount">
<el-input
v-model="queryParams.standardCount"
placeholder="请输入标准数量"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新者" prop="updateuser">
<el-input
v-model="queryParams.updateuser"
placeholder="请输入更新者"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="更新时间" prop="updatetime">
<el-date-picker clearable size="small" style="width: 200px"
v-model="queryParams.updatetime"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择更新时间">
</el-date-picker>
</el-form-item>
<el-form-item label="备用字段" prop="beiyong">
<el-input
v-model="queryParams.beiyong"
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:dayflowtask: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:dayflowtask: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:dayflowtask:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['benyi:dayflowtask:export']"
>导出</el-button>
</el-col>
</el-row>
<el-table v-loading="loading" :data="dayflowtaskList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="编号" align="center" prop="id" />
<el-table-column label="任务名称" align="center" prop="rwmc" />
<el-table-column label="所属流程" align="center" prop="lcmc" />
<el-table-column label="标准数量" align="center" prop="standardCount" />
<el-table-column label="创建人" align="center" prop="createuser" />
<el-table-column label="创建时间" align="center" prop="createtime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createtime) }}</span>
</template>
</el-table-column>
<el-table-column label="更新者" align="center" prop="updateuser" />
<el-table-column label="更新时间" align="center" prop="updatetime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.updatetime) }}</span>
</template>
</el-table-column>
<!--
<el-table-column label="流程id" align="center" prop="lcId" />
<el-table-column label="任务目的" align="center" prop="rwmd" />
<el-table-column label="任务解读" align="center" prop="rwjd" />
<el-table-column label="备用字段" align="center" prop="beiyong" />
-->
<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:dayflowtask:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['benyi:dayflowtask: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="500px">
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="任务名称" prop="rwmc">
<el-input v-model="form.rwmc" placeholder="请输入任务名称" />
</el-form-item>
<el-form-item label="所属流程" prop="lcmc">
<el-input v-model="form.lcmc" placeholder="请输入所属流程" />
</el-form-item>
<el-form-item label="任务目的" prop="rwmd">
<el-input v-model="form.rwmd" type="textarea" placeholder="请输入内容" />
</el-form-item>
<el-form-item label="任务解读" prop="rwjd">
<el-input v-model="form.rwjd" type="textarea" placeholder="请输入内容" />
</el-form-item>
<!--
<el-form-item label="流程id" prop="lcId">
<el-input v-model="form.lcId" placeholder="请输入流程id" />
</el-form-item>
<el-form-item label="更新者" prop="updateuser">
<el-input v-model="form.updateuser" placeholder="请输入更新者" />
</el-form-item>
<el-form-item label="备用字段" prop="beiyong">
<el-input v-model="form.beiyong" placeholder="请输入备用字段" />
</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 { listDayflowtask, getDayflowtask, delDayflowtask, addDayflowtask, updateDayflowtask, exportDayflowtask } from "@/api/benyi/dayflowtask";
export default {
name: "Dayflowtask",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
total: 0,
//
dayflowtaskList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
lcId: undefined,
rwmc: undefined,
lcmc: undefined,
rwmd: undefined,
rwjd: undefined,
createuser: undefined,
createtime: undefined,
standardCount: undefined,
updateuser: undefined,
updatetime: undefined,
beiyong: undefined
},
//
form: {},
//
rules: {
rwmc: [
{ required: true, message: "任务名称不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
},
methods: {
/** 查询一日流程任务列表 */
getList() {
this.loading = true;
listDayflowtask(this.queryParams).then(response => {
this.dayflowtaskList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: undefined,
lcId: undefined,
rwmc: undefined,
lcmc: undefined,
rwmd: undefined,
rwjd: undefined,
createuser: undefined,
createtime: undefined,
standardCount: undefined,
updateuser: undefined,
updatetime: undefined,
beiyong: 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
getDayflowtask(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) {
updateDayflowtask(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
} else {
this.msgError(response.msg);
}
});
} else {
addDayflowtask(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("新增成功");
this.open = false;
this.getList();
} else {
this.msgError(response.msg);
}
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$confirm('是否确认删除一日流程任务编号为"' + ids + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
return delDayflowtask(ids);
}).then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(function() {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有一日流程任务数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
return exportDayflowtask(queryParams);
}).then(response => {
this.download(response.msg);
}).catch(function() {});
}
}
};
</script>

View File

@ -1,110 +0,0 @@
package com.ruoyi.project.benyi.controller;
import java.util.Date;
import java.util.List;
import com.ruoyi.common.utils.SecurityUtils;
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.ByDayflowTask;
import com.ruoyi.project.benyi.service.IByDayflowTaskService;
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-05-13
*/
@RestController
@RequestMapping("/benyi/dayflowtask")
public class ByDayflowTaskController extends BaseController
{
@Autowired
private IByDayflowTaskService byDayflowTaskService;
/**
* 查询一日流程任务列表
*/
@PreAuthorize("@ss.hasPermi('benyi:dayflowtask:list')")
@GetMapping("/list")
public TableDataInfo list(ByDayflowTask byDayflowTask)
{
startPage();
List<ByDayflowTask> list = byDayflowTaskService.selectByDayflowTaskList(byDayflowTask);
return getDataTable(list);
}
/**
* 导出一日流程任务列表
*/
@PreAuthorize("@ss.hasPermi('benyi:dayflowtask:export')")
@Log(title = "一日流程任务", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(ByDayflowTask byDayflowTask)
{
List<ByDayflowTask> list = byDayflowTaskService.selectByDayflowTaskList(byDayflowTask);
ExcelUtil<ByDayflowTask> util = new ExcelUtil<ByDayflowTask>(ByDayflowTask.class);
return util.exportExcel(list, "dayflowtask");
}
/**
* 获取一日流程任务详细信息
*/
@PreAuthorize("@ss.hasPermi('benyi:dayflowtask:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(byDayflowTaskService.selectByDayflowTaskById(id));
}
/**
* 新增一日流程任务
*/
@PreAuthorize("@ss.hasPermi('benyi:dayflowtask:add')")
@Log(title = "一日流程任务", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ByDayflowTask byDayflowTask)
{
byDayflowTask.setCreateuser(SecurityUtils.getLoginUser().getUser().getUserId());
byDayflowTask.setCreatetime(new Date());
return toAjax(byDayflowTaskService.insertByDayflowTask(byDayflowTask));
}
/**
* 修改一日流程任务
*/
@PreAuthorize("@ss.hasPermi('benyi:dayflowtask:edit')")
@Log(title = "一日流程任务", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ByDayflowTask byDayflowTask)
{
byDayflowTask.setUpdateuser(SecurityUtils.getLoginUser().getUser().getUserId());
byDayflowTask.setUpdatetime(new Date());
return toAjax(byDayflowTaskService.updateByDayflowTask(byDayflowTask));
}
/**
* 删除一日流程任务
*/
@PreAuthorize("@ss.hasPermi('benyi:dayflowtask:remove')")
@Log(title = "一日流程任务", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(byDayflowTaskService.deleteByDayflowTaskByIds(ids));
}
}

View File

@ -1,194 +0,0 @@
package com.ruoyi.project.benyi.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
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;
import java.util.Date;
/**
* 一日流程任务对象 by_dayflow_task
*
* @author tsbz
* @date 2020-05-13
*/
public class ByDayflowTask extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 标识 */
private Long id;
/** 流程id */
@Excel(name = "流程id")
private Long lcId;
/** 任务名称 */
@Excel(name = "任务名称")
private String rwmc;
/** 所属流程 */
@Excel(name = "所属流程")
private String lcmc;
/** 任务目的 */
@Excel(name = "任务目的")
private String rwmd;
/** 任务解读 */
@Excel(name = "任务解读")
private String rwjd;
/** 创建人 */
@Excel(name = "创建人")
private Long createuser;
/** 创建时间 */
@Excel(name = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createtime;
/** 标准数量 */
@Excel(name = "标准数量")
private Long standardCount;
/** 更新者 */
@Excel(name = "更新者")
private Long updateuser;
/** 更新时间 */
@Excel(name = "更新时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updatetime;
/** 备用字段 */
@Excel(name = "备用字段")
private String beiyong;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setLcId(Long lcId)
{
this.lcId = lcId;
}
public Long getLcId()
{
return lcId;
}
public void setRwmc(String rwmc)
{
this.rwmc = rwmc;
}
public String getRwmc()
{
return rwmc;
}
public void setLcmc(String lcmc)
{
this.lcmc = lcmc;
}
public String getLcmc()
{
return lcmc;
}
public void setRwmd(String rwmd)
{
this.rwmd = rwmd;
}
public String getRwmd()
{
return rwmd;
}
public void setRwjd(String rwjd)
{
this.rwjd = rwjd;
}
public String getRwjd()
{
return rwjd;
}
public void setCreateuser(Long createuser)
{
this.createuser = createuser;
}
public Long getCreateuser()
{
return createuser;
}
public void setStandardCount(Long standardCount)
{
this.standardCount = standardCount;
}
public Long getStandardCount()
{
return standardCount;
}
public void setUpdateuser(Long updateuser)
{
this.updateuser = updateuser;
}
public Long getUpdateuser()
{
return updateuser;
}
public void setBeiyong(String beiyong)
{
this.beiyong = beiyong;
}
public String getBeiyong()
{
return beiyong;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("lcId", getLcId())
.append("rwmc", getRwmc())
.append("lcmc", getLcmc())
.append("rwmd", getRwmd())
.append("rwjd", getRwjd())
.append("createuser", getCreateuser())
.append("createtime", getCreatetime())
.append("standardCount", getStandardCount())
.append("updateuser", getUpdateuser())
.append("updatetime", getUpdatetime())
.append("beiyong", getBeiyong())
.toString();
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public Date getUpdatetime() {
return updatetime;
}
public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}
}

View File

@ -1,61 +0,0 @@
package com.ruoyi.project.benyi.mapper;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByDayflowTask;
/**
* 一日流程任务Mapper接口
*
* @author tsbz
* @date 2020-05-13
*/
public interface ByDayflowTaskMapper
{
/**
* 查询一日流程任务
*
* @param id 一日流程任务ID
* @return 一日流程任务
*/
public ByDayflowTask selectByDayflowTaskById(Long id);
/**
* 查询一日流程任务列表
*
* @param byDayflowTask 一日流程任务
* @return 一日流程任务集合
*/
public List<ByDayflowTask> selectByDayflowTaskList(ByDayflowTask byDayflowTask);
/**
* 新增一日流程任务
*
* @param byDayflowTask 一日流程任务
* @return 结果
*/
public int insertByDayflowTask(ByDayflowTask byDayflowTask);
/**
* 修改一日流程任务
*
* @param byDayflowTask 一日流程任务
* @return 结果
*/
public int updateByDayflowTask(ByDayflowTask byDayflowTask);
/**
* 删除一日流程任务
*
* @param id 一日流程任务ID
* @return 结果
*/
public int deleteByDayflowTaskById(Long id);
/**
* 批量删除一日流程任务
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteByDayflowTaskByIds(Long[] ids);
}

View File

@ -1,61 +0,0 @@
package com.ruoyi.project.benyi.service;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByDayflowTask;
/**
* 一日流程任务Service接口
*
* @author tsbz
* @date 2020-05-13
*/
public interface IByDayflowTaskService
{
/**
* 查询一日流程任务
*
* @param id 一日流程任务ID
* @return 一日流程任务
*/
public ByDayflowTask selectByDayflowTaskById(Long id);
/**
* 查询一日流程任务列表
*
* @param byDayflowTask 一日流程任务
* @return 一日流程任务集合
*/
public List<ByDayflowTask> selectByDayflowTaskList(ByDayflowTask byDayflowTask);
/**
* 新增一日流程任务
*
* @param byDayflowTask 一日流程任务
* @return 结果
*/
public int insertByDayflowTask(ByDayflowTask byDayflowTask);
/**
* 修改一日流程任务
*
* @param byDayflowTask 一日流程任务
* @return 结果
*/
public int updateByDayflowTask(ByDayflowTask byDayflowTask);
/**
* 批量删除一日流程任务
*
* @param ids 需要删除的一日流程任务ID
* @return 结果
*/
public int deleteByDayflowTaskByIds(Long[] ids);
/**
* 删除一日流程任务信息
*
* @param id 一日流程任务ID
* @return 结果
*/
public int deleteByDayflowTaskById(Long id);
}

View File

@ -1,93 +0,0 @@
package com.ruoyi.project.benyi.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.benyi.mapper.ByDayflowTaskMapper;
import com.ruoyi.project.benyi.domain.ByDayflowTask;
import com.ruoyi.project.benyi.service.IByDayflowTaskService;
/**
* 一日流程任务Service业务层处理
*
* @author tsbz
* @date 2020-05-13
*/
@Service
public class ByDayflowTaskServiceImpl implements IByDayflowTaskService
{
@Autowired
private ByDayflowTaskMapper byDayflowTaskMapper;
/**
* 查询一日流程任务
*
* @param id 一日流程任务ID
* @return 一日流程任务
*/
@Override
public ByDayflowTask selectByDayflowTaskById(Long id)
{
return byDayflowTaskMapper.selectByDayflowTaskById(id);
}
/**
* 查询一日流程任务列表
*
* @param byDayflowTask 一日流程任务
* @return 一日流程任务
*/
@Override
public List<ByDayflowTask> selectByDayflowTaskList(ByDayflowTask byDayflowTask)
{
return byDayflowTaskMapper.selectByDayflowTaskList(byDayflowTask);
}
/**
* 新增一日流程任务
*
* @param byDayflowTask 一日流程任务
* @return 结果
*/
@Override
public int insertByDayflowTask(ByDayflowTask byDayflowTask)
{
return byDayflowTaskMapper.insertByDayflowTask(byDayflowTask);
}
/**
* 修改一日流程任务
*
* @param byDayflowTask 一日流程任务
* @return 结果
*/
@Override
public int updateByDayflowTask(ByDayflowTask byDayflowTask)
{
return byDayflowTaskMapper.updateByDayflowTask(byDayflowTask);
}
/**
* 批量删除一日流程任务
*
* @param ids 需要删除的一日流程任务ID
* @return 结果
*/
@Override
public int deleteByDayflowTaskByIds(Long[] ids)
{
return byDayflowTaskMapper.deleteByDayflowTaskByIds(ids);
}
/**
* 删除一日流程任务信息
*
* @param id 一日流程任务ID
* @return 结果
*/
@Override
public int deleteByDayflowTaskById(Long id)
{
return byDayflowTaskMapper.deleteByDayflowTaskById(id);
}
}

View File

@ -1,107 +0,0 @@
<?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.ByDayflowTaskMapper">
<resultMap type="ByDayflowTask" id="ByDayflowTaskResult">
<result property="id" column="id" />
<result property="lcId" column="lc_id" />
<result property="rwmc" column="rwmc" />
<result property="lcmc" column="lcmc" />
<result property="rwmd" column="rwmd" />
<result property="rwjd" column="rwjd" />
<result property="createuser" column="createuser" />
<result property="createtime" column="createtime" />
<result property="standardCount" column="standard_count" />
<result property="updateuser" column="updateuser" />
<result property="updatetime" column="updatetime" />
<result property="beiyong" column="beiyong" />
</resultMap>
<sql id="selectByDayflowTaskVo">
select id, lc_id, rwmc, lcmc, rwmd, rwjd, createuser, createtime, standard_count, updateuser, updatetime, beiyong from by_dayflow_task
</sql>
<select id="selectByDayflowTaskList" parameterType="ByDayflowTask" resultMap="ByDayflowTaskResult">
<include refid="selectByDayflowTaskVo"/>
<where>
<if test="lcId != null "> and lc_id = #{lcId}</if>
<if test="rwmc != null and rwmc != ''"> and rwmc = #{rwmc}</if>
<if test="lcmc != null and lcmc != ''"> and lcmc = #{lcmc}</if>
<if test="rwmd != null and rwmd != ''"> and rwmd = #{rwmd}</if>
<if test="rwjd != null and rwjd != ''"> and rwjd = #{rwjd}</if>
<if test="createuser != null "> and createuser = #{createuser}</if>
<if test="createtime != null "> and createtime = #{createtime}</if>
<if test="standardCount != null "> and standard_count = #{standardCount}</if>
<if test="updateuser != null "> and updateuser = #{updateuser}</if>
<if test="updatetime != null "> and updatetime = #{updatetime}</if>
<if test="beiyong != null and beiyong != ''"> and beiyong = #{beiyong}</if>
</where>
</select>
<select id="selectByDayflowTaskById" parameterType="Long" resultMap="ByDayflowTaskResult">
<include refid="selectByDayflowTaskVo"/>
where id = #{id}
</select>
<insert id="insertByDayflowTask" parameterType="ByDayflowTask" useGeneratedKeys="true" keyProperty="id">
insert into by_dayflow_task
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="lcId != null ">lc_id,</if>
<if test="rwmc != null and rwmc != ''">rwmc,</if>
<if test="lcmc != null and lcmc != ''">lcmc,</if>
<if test="rwmd != null and rwmd != ''">rwmd,</if>
<if test="rwjd != null and rwjd != ''">rwjd,</if>
<if test="createuser != null ">createuser,</if>
<if test="createtime != null ">createtime,</if>
<if test="standardCount != null ">standard_count,</if>
<if test="updateuser != null ">updateuser,</if>
<if test="updatetime != null ">updatetime,</if>
<if test="beiyong != null and beiyong != ''">beiyong,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="lcId != null ">#{lcId},</if>
<if test="rwmc != null and rwmc != ''">#{rwmc},</if>
<if test="lcmc != null and lcmc != ''">#{lcmc},</if>
<if test="rwmd != null and rwmd != ''">#{rwmd},</if>
<if test="rwjd != null and rwjd != ''">#{rwjd},</if>
<if test="createuser != null ">#{createuser},</if>
<if test="createtime != null ">#{createtime},</if>
<if test="standardCount != null ">#{standardCount},</if>
<if test="updateuser != null ">#{updateuser},</if>
<if test="updatetime != null ">#{updatetime},</if>
<if test="beiyong != null and beiyong != ''">#{beiyong},</if>
</trim>
</insert>
<update id="updateByDayflowTask" parameterType="ByDayflowTask">
update by_dayflow_task
<trim prefix="SET" suffixOverrides=",">
<if test="lcId != null ">lc_id = #{lcId},</if>
<if test="rwmc != null and rwmc != ''">rwmc = #{rwmc},</if>
<if test="lcmc != null and lcmc != ''">lcmc = #{lcmc},</if>
<if test="rwmd != null and rwmd != ''">rwmd = #{rwmd},</if>
<if test="rwjd != null and rwjd != ''">rwjd = #{rwjd},</if>
<if test="createuser != null ">createuser = #{createuser},</if>
<if test="createtime != null ">createtime = #{createtime},</if>
<if test="standardCount != null ">standard_count = #{standardCount},</if>
<if test="updateuser != null ">updateuser = #{updateuser},</if>
<if test="updatetime != null ">updatetime = #{updatetime},</if>
<if test="beiyong != null and beiyong != ''">beiyong = #{beiyong},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteByDayflowTaskById" parameterType="Long">
delete from by_dayflow_task where id = #{id}
</delete>
<delete id="deleteByDayflowTaskByIds" parameterType="String">
delete from by_dayflow_task where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>