Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BasicAPI
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
杜科
BasicAPI
Commits
7e513f08
Commit
7e513f08
authored
Nov 15, 2023
by
hanson.yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改编号批量查询文档修改
parent
d0c132cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
DxDocController.java
src/com/yonde/doc/controller/DxDocController.java
+2
-2
DxDocService.java
src/com/yonde/doc/service/DxDocService.java
+1
-1
No files found.
src/com/yonde/doc/controller/DxDocController.java
View file @
7e513f08
...
...
@@ -136,9 +136,9 @@ public class DxDocController extends AbstractBaseController {
}
//@ApiOperation("通过编号批量获取Document对象")
@GetMapping
(
value
=
"findByNumbers"
)
public
ApiResult
findByNumber
(
@RequestParam
(
"number"
)
List
<
String
>
number
)
{
public
ApiResult
findByNumber
(
@RequestParam
(
"number
s
"
)
List
<
String
>
number
)
{
try
{
return
ApiResult
.
ok
(
this
.
getService
()
.
findByNumbers
(
number
));
return
ApiResult
.
ok
(
DxDocService
.
findByNumbers
(
number
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
ApiResult
.
error
(
"505"
,
e
.
getLocalizedMessage
(),
e
);
...
...
src/com/yonde/doc/service/DxDocService.java
View file @
7e513f08
...
...
@@ -207,7 +207,7 @@ public class DxDocService implements RemoteAccess {
* @return
*/
public
List
<
DxDocumentVO
>
findByNumbers
(
List
<
String
>
var1
)
throws
Exception
{
public
static
List
<
DxDocumentVO
>
findByNumbers
(
List
<
String
>
var1
)
throws
Exception
{
List
<
DxDocumentVO
>
result
=
new
ArrayList
<
DxDocumentVO
>();
List
<
WTDocument
>
docs
=
DocUtil
.
getDocs
(
var1
);
for
(
WTDocument
doc
:
docs
)
{
...
...
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