增加一日流程之标准2

This commit is contained in:
sk1551
2020-05-19 10:33:09 +08:00
parent a379e64013
commit 9180d882fd
18 changed files with 2510 additions and 0 deletions

View File

@ -0,0 +1,112 @@
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.ByDayFlowStandard;
import com.ruoyi.project.benyi.service.IByDayFlowStandardService;
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-18
*/
@RestController
@RequestMapping("/benyi/dayflow/standard")
public class ByDayFlowStandardController extends BaseController
{
@Autowired
private IByDayFlowStandardService byDayFlowStandardService;
/**
* 查询一日流程标准列表
*/
@PreAuthorize("@ss.hasPermi('benyi:standard:list')")
@GetMapping("/list")
public TableDataInfo list(ByDayFlowStandard byDayFlowStandard)
{
startPage();
List<ByDayFlowStandard> list = byDayFlowStandardService.selectByDayFlowStandardList(byDayFlowStandard);
return getDataTable(list);
}
/**
* 导出一日流程标准列表
*/
@PreAuthorize("@ss.hasPermi('benyi:standard:export')")
@Log(title = "一日流程标准", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(ByDayFlowStandard byDayFlowStandard)
{
List<ByDayFlowStandard> list = byDayFlowStandardService.selectByDayFlowStandardList(byDayFlowStandard);
ExcelUtil<ByDayFlowStandard> util = new ExcelUtil<ByDayFlowStandard>(ByDayFlowStandard.class);
return util.exportExcel(list, "standard");
}
/**
* 获取一日流程标准详细信息
*/
@PreAuthorize("@ss.hasPermi('benyi:standard:query')")
@GetMapping(value = "/{sid}")
public AjaxResult getInfo(@PathVariable("sid") Long sid)
{
return AjaxResult.success(byDayFlowStandardService.selectByDayFlowStandardById(sid));
}
/**
* 新增一日流程标准
*/
@PreAuthorize("@ss.hasPermi('benyi:standard:add')")
@Log(title = "一日流程标准", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ByDayFlowStandard byDayFlowStandard)
{
byDayFlowStandard.setCreateuser(SecurityUtils.getLoginUser().getUser().getUserId());
byDayFlowStandard.setUpdateuser(SecurityUtils.getLoginUser().getUser().getUserId());
byDayFlowStandard.setCreatetime(new Date());
byDayFlowStandard.setUpdatetime(new Date());
return toAjax(byDayFlowStandardService.insertByDayFlowStandard(byDayFlowStandard));
}
/**
* 修改一日流程标准
*/
@PreAuthorize("@ss.hasPermi('benyi:standard:edit')")
@Log(title = "一日流程标准", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ByDayFlowStandard byDayFlowStandard)
{
byDayFlowStandard.setUpdateuser(SecurityUtils.getLoginUser().getUser().getUserId());
byDayFlowStandard.setUpdatetime(new Date());
return toAjax(byDayFlowStandardService.updateByDayFlowStandard(byDayFlowStandard));
}
/**
* 删除一日流程标准
*/
@PreAuthorize("@ss.hasPermi('benyi:standard:remove')")
@Log(title = "一日流程标准", businessType = BusinessType.DELETE)
@DeleteMapping("/{sids}")
public AjaxResult remove(@PathVariable Long[] sids)
{
return toAjax(byDayFlowStandardService.deleteByDayFlowStandardByIds(sids));
}
}

View File

@ -0,0 +1,112 @@
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-14
*/
@RestController
@RequestMapping("/benyi/dayflow/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 = "/{code}")
public AjaxResult getInfo(@PathVariable("code") Long code)
{
return AjaxResult.success(byDayFlowTaskService.selectByDayFlowTaskByCode(code));
}
/**
* 新增一日流程任务
*/
@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.setUpdateuser(SecurityUtils.getLoginUser().getUser().getUserId());
byDayFlowTask.setCreatetime(new Date());
byDayFlowTask.setUpdatetime(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("/{codes}")
public AjaxResult remove(@PathVariable Long[] codes)
{
return toAjax(byDayFlowTaskService.deleteByDayFlowTaskByCodes(codes));
}
}

View File

@ -0,0 +1,208 @@
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_day_flow_standard
*
* @author tsbz
* @date 2020-05-18
*/
public class ByDayFlowStandard extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 标识 */
private Long sid;
/** 任务名称 */
@Excel(name = "任务名称")
private String taskLable;
/** 标准的名称 */
@Excel(name = "标准的名称")
private String sname;
/** 标准的内容 */
@Excel(name = "标准的内容")
private String standardContent;
/** 标准的解读 */
@Excel(name = "标准的解读")
private String standardJiedu;
/** 标准排序 */
@Excel(name = "标准排序")
private Long standardSort;
/** 照片 */
@Excel(name = "照片")
private String picture;
/** 视频 */
@Excel(name = "视频")
private String video;
/** 创建人 */
@Excel(name = "创建人")
private Long createuser;
/** 创建时间 */
@Excel(name = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createtime;
/** 更新者 */
@Excel(name = "更新者")
private Long updateuser;
/** 更新时间 */
@Excel(name = "更新时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updatetime;
/** 备用字段 */
@Excel(name = "备用字段")
private Long beiyong;
public void setSid(Long sid)
{
this.sid = sid;
}
public Long getSid()
{
return sid;
}
public void setTaskLable(String taskLable)
{
this.taskLable = taskLable;
}
public String getTaskLable()
{
return taskLable;
}
public void setSname(String sname)
{
this.sname = sname;
}
public String getSname()
{
return sname;
}
public void setStandardContent(String standardContent)
{
this.standardContent = standardContent;
}
public String getStandardContent()
{
return standardContent;
}
public void setStandardJiedu(String standardJiedu)
{
this.standardJiedu = standardJiedu;
}
public String getStandardJiedu()
{
return standardJiedu;
}
public void setStandardSort(Long standardSort)
{
this.standardSort = standardSort;
}
public Long getStandardSort()
{
return standardSort;
}
public void setPicture(String picture)
{
this.picture = picture;
}
public String getPicture()
{
return picture;
}
public void setVideo(String video)
{
this.video = video;
}
public String getVideo()
{
return video;
}
public void setCreateuser(Long createuser)
{
this.createuser = createuser;
}
public Long getCreateuser()
{
return createuser;
}
public void setUpdateuser(Long updateuser)
{
this.updateuser = updateuser;
}
public Long getUpdateuser()
{
return updateuser;
}
public void setBeiyong(Long beiyong)
{
this.beiyong = beiyong;
}
public Long getBeiyong()
{
return beiyong;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("sid", getSid())
.append("taskLable", getTaskLable())
.append("sname", getSname())
.append("standardContent", getStandardContent())
.append("standardJiedu", getStandardJiedu())
.append("standardSort", getStandardSort())
.append("picture", getPicture())
.append("video", getVideo())
.append("createuser", getCreateuser())
.append("createtime", getCreatetime())
.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

@ -0,0 +1,209 @@
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_day_flow_task
*
* @author tsbz
* @date 2020-05-14
*/
public class ByDayFlowTask extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 标识 */
private Long code;
/** 任务名称(标签) */
@Excel(name = "任务名称(标签)")
private String taskLable;
/** 任务键值 */
@Excel(name = "任务键值")
private String taskValue;
/** 流程名称 */
@Excel(name = "流程名称")
private String detailName;
/** 任务目的 */
@Excel(name = "任务目的")
private String taskTarget;
/** 任务解读 */
@Excel(name = "任务解读")
private String taskContent;
/** 任务排序 */
@Excel(name = "任务排序")
private Integer taskSort;
/** 样式属性(其他样式扩展) */
@Excel(name = "样式属性", readConverterExp = "样式属性(其他样式扩展)")
private String cssClass;
/** 表格回显样式 */
@Excel(name = "表格回显样式")
private String listClass;
/** 创建人 */
@Excel(name = "创建人")
private Long createuser;
/** 创建时间 */
@Excel(name = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createtime;
/** 更新人 */
@Excel(name = "更新人")
private Long updateuser;
/** 更新时间 */
@Excel(name = "更新时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updatetime;
public void setCode(Long code)
{
this.code = code;
}
public Long getCode()
{
return code;
}
public void setTaskLable(String taskLable)
{
this.taskLable = taskLable;
}
public String getTaskLable()
{
return taskLable;
}
public void setTaskValue(String taskValue)
{
this.taskValue = taskValue;
}
public String getTaskValue()
{
return taskValue;
}
public void setDetailName(String detailName)
{
this.detailName = detailName;
}
public String getDetailName()
{
return detailName;
}
public void setTaskTarget(String taskTarget)
{
this.taskTarget = taskTarget;
}
public String getTaskTarget()
{
return taskTarget;
}
public void setTaskContent(String taskContent)
{
this.taskContent = taskContent;
}
public String getTaskContent()
{
return taskContent;
}
public void setTaskSort(Integer taskSort)
{
this.taskSort = taskSort;
}
public Integer getTaskSort()
{
return taskSort;
}
public void setCssClass(String cssClass)
{
this.cssClass = cssClass;
}
public String getCssClass()
{
return cssClass;
}
public void setListClass(String listClass)
{
this.listClass = listClass;
}
public String getListClass()
{
return listClass;
}
public void setCreateuser(Long createuser)
{
this.createuser = createuser;
}
public Long getCreateuser()
{
return createuser;
}
public void setUpdateuser(Long updateuser)
{
this.updateuser = updateuser;
}
public Long getUpdateuser()
{
return updateuser;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("code", getCode())
.append("taskLable", getTaskLable())
.append("taskValue", getTaskValue())
.append("detailName", getDetailName())
.append("taskTarget", getTaskTarget())
.append("taskContent", getTaskContent())
.append("taskSort", getTaskSort())
.append("cssClass", getCssClass())
.append("listClass", getListClass())
.append("createuser", getCreateuser())
.append("updateuser", getUpdateuser())
.append("createtime", getCreatetime())
.append("updatetime", getUpdatetime())
.append("remark", getRemark())
.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

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.mapper;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByDayFlowStandard;
/**
* 一日流程标准Mapper接口
*
* @author tsbz
* @date 2020-05-18
*/
public interface ByDayFlowStandardMapper
{
/**
* 查询一日流程标准
*
* @param sid 一日流程标准ID
* @return 一日流程标准
*/
public ByDayFlowStandard selectByDayFlowStandardById(Long sid);
/**
* 查询一日流程标准列表
*
* @param byDayFlowStandard 一日流程标准
* @return 一日流程标准集合
*/
public List<ByDayFlowStandard> selectByDayFlowStandardList(ByDayFlowStandard byDayFlowStandard);
/**
* 新增一日流程标准
*
* @param byDayFlowStandard 一日流程标准
* @return 结果
*/
public int insertByDayFlowStandard(ByDayFlowStandard byDayFlowStandard);
/**
* 修改一日流程标准
*
* @param byDayFlowStandard 一日流程标准
* @return 结果
*/
public int updateByDayFlowStandard(ByDayFlowStandard byDayFlowStandard);
/**
* 删除一日流程标准
*
* @param sid 一日流程标准ID
* @return 结果
*/
public int deleteByDayFlowStandardById(Long sid);
/**
* 批量删除一日流程标准
*
* @param sids 需要删除的数据ID
* @return 结果
*/
public int deleteByDayFlowStandardByIds(Long[] sids);
}

View File

@ -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-14
*/
public interface ByDayFlowTaskMapper
{
/**
* 查询一日流程任务
*
* @param code 一日流程任务code
* @return 一日流程任务
*/
public ByDayFlowTask selectByDayFlowTaskByCode(Long code);
/**
* 查询一日流程任务列表
*
* @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 code 一日流程任务CODE
* @return 结果
*/
public int deleteByDayFlowTaskByCode(Long code);
/**
* 批量删除一日流程任务
*
* @param codes 需要删除的数据CODE
* @return 结果
*/
public int deleteByDayFlowTaskByCodes(Long[] codes);
}

View File

@ -0,0 +1,61 @@
package com.ruoyi.project.benyi.service;
import java.util.List;
import com.ruoyi.project.benyi.domain.ByDayFlowStandard;
/**
* 一日流程标准Service接口
*
* @author tsbz
* @date 2020-05-18
*/
public interface IByDayFlowStandardService
{
/**
* 查询一日流程标准
*
* @param sid 一日流程标准ID
* @return 一日流程标准
*/
public ByDayFlowStandard selectByDayFlowStandardById(Long sid);
/**
* 查询一日流程标准列表
*
* @param byDayFlowStandard 一日流程标准
* @return 一日流程标准集合
*/
public List<ByDayFlowStandard> selectByDayFlowStandardList(ByDayFlowStandard byDayFlowStandard);
/**
* 新增一日流程标准
*
* @param byDayFlowStandard 一日流程标准
* @return 结果
*/
public int insertByDayFlowStandard(ByDayFlowStandard byDayFlowStandard);
/**
* 修改一日流程标准
*
* @param byDayFlowStandard 一日流程标准
* @return 结果
*/
public int updateByDayFlowStandard(ByDayFlowStandard byDayFlowStandard);
/**
* 批量删除一日流程标准
*
* @param sids 需要删除的一日流程标准ID
* @return 结果
*/
public int deleteByDayFlowStandardByIds(Long[] sids);
/**
* 删除一日流程标准信息
*
* @param sid 一日流程标准ID
* @return 结果
*/
public int deleteByDayFlowStandardById(Long sid);
}

View File

@ -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-14
*/
public interface IByDayFlowTaskService
{
/**
* 查询一日流程任务
*
* @param code 一日流程任务CODE
* @return 一日流程任务
*/
public ByDayFlowTask selectByDayFlowTaskByCode(Long code);
/**
* 查询一日流程任务列表
*
* @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 codes 需要删除的一日流程任务CODE
* @return 结果
*/
public int deleteByDayFlowTaskByCodes(Long[] codes);
/**
* 删除一日流程任务信息
*
* @param code 一日流程任务CODE
* @return 结果
*/
public int deleteByDayFlowTaskByCode(Long code);
}

View File

@ -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.ByDayFlowStandardMapper;
import com.ruoyi.project.benyi.domain.ByDayFlowStandard;
import com.ruoyi.project.benyi.service.IByDayFlowStandardService;
/**
* 一日流程标准Service业务层处理
*
* @author tsbz
* @date 2020-05-18
*/
@Service
public class ByDayFlowStandardServiceImpl implements IByDayFlowStandardService
{
@Autowired
private ByDayFlowStandardMapper byDayFlowStandardMapper;
/**
* 查询一日流程标准
*
* @param sid 一日流程标准ID
* @return 一日流程标准
*/
@Override
public ByDayFlowStandard selectByDayFlowStandardById(Long sid)
{
return byDayFlowStandardMapper.selectByDayFlowStandardById(sid);
}
/**
* 查询一日流程标准列表
*
* @param byDayFlowStandard 一日流程标准
* @return 一日流程标准
*/
@Override
public List<ByDayFlowStandard> selectByDayFlowStandardList(ByDayFlowStandard byDayFlowStandard)
{
return byDayFlowStandardMapper.selectByDayFlowStandardList(byDayFlowStandard);
}
/**
* 新增一日流程标准
*
* @param byDayFlowStandard 一日流程标准
* @return 结果
*/
@Override
public int insertByDayFlowStandard(ByDayFlowStandard byDayFlowStandard)
{
return byDayFlowStandardMapper.insertByDayFlowStandard(byDayFlowStandard);
}
/**
* 修改一日流程标准
*
* @param byDayFlowStandard 一日流程标准
* @return 结果
*/
@Override
public int updateByDayFlowStandard(ByDayFlowStandard byDayFlowStandard)
{
return byDayFlowStandardMapper.updateByDayFlowStandard(byDayFlowStandard);
}
/**
* 批量删除一日流程标准
*
* @param sids 需要删除的一日流程标准ID
* @return 结果
*/
@Override
public int deleteByDayFlowStandardByIds(Long[] sids)
{
return byDayFlowStandardMapper.deleteByDayFlowStandardByIds(sids);
}
/**
* 删除一日流程标准信息
*
* @param sid 一日流程标准ID
* @return 结果
*/
@Override
public int deleteByDayFlowStandardById(Long sid)
{
return byDayFlowStandardMapper.deleteByDayFlowStandardById(sid);
}
}

View File

@ -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-14
*/
@Service
public class ByDayFlowTaskServiceImpl implements IByDayFlowTaskService
{
@Autowired
private ByDayFlowTaskMapper byDayFlowTaskMapper;
/**
* 查询一日流程任务
*
* @param code 一日流程任务CODE
* @return 一日流程任务
*/
@Override
public ByDayFlowTask selectByDayFlowTaskByCode(Long code)
{
return byDayFlowTaskMapper.selectByDayFlowTaskByCode(code);
}
/**
* 查询一日流程任务列表
*
* @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 codes 需要删除的一日流程任务CODE
* @return 结果
*/
@Override
public int deleteByDayFlowTaskByCodes(Long[] codes)
{
return byDayFlowTaskMapper.deleteByDayFlowTaskByCodes(codes);
}
/**
* 删除一日流程任务信息
*
* @param code 一日流程任务CODE
* @return 结果
*/
@Override
public int deleteByDayFlowTaskByCode(Long code)
{
return byDayFlowTaskMapper.deleteByDayFlowTaskByCode(code);
}
}

View File

@ -0,0 +1,113 @@
<?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.ByDayFlowStandardMapper">
<resultMap type="ByDayFlowStandard" id="ByDayFlowStandardResult">
<result property="sid" column="sid" />
<result property="taskLable" column="task_lable" />
<result property="sname" column="sname" />
<result property="standardContent" column="standard_content" />
<result property="standardJiedu" column="standard_jiedu" />
<result property="standardSort" column="standard_sort" />
<result property="picture" column="picture" />
<result property="video" column="video" />
<result property="createuser" column="createuser" />
<result property="createtime" column="createtime" />
<result property="updateuser" column="updateuser" />
<result property="updatetime" column="updatetime" />
<result property="beiyong" column="beiyong" />
</resultMap>
<sql id="selectByDayFlowStandardVo">
select sid, task_lable, sname, standard_content, standard_jiedu, standard_sort, picture, video, createuser, createtime, updateuser, updatetime, beiyong from by_day_flow_standard
</sql>
<select id="selectByDayFlowStandardList" parameterType="ByDayFlowStandard" resultMap="ByDayFlowStandardResult">
<include refid="selectByDayFlowStandardVo"/>
<where>
<if test="taskLable != null and taskLable != ''"> and task_lable = #{taskLable}</if>
<if test="sname != null and sname != ''"> and sname like concat('%', #{sname}, '%')</if>
<if test="standardContent != null and standardContent != ''"> and standard_content = #{standardContent}</if>
<if test="standardJiedu != null and standardJiedu != ''"> and standard_jiedu = #{standardJiedu}</if>
<if test="standardSort != null "> and standard_sort = #{standardSort}</if>
<if test="picture != null and picture != ''"> and picture = #{picture}</if>
<if test="video != null and video != ''"> and video = #{video}</if>
<if test="createuser != null "> and createuser = #{createuser}</if>
<if test="createtime != null "> and createtime = #{createtime}</if>
<if test="updateuser != null "> and updateuser = #{updateuser}</if>
<if test="updatetime != null "> and updatetime = #{updatetime}</if>
<if test="beiyong != null "> and beiyong = #{beiyong}</if>
</where>
order by standard_sort
</select>
<select id="selectByDayFlowStandardById" parameterType="Long" resultMap="ByDayFlowStandardResult">
<include refid="selectByDayFlowStandardVo"/>
where sid = #{sid}
</select>
<insert id="insertByDayFlowStandard" parameterType="ByDayFlowStandard" useGeneratedKeys="true" keyProperty="sid">
insert into by_day_flow_standard
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskLable != null and taskLable != ''">task_lable,</if>
<if test="sname != null and sname != ''">sname,</if>
<if test="standardContent != null and standardContent != ''">standard_content,</if>
<if test="standardJiedu != null and standardJiedu != ''">standard_jiedu,</if>
<if test="standardSort != null ">standard_sort,</if>
<if test="picture != null and picture != ''">picture,</if>
<if test="video != null and video != ''">video,</if>
<if test="createuser != null ">createuser,</if>
<if test="createtime != null ">createtime,</if>
<if test="updateuser != null ">updateuser,</if>
<if test="updatetime != null ">updatetime,</if>
<if test="beiyong != null ">beiyong,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskLable != null and taskLable != ''">#{taskLable},</if>
<if test="sname != null and sname != ''">#{sname},</if>
<if test="standardContent != null and standardContent != ''">#{standardContent},</if>
<if test="standardJiedu != null and standardJiedu != ''">#{standardJiedu},</if>
<if test="standardSort != null ">#{standardSort},</if>
<if test="picture != null and picture != ''">#{picture},</if>
<if test="video != null and video != ''">#{video},</if>
<if test="createuser != null ">#{createuser},</if>
<if test="createtime != null ">#{createtime},</if>
<if test="updateuser != null ">#{updateuser},</if>
<if test="updatetime != null ">#{updatetime},</if>
<if test="beiyong != null ">#{beiyong},</if>
</trim>
</insert>
<update id="updateByDayFlowStandard" parameterType="ByDayFlowStandard">
update by_day_flow_standard
<trim prefix="SET" suffixOverrides=",">
<if test="taskLable != null and taskLable != ''">task_lable = #{taskLable},</if>
<if test="sname != null and sname != ''">sname = #{sname},</if>
<if test="standardContent != null and standardContent != ''">standard_content = #{standardContent},</if>
<if test="standardJiedu != null and standardJiedu != ''">standard_jiedu = #{standardJiedu},</if>
<if test="standardSort != null ">standard_sort = #{standardSort},</if>
<if test="picture != null and picture != ''">picture = #{picture},</if>
<if test="video != null and video != ''">video = #{video},</if>
<if test="createuser != null ">createuser = #{createuser},</if>
<if test="createtime != null ">createtime = #{createtime},</if>
<if test="updateuser != null ">updateuser = #{updateuser},</if>
<if test="updatetime != null ">updatetime = #{updatetime},</if>
<if test="beiyong != null ">beiyong = #{beiyong},</if>
</trim>
where sid = #{sid}
</update>
<delete id="deleteByDayFlowStandardById" parameterType="Long">
delete from by_day_flow_standard where sid = #{sid}
</delete>
<delete id="deleteByDayFlowStandardByIds" parameterType="String">
delete from by_day_flow_standard where sid in
<foreach item="sid" collection="array" open="(" separator="," close=")">
#{sid}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,116 @@
<?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="code" column="code" />
<result property="taskLable" column="task_lable" />
<result property="taskValue" column="task_value" />
<result property="detailName" column="detail_name" />
<result property="taskTarget" column="task_target" />
<result property="taskContent" column="task_content" />
<result property="taskSort" column="task_sort" />
<result property="cssClass" column="css_class" />
<result property="listClass" column="list_class" />
<result property="createuser" column="createuser" />
<result property="updateuser" column="updateuser" />
<result property="createtime" column="createtime" />
<result property="updatetime" column="updatetime" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectByDayFlowTaskVo">
select code, task_lable, task_value, detail_name, task_target, task_content, task_sort, css_class, list_class, createuser, updateuser, createtime, updatetime, remark
from by_day_flow_task
</sql>
<select id="selectByDayFlowTaskList" parameterType="ByDayFlowTask" resultMap="ByDayFlowTaskResult">
<include refid="selectByDayFlowTaskVo"/>
<where>
<if test="taskLable != null and taskLable != ''"> and task_lable like concat('%', #{taskLable}, '%')</if>
<if test="taskValue != null and taskValue != ''"> and task_value = #{taskValue}</if>
<if test="detailName != null and detailName != ''"> and detail_name = #{detailName}</if>
<if test="taskTarget != null and taskTarget != ''"> and task_target = #{taskTarget}</if>
<if test="taskContent != null and taskContent != ''"> and task_content = #{taskContent}</if>
<if test="taskSort != null "> and task_sort = #{taskSort}</if>
<if test="cssClass != null and cssClass != ''"> and css_class = #{cssClass}</if>
<if test="listClass != null and listClass != ''"> and list_class = #{listClass}</if>
<if test="createuser != null "> and createuser = #{createuser}</if>
<if test="updateuser != null "> and updateuser = #{updateuser}</if>
</where>
order by task_sort
</select>
<select id="selectByDayFlowTaskByCode" parameterType="Long" resultMap="ByDayFlowTaskResult">
<include refid="selectByDayFlowTaskVo"/>
where code = #{code}
</select>
<insert id="insertByDayFlowTask" parameterType="ByDayFlowTask" useGeneratedKeys="true" keyProperty="code">
insert into by_day_flow_task
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskLable != null and taskLable != ''">task_lable,</if>
<if test="taskValue != null and taskValue != ''">task_value,</if>
<if test="detailName != null and detailName != ''">detail_name,</if>
<if test="taskTarget != null and taskTarget != ''">task_target,</if>
<if test="taskContent != null and taskContent != ''">task_content,</if>
<if test="taskSort != null ">task_sort,</if>
<if test="cssClass != null and cssClass != ''">css_class,</if>
<if test="listClass != null and listClass != ''">list_class,</if>
<if test="createuser != null ">createuser,</if>
<if test="updateuser != null ">updateuser,</if>
<if test="createtime != null ">createtime,</if>
<if test="updatetime != null ">updatetime,</if>
<if test="remark != null and remark != ''">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskLable != null and taskLable != ''">#{taskLable},</if>
<if test="taskValue != null and taskValue != ''">#{taskValue},</if>
<if test="detailName != null and detailName != ''">#{detailName},</if>
<if test="taskTarget != null and taskTarget != ''">#{taskTarget},</if>
<if test="taskContent != null and taskContent != ''">#{taskContent},</if>
<if test="taskSort != null ">#{taskSort},</if>
<if test="cssClass != null and cssClass != ''">#{cssClass},</if>
<if test="listClass != null and listClass != ''">#{listClass},</if>
<if test="createuser != null ">#{createuser},</if>
<if test="updateuser != null ">#{updateuser},</if>
<if test="createtime != null ">#{createtime},</if>
<if test="updatetime != null ">#{updatetime},</if>
<if test="remark != null and remark != ''">#{remark},</if>
</trim>
</insert>
<update id="updateByDayFlowTask" parameterType="ByDayFlowTask">
update by_day_flow_task
<trim prefix="SET" suffixOverrides=",">
<if test="taskLable != null and taskLable != ''">task_lable = #{taskLable},</if>
<if test="taskValue != null and taskValue != ''">task_value = #{taskValue},</if>
<if test="detailName != null and detailName != ''">detail_name = #{detailName},</if>
<if test="taskTarget != null and taskTarget != ''">task_target = #{taskTarget},</if>
<if test="taskContent != null and taskContent != ''">task_content = #{taskContent},</if>
<if test="taskSort != null ">task_sort = #{taskSort},</if>
<if test="cssClass != null and cssClass != ''">css_class = #{cssClass},</if>
<if test="listClass != null and listClass != ''">list_class = #{listClass},</if>
<if test="createuser != null ">createuser = #{createuser},</if>
<if test="updateuser != null ">updateuser = #{updateuser},</if>
<if test="createtime != null ">createtime = #{createtime},</if>
<if test="updatetime != null ">updatetime = #{updatetime},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
</trim>
where code = #{code}
</update>
<delete id="deleteByDayFlowTaskByCode" parameterType="Long">
delete from by_day_flow_task where code = #{code}
</delete>
<delete id="deleteByDayFlowTaskByCodes" parameterType="String">
delete from by_day_flow_task where code in
<foreach item="code" collection="array" open="(" separator="," close=")">
#{code}
</foreach>
</delete>
</mapper>