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
cee4db8e
Commit
cee4db8e
authored
Dec 26, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-invoice-modular' into dev
parents
fbcfd409
1cf9b445
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
OrderInvoiceBiz.java
...ain/java/com/xxfc/platform/order/biz/OrderInvoiceBiz.java
+6
-4
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderInvoiceBiz.java
View file @
cee4db8e
...
@@ -116,9 +116,10 @@ public class OrderInvoiceBiz extends BaseBiz<OrderInvoiceMapper, OrderInvoice> {
...
@@ -116,9 +116,10 @@ public class OrderInvoiceBiz extends BaseBiz<OrderInvoiceMapper, OrderInvoice> {
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
RSTOKEN_EXPIRED_CODE
,
ResultCode
.
getMsg
(
ResultCode
.
RSTOKEN_EXPIRED_CODE
));
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
RSTOKEN_EXPIRED_CODE
,
ResultCode
.
getMsg
(
ResultCode
.
RSTOKEN_EXPIRED_CODE
));
}
}
Example
example
=
new
Example
(
OrderInvoice
.
class
);
Example
example
=
new
Example
(
OrderInvoice
.
class
);
example
.
createCriteria
().
andEqualTo
(
"userId"
,
appUserDTO
.
getUserid
());
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andEqualTo
(
"userId"
,
appUserDTO
.
getUserid
());
if
(
type
!=
null
)
{
if
(
type
!=
null
)
{
example
.
createCriteria
()
.
andEqualTo
(
"type"
,
type
);
criteria
.
andEqualTo
(
"type"
,
type
);
}
}
return
ObjectRestResponse
.
succ
(
mapper
.
selectByExample
(
example
));
return
ObjectRestResponse
.
succ
(
mapper
.
selectByExample
(
example
));
}
}
...
@@ -130,9 +131,10 @@ public class OrderInvoiceBiz extends BaseBiz<OrderInvoiceMapper, OrderInvoice> {
...
@@ -130,9 +131,10 @@ public class OrderInvoiceBiz extends BaseBiz<OrderInvoiceMapper, OrderInvoice> {
*/
*/
public
ObjectRestResponse
<
List
<
OrderInvoice
>>
selectByUserId
(
Integer
userId
,
Integer
type
)
{
public
ObjectRestResponse
<
List
<
OrderInvoice
>>
selectByUserId
(
Integer
userId
,
Integer
type
)
{
Example
example
=
new
Example
(
OrderInvoice
.
class
);
Example
example
=
new
Example
(
OrderInvoice
.
class
);
example
.
createCriteria
().
andEqualTo
(
"userId"
,
userId
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andEqualTo
(
"userId"
,
userId
);
if
(
type
!=
null
)
{
if
(
type
!=
null
)
{
example
.
createCriteria
()
.
andEqualTo
(
"type"
,
type
);
criteria
.
andEqualTo
(
"type"
,
type
);
}
}
return
ObjectRestResponse
.
succ
(
mapper
.
selectByExample
(
example
));
return
ObjectRestResponse
.
succ
(
mapper
.
selectByExample
(
example
));
}
}
...
...
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