123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package com.fjhx.contract.controller;
- import com.fjhx.activiti.SubmitFlowCondition;
- import com.fjhx.contract.entity.Contract;
- import com.fjhx.contract.service.IContractFlowServiceV2;
- import org.springblade.common.constant.ApiConstant;
- import org.springblade.core.boot.ctrl.BladeController;
- import org.springblade.core.tool.api.R;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * 外销合同 - 流程
- */
- @RestController
- @RequestMapping(ApiConstant.Project.SAAS_BUSINESS_TRADEERP_REQUEST_PREFIX + "/contract/flow/v2")
- public class ContractFlowControllerV2 extends BladeController {
- @Autowired
- private IContractFlowServiceV2 iContractFlowServiceV2;
- /**
- * 开始流程
- *
- * @param contract
- * @return
- */
- @PostMapping(value = "/start")
- public R start(@RequestBody Contract contract) {
- iContractFlowServiceV2.start(contract);
- return R.success();
- }
- /**
- * 审核
- *
- * @param condition
- * @return
- */
- @PostMapping(value = "/examine")
- public R examine(@RequestBody SubmitFlowCondition condition) {
- iContractFlowServiceV2.examine(condition);
- return R.success();
- }
- /**
- * 删除流程
- *
- * @param entity
- * @return
- */
- @PostMapping(value = "/delete")
- public R delete(@RequestBody Contract entity) {
- iContractFlowServiceV2.delete(entity);
- return R.success();
- }
- }
|