From 9d5680d52874fad295ad1389e425674a8c450af3 Mon Sep 17 00:00:00 2001
From: sk1551 <15175617877@163.com>
Date: Wed, 13 May 2020 17:47:58 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E6=97=A5=E6=B5=81?=
 =?UTF-8?q?=E7=A8=8B=E4=BB=BB=E5=8A=A1=E9=83=A8=E5=88=86=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ruoyi-ui/src/api/benyi/dayflowtask.js         |  53 +++
 .../src/views/benyi/dayflowtask/index.vue     | 385 ++++++++++++++++++
 .../controller/ByDayflowTaskController.java   | 110 +++++
 .../project/benyi/domain/ByDayflowTask.java   | 194 +++++++++
 .../benyi/mapper/ByDayflowTaskMapper.java     |  61 +++
 .../benyi/service/IByDayflowTaskService.java  |  61 +++
 .../impl/ByDayflowTaskServiceImpl.java        |  93 +++++
 .../mybatis/benyi/ByDayflowTaskMapper.xml     | 107 +++++
 8 files changed, 1064 insertions(+)
 create mode 100644 ruoyi-ui/src/api/benyi/dayflowtask.js
 create mode 100644 ruoyi-ui/src/views/benyi/dayflowtask/index.vue
 create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayflowTaskController.java
 create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByDayflowTask.java
 create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByDayflowTaskMapper.java
 create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByDayflowTaskService.java
 create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByDayflowTaskServiceImpl.java
 create mode 100644 ruoyi/src/main/resources/mybatis/benyi/ByDayflowTaskMapper.xml

diff --git a/ruoyi-ui/src/api/benyi/dayflowtask.js b/ruoyi-ui/src/api/benyi/dayflowtask.js
new file mode 100644
index 000000000..650b8e5db
--- /dev/null
+++ b/ruoyi-ui/src/api/benyi/dayflowtask.js
@@ -0,0 +1,53 @@
+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
+  })
+}
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/benyi/dayflowtask/index.vue b/ruoyi-ui/src/views/benyi/dayflowtask/index.vue
new file mode 100644
index 000000000..9ee4af8cb
--- /dev/null
+++ b/ruoyi-ui/src/views/benyi/dayflowtask/index.vue
@@ -0,0 +1,385 @@
+<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>
\ No newline at end of file
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayflowTaskController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayflowTaskController.java
new file mode 100644
index 000000000..1572cc7b8
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByDayflowTaskController.java
@@ -0,0 +1,110 @@
+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));
+    }
+}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByDayflowTask.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByDayflowTask.java
new file mode 100644
index 000000000..808daaf71
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByDayflowTask.java
@@ -0,0 +1,194 @@
+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;
+    }
+}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByDayflowTaskMapper.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByDayflowTaskMapper.java
new file mode 100644
index 000000000..f2232765e
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/mapper/ByDayflowTaskMapper.java
@@ -0,0 +1,61 @@
+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);
+}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByDayflowTaskService.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByDayflowTaskService.java
new file mode 100644
index 000000000..bc6c83dc1
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/IByDayflowTaskService.java
@@ -0,0 +1,61 @@
+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);
+}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByDayflowTaskServiceImpl.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByDayflowTaskServiceImpl.java
new file mode 100644
index 000000000..c6c429381
--- /dev/null
+++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/service/impl/ByDayflowTaskServiceImpl.java
@@ -0,0 +1,93 @@
+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);
+    }
+}
diff --git a/ruoyi/src/main/resources/mybatis/benyi/ByDayflowTaskMapper.xml b/ruoyi/src/main/resources/mybatis/benyi/ByDayflowTaskMapper.xml
new file mode 100644
index 000000000..664cf0c89
--- /dev/null
+++ b/ruoyi/src/main/resources/mybatis/benyi/ByDayflowTaskMapper.xml
@@ -0,0 +1,107 @@
+<?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>
\ No newline at end of file