提交 3e8d69e0 authored 作者: zhoushaopan's avatar zhoushaopan

[工作流模块]页面和流程处理

上级 a3e0d3d5
...@@ -75,6 +75,5 @@ public class FlowsInfo extends BaseEntity { ...@@ -75,6 +75,5 @@ public class FlowsInfo extends BaseEntity {
* @params: 部署id * @params: 部署id
*/ */
private String deployId; private String deployId;
@ApiModelProperty("是否删除")
private Integer deleted = 0;
} }
package com.tykj.workflowcore.workflow_editer.entity; package com.tykj.workflowcore.workflow_editer.entity;
import com.tykj.workflowcore.base.entity.BaseEntity;
import com.tykj.workflowcore.model_layer.annotatiion.WorkFlowCoreNoScan; import com.tykj.workflowcore.model_layer.annotatiion.WorkFlowCoreNoScan;
import com.tykj.workflowcore.workflow_editer.vo.InFormPageVo; import com.tykj.workflowcore.workflow_editer.vo.InFormPageVo;
import com.tykj.workflowcore.workflow_editer.vo.OutFormPageVo; import com.tykj.workflowcore.workflow_editer.vo.OutFormPageVo;
...@@ -8,6 +9,8 @@ import io.swagger.annotations.ApiModelProperty; ...@@ -8,6 +9,8 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import javax.persistence.*; import javax.persistence.*;
...@@ -26,8 +29,10 @@ import java.util.Date; ...@@ -26,8 +29,10 @@ import java.util.Date;
@NoArgsConstructor @NoArgsConstructor
@Entity @Entity
@WorkFlowCoreNoScan @WorkFlowCoreNoScan
@SQLDelete(sql = "update flows_info set deleted = 1 where id = ?")
@Where(clause = "deleted = 0")
@Api("表单页面") @Api("表单页面")
public class FormPage { public class FormPage extends BaseEntity {
@Id @Id
@GeneratedValue(strategy = GenerationType.IDENTITY) @GeneratedValue(strategy = GenerationType.IDENTITY)
......
...@@ -45,7 +45,7 @@ public interface FormPageService { ...@@ -45,7 +45,7 @@ public interface FormPageService {
* 根据页面id删除页面 * 根据页面id删除页面
* @param id 页面id * @param id 页面id
*/ */
void deletePage(@PathVariable("id") Long id); void deletePage(Long id);
/** /**
* 查询全部页面 * 查询全部页面
......
...@@ -60,8 +60,10 @@ public class FormPageServiceImpl implements FormPageService { ...@@ -60,8 +60,10 @@ public class FormPageServiceImpl implements FormPageService {
} }
@Override @Override
public void deletePage(@PathVariable("id") Long id) { public void deletePage(Long id) {
formPageMapper.deleteById(id); FormPage formPage = formPageMapper.findById(id).get();
formPage.setDeleted(1);
formPageMapper.save(formPage);
} }
@Override @Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论