| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Map<String, Object> approve() throws Exception { |
| | | // 发起通信 |
| | | Object returnObject = api.post("http://localhost:8888/api/common/approve?key=" + "businessExpenseApply", new HashMap<>()); |
| | | Object returnObject = api.post("http://localhost:8888/api/common/approve?key=" + "businessExpenseApply" + "&userId=" + SecurityUtils.getCurrentUserId(), new HashMap<>()); |
| | | // 查询处理 |
| | | return queryHandle(returnObject); |
| | | } |
| | |
| | | public void create(BusinessExpenseDto resources) throws Exception { |
| | | // 参数 |
| | | Map<String, Object> params = ObjectUtil.toObjectMap(resources); |
| | | params.put("approver", 1); |
| | | params.put("approver", "1,2,3,4,5"); |
| | | // 发起通信 |
| | | api.post("http://localhost:8888/api/common/run?key=" + "businessExpenseApply" + "&userId=" + SecurityUtils.getCurrentUserId(), params); |
| | | } |