Commit a2f11920 by 赵剑炜

添加删除流程

parent 074c3b78
......@@ -54,4 +54,9 @@ public class SysFormController {
public ApiRes<Boolean> CheckConfig(@RequestBody String br) {
return ApiRes.success(SysFormService.CheckConfig(br));
}
@ApiOperation("检查配置是否可用")
@PostMapping(value = "CheckConfig")
public ApiRes<Boolean> DeleteFormList(@RequestBody String br) {
return ApiRes.success(SysFormService.DeleteFrom(br));
}
}
......@@ -52,9 +52,15 @@ public interface ISysFormService {
PageResult<TemplateGroupVo> getFormList(BaseRequest br);
/**
* 获取用户可见表单
* 检查配置项
*
* @return
*/
Boolean CheckConfig(String br);
/**
* 获取用户可见表单
*
* @return
*/
Boolean DeleteFrom(String fromId);
}
......@@ -155,6 +155,28 @@ public class SysFormServiceImpl extends ServiceImpl<ProcessTemplatesMapper, Proc
return true;
}
}
public Boolean DeleteFrom(String fromId)
{
ProcessTemplates process= this.getOne(new LambdaQueryWrapper<ProcessTemplates>()
.eq(ProcessTemplates::getFormId, fromId)
);
if (process!=null)
{
boolean res= this.removeById(process);
if (res)
{
return true;
}
else {
return false;
}
}
else
{
return false;
}
}
public PageResult<TemplateGroupVo> getFormList(BaseRequest br)
{
Map<String, Object> params = br.getParams();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论