release-v1.0 #1
@ -0,0 +1,175 @@
|
|||||||
|
package com.rzdata.web.controller.tool;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.BooleanUtil;
|
||||||
|
import cn.hutool.core.util.IdUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.blueland.bpmclient.model.BpmClientInputModel;
|
||||||
|
import com.blueland.bpmclient.model.ProcessInstanceModel;
|
||||||
|
import com.rzdata.common.annotation.Log;
|
||||||
|
import com.rzdata.common.constant.Constants;
|
||||||
|
import com.rzdata.common.core.controller.BaseController;
|
||||||
|
import com.rzdata.common.core.domain.AjaxResult;
|
||||||
|
import com.rzdata.common.core.page.TableDataInfo;
|
||||||
|
import com.rzdata.common.enums.BusinessType;
|
||||||
|
import com.rzdata.common.enums.RecordStatusEnum;
|
||||||
|
import com.rzdata.common.utils.DateUtils;
|
||||||
|
import com.rzdata.common.utils.StringUtils;
|
||||||
|
import com.rzdata.common.utils.poi.ExcelUtil;
|
||||||
|
import com.rzdata.web.domain.ToolApply;
|
||||||
|
import com.rzdata.web.domain.bo.BpmClientInputModelBo;
|
||||||
|
import com.rzdata.web.service.IToolApplyService;
|
||||||
|
import com.rzdata.web.service.IUseApplyItemService;
|
||||||
|
import com.rzdata.web.service.WorkflowService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 申请Controller
|
||||||
|
*
|
||||||
|
* @author ja
|
||||||
|
* @date 2024-08-21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/tool/apply")
|
||||||
|
public class ToolApplyController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IToolApplyService toolApplyService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private WorkflowService workflowService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IUseApplyItemService useApplyItemService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询使用申请列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:apply:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(ToolApply toolApply)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<ToolApply> list = toolApplyService.selectToolApplyList(toolApply);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取工具信息详细信息
|
||||||
|
*/
|
||||||
|
@GetMapping(value = "/bpmc/{bpmcId}")
|
||||||
|
public AjaxResult getInfoByBpmcId(@PathVariable("bpmcId") String bpmcId)
|
||||||
|
{
|
||||||
|
return success(toolApplyService.getInfoByBpmcId(bpmcId));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出使用申请列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:apply:export')")
|
||||||
|
@Log(title = "使用申请", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, ToolApply toolApply)
|
||||||
|
{
|
||||||
|
List<ToolApply> list = toolApplyService.selectToolApplyList(toolApply);
|
||||||
|
ExcelUtil<ToolApply> util = new ExcelUtil<ToolApply>(ToolApply.class);
|
||||||
|
util.exportExcel(response, list, "使用申请数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取使用申请详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:apply:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") String id)
|
||||||
|
{
|
||||||
|
return success(toolApplyService.selectToolApplyById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增使用申请
|
||||||
|
*/
|
||||||
|
@Log(title = "使用申请", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody ToolApply toolApply)
|
||||||
|
{
|
||||||
|
boolean add = false;
|
||||||
|
if (StringUtils.isEmpty(toolApply.getId())) {
|
||||||
|
toolApply.setId(IdUtil.simpleUUID());
|
||||||
|
add = true;
|
||||||
|
}
|
||||||
|
ProcessInstanceModel processInstanceModel = null;
|
||||||
|
try {
|
||||||
|
if(StringUtils.equals(toolApply.getRecordStatus(), RecordStatusEnum.DRAFT.getCode())){
|
||||||
|
processInstanceModel = workflowService.saveExecute(toolApply.getBpmClientInputModel(), toolApply.getId());
|
||||||
|
}else if (StringUtils.equals(toolApply.getRecordStatus(), RecordStatusEnum.CANCEL.getCode())){
|
||||||
|
processInstanceModel = workflowService.cancelExecute(toolApply.getBpmClientInputModel(), toolApply.getId());
|
||||||
|
}else{
|
||||||
|
processInstanceModel = workflowService.nextExecute(toolApply.getBpmClientInputModel(), toolApply.getId());
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
if (processInstanceModel != null && StringUtils.isNotEmpty(processInstanceModel.getProcInstId())) {
|
||||||
|
if (add) {
|
||||||
|
BpmClientInputModelBo bpmClientInputModelBo = toolApply.getBpmClientInputModel();
|
||||||
|
if(null != bpmClientInputModelBo){
|
||||||
|
BpmClientInputModel bpmClientInputModel = bpmClientInputModelBo.getModel();
|
||||||
|
toolApply.setProcTitle(StrUtil.isNotEmpty(bpmClientInputModel.getWf_procTitle()) ? bpmClientInputModel.getWf_procTitle() : "");
|
||||||
|
}
|
||||||
|
if(toolApply.getItemList().size() > 0){
|
||||||
|
toolApply.setToolId(toolApply.getItemList().get(0).getToolId());
|
||||||
|
}
|
||||||
|
toolApply.setApplyType(Constants.TOOL_APPLY_TYPE_USE);
|
||||||
|
toolApply.setProcInstId(processInstanceModel.getProcInstId());
|
||||||
|
toolApplyService.insertToolApply(toolApply);
|
||||||
|
useApplyItemService.updateItemList(toolApply.getItemList(), toolApply.getId());
|
||||||
|
}else if (BooleanUtil.isTrue(toolApply.getEditStatus())){
|
||||||
|
toolApplyService.updateToolApply(toolApply);
|
||||||
|
useApplyItemService.updateItemList(toolApply.getItemList(), toolApply.getId());
|
||||||
|
}else {
|
||||||
|
ToolApply updateStatus = new ToolApply();
|
||||||
|
updateStatus.setId(toolApply.getId());
|
||||||
|
updateStatus.setRecordStatus(toolApply.getRecordStatus());
|
||||||
|
if("done".equals(toolApply.getRecordStatus())){
|
||||||
|
toolApply.setEndTime(DateUtils.getNowDate());
|
||||||
|
}
|
||||||
|
toolApplyService.updateToolApply(updateStatus);
|
||||||
|
}
|
||||||
|
//办结
|
||||||
|
if(RecordStatusEnum.DONE.getCode().equals(toolApply)){
|
||||||
|
//给消息中心发送消息
|
||||||
|
toolApplyService.sendTzMessage(toolApply);
|
||||||
|
}
|
||||||
|
return AjaxResult.success("操作成功",processInstanceModel);
|
||||||
|
}else {
|
||||||
|
return AjaxResult.error();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改使用申请
|
||||||
|
*/
|
||||||
|
@Log(title = "使用申请", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
public AjaxResult edit(@RequestBody ToolApply toolApply)
|
||||||
|
{
|
||||||
|
return toAjax(toolApplyService.updateToolApply(toolApply));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除使用申请
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:apply:remove')")
|
||||||
|
@Log(title = "使用申请", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable String[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(toolApplyService.deleteToolApplyByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,6 @@
|
|||||||
package com.rzdata.web.controller.tool;
|
package com.rzdata.web.controller.tool;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import cn.hutool.core.util.BooleanUtil;
|
import cn.hutool.core.util.BooleanUtil;
|
||||||
import cn.hutool.core.util.IdUtil;
|
import cn.hutool.core.util.IdUtil;
|
||||||
import com.blueland.bpmclient.model.ProcessInstanceModel;
|
import com.blueland.bpmclient.model.ProcessInstanceModel;
|
||||||
@ -10,14 +11,16 @@ import com.rzdata.common.core.domain.AjaxResult;
|
|||||||
import com.rzdata.common.core.page.TableDataInfo;
|
import com.rzdata.common.core.page.TableDataInfo;
|
||||||
import com.rzdata.common.enums.BusinessType;
|
import com.rzdata.common.enums.BusinessType;
|
||||||
import com.rzdata.common.enums.RecordStatusEnum;
|
import com.rzdata.common.enums.RecordStatusEnum;
|
||||||
|
import com.rzdata.common.utils.DateUtils;
|
||||||
import com.rzdata.common.utils.SecurityUtils;
|
import com.rzdata.common.utils.SecurityUtils;
|
||||||
import com.rzdata.common.utils.StringUtils;
|
import com.rzdata.common.utils.StringUtils;
|
||||||
import com.rzdata.common.utils.poi.ExcelUtil;
|
import com.rzdata.common.utils.poi.ExcelUtil;
|
||||||
import com.rzdata.system.service.ISysDeptService;
|
import com.rzdata.system.service.ISysDeptService;
|
||||||
import com.rzdata.web.domain.Tool;
|
import com.rzdata.web.domain.Tool;
|
||||||
|
import com.rzdata.web.domain.ToolApply;
|
||||||
import com.rzdata.web.service.IDocumentService;
|
import com.rzdata.web.service.IDocumentService;
|
||||||
|
import com.rzdata.web.service.IToolApplyService;
|
||||||
import com.rzdata.web.service.IToolService;
|
import com.rzdata.web.service.IToolService;
|
||||||
import com.rzdata.web.service.IUseApplyService;
|
|
||||||
import com.rzdata.web.service.WorkflowService;
|
import com.rzdata.web.service.WorkflowService;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -45,15 +48,17 @@ public class ToolController extends BaseController
|
|||||||
private WorkflowService workflowService;
|
private WorkflowService workflowService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IUseApplyService iUseApplyService;
|
private IToolApplyService iToolApplyService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISysDeptService iSysDeptService;
|
private ISysDeptService iSysDeptService;
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IDocumentService iDocumentService;
|
private IDocumentService iDocumentService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IToolApplyService toolApplyService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询工具信息列表
|
* 查询工具信息列表
|
||||||
*/
|
*/
|
||||||
@ -71,7 +76,7 @@ public class ToolController extends BaseController
|
|||||||
vo.setDownloadStatus(RecordStatusEnum.DONE.getCode().equals(vo.getRecordStatus())&&
|
vo.setDownloadStatus(RecordStatusEnum.DONE.getCode().equals(vo.getRecordStatus())&&
|
||||||
(userId.equals(vo.getCreateBy())||
|
(userId.equals(vo.getCreateBy())||
|
||||||
SecurityUtils.hasPermi(Constants.DOWNLOAD_TOOL_PERMISSION)||
|
SecurityUtils.hasPermi(Constants.DOWNLOAD_TOOL_PERMISSION)||
|
||||||
iUseApplyService.checkUseApply(vo.getToolId(),userId)));
|
iToolApplyService.checkToolApply(vo.getToolId(),userId)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
@ -139,22 +144,31 @@ public class ToolController extends BaseController
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
if (processInstanceModel!=null&&StringUtils.isNotEmpty(processInstanceModel.getProcInstId())) {
|
if (processInstanceModel != null && StringUtils.isNotEmpty(processInstanceModel.getProcInstId())) {
|
||||||
if (add) {
|
if (add) {
|
||||||
tTool.setProcInstId(processInstanceModel.getProcInstId());
|
tTool.setProcInstId(processInstanceModel.getProcInstId());
|
||||||
toolService.insertTool(tTool);
|
toolService.insertTool(tTool);
|
||||||
//保存文档和附件
|
//保存文档和附件
|
||||||
toolService.addDocAndAtt(tTool);
|
toolService.addDocAndAtt(tTool);
|
||||||
}else if (BooleanUtil.isTrue(tTool.getEditStatus())){
|
|
||||||
|
//记录申请数据
|
||||||
|
toolService.recordToolApply(tTool);
|
||||||
|
} else if (BooleanUtil.isTrue(tTool.getEditStatus())){
|
||||||
toolService.updateTool(tTool);
|
toolService.updateTool(tTool);
|
||||||
//删除文档和附件
|
//删除文档和附件
|
||||||
toolService.deleteDocAndAtt(tTool);
|
toolService.deleteDocAndAtt(tTool);
|
||||||
//保存文档和附件
|
//保存文档和附件
|
||||||
toolService.addDocAndAtt(tTool);
|
toolService.addDocAndAtt(tTool);
|
||||||
}else {
|
} else {
|
||||||
Tool tool = new Tool();
|
Tool tool = new Tool();
|
||||||
tool.setToolId(tTool.getToolId());
|
tool.setToolId(tTool.getToolId());
|
||||||
tool.setRecordStatus(tTool.getRecordStatus());
|
tool.setRecordStatus(tTool.getRecordStatus());
|
||||||
|
if("done".equals(tTool.getRecordStatus())){
|
||||||
|
ToolApply toolApply = toolApplyService.getInfoByBpmcId(tTool.getProcInstId());
|
||||||
|
toolApply.setRecordStatus(tTool.getRecordStatus());
|
||||||
|
toolApply.setEndTime(DateUtils.getNowDate());
|
||||||
|
toolApplyService.updateToolApply(toolApply);
|
||||||
|
}
|
||||||
toolService.updateTool(tool);
|
toolService.updateTool(tool);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,167 +0,0 @@
|
|||||||
package com.rzdata.web.controller.tool;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import cn.hutool.core.util.BooleanUtil;
|
|
||||||
import cn.hutool.core.util.IdUtil;
|
|
||||||
import com.blueland.bpmclient.model.ProcessInstanceModel;
|
|
||||||
import com.rzdata.common.enums.RecordStatusEnum;
|
|
||||||
import com.rzdata.common.utils.DateUtils;
|
|
||||||
import com.rzdata.common.utils.StringUtils;
|
|
||||||
import com.rzdata.web.domain.Tool;
|
|
||||||
import com.rzdata.web.service.IUseApplyItemService;
|
|
||||||
import com.rzdata.web.service.WorkflowService;
|
|
||||||
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.rzdata.common.annotation.Log;
|
|
||||||
import com.rzdata.common.core.controller.BaseController;
|
|
||||||
import com.rzdata.common.core.domain.AjaxResult;
|
|
||||||
import com.rzdata.common.enums.BusinessType;
|
|
||||||
import com.rzdata.web.domain.UseApply;
|
|
||||||
import com.rzdata.web.service.IUseApplyService;
|
|
||||||
import com.rzdata.common.utils.poi.ExcelUtil;
|
|
||||||
import com.rzdata.common.core.page.TableDataInfo;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 使用申请Controller
|
|
||||||
*
|
|
||||||
* @author ja
|
|
||||||
* @date 2024-08-21
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/use/apply")
|
|
||||||
public class UseApplyController extends BaseController
|
|
||||||
{
|
|
||||||
@Autowired
|
|
||||||
private IUseApplyService useApplyService;
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private WorkflowService workflowService;
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private IUseApplyItemService useApplyItemService;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询使用申请列表
|
|
||||||
*/
|
|
||||||
@PreAuthorize("@ss.hasPermi('system:apply:list')")
|
|
||||||
@GetMapping("/list")
|
|
||||||
public TableDataInfo list(UseApply useApply)
|
|
||||||
{
|
|
||||||
startPage();
|
|
||||||
List<UseApply> list = useApplyService.selectUseApplyList(useApply);
|
|
||||||
return getDataTable(list);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取工具信息详细信息
|
|
||||||
*/
|
|
||||||
@GetMapping(value = "/bpmc/{bpmcId}")
|
|
||||||
public AjaxResult getInfoByBpmcId(@PathVariable("bpmcId") String bpmcId)
|
|
||||||
{
|
|
||||||
return success(useApplyService.getInfoByBpmcId(bpmcId));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出使用申请列表
|
|
||||||
*/
|
|
||||||
@PreAuthorize("@ss.hasPermi('system:apply:export')")
|
|
||||||
@Log(title = "使用申请", businessType = BusinessType.EXPORT)
|
|
||||||
@PostMapping("/export")
|
|
||||||
public void export(HttpServletResponse response, UseApply useApply)
|
|
||||||
{
|
|
||||||
List<UseApply> list = useApplyService.selectUseApplyList(useApply);
|
|
||||||
ExcelUtil<UseApply> util = new ExcelUtil<UseApply>(UseApply.class);
|
|
||||||
util.exportExcel(response, list, "使用申请数据");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取使用申请详细信息
|
|
||||||
*/
|
|
||||||
@PreAuthorize("@ss.hasPermi('system:apply:query')")
|
|
||||||
@GetMapping(value = "/{id}")
|
|
||||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
|
||||||
{
|
|
||||||
return success(useApplyService.selectUseApplyById(id));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增使用申请
|
|
||||||
*/
|
|
||||||
@Log(title = "使用申请", businessType = BusinessType.INSERT)
|
|
||||||
@PostMapping
|
|
||||||
public AjaxResult add(@RequestBody UseApply useApply)
|
|
||||||
{
|
|
||||||
boolean add = false;
|
|
||||||
if (StringUtils.isEmpty(useApply.getId())) {
|
|
||||||
useApply.setId(IdUtil.simpleUUID());
|
|
||||||
add = true;
|
|
||||||
}
|
|
||||||
ProcessInstanceModel processInstanceModel = null;
|
|
||||||
try {
|
|
||||||
if(StringUtils.equals(useApply.getRecordStatus(), RecordStatusEnum.DRAFT.getCode())){
|
|
||||||
processInstanceModel = workflowService.saveExecute(useApply.getBpmClientInputModel(), useApply.getId());
|
|
||||||
}else if (StringUtils.equals(useApply.getRecordStatus(), RecordStatusEnum.CANCEL.getCode())){
|
|
||||||
processInstanceModel = workflowService.cancelExecute(useApply.getBpmClientInputModel(), useApply.getId());
|
|
||||||
}else{
|
|
||||||
processInstanceModel = workflowService.nextExecute(useApply.getBpmClientInputModel(), useApply.getId());
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
if (processInstanceModel!=null&&StringUtils.isNotEmpty(processInstanceModel.getProcInstId())) {
|
|
||||||
if (add) {
|
|
||||||
useApply.setProcInstId(processInstanceModel.getProcInstId());
|
|
||||||
useApplyService.insertUseApply(useApply);
|
|
||||||
useApplyItemService.updateItemList(useApply.getItemList(),useApply.getId());
|
|
||||||
}else if (BooleanUtil.isTrue(useApply.getEditStatus())){
|
|
||||||
useApplyService.updateUseApply(useApply);
|
|
||||||
useApplyItemService.updateItemList(useApply.getItemList(),useApply.getId());
|
|
||||||
}else {
|
|
||||||
UseApply updateStatus = new UseApply();
|
|
||||||
updateStatus.setId(useApply.getId());
|
|
||||||
updateStatus.setRecordStatus(useApply.getRecordStatus());
|
|
||||||
useApplyService.updateUseApply(updateStatus);
|
|
||||||
}
|
|
||||||
//办结
|
|
||||||
if(RecordStatusEnum.DONE.getCode().equals(useApply)){
|
|
||||||
//给消息中心发送消息
|
|
||||||
useApplyService.sendTzMessage(useApply);
|
|
||||||
}
|
|
||||||
return AjaxResult.success("操作成功",processInstanceModel);
|
|
||||||
}else {
|
|
||||||
return AjaxResult.error();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改使用申请
|
|
||||||
*/
|
|
||||||
@Log(title = "使用申请", businessType = BusinessType.UPDATE)
|
|
||||||
@PostMapping("/edit")
|
|
||||||
public AjaxResult edit(@RequestBody UseApply useApply)
|
|
||||||
{
|
|
||||||
return toAjax(useApplyService.updateUseApply(useApply));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除使用申请
|
|
||||||
*/
|
|
||||||
@PreAuthorize("@ss.hasPermi('system:apply:remove')")
|
|
||||||
@Log(title = "使用申请", businessType = BusinessType.DELETE)
|
|
||||||
@DeleteMapping("/{ids}")
|
|
||||||
public AjaxResult remove(@PathVariable String[] ids)
|
|
||||||
{
|
|
||||||
return toAjax(useApplyService.deleteUseApplyByIds(ids));
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,10 +1,12 @@
|
|||||||
package com.rzdata.web.domain;
|
package com.rzdata.web.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.rzdata.common.annotation.Excel;
|
import com.rzdata.common.annotation.Excel;
|
||||||
import com.rzdata.common.core.domain.BaseEntity;
|
import com.rzdata.common.core.domain.BaseEntity;
|
||||||
import com.rzdata.web.domain.bo.BpmClientInputModelBo;
|
import com.rzdata.web.domain.bo.BpmClientInputModelBo;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -14,7 +16,7 @@ import java.util.List;
|
|||||||
* @date 2024-08-21
|
* @date 2024-08-21
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class UseApply extends BaseEntity
|
public class ToolApply extends BaseEntity
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@ -25,6 +27,15 @@ public class UseApply extends BaseEntity
|
|||||||
@Excel(name = "申请人id")
|
@Excel(name = "申请人id")
|
||||||
private String userId;
|
private String userId;
|
||||||
|
|
||||||
|
@Excel(name = "工具ID")
|
||||||
|
private String toolId;
|
||||||
|
|
||||||
|
@Excel(name = "流程标题")
|
||||||
|
private String procTitle;
|
||||||
|
|
||||||
|
@Excel(name = "申请类型")
|
||||||
|
private String applyType;
|
||||||
|
|
||||||
@Excel(name = "申请人名称")
|
@Excel(name = "申请人名称")
|
||||||
private String nickName;
|
private String nickName;
|
||||||
|
|
||||||
@ -39,6 +50,9 @@ public class UseApply extends BaseEntity
|
|||||||
@Excel(name = "申请理由")
|
@Excel(name = "申请理由")
|
||||||
private String reason;
|
private String reason;
|
||||||
|
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date endTime;
|
||||||
|
|
||||||
private BpmClientInputModelBo bpmClientInputModel;
|
private BpmClientInputModelBo bpmClientInputModel;
|
||||||
|
|
||||||
private String recordStatus;
|
private String recordStatus;
|
@ -1,17 +1,17 @@
|
|||||||
package com.rzdata.web.mapper;
|
package com.rzdata.web.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import com.rzdata.web.domain.ToolApply;
|
||||||
import com.rzdata.web.domain.UseApply;
|
|
||||||
import com.rzdata.web.domain.Tool;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 使用申请Mapper接口
|
* 使用申请Mapper接口
|
||||||
*
|
*
|
||||||
* @author ja
|
* @author ja
|
||||||
* @date 2024-08-21
|
* @date 2024-08-21
|
||||||
*/
|
*/
|
||||||
public interface UseApplyMapper
|
public interface ToolApplyMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询使用申请
|
* 查询使用申请
|
||||||
@ -19,33 +19,33 @@ public interface UseApplyMapper
|
|||||||
* @param id 使用申请主键
|
* @param id 使用申请主键
|
||||||
* @return 使用申请
|
* @return 使用申请
|
||||||
*/
|
*/
|
||||||
public UseApply selectUseApplyById(String id);
|
public ToolApply selectToolApplyById(String id);
|
||||||
|
|
||||||
UseApply getInfoByBpmcId(String bpmcId);
|
ToolApply getInfoByBpmcId(String bpmcId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询使用申请列表
|
* 查询使用申请列表
|
||||||
*
|
*
|
||||||
* @param useApply 使用申请
|
* @param toolApply 使用申请
|
||||||
* @return 使用申请集合
|
* @return 使用申请集合
|
||||||
*/
|
*/
|
||||||
public List<UseApply> selectUseApplyList(UseApply useApply);
|
public List<ToolApply> selectToolApplyList(ToolApply toolApply);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增使用申请
|
* 新增使用申请
|
||||||
*
|
*
|
||||||
* @param useApply 使用申请
|
* @param toolApply 使用申请
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertUseApply(UseApply useApply);
|
public int insertToolApply(ToolApply toolApply);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改使用申请
|
* 修改使用申请
|
||||||
*
|
*
|
||||||
* @param useApply 使用申请
|
* @param toolApply 使用申请
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateUseApply(UseApply useApply);
|
public int updateToolApply(ToolApply toolApply);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除使用申请
|
* 删除使用申请
|
||||||
@ -53,7 +53,7 @@ public interface UseApplyMapper
|
|||||||
* @param id 使用申请主键
|
* @param id 使用申请主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUseApplyById(String id);
|
public int deleteToolApplyById(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除使用申请
|
* 批量删除使用申请
|
||||||
@ -61,7 +61,7 @@ public interface UseApplyMapper
|
|||||||
* @param ids 需要删除的数据主键集合
|
* @param ids 需要删除的数据主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUseApplyByIds(String[] ids);
|
public int deleteToolApplyByIds(String[] ids);
|
||||||
|
|
||||||
int checkUseApply(@Param("toolId") String toolId, @Param("userId") String userId);
|
int checkToolApply(@Param("toolId") String toolId, @Param("userId") String userId);
|
||||||
}
|
}
|
@ -1,8 +1,7 @@
|
|||||||
package com.rzdata.web.service;
|
package com.rzdata.web.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.rzdata.web.domain.UseApply;
|
import com.rzdata.web.domain.ToolApply;
|
||||||
import com.rzdata.web.domain.Tool;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 使用申请Service接口
|
* 使用申请Service接口
|
||||||
@ -10,7 +9,7 @@ import com.rzdata.web.domain.Tool;
|
|||||||
* @author ja
|
* @author ja
|
||||||
* @date 2024-08-21
|
* @date 2024-08-21
|
||||||
*/
|
*/
|
||||||
public interface IUseApplyService
|
public interface IToolApplyService
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询使用申请
|
* 查询使用申请
|
||||||
@ -18,33 +17,33 @@ public interface IUseApplyService
|
|||||||
* @param id 使用申请主键
|
* @param id 使用申请主键
|
||||||
* @return 使用申请
|
* @return 使用申请
|
||||||
*/
|
*/
|
||||||
public UseApply selectUseApplyById(String id);
|
public ToolApply selectToolApplyById(String id);
|
||||||
|
|
||||||
UseApply getInfoByBpmcId(String bpmcId);
|
ToolApply getInfoByBpmcId(String bpmcId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询使用申请列表
|
* 查询使用申请列表
|
||||||
*
|
*
|
||||||
* @param useApply 使用申请
|
* @param toolApply 使用申请
|
||||||
* @return 使用申请集合
|
* @return 使用申请集合
|
||||||
*/
|
*/
|
||||||
public List<UseApply> selectUseApplyList(UseApply useApply);
|
public List<ToolApply> selectToolApplyList(ToolApply toolApply);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增使用申请
|
* 新增使用申请
|
||||||
*
|
*
|
||||||
* @param useApply 使用申请
|
* @param toolApply 使用申请
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertUseApply(UseApply useApply);
|
public int insertToolApply(ToolApply toolApply);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改使用申请
|
* 修改使用申请
|
||||||
*
|
*
|
||||||
* @param useApply 使用申请
|
* @param toolApply 使用申请
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateUseApply(UseApply useApply);
|
public int updateToolApply(ToolApply toolApply);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除使用申请
|
* 批量删除使用申请
|
||||||
@ -52,7 +51,7 @@ public interface IUseApplyService
|
|||||||
* @param ids 需要删除的使用申请主键集合
|
* @param ids 需要删除的使用申请主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUseApplyByIds(String[] ids);
|
public int deleteToolApplyByIds(String[] ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除使用申请信息
|
* 删除使用申请信息
|
||||||
@ -60,9 +59,9 @@ public interface IUseApplyService
|
|||||||
* @param id 使用申请主键
|
* @param id 使用申请主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUseApplyById(String id);
|
public int deleteToolApplyById(String id);
|
||||||
|
|
||||||
boolean checkUseApply(String toolId, String userId);
|
boolean checkToolApply(String toolId, String userId);
|
||||||
|
|
||||||
void sendTzMessage(UseApply useApply);
|
void sendTzMessage(ToolApply toolApply);
|
||||||
}
|
}
|
@ -77,6 +77,8 @@ public interface IToolService
|
|||||||
*/
|
*/
|
||||||
public void addDocAndAtt(Tool tool);
|
public void addDocAndAtt(Tool tool);
|
||||||
|
|
||||||
|
void recordToolApply(Tool tool);
|
||||||
|
|
||||||
void updateDocPushStatus(Tool tTool);
|
void updateDocPushStatus(Tool tTool);
|
||||||
|
|
||||||
void sendTzMessage(Tool tTool);
|
void sendTzMessage(Tool tTool);
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package com.rzdata.web.service;
|
package com.rzdata.web.service;
|
||||||
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.util.IdUtil;
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.hutool.json.JSONUtil;
|
import cn.hutool.json.JSONUtil;
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
@ -10,10 +8,12 @@ import com.alibaba.fastjson2.JSONArray;
|
|||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.blueland.bpmclient.BpmClient;
|
import com.blueland.bpmclient.BpmClient;
|
||||||
import com.blueland.bpmclient.model.*;
|
import com.blueland.bpmclient.model.*;
|
||||||
|
import com.rzdata.common.core.domain.entity.SysUser;
|
||||||
import com.rzdata.common.utils.SecurityUtils;
|
import com.rzdata.common.utils.SecurityUtils;
|
||||||
import com.rzdata.common.utils.StringUtils;
|
import com.rzdata.common.utils.StringUtils;
|
||||||
import com.rzdata.system.service.ISysConfigService;
|
import com.rzdata.system.service.ISysConfigService;
|
||||||
import com.rzdata.system.service.ISysDeptService;
|
import com.rzdata.system.service.ISysDeptService;
|
||||||
|
import com.rzdata.system.service.ISysUserService;
|
||||||
import com.rzdata.web.core.config.BpmcConfig;
|
import com.rzdata.web.core.config.BpmcConfig;
|
||||||
import com.rzdata.web.domain.WorkFlowInfo;
|
import com.rzdata.web.domain.WorkFlowInfo;
|
||||||
import com.rzdata.web.domain.bo.BpmClientInputModelBo;
|
import com.rzdata.web.domain.bo.BpmClientInputModelBo;
|
||||||
@ -23,9 +23,10 @@ import org.apache.commons.compress.utils.Lists;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.rmi.ServerException;
|
import java.util.ArrayList;
|
||||||
import java.util.*;
|
import java.util.HashMap;
|
||||||
import java.util.stream.Collectors;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service("workflowService")
|
@Service("workflowService")
|
||||||
@ -48,6 +49,9 @@ public class WorkflowService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
ISysDeptService sysDeptService;
|
ISysDeptService sysDeptService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
ISysUserService sysUserService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
IWorkflowLogService iWorkflowLogService;
|
IWorkflowLogService iWorkflowLogService;
|
||||||
private final static String CUR_ACT_DEF_KEY = "curActDef";
|
private final static String CUR_ACT_DEF_KEY = "curActDef";
|
||||||
@ -359,6 +363,16 @@ public class WorkflowService {
|
|||||||
pageVo.setPageNumber(pageResultModel.getThisPageNumber());
|
pageVo.setPageNumber(pageResultModel.getThisPageNumber());
|
||||||
pageVo.setTotalCount(pageResultModel.getTotalCount());
|
pageVo.setTotalCount(pageResultModel.getTotalCount());
|
||||||
List<WorkFlowInfo> workFlowInfos = JSONUtil.toList(JSONUtil.toJsonStr(pageResultModel.getResult()), WorkFlowInfo.class);
|
List<WorkFlowInfo> workFlowInfos = JSONUtil.toList(JSONUtil.toJsonStr(pageResultModel.getResult()), WorkFlowInfo.class);
|
||||||
|
for(WorkFlowInfo workFlowInfo : workFlowInfos){
|
||||||
|
SysUser startSysUser = sysUserService.selectUserByUserName(workFlowInfo.getStartUserId());
|
||||||
|
if(null != startSysUser){
|
||||||
|
workFlowInfo.setStartUserName(startSysUser.getUserName());
|
||||||
|
}
|
||||||
|
SysUser sendSysUser = sysUserService.selectUserByUserName(workFlowInfo.getSendUserId());
|
||||||
|
if(null != sendSysUser){
|
||||||
|
workFlowInfo.setSendUserName(sendSysUser.getUserName());
|
||||||
|
}
|
||||||
|
}
|
||||||
pageVo.setResult(workFlowInfos);
|
pageVo.setResult(workFlowInfos);
|
||||||
return pageVo;
|
return pageVo;
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
@ -8,8 +8,6 @@ import cn.hutool.core.util.StrUtil;
|
|||||||
import com.rzdata.common.constant.Constants;
|
import com.rzdata.common.constant.Constants;
|
||||||
import com.rzdata.common.core.domain.entity.SysDictData;
|
import com.rzdata.common.core.domain.entity.SysDictData;
|
||||||
import com.rzdata.common.core.domain.entity.SysUser;
|
import com.rzdata.common.core.domain.entity.SysUser;
|
||||||
import com.rzdata.common.core.domain.model.LoginUser;
|
|
||||||
import com.rzdata.common.enums.RecordStatusEnum;
|
|
||||||
import com.rzdata.common.utils.DateUtils;
|
import com.rzdata.common.utils.DateUtils;
|
||||||
import com.rzdata.common.utils.SecurityUtils;
|
import com.rzdata.common.utils.SecurityUtils;
|
||||||
import com.rzdata.system.service.ISysDictTypeService;
|
import com.rzdata.system.service.ISysDictTypeService;
|
||||||
@ -18,7 +16,7 @@ import com.rzdata.web.domain.Document;
|
|||||||
import com.rzdata.web.domain.Tool;
|
import com.rzdata.web.domain.Tool;
|
||||||
import com.rzdata.web.mapper.DocumentMapper;
|
import com.rzdata.web.mapper.DocumentMapper;
|
||||||
import com.rzdata.web.service.IDocumentService;
|
import com.rzdata.web.service.IDocumentService;
|
||||||
import com.rzdata.web.service.IUseApplyService;
|
import com.rzdata.web.service.IToolApplyService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@ -43,7 +41,7 @@ public class DocumentServiceImpl implements IDocumentService
|
|||||||
private ToolServiceImpl toolService;
|
private ToolServiceImpl toolService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IUseApplyService iUseApplyService;
|
private IToolApplyService iUseApplyService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISysDictTypeService sysDictTypeService;
|
private ISysDictTypeService sysDictTypeService;
|
||||||
@ -115,7 +113,7 @@ public class DocumentServiceImpl implements IDocumentService
|
|||||||
boolean downStatus = false;
|
boolean downStatus = false;
|
||||||
if(SecurityUtils.hasPermi(Constants.DOC_DOWNLOAD_PERMISSION) || userId.equals(dc.getCreateById()) || SysUser.isAdmin(SecurityUtils.getUserId())){
|
if(SecurityUtils.hasPermi(Constants.DOC_DOWNLOAD_PERMISSION) || userId.equals(dc.getCreateById()) || SysUser.isAdmin(SecurityUtils.getUserId())){
|
||||||
downStatus = true;
|
downStatus = true;
|
||||||
}else if(StrUtil.isNotBlank(dc.getToolId()) && iUseApplyService.checkUseApply(dc.getToolId(),userId)){
|
}else if(StrUtil.isNotBlank(dc.getToolId()) && iUseApplyService.checkToolApply(dc.getToolId(),userId)){
|
||||||
downStatus = true;
|
downStatus = true;
|
||||||
}
|
}
|
||||||
dc.setDownloadStatus(downStatus);
|
dc.setDownloadStatus(downStatus);
|
||||||
|
@ -5,20 +5,17 @@ import com.rzdata.common.core.domain.entity.SysUser;
|
|||||||
import com.rzdata.common.utils.DateUtils;
|
import com.rzdata.common.utils.DateUtils;
|
||||||
import com.rzdata.common.utils.SecurityUtils;
|
import com.rzdata.common.utils.SecurityUtils;
|
||||||
import com.rzdata.system.service.ISysUserService;
|
import com.rzdata.system.service.ISysUserService;
|
||||||
|
import com.rzdata.web.domain.ToolApply;
|
||||||
import com.rzdata.web.domain.TzMessage;
|
import com.rzdata.web.domain.TzMessage;
|
||||||
import com.rzdata.web.domain.UseApply;
|
|
||||||
import com.rzdata.web.domain.UseApplyItem;
|
import com.rzdata.web.domain.UseApplyItem;
|
||||||
import com.rzdata.web.mapper.UseApplyMapper;
|
import com.rzdata.web.mapper.ToolApplyMapper;
|
||||||
|
import com.rzdata.web.service.IToolApplyService;
|
||||||
import com.rzdata.web.service.ITzMessageService;
|
import com.rzdata.web.service.ITzMessageService;
|
||||||
import com.rzdata.web.service.IUseApplyService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 使用申请Service业务层处理
|
* 使用申请Service业务层处理
|
||||||
@ -28,10 +25,10 @@ import java.util.stream.Collectors;
|
|||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
public class UseApplyServiceImpl implements IUseApplyService
|
public class ToolApplyServiceImpl implements IToolApplyService
|
||||||
{
|
{
|
||||||
@Autowired
|
@Autowired
|
||||||
private UseApplyMapper useApplyMapper;
|
private ToolApplyMapper toolApplyMapper;
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -52,53 +49,53 @@ public class UseApplyServiceImpl implements IUseApplyService
|
|||||||
* @return 使用申请
|
* @return 使用申请
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public UseApply selectUseApplyById(String id)
|
public ToolApply selectToolApplyById(String id)
|
||||||
{
|
{
|
||||||
return useApplyMapper.selectUseApplyById(id);
|
return toolApplyMapper.selectToolApplyById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UseApply getInfoByBpmcId(String bpmcId){
|
public ToolApply getInfoByBpmcId(String bpmcId){
|
||||||
return useApplyMapper.getInfoByBpmcId(bpmcId);
|
return toolApplyMapper.getInfoByBpmcId(bpmcId);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 查询使用申请列表
|
* 查询使用申请列表
|
||||||
*
|
*
|
||||||
* @param useApply 使用申请
|
* @param toolApply 使用申请
|
||||||
* @return 使用申请
|
* @return 使用申请
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<UseApply> selectUseApplyList(UseApply useApply)
|
public List<ToolApply> selectToolApplyList(ToolApply toolApply)
|
||||||
{
|
{
|
||||||
return useApplyMapper.selectUseApplyList(useApply);
|
return toolApplyMapper.selectToolApplyList(toolApply);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增使用申请
|
* 新增使用申请
|
||||||
*
|
*
|
||||||
* @param useApply 使用申请
|
* @param toolApply 使用申请
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int insertUseApply(UseApply useApply)
|
public int insertToolApply(ToolApply toolApply)
|
||||||
{
|
{
|
||||||
useApply.setCreateBy(SecurityUtils.getUserId().toString());
|
toolApply.setCreateBy(SecurityUtils.getUserId().toString());
|
||||||
useApply.setCreateTime(DateUtils.getNowDate());
|
toolApply.setCreateTime(DateUtils.getNowDate());
|
||||||
return useApplyMapper.insertUseApply(useApply);
|
return toolApplyMapper.insertToolApply(toolApply);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改使用申请
|
* 修改使用申请
|
||||||
*
|
*
|
||||||
* @param useApply 使用申请
|
* @param toolApply 使用申请
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int updateUseApply(UseApply useApply)
|
public int updateToolApply(ToolApply toolApply)
|
||||||
{
|
{
|
||||||
useApply.setUpdateBy(SecurityUtils.getUserId().toString());
|
toolApply.setUpdateBy(SecurityUtils.getUserId().toString());
|
||||||
useApply.setUpdateTime(DateUtils.getNowDate());
|
toolApply.setUpdateTime(DateUtils.getNowDate());
|
||||||
return useApplyMapper.updateUseApply(useApply);
|
return toolApplyMapper.updateToolApply(toolApply);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -108,9 +105,9 @@ public class UseApplyServiceImpl implements IUseApplyService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int deleteUseApplyByIds(String[] ids)
|
public int deleteToolApplyByIds(String[] ids)
|
||||||
{
|
{
|
||||||
return useApplyMapper.deleteUseApplyByIds(ids);
|
return toolApplyMapper.deleteToolApplyByIds(ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -120,21 +117,21 @@ public class UseApplyServiceImpl implements IUseApplyService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int deleteUseApplyById(String id)
|
public int deleteToolApplyById(String id)
|
||||||
{
|
{
|
||||||
return useApplyMapper.deleteUseApplyById(id);
|
return toolApplyMapper.deleteToolApplyById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean checkUseApply(String toolId, String userId){
|
public boolean checkToolApply(String toolId, String userId){
|
||||||
return useApplyMapper.checkUseApply(toolId, userId)>0;
|
return toolApplyMapper.checkToolApply(toolId, userId)>0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendTzMessage(UseApply useApply) {
|
public void sendTzMessage(ToolApply toolApply) {
|
||||||
try{
|
try{
|
||||||
SysUser sysUser = sysUserService.selectUserById(Long.valueOf(useApply.getUserId()));
|
SysUser sysUser = sysUserService.selectUserById(Long.valueOf(toolApply.getUserId()));
|
||||||
|
|
||||||
UseApplyItem useApplyItem = useApply.getItemList().get(0);
|
UseApplyItem useApplyItem = toolApply.getItemList().get(0);
|
||||||
String toolName = useApplyItem.getToolName();
|
String toolName = useApplyItem.getToolName();
|
||||||
|
|
||||||
String content = toolName + "下载权限已通过";
|
String content = toolName + "下载权限已通过";
|
@ -4,24 +4,25 @@ import cn.hutool.core.collection.CollUtil;
|
|||||||
import cn.hutool.core.lang.Snowflake;
|
import cn.hutool.core.lang.Snowflake;
|
||||||
import cn.hutool.core.util.BooleanUtil;
|
import cn.hutool.core.util.BooleanUtil;
|
||||||
import cn.hutool.core.util.IdUtil;
|
import cn.hutool.core.util.IdUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.blueland.bpmclient.model.BpmClientInputModel;
|
||||||
import com.rzdata.common.annotation.DataScope;
|
import com.rzdata.common.annotation.DataScope;
|
||||||
import com.rzdata.common.constant.Constants;
|
import com.rzdata.common.constant.Constants;
|
||||||
|
import com.rzdata.common.core.domain.entity.SysDept;
|
||||||
import com.rzdata.common.core.domain.entity.SysDictData;
|
import com.rzdata.common.core.domain.entity.SysDictData;
|
||||||
import com.rzdata.common.core.domain.entity.SysUser;
|
import com.rzdata.common.core.domain.entity.SysUser;
|
||||||
import com.rzdata.common.utils.DateUtils;
|
import com.rzdata.common.utils.DateUtils;
|
||||||
import com.rzdata.common.utils.SecurityUtils;
|
import com.rzdata.common.utils.SecurityUtils;
|
||||||
import com.rzdata.system.service.ISysDictDataService;
|
import com.rzdata.system.service.ISysDeptService;
|
||||||
import com.rzdata.system.service.ISysDictTypeService;
|
import com.rzdata.system.service.ISysDictTypeService;
|
||||||
import com.rzdata.system.service.ISysUserService;
|
import com.rzdata.system.service.ISysUserService;
|
||||||
import com.rzdata.web.domain.Document;
|
import com.rzdata.web.domain.Document;
|
||||||
import com.rzdata.web.domain.Tool;
|
import com.rzdata.web.domain.Tool;
|
||||||
|
import com.rzdata.web.domain.ToolApply;
|
||||||
import com.rzdata.web.domain.TzMessage;
|
import com.rzdata.web.domain.TzMessage;
|
||||||
import com.rzdata.web.domain.UseApplyItem;
|
import com.rzdata.web.domain.bo.BpmClientInputModelBo;
|
||||||
import com.rzdata.web.mapper.ToolMapper;
|
import com.rzdata.web.mapper.ToolMapper;
|
||||||
import com.rzdata.web.service.IAttachmentService;
|
import com.rzdata.web.service.*;
|
||||||
import com.rzdata.web.service.IDocumentService;
|
|
||||||
import com.rzdata.web.service.IToolService;
|
|
||||||
import com.rzdata.web.service.ITzMessageService;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@ -68,6 +69,12 @@ public class ToolServiceImpl implements IToolService
|
|||||||
private ISysDictTypeService sysDictTypeService;
|
private ISysDictTypeService sysDictTypeService;
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IToolApplyService toolApplyService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ISysDeptService sysDeptService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询工具信息
|
* 查询工具信息
|
||||||
*
|
*
|
||||||
@ -167,6 +174,34 @@ public class ToolServiceImpl implements IToolService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public void recordToolApply(Tool tool) {
|
||||||
|
ToolApply toolApply = new ToolApply();
|
||||||
|
toolApply.setId(IdUtil.simpleUUID());
|
||||||
|
toolApply.setApplyType(Constants.TOOL_APPLY_TYPE_PUBLISH);
|
||||||
|
toolApply.setToolId(tool.getToolId());
|
||||||
|
toolApply.setDeptId(String.valueOf(SecurityUtils.getDeptId()));
|
||||||
|
toolApply.setProcInstId(tool.getProcInstId());
|
||||||
|
toolApply.setRecordStatus(tool.getRecordStatus());
|
||||||
|
toolApply.setUserId(String.valueOf(SecurityUtils.getUserId()));
|
||||||
|
|
||||||
|
BpmClientInputModelBo bpmClientInputModelBo = tool.getBpmClientInputModel();
|
||||||
|
if(null != bpmClientInputModelBo){
|
||||||
|
BpmClientInputModel bpmClientInputModel = bpmClientInputModelBo.getModel();
|
||||||
|
toolApply.setProcTitle(StrUtil.isNotEmpty(bpmClientInputModel.getWf_procTitle()) ? bpmClientInputModel.getWf_procTitle() : "");
|
||||||
|
}
|
||||||
|
SysDept sysDept = sysDeptService.selectDeptById(SecurityUtils.getDeptId());
|
||||||
|
if(null != sysDept){
|
||||||
|
toolApply.setDeptName(sysDept.getDeptName());
|
||||||
|
}
|
||||||
|
SysUser sysUser = sysUserService.selectUserById(SecurityUtils.getUserId());
|
||||||
|
if(null != sysUser){
|
||||||
|
toolApply.setNickName(sysUser.getNickName());
|
||||||
|
}
|
||||||
|
toolApplyService.insertToolApply(toolApply);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除工具信息
|
* 批量删除工具信息
|
||||||
*
|
*
|
||||||
|
@ -136,5 +136,5 @@ application:
|
|||||||
|
|
||||||
bpmc:
|
bpmc:
|
||||||
tenantId: TLTC_SYS
|
tenantId: TLTC_SYS
|
||||||
serviceUrl: http://192.168.2.6:8081/ebpm-process-rest/
|
serviceUrl: http://124.223.108.21:9081/ebpm-process-rest/
|
||||||
uniteWorkUrl: http://localhost/tool-tech/workflowRouter
|
uniteWorkUrl: http://localhost/tool-tech/workflowRouter
|
||||||
|
@ -2,11 +2,14 @@
|
|||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.rzdata.web.mapper.UseApplyMapper">
|
<mapper namespace="com.rzdata.web.mapper.ToolApplyMapper">
|
||||||
|
|
||||||
<resultMap type="UseApply" id="UseApplyResult">
|
<resultMap type="ToolApply" id="ToolApplyResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="userId" column="user_id" />
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="toolId" column="tool_id" />
|
||||||
|
<result property="procTitle" column="proc_title" />
|
||||||
|
<result property="applyType" column="apply_type" />
|
||||||
<result property="nickName" column="nick_name" />
|
<result property="nickName" column="nick_name" />
|
||||||
<result property="deptId" column="dept_id" />
|
<result property="deptId" column="dept_id" />
|
||||||
<result property="deptName" column="dept_name" />
|
<result property="deptName" column="dept_name" />
|
||||||
@ -16,37 +19,51 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="updateBy" column="update_by" />
|
<result property="updateBy" column="update_by" />
|
||||||
<result property="updateTime" column="update_time" />
|
<result property="updateTime" column="update_time" />
|
||||||
<result property="procInstId" column="proc_inst_id" />
|
<result property="procInstId" column="proc_inst_id" />
|
||||||
|
<result property="endTime" column="end_time" />
|
||||||
<result property="recordStatus" column="record_status" />
|
<result property="recordStatus" column="record_status" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectUseApplyVo">
|
<sql id="selectToolApplyVo">
|
||||||
select id, user_id, nick_name, dept_id, dept_name, reason, create_by, create_time, update_by, update_time from t_use_apply
|
select id, user_id, nick_name, tool_id, apply_type, proc_title, proc_inst_id, end_time, dept_id, record_status, dept_name, reason, create_by, create_time, update_by, update_time from t_tool_apply
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectUseApplyList" parameterType="UseApply" resultMap="UseApplyResult">
|
<select id="selectToolApplyList" parameterType="ToolApply" resultMap="ToolApplyResult">
|
||||||
<include refid="selectUseApplyVo"/>
|
<include refid="selectToolApplyVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="userId != null and userId != ''"> and user_id like concat('%', #{userId}, '%')</if>
|
<if test="userId != null and userId != ''"> and user_id like concat('%', #{userId}, '%')</if>
|
||||||
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
|
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
|
||||||
|
<if test="applyType != null and applyType != ''"> and apply_type = #{applyType}</if>
|
||||||
<if test="reason != null and reason != ''"> and reason = #{reason}</if>
|
<if test="reason != null and reason != ''"> and reason = #{reason}</if>
|
||||||
|
<if test="recordStatus != null and recordStatus != ''"> and record_status = #{recordStatus}</if>
|
||||||
|
<if test="procTitle != null and procTitle != ''"> and proc_title like concat('%', #{procTitle}, '%')</if>
|
||||||
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
AND date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectUseApplyById" parameterType="String" resultMap="UseApplyResult">
|
<select id="selectToolApplyById" parameterType="String" resultMap="ToolApplyResult">
|
||||||
<include refid="selectUseApplyVo"/>
|
<include refid="selectToolApplyVo"/>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getInfoByBpmcId" parameterType="String" resultMap="UseApplyResult">
|
<select id="getInfoByBpmcId" parameterType="String" resultMap="ToolApplyResult">
|
||||||
<include refid="selectUseApplyVo"/>
|
<include refid="selectToolApplyVo"/>
|
||||||
where proc_inst_id = #{bpmcId}
|
where proc_inst_id = #{bpmcId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertUseApply" parameterType="UseApply">
|
<insert id="insertToolApply" parameterType="ToolApply">
|
||||||
insert into t_use_apply
|
insert into t_tool_apply
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
<if test="id != null">id,</if>
|
||||||
<if test="userId != null">user_id,</if>
|
<if test="userId != null">user_id,</if>
|
||||||
|
<if test="toolId != null">tool_id,</if>
|
||||||
|
<if test="procTitle != null">proc_title,</if>
|
||||||
|
<if test="applyType != null">apply_type,</if>
|
||||||
<if test="nickName != null">nick_name,</if>
|
<if test="nickName != null">nick_name,</if>
|
||||||
<if test="deptId != null">dept_id,</if>
|
<if test="deptId != null">dept_id,</if>
|
||||||
<if test="deptName != null">dept_name,</if>
|
<if test="deptName != null">dept_name,</if>
|
||||||
@ -56,11 +73,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="updateBy != null">update_by,</if>
|
<if test="updateBy != null">update_by,</if>
|
||||||
<if test="updateTime != null">update_time,</if>
|
<if test="updateTime != null">update_time,</if>
|
||||||
<if test="procInstId != null">proc_inst_id,</if>
|
<if test="procInstId != null">proc_inst_id,</if>
|
||||||
|
<if test="endTime != null">end_time,</if>
|
||||||
<if test="recordStatus != null">record_status,</if>
|
<if test="recordStatus != null">record_status,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">#{id},</if>
|
<if test="id != null">#{id},</if>
|
||||||
<if test="userId != null">#{userId},</if>
|
<if test="userId != null">#{userId},</if>
|
||||||
|
<if test="toolId != null">#{toolId},</if>
|
||||||
|
<if test="procTitle != null">#{procTitle},</if>
|
||||||
|
<if test="applyType != null">#{applyType},</if>
|
||||||
<if test="nickName != null">#{nickName},</if>
|
<if test="nickName != null">#{nickName},</if>
|
||||||
<if test="deptId != null">#{deptId},</if>
|
<if test="deptId != null">#{deptId},</if>
|
||||||
<if test="deptName != null">#{deptName},</if>
|
<if test="deptName != null">#{deptName},</if>
|
||||||
@ -69,16 +90,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="createTime != null">#{createTime},</if>
|
<if test="createTime != null">#{createTime},</if>
|
||||||
<if test="updateBy != null">#{updateBy},</if>
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
<if test="updateTime != null">#{updateTime},</if>
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="endTime != null">#{endTime},</if>
|
||||||
<if test="procInstId != null">#{procInstId},</if>
|
<if test="procInstId != null">#{procInstId},</if>
|
||||||
<if test="recordStatus != null">#{recordStatus},</if>
|
<if test="recordStatus != null">#{recordStatus},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateUseApply" parameterType="UseApply">
|
<update id="updateToolApply" parameterType="ToolApply">
|
||||||
update t_use_apply
|
update t_tool_apply
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="userId != null">user_id = #{userId},</if>
|
<if test="userId != null">user_id = #{userId},</if>
|
||||||
<if test="nickName != null">nick_name = #{nickName},</if>
|
<if test="nickName != null">nick_name = #{nickName},</if>
|
||||||
|
<if test="toolId != null">tool_id = #{toolId},</if>
|
||||||
|
<if test="procTitle != null">proc_title = #{procTitle},</if>
|
||||||
|
<if test="applyType != null">apply_type = #{applyType},</if>
|
||||||
<if test="deptId != null">dept_id = #{deptId},</if>
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||||
<if test="deptName != null">dept_name = #{deptName},</if>
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
||||||
<if test="reason != null">reason = #{reason},</if>
|
<if test="reason != null">reason = #{reason},</if>
|
||||||
@ -86,24 +111,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="createTime != null">create_time = #{createTime},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="endTime != null">end_time = #{endTime},</if>
|
||||||
<if test="recordStatus != null">record_status = #{recordStatus},</if>
|
<if test="recordStatus != null">record_status = #{recordStatus},</if>
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteUseApplyById" parameterType="String">
|
<delete id="deleteToolApplyById" parameterType="String">
|
||||||
delete from t_use_apply where id = #{id}
|
delete from t_tool_apply where id = #{id}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteUseApplyByIds" parameterType="String">
|
<delete id="deleteToolApplyByIds" parameterType="String">
|
||||||
delete from t_use_apply where id in
|
delete from t_tool_apply where id in
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="checkUseApply" resultType="int">
|
<select id="checkToolApply" resultType="int">
|
||||||
SELECT count(*) FROM `t_use_apply_item` uai
|
SELECT count(*) FROM `t_tool_apply_item` uai
|
||||||
left join `t_tool_apply` ua on uai.apply_id = ua.id
|
left join `t_tool_apply` ua on uai.apply_id = ua.id
|
||||||
WHERE ua.record_status = 'done'
|
WHERE ua.record_status = 'done'
|
||||||
and uai.tool_id = #{toolId}
|
and uai.tool_id = #{toolId}
|
@ -197,6 +197,16 @@ public class Constants
|
|||||||
public static final String STR_ZERO = "0";
|
public static final String STR_ZERO = "0";
|
||||||
public static final String STR_ONE = "1";
|
public static final String STR_ONE = "1";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 申请类型-发布申请
|
||||||
|
*/
|
||||||
|
public static final String TOOL_APPLY_TYPE_PUBLISH = "publish";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 申请类型-使用申请
|
||||||
|
*/
|
||||||
|
public static final String TOOL_APPLY_TYPE_USE = "use";
|
||||||
|
|
||||||
public static final String DOC_DOWNLOAD_PERMISSION = "document:download";
|
public static final String DOC_DOWNLOAD_PERMISSION = "document:download";
|
||||||
public static final String DOC_VIEW_PERMISSION = "document:query:data:all";
|
public static final String DOC_VIEW_PERMISSION = "document:query:data:all";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user