20200604-zlp-1
一日流程管理
This commit is contained in:
@ -80,9 +80,9 @@ public class ByDayFlowStandardController extends BaseController
|
||||
public AjaxResult add(@RequestBody ByDayFlowStandard byDayFlowStandard)
|
||||
{
|
||||
byDayFlowStandard.setCreateuser(SecurityUtils.getLoginUser().getUser().getUserId());
|
||||
byDayFlowStandard.setUpdateuser(SecurityUtils.getLoginUser().getUser().getUserId());
|
||||
//byDayFlowStandard.setUpdateuser(SecurityUtils.getLoginUser().getUser().getUserId());
|
||||
byDayFlowStandard.setCreatetime(new Date());
|
||||
byDayFlowStandard.setUpdatetime(new Date());
|
||||
//byDayFlowStandard.setUpdatetime(new Date());
|
||||
return toAjax(byDayFlowStandardService.insertByDayFlowStandard(byDayFlowStandard));
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,103 @@
|
||||
package com.ruoyi.project.benyi.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
||||
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
||||
import com.ruoyi.project.benyi.domain.ByDayFlowUnscramble;
|
||||
import com.ruoyi.project.benyi.service.IByDayFlowUnscrambleService;
|
||||
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-06-04
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/benyi/unscramble")
|
||||
public class ByDayFlowUnscrambleController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IByDayFlowUnscrambleService byDayFlowUnscrambleService;
|
||||
|
||||
/**
|
||||
* 查询一日流程解读列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ByDayFlowUnscramble byDayFlowUnscramble)
|
||||
{
|
||||
startPage();
|
||||
List<ByDayFlowUnscramble> list = byDayFlowUnscrambleService.selectByDayFlowUnscrambleList(byDayFlowUnscramble);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出一日流程解读列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:export')")
|
||||
@Log(title = "一日流程解读", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(ByDayFlowUnscramble byDayFlowUnscramble)
|
||||
{
|
||||
List<ByDayFlowUnscramble> list = byDayFlowUnscrambleService.selectByDayFlowUnscrambleList(byDayFlowUnscramble);
|
||||
ExcelUtil<ByDayFlowUnscramble> util = new ExcelUtil<ByDayFlowUnscramble>(ByDayFlowUnscramble.class);
|
||||
return util.exportExcel(list, "unscramble");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取一日流程解读详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(byDayFlowUnscrambleService.selectByDayFlowUnscrambleById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增一日流程解读
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:add')")
|
||||
@Log(title = "一日流程解读", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ByDayFlowUnscramble byDayFlowUnscramble)
|
||||
{
|
||||
return toAjax(byDayFlowUnscrambleService.insertByDayFlowUnscramble(byDayFlowUnscramble));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改一日流程解读
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:edit')")
|
||||
@Log(title = "一日流程解读", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ByDayFlowUnscramble byDayFlowUnscramble)
|
||||
{
|
||||
return toAjax(byDayFlowUnscrambleService.updateByDayFlowUnscramble(byDayFlowUnscramble));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一日流程解读
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:remove')")
|
||||
@Log(title = "一日流程解读", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(byDayFlowUnscrambleService.deleteByDayFlowUnscrambleByIds(ids));
|
||||
}
|
||||
}
|
@ -10,97 +10,119 @@ import java.util.Date;
|
||||
|
||||
/**
|
||||
* 一日流程标准对象 by_day_flow_standard
|
||||
*
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-05-18
|
||||
*/
|
||||
public class ByDayFlowStandard extends BaseEntity
|
||||
{
|
||||
/** 标识 */
|
||||
public class ByDayFlowStandard extends BaseEntity {
|
||||
/**
|
||||
* 标识
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/** 任务id */
|
||||
/**
|
||||
* 任务id
|
||||
*/
|
||||
@Excel(name = "任务id")
|
||||
private Long taskCode;
|
||||
|
||||
/** 标准的名称 */
|
||||
/**
|
||||
* 标准的名称
|
||||
*/
|
||||
@Excel(name = "标准的名称")
|
||||
private String standardTitle;
|
||||
|
||||
/** 标准排序 */
|
||||
/**
|
||||
* 标准排序
|
||||
*/
|
||||
@Excel(name = "标准排序")
|
||||
private Long standardSort;
|
||||
|
||||
/** 创建人 */
|
||||
/**
|
||||
* 标准数量
|
||||
*/
|
||||
@Excel(name = "解读数量")
|
||||
private Long unscrambleCount;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private Long createuser;
|
||||
|
||||
/** 更新者 */
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@Excel(name = "更新者")
|
||||
private Long updateuser;
|
||||
|
||||
/** 创建时间 */
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Excel(name = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createtime;
|
||||
|
||||
/** 更新时间 */
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@Excel(name = "更新时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatetime;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setTaskCode(Long taskCode)
|
||||
{
|
||||
|
||||
public void setTaskCode(Long taskCode) {
|
||||
this.taskCode = taskCode;
|
||||
}
|
||||
|
||||
public Long getTaskCode()
|
||||
{
|
||||
public Long getTaskCode() {
|
||||
return taskCode;
|
||||
}
|
||||
public void setStandardTitle(String standardTitle)
|
||||
{
|
||||
|
||||
public void setStandardTitle(String standardTitle) {
|
||||
this.standardTitle = standardTitle;
|
||||
}
|
||||
|
||||
public String getStandardTitle()
|
||||
{
|
||||
public String getStandardTitle() {
|
||||
return standardTitle;
|
||||
}
|
||||
public void setStandardSort(Long standardSort)
|
||||
{
|
||||
|
||||
public void setStandardSort(Long standardSort) {
|
||||
this.standardSort = standardSort;
|
||||
}
|
||||
|
||||
public Long getStandardSort()
|
||||
{
|
||||
public Long getStandardSort() {
|
||||
return standardSort;
|
||||
}
|
||||
public void setCreateuser(Long createuser)
|
||||
{
|
||||
|
||||
public void setUnscrambleCount(Long unscrambleCount) {
|
||||
this.unscrambleCount = unscrambleCount;
|
||||
}
|
||||
|
||||
public Long getUnscrambleCount() {
|
||||
return unscrambleCount;
|
||||
}
|
||||
|
||||
public void setCreateuser(Long createuser) {
|
||||
this.createuser = createuser;
|
||||
}
|
||||
|
||||
public Long getCreateuser()
|
||||
{
|
||||
public Long getCreateuser() {
|
||||
return createuser;
|
||||
}
|
||||
public void setUpdateuser(Long updateuser)
|
||||
{
|
||||
|
||||
public void setUpdateuser(Long updateuser) {
|
||||
this.updateuser = updateuser;
|
||||
}
|
||||
|
||||
public Long getUpdateuser()
|
||||
{
|
||||
public Long getUpdateuser() {
|
||||
return updateuser;
|
||||
}
|
||||
|
||||
@ -122,16 +144,17 @@ public class ByDayFlowStandard extends BaseEntity
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("sid", getId())
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("sid", getId())
|
||||
.append("taskCode", getTaskCode())
|
||||
.append("standardTitle", getStandardTitle())
|
||||
.append("standardSort", getStandardSort())
|
||||
.append("unscrambleCount", getUnscrambleCount())
|
||||
.append("createuser", getCreateuser())
|
||||
.append("createtime", getCreatetime())
|
||||
.append("updateuser", getUpdateuser())
|
||||
.append("updatetime", getUpdatetime())
|
||||
.toString();
|
||||
.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -37,6 +37,10 @@ public class ByDayFlowTask extends BaseEntity
|
||||
@Excel(name = "任务排序")
|
||||
private Integer taskSort;
|
||||
|
||||
/** 标准数量 */
|
||||
@Excel(name = "标准数量")
|
||||
private Long standardCount;
|
||||
|
||||
/** 标签 */
|
||||
@Excel(name = "标签")
|
||||
private String label;
|
||||
@ -107,6 +111,16 @@ public class ByDayFlowTask extends BaseEntity
|
||||
return taskSort;
|
||||
}
|
||||
|
||||
public void setStandardCount(Long standardCount)
|
||||
{
|
||||
this.standardCount = standardCount;
|
||||
}
|
||||
|
||||
public Long getStandardCount()
|
||||
{
|
||||
return standardCount;
|
||||
}
|
||||
|
||||
public void setLabel(String label)
|
||||
{
|
||||
this.label = label;
|
||||
@ -159,6 +173,7 @@ public class ByDayFlowTask extends BaseEntity
|
||||
.append("detailId", getDetailId())
|
||||
.append("taskContent", getTaskContent())
|
||||
.append("taskSort", getTaskSort())
|
||||
.append("standardCount", getStandardCount())
|
||||
.append("label", getLabel())
|
||||
.append("createuser", getCreateuser())
|
||||
.append("updateuser", getUpdateuser())
|
||||
|
@ -0,0 +1,98 @@
|
||||
package com.ruoyi.project.benyi.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
||||
import com.ruoyi.framework.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 一日流程解读对象 by_day_flow_unscramble
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-06-04
|
||||
*/
|
||||
public class ByDayFlowUnscramble extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 标识
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 标准id
|
||||
*/
|
||||
@Excel(name = "标准id")
|
||||
private Long standardId;
|
||||
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
@Excel(name = "内容")
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 序号
|
||||
*/
|
||||
@Excel(name = "序号")
|
||||
private Long sort;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private Long createuserid;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setStandardId(Long standardId) {
|
||||
this.standardId = standardId;
|
||||
}
|
||||
|
||||
public Long getStandardId() {
|
||||
return standardId;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setSort(Long sort) {
|
||||
this.sort = sort;
|
||||
}
|
||||
|
||||
public Long getSort() {
|
||||
return sort;
|
||||
}
|
||||
|
||||
public void setCreateuserid(Long createuserid) {
|
||||
this.createuserid = createuserid;
|
||||
}
|
||||
|
||||
public Long getCreateuserid() {
|
||||
return createuserid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("standardId", getStandardId())
|
||||
.append("content", getContent())
|
||||
.append("sort", getSort())
|
||||
.append("remark", getRemark())
|
||||
.append("createuserid", getCreateuserid())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.project.benyi.domain.ByDayFlowUnscramble;
|
||||
|
||||
/**
|
||||
* 一日流程解读Mapper接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-06-04
|
||||
*/
|
||||
public interface ByDayFlowUnscrambleMapper
|
||||
{
|
||||
/**
|
||||
* 查询一日流程解读
|
||||
*
|
||||
* @param id 一日流程解读ID
|
||||
* @return 一日流程解读
|
||||
*/
|
||||
public ByDayFlowUnscramble selectByDayFlowUnscrambleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询一日流程解读列表
|
||||
*
|
||||
* @param byDayFlowUnscramble 一日流程解读
|
||||
* @return 一日流程解读集合
|
||||
*/
|
||||
public List<ByDayFlowUnscramble> selectByDayFlowUnscrambleList(ByDayFlowUnscramble byDayFlowUnscramble);
|
||||
|
||||
/**
|
||||
* 新增一日流程解读
|
||||
*
|
||||
* @param byDayFlowUnscramble 一日流程解读
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByDayFlowUnscramble(ByDayFlowUnscramble byDayFlowUnscramble);
|
||||
|
||||
/**
|
||||
* 修改一日流程解读
|
||||
*
|
||||
* @param byDayFlowUnscramble 一日流程解读
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByDayFlowUnscramble(ByDayFlowUnscramble byDayFlowUnscramble);
|
||||
|
||||
/**
|
||||
* 删除一日流程解读
|
||||
*
|
||||
* @param id 一日流程解读ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayFlowUnscrambleById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除一日流程解读
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayFlowUnscrambleByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.project.benyi.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.project.benyi.domain.ByDayFlowUnscramble;
|
||||
|
||||
/**
|
||||
* 一日流程解读Service接口
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-06-04
|
||||
*/
|
||||
public interface IByDayFlowUnscrambleService
|
||||
{
|
||||
/**
|
||||
* 查询一日流程解读
|
||||
*
|
||||
* @param id 一日流程解读ID
|
||||
* @return 一日流程解读
|
||||
*/
|
||||
public ByDayFlowUnscramble selectByDayFlowUnscrambleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询一日流程解读列表
|
||||
*
|
||||
* @param byDayFlowUnscramble 一日流程解读
|
||||
* @return 一日流程解读集合
|
||||
*/
|
||||
public List<ByDayFlowUnscramble> selectByDayFlowUnscrambleList(ByDayFlowUnscramble byDayFlowUnscramble);
|
||||
|
||||
/**
|
||||
* 新增一日流程解读
|
||||
*
|
||||
* @param byDayFlowUnscramble 一日流程解读
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertByDayFlowUnscramble(ByDayFlowUnscramble byDayFlowUnscramble);
|
||||
|
||||
/**
|
||||
* 修改一日流程解读
|
||||
*
|
||||
* @param byDayFlowUnscramble 一日流程解读
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateByDayFlowUnscramble(ByDayFlowUnscramble byDayFlowUnscramble);
|
||||
|
||||
/**
|
||||
* 批量删除一日流程解读
|
||||
*
|
||||
* @param ids 需要删除的一日流程解读ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayFlowUnscrambleByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除一日流程解读信息
|
||||
*
|
||||
* @param id 一日流程解读ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteByDayFlowUnscrambleById(Long id);
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.project.benyi.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.project.benyi.mapper.ByDayFlowUnscrambleMapper;
|
||||
import com.ruoyi.project.benyi.domain.ByDayFlowUnscramble;
|
||||
import com.ruoyi.project.benyi.service.IByDayFlowUnscrambleService;
|
||||
|
||||
/**
|
||||
* 一日流程解读Service业务层处理
|
||||
*
|
||||
* @author tsbz
|
||||
* @date 2020-06-04
|
||||
*/
|
||||
@Service
|
||||
public class ByDayFlowUnscrambleServiceImpl implements IByDayFlowUnscrambleService {
|
||||
@Autowired
|
||||
private ByDayFlowUnscrambleMapper byDayFlowUnscrambleMapper;
|
||||
|
||||
/**
|
||||
* 查询一日流程解读
|
||||
*
|
||||
* @param id 一日流程解读ID
|
||||
* @return 一日流程解读
|
||||
*/
|
||||
@Override
|
||||
public ByDayFlowUnscramble selectByDayFlowUnscrambleById(Long id) {
|
||||
return byDayFlowUnscrambleMapper.selectByDayFlowUnscrambleById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询一日流程解读列表
|
||||
*
|
||||
* @param byDayFlowUnscramble 一日流程解读
|
||||
* @return 一日流程解读
|
||||
*/
|
||||
@Override
|
||||
public List<ByDayFlowUnscramble> selectByDayFlowUnscrambleList(ByDayFlowUnscramble byDayFlowUnscramble) {
|
||||
return byDayFlowUnscrambleMapper.selectByDayFlowUnscrambleList(byDayFlowUnscramble);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增一日流程解读
|
||||
*
|
||||
* @param byDayFlowUnscramble 一日流程解读
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertByDayFlowUnscramble(ByDayFlowUnscramble byDayFlowUnscramble) {
|
||||
byDayFlowUnscramble.setCreateTime(DateUtils.getNowDate());
|
||||
return byDayFlowUnscrambleMapper.insertByDayFlowUnscramble(byDayFlowUnscramble);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改一日流程解读
|
||||
*
|
||||
* @param byDayFlowUnscramble 一日流程解读
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateByDayFlowUnscramble(ByDayFlowUnscramble byDayFlowUnscramble) {
|
||||
return byDayFlowUnscrambleMapper.updateByDayFlowUnscramble(byDayFlowUnscramble);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除一日流程解读
|
||||
*
|
||||
* @param ids 需要删除的一日流程解读ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByDayFlowUnscrambleByIds(Long[] ids) {
|
||||
return byDayFlowUnscrambleMapper.deleteByDayFlowUnscrambleByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除一日流程解读信息
|
||||
*
|
||||
* @param id 一日流程解读ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteByDayFlowUnscrambleById(Long id) {
|
||||
return byDayFlowUnscrambleMapper.deleteByDayFlowUnscrambleById(id);
|
||||
}
|
||||
}
|
@ -1,47 +1,47 @@
|
||||
<?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">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.project.benyi.mapper.ByDayFlowDetailMapper">
|
||||
|
||||
|
||||
<resultMap type="ByDayFlowDetail" id="ByDayFlowDetailResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="sortNumber" column="sort_number" />
|
||||
<result property="targetCount" column="target_count" />
|
||||
<result property="name" column="name" />
|
||||
<result property="content" column="content" />
|
||||
<result property="note" column="note" />
|
||||
<result property="flowType" column="flow_type" />
|
||||
<result property="createUser" column="create_user" />
|
||||
<result property="updateUser" column="update_user" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="id" column="id"/>
|
||||
<result property="sortNumber" column="sort_number"/>
|
||||
<result property="targetCount" column="target_count"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="note" column="note"/>
|
||||
<result property="flowType" column="flow_type"/>
|
||||
<result property="createUser" column="create_user"/>
|
||||
<result property="updateUser" column="update_user"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByDayFlowDetailVo">
|
||||
select id, sort_number, target_count, name, content, note, flow_type, create_user, update_user, create_time, update_time
|
||||
select id, sort_number, (select count(*) from by_day_flow_task where detail_id=id) target_count, name, content, note, flow_type, create_user, update_user, create_time, update_time
|
||||
from by_day_flow_detail
|
||||
</sql>
|
||||
|
||||
<select id="selectByDayFlowDetailList" parameterType="ByDayFlowDetail" resultMap="ByDayFlowDetailResult">
|
||||
<include refid="selectByDayFlowDetailVo"/>
|
||||
<where>
|
||||
<if test="sortNumber != null "> and sort_number = #{sortNumber}</if>
|
||||
<if test="targetCount != null "> and target_count = #{targetCount}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="content != null and content != ''"> and content = #{content}</if>
|
||||
<if test="note != null and note != ''"> and note = #{note}</if>
|
||||
<if test="flowType != null "> and flow_type = #{flowType}</if>
|
||||
<if test="createUser != null "> and create_user = #{createUser}</if>
|
||||
<if test="updateUser != null "> and update_user = #{updateUser}</if>
|
||||
<where>
|
||||
<if test="sortNumber != null ">and sort_number = #{sortNumber}</if>
|
||||
<if test="targetCount != null ">and target_count = #{targetCount}</if>
|
||||
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
|
||||
<if test="content != null and content != ''">and content = #{content}</if>
|
||||
<if test="note != null and note != ''">and note = #{note}</if>
|
||||
<if test="flowType != null ">and flow_type = #{flowType}</if>
|
||||
<if test="createUser != null ">and create_user = #{createUser}</if>
|
||||
<if test="updateUser != null ">and update_user = #{updateUser}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectByDayFlowDetailById" parameterType="Long" resultMap="ByDayFlowDetailResult">
|
||||
<include refid="selectByDayFlowDetailVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertByDayFlowDetail" parameterType="ByDayFlowDetail" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into by_day_flow_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateUser != null ">update_user,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
<if test="updateTime != null ">update_time,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="sortNumber != null ">#{sortNumber},</if>
|
||||
<if test="targetCount != null ">#{targetCount},</if>
|
||||
@ -67,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateUser != null ">#{updateUser},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
<if test="updateTime != null ">#{updateTime},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByDayFlowDetail" parameterType="ByDayFlowDetail">
|
||||
@ -92,10 +92,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByDayFlowDetailByIds" parameterType="String">
|
||||
delete from by_day_flow_detail where id in
|
||||
delete from by_day_flow_detail where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
@ -1,34 +1,37 @@
|
||||
<?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">
|
||||
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="id" column="id" />
|
||||
<result property="taskCode" column="task_code" />
|
||||
<result property="standardTitle" column="standard_title" />
|
||||
<result property="standardSort" column="standard_sort" />
|
||||
<result property="createuser" column="createuser" />
|
||||
<result property="createtime" column="createtime" />
|
||||
<result property="updateuser" column="updateuser" />
|
||||
<result property="updatetime" column="updatetime" />
|
||||
<result property="id" column="id"/>
|
||||
<result property="taskCode" column="task_code"/>
|
||||
<result property="standardTitle" column="standard_title"/>
|
||||
<result property="standardSort" column="standard_sort"/>
|
||||
<result property="unscrambleCount" column="unscramble_count"/>
|
||||
<result property="createuser" column="createuser"/>
|
||||
<result property="createtime" column="createtime"/>
|
||||
<result property="updateuser" column="updateuser"/>
|
||||
<result property="updatetime" column="updatetime"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByDayFlowStandardVo">
|
||||
select id, task_code, standard_title, standard_sort, createuser, createtime, updateuser, updatetime from by_day_flow_standard
|
||||
select id, task_code, standard_title, standard_sort,(select count(*) from by_day_flow_unscramble where standard_id=by_day_flow_standard.id) unscramble_count, createuser, createtime, updateuser, updatetime from by_day_flow_standard
|
||||
</sql>
|
||||
|
||||
<select id="selectByDayFlowStandardList" parameterType="ByDayFlowStandard" resultMap="ByDayFlowStandardResult">
|
||||
<include refid="selectByDayFlowStandardVo"/>
|
||||
<where>
|
||||
<if test="taskCode != null "> and task_code = #{taskCode}</if>
|
||||
<if test="standardTitle != null and standardTitle != ''"> and standard_title = #{standardTitle}</if>
|
||||
<if test="standardSort != null "> and standard_sort = #{standardSort}</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="taskCode != null ">and task_code = #{taskCode}</if>
|
||||
<if test="standardTitle != null and standardTitle != ''">and standard_title like concat('%',
|
||||
#{standardTitle}, '%')
|
||||
</if>
|
||||
<if test="standardSort != null ">and standard_sort = #{standardSort}</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>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
<result property="detailId" column="detail_id" />
|
||||
<result property="taskContent" column="task_content" />
|
||||
<result property="taskSort" column="task_sort" />
|
||||
<result property="standardCount" column="standard_count"/>
|
||||
<result property="label" column="label" />
|
||||
<result property="createuser" column="createuser" />
|
||||
<result property="updateuser" column="updateuser" />
|
||||
@ -19,7 +20,7 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByDayFlowTaskVo">
|
||||
select code, task_lable, detail_id, task_content, task_sort, label, createuser, updateuser, createtime, updatetime, remark from by_day_flow_task
|
||||
select code, task_lable, detail_id, task_content, task_sort,(select count(*) from by_day_flow_standard where task_code=code) standard_count, label, createuser, updateuser, createtime, updatetime, remark from by_day_flow_task
|
||||
</sql>
|
||||
|
||||
<select id="selectByDayFlowTaskList" parameterType="ByDayFlowTask" resultMap="ByDayFlowTaskResult">
|
||||
|
@ -0,0 +1,81 @@
|
||||
<?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.ByDayFlowUnscrambleMapper">
|
||||
|
||||
<resultMap type="ByDayFlowUnscramble" id="ByDayFlowUnscrambleResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="standardId" column="standard_id"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createuserid" column="createuserid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectByDayFlowUnscrambleVo">
|
||||
select id, standard_id, content, sort, remark, createuserid, create_time from by_day_flow_unscramble
|
||||
</sql>
|
||||
|
||||
<select id="selectByDayFlowUnscrambleList" parameterType="ByDayFlowUnscramble"
|
||||
resultMap="ByDayFlowUnscrambleResult">
|
||||
<include refid="selectByDayFlowUnscrambleVo"/>
|
||||
<where>
|
||||
<if test="standardId != null ">and standard_id = #{standardId}</if>
|
||||
<if test="content != null and content != ''">and content = #{content}</if>
|
||||
<if test="sort != null ">and sort = #{sort}</if>
|
||||
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByDayFlowUnscrambleById" parameterType="Long" resultMap="ByDayFlowUnscrambleResult">
|
||||
<include refid="selectByDayFlowUnscrambleVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertByDayFlowUnscramble" parameterType="ByDayFlowUnscramble" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into by_day_flow_unscramble
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="standardId != null ">standard_id,</if>
|
||||
<if test="content != null and content != ''">content,</if>
|
||||
<if test="sort != null ">sort,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="createuserid != null ">createuserid,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="standardId != null ">#{standardId},</if>
|
||||
<if test="content != null and content != ''">#{content},</if>
|
||||
<if test="sort != null ">#{sort},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="createuserid != null ">#{createuserid},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateByDayFlowUnscramble" parameterType="ByDayFlowUnscramble">
|
||||
update by_day_flow_unscramble
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="standardId != null ">standard_id = #{standardId},</if>
|
||||
<if test="content != null and content != ''">content = #{content},</if>
|
||||
<if test="sort != null ">sort = #{sort},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="createuserid != null ">createuserid = #{createuserid},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByDayFlowUnscrambleById" parameterType="Long">
|
||||
delete from by_day_flow_unscramble where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByDayFlowUnscrambleByIds" parameterType="String">
|
||||
delete from by_day_flow_unscramble where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user