Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
2abbe8f1
Commit
2abbe8f1
authored
Dec 07, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 整改人
parent
68a5d751
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
WorkflowFeignService.java
.../boot/biz/common/workflow/feign/WorkflowFeignService.java
+9
-0
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+24
-0
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/workflow/feign/WorkflowFeignService.java
View file @
2abbe8f1
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.biz.common.workflow.feign;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.biz.common.workflow.feign;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
@@ -12,6 +13,9 @@ import java.text.ParseException;
...
@@ -12,6 +13,9 @@ import java.text.ParseException;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
feign.Response
;
import
feign.Response
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
@FeignClient
(
name
=
"AMOS-API-WORKFLOW"
,
path
=
"workflow"
,
configuration
=
@FeignClient
(
name
=
"AMOS-API-WORKFLOW"
,
path
=
"workflow"
,
configuration
=
{
CommonMultipartSupportConfig
.
class
})
{
CommonMultipartSupportConfig
.
class
})
...
@@ -214,4 +218,9 @@ public interface WorkflowFeignService {
...
@@ -214,4 +218,9 @@ public interface WorkflowFeignService {
*/
*/
@RequestMapping
(
value
=
"/activitiHistory/getTaskListForTaskName/{taskName}/{definitionKey}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/activitiHistory/getTaskListForTaskName/{taskName}/{definitionKey}"
,
method
=
RequestMethod
.
GET
)
JSONObject
getTaskListForTaskName
(
@PathVariable
String
taskName
,
@PathVariable
String
definitionKey
)
throws
Exception
;
JSONObject
getTaskListForTaskName
(
@PathVariable
String
taskName
,
@PathVariable
String
definitionKey
)
throws
Exception
;
@RequestMapping
(
"/v2/task/candidateGroupsUser"
)
JSONObject
candidateGroupsUser
(
@RequestParam
(
value
=
"processDefinitionKey"
,
required
=
false
)
String
processDefinitionKey
,
@RequestParam
(
value
=
"processDefinitionId"
,
required
=
false
)
String
processDefinitionId
,
@RequestParam
(
"nodeKey"
)
String
nodeKey
)
throws
Exception
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
2abbe8f1
...
@@ -5,6 +5,7 @@ import java.util.stream.Collectors;
...
@@ -5,6 +5,7 @@ import java.util.stream.Collectors;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
com.yeejoin.amos.boot.biz.common.workflow.feign.WorkflowFeignService
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance
;
import
com.yeejoin.amos.boot.module.common.api.enums.OrgPersonEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.OrgPersonEnum
;
...
@@ -92,6 +93,8 @@ public class OrgUsrController extends BaseController {
...
@@ -92,6 +93,8 @@ public class OrgUsrController extends BaseController {
@Autowired
@Autowired
EquipFeignClient
equipFeignClient
;
EquipFeignClient
equipFeignClient
;
@Autowired
WorkflowFeignService
workflowFeignService
;
@Autowired
@Autowired
DataDictionaryController
dataDictionaryController
;
DataDictionaryController
dataDictionaryController
;
...
@@ -1102,6 +1105,7 @@ public class OrgUsrController extends BaseController {
...
@@ -1102,6 +1105,7 @@ public class OrgUsrController extends BaseController {
List
<
OrgUsr
>
orgUsrList
=
orgUsrMapper
.
selectList
(
wrapper
);
List
<
OrgUsr
>
orgUsrList
=
orgUsrMapper
.
selectList
(
wrapper
);
return
ResponseHelper
.
buildResponse
(
orgUsrList
);
return
ResponseHelper
.
buildResponse
(
orgUsrList
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询单位基本信息"
,
notes
=
"查询单位基本信息"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询单位基本信息"
,
notes
=
"查询单位基本信息"
)
@PostMapping
(
value
=
"/selectByAmosOrgIdDeptList"
)
@PostMapping
(
value
=
"/selectByAmosOrgIdDeptList"
)
...
@@ -1115,5 +1119,24 @@ public class OrgUsrController extends BaseController {
...
@@ -1115,5 +1119,24 @@ public class OrgUsrController extends BaseController {
return
ResponseHelper
.
buildResponse
(
orgUsrList
);
return
ResponseHelper
.
buildResponse
(
orgUsrList
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询单位基本信息"
,
notes
=
"查询单位基本信息"
)
@GetMapping
(
value
=
"/candidateGroupsUser"
)
public
Object
selectByAmosOrgIdDeptList
(
@RequestParam
(
value
=
"processDefinitionKey"
,
required
=
false
)
String
processDefinitionKey
,
@RequestParam
(
value
=
"processDefinitionId"
,
required
=
false
)
String
processDefinitionId
,
@RequestParam
(
"nodeKey"
)
String
nodeKey
)
throws
Exception
{
JSONObject
jsonObject
=
workflowFeignService
.
candidateGroupsUser
(
processDefinitionKey
,
processDefinitionId
,
nodeKey
);
String
result
=
JSONObject
.
toJSONString
(
jsonObject
.
get
(
"result"
));
List
<
Map
>
objects
=
JSONObject
.
parseArray
(
result
,
Map
.
class
);
objects
.
stream
().
forEach
(
e
->{
OrgUsr
orgUsr
=
orgUsrMapper
.
queryByUserId
(
Long
.
valueOf
(
e
.
get
(
"userId"
).
toString
()));
if
(!
ObjectUtils
.
isEmpty
(
orgUsr
)){
e
.
put
(
"realName"
,
orgUsr
.
getBizOrgName
());
}
});
return
ResponseHelper
.
buildResponse
(
objects
)
;
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment