Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
13c92001
Commit
13c92001
authored
Nov 20, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-chw' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev-chw
parents
72e731d9
7145bed3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
OrderViolationController.java
...om/xxfc/platform/order/rest/OrderViolationController.java
+2
-8
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/OrderViolationController.java
View file @
13c92001
...
...
@@ -3,7 +3,6 @@ package com.xxfc.platform.order.rest;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.common.exception.BaseException
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
...
...
@@ -74,17 +73,12 @@ public class OrderViolationController extends BaseController<OrderViolationBiz,
* @return
*/
@GetMapping
(
"/getOne/{detailId}"
)
public
ObjectRestResponse
<
OrderViolation
>
getOne
(
@PathVariable
Integer
detailId
)
{
public
ObjectRestResponse
<
List
<
OrderViolation
>
>
getOne
(
@PathVariable
Integer
detailId
)
{
Example
exa
=
Example
.
builder
(
OrderViolation
.
class
)
.
where
(
WeekendSqls
.<
OrderViolation
>
custom
().
andEqualTo
(
OrderViolation:
:
getDetailId
,
detailId
)
.
andEqualTo
(
OrderViolation:
:
getIsDel
,
0
)).
build
();
List
<
OrderViolation
>
orderViolations
=
getBaseBiz
().
selectByExample
(
exa
);
if
(
orderViolations
.
size
()
>
1
)
{
throw
new
BaseException
(
"The database has multiple records"
);
}
OrderViolation
orderViolation
=
new
OrderViolation
();
orderViolation
=
(
orderViolations
.
size
()
==
0
)
?
null
:
orderViolations
.
get
(
0
);
return
ObjectRestResponse
.
succ
(
orderViolation
);
return
ObjectRestResponse
.
succ
(
orderViolations
);
}
...
...
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