|
|
|
@ -101,7 +101,36 @@ public class DepartmentController extends BaseController{
|
|
|
|
|
this.departmentService.clearDeptCacheById(tab.getId().toString());
|
|
|
|
|
return ResultVoUtil.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*方法描述:根据页面form传来的对象修改数据
|
|
|
|
|
*创建人:mail.zhangyong@gmail.com
|
|
|
|
|
*创建时间:2021-11-30 18:01:02
|
|
|
|
|
**/
|
|
|
|
|
@PostMapping("/updateflowable")
|
|
|
|
|
public ResultVo updateflowable(HttpServletResponse response,HttpServletRequest request) throws IOException{
|
|
|
|
|
UserToken userToken = this.userTokenService.getUserToken(RequestBaseUtil.getToken(request));
|
|
|
|
|
//流程主键
|
|
|
|
|
String processdefinitionid = request.getParameter("Processdefinitionid");
|
|
|
|
|
//机构主键
|
|
|
|
|
String deptid = request.getParameter("deptid");
|
|
|
|
|
//流程关键,对应流程的”目标命名空间“
|
|
|
|
|
String category = request.getParameter("category");
|
|
|
|
|
|
|
|
|
|
Department department = this.departmentService.selectDeptById(deptid);
|
|
|
|
|
department.setProcessdefinitionid(processdefinitionid);
|
|
|
|
|
department.setCategory(category);
|
|
|
|
|
|
|
|
|
|
department.setUpdatetime(System.currentTimeMillis());
|
|
|
|
|
department.setUpdateuser(userToken.getLoginname());
|
|
|
|
|
if(this.departmentService.updateById(department)){
|
|
|
|
|
//清理缓存信息
|
|
|
|
|
this.departmentService.clearDeptCacheById(department.getId().toString());
|
|
|
|
|
return ResultVoUtil.success();
|
|
|
|
|
}
|
|
|
|
|
return ResultVoUtil.error();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*方法描述:通过主键获得对象信息
|
|
|
|
|
*创建人:mail.zhangyong@gmail.com
|
|
|
|
|