|
@@ -0,0 +1,49 @@
|
|
|
+package com.huyi.flowable.controller;
|
|
|
+
|
|
|
+import com.huyi.flowable.BaseResult;
|
|
|
+import com.huyi.flowable.mapper.CloudSupplyChainMapper;
|
|
|
+import org.flowable.engine.IdentityService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 查询是否配置流程审批
|
|
|
+ */
|
|
|
+@Controller
|
|
|
+@RequestMapping(value = "cloudSupplyChain")
|
|
|
+public class CloudSupplyChainController {
|
|
|
+ @Autowired
|
|
|
+ IdentityService identityService;
|
|
|
+ @Autowired
|
|
|
+ private CloudSupplyChainMapper cloudSupplyChainMapper;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询是否配置审批流程
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Transactional(rollbackFor=Exception.class)
|
|
|
+ @RequestMapping(value = "selectApproval")
|
|
|
+ @ResponseBody
|
|
|
+ public BaseResult selectApproval (@RequestParam("menuId") String menuId,
|
|
|
+ @RequestParam("companyId") String companyId) {
|
|
|
+ BaseResult baseResult = new BaseResult();
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
+ //菜单编号
|
|
|
+ map.put("menuId",menuId);
|
|
|
+ //公司编号
|
|
|
+ map.put("companyId",companyId);
|
|
|
+ List<Map<String, Object>> list = cloudSupplyChainMapper.selectApproval(map);
|
|
|
+ baseResult.setData(list);
|
|
|
+ return baseResult;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|