|
@ -0,0 +1,446 @@
|
|
|
package com.yihu.jw.base.endpoint.processGuidance;
|
|
|
|
|
|
import com.yihu.jw.base.dao.processGuidance.*;
|
|
|
import com.yihu.jw.base.service.processGuidance.BaseProcessGuidanceNodeService;
|
|
|
import com.yihu.jw.base.service.processGuidance.BaseProcessGuidanceNodeWxService;
|
|
|
import com.yihu.jw.base.service.processGuidance.BaseProcessGuidancePushLogService;
|
|
|
import com.yihu.jw.base.service.processGuidance.BaseProcessGuidanceService;
|
|
|
import com.yihu.jw.entity.base.processGuidance.*;
|
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
|
import com.yihu.jw.restmodel.web.ListEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.PageEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* Created by yeshijie on 2022/10/8.
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping(value = "processGuidance")
|
|
|
@Api(value = "全流程指引", tags = {"全流程指引"})
|
|
|
public class BaseProcessGuidanceEndpoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@Resource
|
|
|
private BaseProcessGuidanceService processGuidanceService;
|
|
|
@Resource
|
|
|
private BaseProcessGuidanceDao processGuidanceDao;
|
|
|
@Resource
|
|
|
private BaseProcessGuidanceNodeService processGuidanceNodeService;
|
|
|
@Resource
|
|
|
private BaseProcessGuidanceDeptDao processGuidanceDeptDao;
|
|
|
@Resource
|
|
|
private BaseProcessGuidanceNodeDao processGuidanceNodeDao;
|
|
|
@Resource
|
|
|
private BaseProcessGuidanceNodeAppDao processGuidanceNodeAppDao;
|
|
|
@Resource
|
|
|
private BaseProcessGuidanceNodeWxDao processGuidanceNodeWxDao;
|
|
|
@Resource
|
|
|
private BaseProcessGuidanceNodeWxService processGuidanceNodeWxService;
|
|
|
@Resource
|
|
|
private BaseProcessGuidanceNodeSmsDao processGuidanceNodeSmsDao;
|
|
|
@Resource
|
|
|
private BaseProcessGuidancePushLogService processGuidancePushLogService;
|
|
|
@Resource
|
|
|
private BaseProcessGuidancePresetDao processGuidancePresetDao;
|
|
|
|
|
|
@PostMapping(value = "saveProcessGuidance")
|
|
|
@ApiOperation(value = "保存或更新流程")
|
|
|
public ObjEnvelop saveProcessGuidance(@ApiParam(name = "jsonData", value = "Json数据", required = true)
|
|
|
@RequestParam(value = "jsonData") String jsonData) {
|
|
|
try {
|
|
|
BaseProcessGuidanceDO guidanceDO = toEntity(jsonData, BaseProcessGuidanceDO.class);
|
|
|
String guidanceId = guidanceDO.getId();
|
|
|
List<BaseProcessGuidanceDeptDO> deptDOList = guidanceDO.getDeptDOList();
|
|
|
List<BaseProcessGuidancePresetDO> presetDOList = guidanceDO.getPresetDOList();
|
|
|
if(StringUtils.isNotBlank(guidanceId)){
|
|
|
//更新的时候先删除关联
|
|
|
processGuidanceDeptDao.deleteByProcessGuidanceId(guidanceId);
|
|
|
processGuidancePresetDao.deleteByProcessGuidanceId(guidanceId);
|
|
|
|
|
|
BaseProcessGuidanceDO old = processGuidanceDao.findById(guidanceId).orElse(null);
|
|
|
if(old==null){
|
|
|
return ObjEnvelop.getError("参数错误,id不存在");
|
|
|
}
|
|
|
old.setStatus(guidanceDO.getStatus());
|
|
|
old.setName(guidanceDO.getName());
|
|
|
guidanceDO = processGuidanceDao.save(old);
|
|
|
|
|
|
if(deptDOList!=null&&deptDOList.size()>0){
|
|
|
deptDOList.forEach(one->{
|
|
|
one.setProcessGuidanceId(guidanceId);
|
|
|
});
|
|
|
processGuidanceDeptDao.saveAll(deptDOList);
|
|
|
}
|
|
|
if(presetDOList!=null&&presetDOList.size()>0){
|
|
|
presetDOList.forEach(one->{
|
|
|
one.setProcessGuidanceId(guidanceId);
|
|
|
one.setCreateTime(new Date());
|
|
|
});
|
|
|
processGuidancePresetDao.saveAll(presetDOList);
|
|
|
}
|
|
|
}else{
|
|
|
guidanceDO.setCreateTime(new Date());
|
|
|
guidanceDO = processGuidanceService.save(guidanceDO);
|
|
|
final String guidanceDOId = guidanceDO.getId();
|
|
|
|
|
|
if(deptDOList!=null&&deptDOList.size()>0){
|
|
|
deptDOList.forEach(one->{
|
|
|
one.setProcessGuidanceId(guidanceDOId);
|
|
|
});
|
|
|
processGuidanceDeptDao.saveAll(deptDOList);
|
|
|
}
|
|
|
if(presetDOList!=null&&presetDOList.size()>0){
|
|
|
presetDOList.forEach(one->{
|
|
|
one.setProcessGuidanceId(guidanceDOId);
|
|
|
one.setCreateTime(new Date());
|
|
|
});
|
|
|
processGuidancePresetDao.saveAll(presetDOList);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return success(guidanceDO);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return ObjEnvelop.getError("保存失败");
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "processGuidancePushLogPage")
|
|
|
@ApiOperation(value = "获取消息推送日志分页")
|
|
|
public PageEnvelop processGuidancePushLogPage(
|
|
|
@ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
|
|
|
@RequestParam(value = "fields", required = false) String fields,
|
|
|
@ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
|
|
|
@RequestParam(value = "filters", required = false) String filters,
|
|
|
@ApiParam(name = "sorts", value = "排序,规则参见说明文档")
|
|
|
@RequestParam(value = "sorts", required = false) String sorts,
|
|
|
@ApiParam(name = "page", value = "分页大小", required = true, defaultValue = "1")
|
|
|
@RequestParam(value = "page") int page,
|
|
|
@ApiParam(name = "size", value = "页码", required = true, defaultValue = "15")
|
|
|
@RequestParam(value = "size") int size) throws Exception {
|
|
|
List<BaseProcessGuidancePushLogDO> processGuidancePushLogDOS = processGuidancePushLogService.search(fields, filters, sorts, page, size);
|
|
|
processGuidancePushLogDOS.forEach(one->{
|
|
|
if(one.getSendType()==1){
|
|
|
one.setSendTypeName("wx模板");
|
|
|
}else {
|
|
|
one.setSendTypeName("短信");
|
|
|
}
|
|
|
if(one.getUserType()==1){
|
|
|
one.setUserTypeName("居民");
|
|
|
}else {
|
|
|
one.setUserTypeName("医生");
|
|
|
}
|
|
|
});
|
|
|
int count = (int) processGuidancePushLogService.getCount(filters);
|
|
|
return success(processGuidancePushLogDOS, count, page, size, BaseProcessGuidancePushLogDO.class);
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = "saveProcessGuidanceNodeSms")
|
|
|
@ApiOperation(value = "保存或更新节点段信")
|
|
|
public ObjEnvelop saveProcessGuidanceNodeSms(@ApiParam(name = "jsonData", value = "Json数据", required = true)
|
|
|
@RequestParam(value = "jsonData") String jsonData) {
|
|
|
try {
|
|
|
BaseProcessGuidanceNodeSmsDO nodeSmsDO = toEntity(jsonData, BaseProcessGuidanceNodeSmsDO.class);
|
|
|
if(StringUtils.isBlank(nodeSmsDO.getNodeId())){
|
|
|
return ObjEnvelop.getError("参数错误,节点id不能为空");
|
|
|
}
|
|
|
String nodeSmsDOId = nodeSmsDO.getId();
|
|
|
if(StringUtils.isNotBlank(nodeSmsDOId)){
|
|
|
BaseProcessGuidanceNodeSmsDO oldNodeSms = processGuidanceNodeSmsDao.findById(nodeSmsDOId).orElse(null);
|
|
|
if(oldNodeSms==null){
|
|
|
return ObjEnvelop.getError("参数错误,id不存在");
|
|
|
}
|
|
|
oldNodeSms.setContent(nodeSmsDO.getContent());
|
|
|
oldNodeSms.setIsPush(nodeSmsDO.getIsPush());
|
|
|
oldNodeSms.setTemplateId(nodeSmsDO.getTemplateId());
|
|
|
nodeSmsDO = processGuidanceNodeSmsDao.save(oldNodeSms);
|
|
|
}else{
|
|
|
nodeSmsDO = processGuidanceNodeSmsDao.save(nodeSmsDO);
|
|
|
}
|
|
|
|
|
|
return success(nodeSmsDO);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return ObjEnvelop.getError("保存失败");
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = "saveProcessGuidanceNodeWx")
|
|
|
@ApiOperation(value = "保存或更新节点微信模板")
|
|
|
public ObjEnvelop saveProcessGuidanceNodeWx(@ApiParam(name = "jsonData", value = "Json数据", required = true)
|
|
|
@RequestParam(value = "jsonData") String jsonData) {
|
|
|
try {
|
|
|
BaseProcessGuidanceNodeWxDO nodeWxDO = toEntity(jsonData, BaseProcessGuidanceNodeWxDO.class);
|
|
|
if(StringUtils.isBlank(nodeWxDO.getNodeId())){
|
|
|
return ObjEnvelop.getError("参数错误,节点id不能为空");
|
|
|
}
|
|
|
String nodeWxId = nodeWxDO.getId();
|
|
|
if(StringUtils.isNotBlank(nodeWxId)){
|
|
|
BaseProcessGuidanceNodeWxDO oldNodeWx = processGuidanceNodeWxDao.findById(nodeWxId).orElse(null);
|
|
|
if(oldNodeWx==null){
|
|
|
return ObjEnvelop.getError("参数错误,id不存在");
|
|
|
}
|
|
|
oldNodeWx.setIsPush(nodeWxDO.getIsPush());
|
|
|
oldNodeWx.setPreview(nodeWxDO.getPreview());
|
|
|
oldNodeWx.setTemplateId(nodeWxDO.getTemplateId());
|
|
|
oldNodeWx.setTemplateName(nodeWxDO.getTemplateName());
|
|
|
nodeWxDO = processGuidanceNodeWxDao.save(oldNodeWx);
|
|
|
}else{
|
|
|
nodeWxDO = processGuidanceNodeWxDao.save(nodeWxDO);
|
|
|
}
|
|
|
|
|
|
return success(nodeWxDO);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return ObjEnvelop.getError("保存失败");
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "nodeWxTemplateList")
|
|
|
@ApiOperation(value = "获取列表")
|
|
|
public ListEnvelop<BaseProcessGuidanceNodeWxDO> list() throws Exception {
|
|
|
try {
|
|
|
List<BaseProcessGuidanceNodeWxDO> nodeWxDOList = processGuidanceNodeWxService.search(null, "nodeId=system", null);
|
|
|
return ListEnvelop.getSuccess("查询成功",nodeWxDOList);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return ListEnvelop.getError("获取失败");
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = "saveProcessGuidanceNode")
|
|
|
@ApiOperation(value = "保存或更新节点")
|
|
|
public ObjEnvelop saveProcessGuidanceNode(@ApiParam(name = "jsonData", value = "Json数据", required = true)
|
|
|
@RequestParam(value = "jsonData") String jsonData) {
|
|
|
try {
|
|
|
BaseProcessGuidanceNodeDO nodeDO = toEntity(jsonData, BaseProcessGuidanceNodeDO.class);
|
|
|
String nodeId = nodeDO.getId();
|
|
|
List<BaseProcessGuidanceNodeAppDO> nodeAppDOList = nodeDO.getNodeAppDOList();
|
|
|
if(StringUtils.isNotBlank(nodeId)){
|
|
|
//更新的时候先删除关联应用
|
|
|
processGuidanceNodeAppDao.deleteByNodeId(nodeId);
|
|
|
|
|
|
BaseProcessGuidanceNodeDO oldNode = processGuidanceNodeDao.findById(nodeId).orElse(null);
|
|
|
if(oldNode==null){
|
|
|
return ObjEnvelop.getError("参数错误,id不存在");
|
|
|
}
|
|
|
oldNode.setStatus(nodeDO.getStatus());
|
|
|
oldNode.setNodeName(nodeDO.getNodeName());
|
|
|
oldNode.setNodeCode(nodeDO.getNodeCode());
|
|
|
oldNode.setNodeDescribe(nodeDO.getNodeDescribe());
|
|
|
oldNode.setNotice(nodeDO.getNotice());
|
|
|
nodeDO = processGuidanceNodeDao.save(oldNode);
|
|
|
|
|
|
if(nodeAppDOList!=null&&nodeAppDOList.size()>0){
|
|
|
nodeAppDOList.forEach(one->{
|
|
|
one.setCreateTime(new Date());
|
|
|
one.setNodeId(nodeId);
|
|
|
});
|
|
|
processGuidanceNodeAppDao.saveAll(nodeAppDOList);
|
|
|
}
|
|
|
}else{
|
|
|
nodeDO.setCreateTime(new Date());
|
|
|
nodeDO = processGuidanceNodeDao.save(nodeDO);
|
|
|
final String nodeId1 = nodeDO.getId();
|
|
|
|
|
|
if(nodeAppDOList!=null&&nodeAppDOList.size()>0){
|
|
|
nodeAppDOList.forEach(one->{
|
|
|
one.setCreateTime(new Date());
|
|
|
one.setNodeId(nodeId1);
|
|
|
});
|
|
|
processGuidanceNodeAppDao.saveAll(nodeAppDOList);
|
|
|
}
|
|
|
}
|
|
|
return success(nodeDO);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return ObjEnvelop.getError("保存失败");
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "getWxTemplateByNodeId")
|
|
|
@ApiOperation(value = "按节点id查找微信模板")
|
|
|
public Envelop getWxTemplateByNodeId(
|
|
|
@ApiParam(name = "nodeId", value = "节点id", required = true)
|
|
|
@RequestParam(value = "nodeId") String nodeId) {
|
|
|
try {
|
|
|
List<BaseProcessGuidanceNodeWxDO> list = processGuidanceNodeWxDao.findByNodeId(nodeId);
|
|
|
if(list.size()>0){
|
|
|
return ObjEnvelop.getSuccess("查询成功",list.get(0));
|
|
|
}
|
|
|
return ObjEnvelop.getSuccess("查询成功");
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return Envelop.getError("查询失败");
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "getSmsByNodeId")
|
|
|
@ApiOperation(value = "按节点id查找短信模板")
|
|
|
public Envelop getSmsByNodeId(
|
|
|
@ApiParam(name = "nodeId", value = "节点id", required = true)
|
|
|
@RequestParam(value = "nodeId") String nodeId) {
|
|
|
try {
|
|
|
List<BaseProcessGuidanceNodeSmsDO> list = processGuidanceNodeSmsDao.findByNodeId(nodeId);
|
|
|
if(list.size()>0){
|
|
|
return ObjEnvelop.getSuccess("查询成功",list.get(0));
|
|
|
}
|
|
|
return ObjEnvelop.getSuccess("查询成功");
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return Envelop.getError("查询失败");
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "getProcessGuidanceNodeById")
|
|
|
@ApiOperation(value = "按id查找节点模板")
|
|
|
public Envelop getProcessGuidanceNodeById(
|
|
|
@ApiParam(name = "id", value = "id", required = true)
|
|
|
@RequestParam(value = "id") String id) {
|
|
|
try {
|
|
|
BaseProcessGuidanceNodeDO processGuidanceDO = processGuidanceNodeDao.findById(id).orElse(null);
|
|
|
if(processGuidanceDO==null){
|
|
|
return Envelop.getError("id不存在");
|
|
|
}
|
|
|
if(processGuidanceDO.getStatus()==1){
|
|
|
processGuidanceDO.setStatusName("生效");
|
|
|
}else {
|
|
|
processGuidanceDO.setStatusName("失效");
|
|
|
}
|
|
|
List<BaseProcessGuidanceNodeAppDO> nodeAppDOList = processGuidanceNodeAppDao.findByNodeId(id);
|
|
|
processGuidanceDO.setNodeAppDOList(nodeAppDOList);
|
|
|
return ObjEnvelop.getSuccess("查询成功",processGuidanceDO);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return Envelop.getError("查询失败");
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "processGuidanceNodePage")
|
|
|
@ApiOperation(value = "获取节点分页")
|
|
|
public PageEnvelop processGuidanceNodePage(
|
|
|
@ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
|
|
|
@RequestParam(value = "fields", required = false) String fields,
|
|
|
@ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
|
|
|
@RequestParam(value = "filters", required = false) String filters,
|
|
|
@ApiParam(name = "sorts", value = "排序,规则参见说明文档")
|
|
|
@RequestParam(value = "sorts", required = false) String sorts,
|
|
|
@ApiParam(name = "page", value = "分页大小", required = true, defaultValue = "1")
|
|
|
@RequestParam(value = "page") int page,
|
|
|
@ApiParam(name = "size", value = "页码", required = true, defaultValue = "15")
|
|
|
@RequestParam(value = "size") int size) {
|
|
|
try {
|
|
|
List<BaseProcessGuidanceNodeDO> processGuidanceDOList = processGuidanceNodeService.search(fields, filters, sorts, page, size);
|
|
|
processGuidanceDOList.forEach(one->{
|
|
|
if(one.getStatus()==1){
|
|
|
one.setStatusName("生效");
|
|
|
}else {
|
|
|
one.setStatusName("失效");
|
|
|
}
|
|
|
List<BaseProcessGuidanceNodeAppDO> nodeAppDOList = processGuidanceNodeAppDao.findByNodeId(one.getId());
|
|
|
one.setNodeAppDOList(nodeAppDOList);
|
|
|
});
|
|
|
int count = (int) processGuidanceNodeService.getCount(filters);
|
|
|
return success(processGuidanceDOList, count, page, size, BaseProcessGuidanceNodeDO.class);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return PageEnvelop.getError("查询失败");
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "processGuidancePage")
|
|
|
@ApiOperation(value = "获取就诊流程分页")
|
|
|
public PageEnvelop processGuidancePage(
|
|
|
@ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
|
|
|
@RequestParam(value = "fields", required = false) String fields,
|
|
|
@ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
|
|
|
@RequestParam(value = "filters", required = false) String filters,
|
|
|
@ApiParam(name = "sorts", value = "排序,规则参见说明文档")
|
|
|
@RequestParam(value = "sorts", required = false) String sorts,
|
|
|
@ApiParam(name = "page", value = "分页大小", required = true, defaultValue = "1")
|
|
|
@RequestParam(value = "page") int page,
|
|
|
@ApiParam(name = "size", value = "页码", required = true, defaultValue = "15")
|
|
|
@RequestParam(value = "size") int size) throws Exception {
|
|
|
List<BaseProcessGuidanceDO> processGuidanceDOList = processGuidanceService.search(fields, filters, sorts, page, size);
|
|
|
processGuidanceDOList.forEach(one->{
|
|
|
if(one.getStatus()==1){
|
|
|
one.setStatusName("生效");
|
|
|
}else {
|
|
|
one.setStatusName("失效");
|
|
|
}
|
|
|
List<BaseProcessGuidanceDeptDO> deptDOList = processGuidanceDeptDao.findByProcessGuidanceId(one.getId());
|
|
|
one.setDeptDOList(deptDOList);
|
|
|
});
|
|
|
int count = (int) processGuidanceService.getCount(filters);
|
|
|
return success(processGuidanceDOList, count, page, size, BaseProcessGuidanceDO.class);
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "getProcessGuidanceById")
|
|
|
@ApiOperation(value = "按id查找流程")
|
|
|
public Envelop getProcessGuidanceById(
|
|
|
@ApiParam(name = "id", value = "id", required = true)
|
|
|
@RequestParam(value = "id") String id) {
|
|
|
try {
|
|
|
BaseProcessGuidanceDO processGuidanceDO = processGuidanceDao.findById(id).orElse(null);
|
|
|
if(processGuidanceDO==null){
|
|
|
return Envelop.getError("id不存在");
|
|
|
}
|
|
|
if(processGuidanceDO.getStatus()==1){
|
|
|
processGuidanceDO.setStatusName("生效");
|
|
|
}else {
|
|
|
processGuidanceDO.setStatusName("失效");
|
|
|
}
|
|
|
List<BaseProcessGuidanceDeptDO> deptDOList = processGuidanceDeptDao.findByProcessGuidanceId(id);
|
|
|
processGuidanceDO.setDeptDOList(deptDOList);
|
|
|
|
|
|
List<BaseProcessGuidancePresetDO> presetDOList = processGuidancePresetDao.findByProcessGuidanceId(id);
|
|
|
processGuidanceDO.setPresetDOList(presetDOList);
|
|
|
|
|
|
return ObjEnvelop.getSuccess("查询成功",processGuidanceDO);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return Envelop.getError("查询失败");
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = "delProcessGuidance")
|
|
|
@ApiOperation(value = "删除就诊流程")
|
|
|
public Envelop delProcessGuidance(
|
|
|
@ApiParam(name = "id", value = "id", required = true)
|
|
|
@RequestParam(value = "id") String id) {
|
|
|
try {
|
|
|
processGuidanceDeptDao.deleteByProcessGuidanceId(id);
|
|
|
processGuidancePresetDao.deleteByProcessGuidanceId(id);
|
|
|
processGuidanceDao.deleteById(id);
|
|
|
return success("删除成功");
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return Envelop.getError("删除失败");
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = "delProcessGuidanceNode")
|
|
|
@ApiOperation(value = "删除节点模板")
|
|
|
public Envelop delProcessGuidanceNode(
|
|
|
@ApiParam(name = "id", value = "id", required = true)
|
|
|
@RequestParam(value = "id") String id) {
|
|
|
try {
|
|
|
processGuidanceNodeAppDao.deleteByNodeId(id);
|
|
|
processGuidanceNodeDao.deleteById(id);
|
|
|
return success("删除成功");
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
return Envelop.getError("删除失败");
|
|
|
}
|
|
|
|
|
|
}
|