Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-plan
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
INET-TWO
server
dcs-plan
Commits
5ff39dc1
Commit
5ff39dc1
authored
Aug 02, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改fegin接口
parent
e51f75ca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
ExtDistributeRecordController.java
...s/plan/core/controller/ExtDistributeRecordController.java
+2
-4
ExtDistributeRecordServiceImpl.java
...lan/core/service/impl/ExtDistributeRecordServiceImpl.java
+12
-0
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/controller/ExtDistributeRecordController.java
View file @
5ff39dc1
...
...
@@ -31,8 +31,7 @@ public class ExtDistributeRecordController<V extends ExtDistributeRecordVO, S ex
@Autowired
private
ExtDistributeRecordService
distributeRecordService
;
@Autowired
private
AutoTaskService
autoTaskService
;
/**
* 收发记录接口
...
...
@@ -57,8 +56,7 @@ public class ExtDistributeRecordController<V extends ExtDistributeRecordVO, S ex
@ApiOperation
(
"通过用户id和code查询组织"
)
@GetMapping
(
"/searchOrgByUserId"
)
public
ApiResult
searchOrgByUserId
(
@RequestParam
(
"userId"
)
Long
userId
,
@RequestParam
(
"code"
)
String
code
)
{
List
<
DxOrganizationVO
>
organizationVOS
=
autoTaskService
.
searchOrgNameByUserId
(
userId
,
code
);
return
ApiResult
.
ok
(
organizationVOS
,
"查询成功"
);
return
ApiResult
.
ok
(
distributeRecordService
.
searchOrgNameByUserId
(
userId
,
code
),
"查询成功"
);
}
}
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtDistributeRecordServiceImpl.java
View file @
5ff39dc1
package
com
.
yonde
.
dcs
.
plan
.
core
.
service
.
impl
;
import
com.yonde.dcs.plan.common.vo.ExtDisReocredLinkVO
;
import
com.yonde.dcs.plan.core.service.AutoTaskService
;
import
com.yonde.dcs.plan.core.service.ExtDisReocredLinkService
;
import
com.yonde.dex.basedata.data.search.SearchItem
;
import
com.yonde.dex.basedata.data.search.SearchItems
;
import
com.yonde.dex.basedata.data.search.SearchQueryCondition
;
import
com.yonde.dex.basedata.entity.data.DxPageImpl
;
import
com.yonde.dex.user.common.vo.DxOrganizationVO
;
import
org.springframework.stereotype.Service
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -41,6 +43,9 @@ public class ExtDistributeRecordServiceImpl<V extends ExtDistributeRecordVO> imp
@Autowired
private
ExtDisReocredLinkService
disRecordLink
;
@Autowired
private
AutoTaskService
autoTaskService
;
@Override
public
List
<
ExtDistributeRecordVO
>
getDisRecord
(
Long
id
)
{
//通过id查询分发记录Link
...
...
@@ -52,6 +57,8 @@ public class ExtDistributeRecordServiceImpl<V extends ExtDistributeRecordVO> imp
return
list
;
}
/**
* 通过id查询分发记录Link
*
...
...
@@ -71,6 +78,11 @@ public class ExtDistributeRecordServiceImpl<V extends ExtDistributeRecordVO> imp
return
null
;
}
@Override
public
List
<
DxOrganizationVO
>
searchOrgNameByUserId
(
Long
userId
,
String
code
)
{
return
autoTaskService
.
searchOrgNameByUserId
(
userId
,
code
);
}
}
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