流程+任务分发+报销功能完成
This commit is contained in:
@@ -69,6 +69,18 @@ public class SysOaClaimController extends BaseController {
|
||||
return R.ok(iSysOaClaimService.queryById(claimId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过实例id查询报销表单
|
||||
*
|
||||
* @param procInsId 主键
|
||||
*/
|
||||
@SaCheckPermission("system:oaClaim:query")
|
||||
@GetMapping("/process/{procInsId}")
|
||||
public R<SysOaClaimVo> getInfoByProcInsId(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String procInsId) {
|
||||
return R.ok(iSysOaClaimService.queryByProcInsId(procInsId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增差旅费报销
|
||||
*/
|
||||
|
||||
@@ -21,6 +21,7 @@ import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -211,11 +212,11 @@ public class WfProcessController extends BaseController {
|
||||
/**
|
||||
* 根据流程定义id启动流程实例
|
||||
*
|
||||
* @param variables 变量集合,json对象
|
||||
*/
|
||||
@SaCheckPermission("workflow:process:start")
|
||||
@PostMapping("/startClaim")
|
||||
public R<String> startClaim(@RequestBody Map<String, Object> variables) {
|
||||
public R<String> startClaim() {
|
||||
Map<String, Object> variables = new HashMap<String, Object>();
|
||||
String procInsId = processService.startClaim(variables);
|
||||
return R.ok("流程启动成功",procInsId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user