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
527d62a1
Commit
527d62a1
authored
Dec 26, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-invoice-modular' into dev
parents
cf59d299
013da824
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
8 deletions
+22
-8
QueryOrderDTO.java
...ava/com/xxfc/platform/order/pojo/order/QueryOrderDTO.java
+5
-0
OrderInvoiceBiz.java
...ain/java/com/xxfc/platform/order/biz/OrderInvoiceBiz.java
+9
-7
OrderInvoiceMapper.java
...va/com/xxfc/platform/order/mapper/OrderInvoiceMapper.java
+2
-0
BaseOrderMapper.xml
...rder-server/src/main/resources/mapper/BaseOrderMapper.xml
+3
-0
OrderInvoiceMapper.xml
...r-server/src/main/resources/mapper/OrderInvoiceMapper.xml
+3
-1
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/order/QueryOrderDTO.java
View file @
527d62a1
...
...
@@ -38,4 +38,9 @@ public class QueryOrderDTO extends PageParam {
private
Integer
type
;
private
String
multiTypes
;
/**
* 开票状态,0未开票,1已开票
*/
private
Integer
invoiceStatus
;
}
\ No newline at end of file
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderInvoiceBiz.java
View file @
527d62a1
...
...
@@ -94,12 +94,12 @@ public class OrderInvoiceBiz extends BaseBiz<OrderInvoiceMapper, OrderInvoice> {
String
[]
orderIdArray
=
orderIds
.
split
(
","
);
if
(
orderIdArray
.
length
>
0
)
{
for
(
int
a
=
0
;
a
<=
orderIdArray
.
length
;
a
++)
{
Example
example
=
new
Example
(
OrderInvoice
.
class
);
example
.
createCriteria
().
andEqualTo
(
"crtUser"
,
appUserDTO
.
getUserid
()).
andLike
(
"orderIds"
,
"%"
+
orderIdArray
[
a
]
+
"%"
);
OrderInvoice
orderInvoice
=
mapper
.
selectOneByExample
(
example
);
OrderInvoice
orderInvoice
=
selectByUserIdAndOrderId
(
appUserDTO
.
getUserid
(),
Integer
.
parseInt
(
orderIdArray
[
a
])).
getData
();
if
(
orderInvoice
!=
null
)
{
set
.
add
(
orderInvoice
);
}
}
}
return
ObjectRestResponse
.
succ
(
set
);
}
...
...
@@ -135,9 +135,11 @@ public class OrderInvoiceBiz extends BaseBiz<OrderInvoiceMapper, OrderInvoice> {
}
public
ObjectRestResponse
<
OrderInvoice
>
selectByUserIdAndOrderId
(
Integer
userId
,
Integer
orderId
)
{
Example
example
=
new
Example
(
OrderInvoice
.
class
);
example
.
createCriteria
().
andEqualTo
(
"crtUser"
,
userId
).
andLike
(
"orderIds"
,
"%"
+
orderId
+
"%"
);
return
ObjectRestResponse
.
succ
(
mapper
.
selectOneByExample
(
example
));
return
ObjectRestResponse
.
succ
(
mapper
.
selectByUserIdAndOrderId
(
new
OrderInvoice
(){{
setCrtUser
(
userId
);
setOrderIds
(
orderId
+
""
);
}}));
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/mapper/OrderInvoiceMapper.java
View file @
527d62a1
...
...
@@ -4,4 +4,6 @@ import com.xxfc.platform.order.entity.OrderInvoice;
import
tk.mybatis.mapper.common.Mapper
;
public
interface
OrderInvoiceMapper
extends
Mapper
<
OrderInvoice
>
{
OrderInvoice
selectByUserIdAndOrderId
(
OrderInvoice
orderInvoice
);
}
\ No newline at end of file
xx-order/xx-order-server/src/main/resources/mapper/BaseOrderMapper.xml
View file @
527d62a1
...
...
@@ -68,6 +68,9 @@
<if
test=
"type != null"
>
and type = #{type}
</if>
<if
test=
"invoiceStatus != null"
>
and invoice_status = #{invoiceStatus}
</if>
<if
test=
"hasMemberRight != null"
>
and has_member_right = #{hasMemberRight}
</if>
...
...
xx-order/xx-order-server/src/main/resources/mapper/OrderInvoiceMapper.xml
View file @
527d62a1
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.xxfc.platform.order.mapper.OrderInvoiceMapper"
>
<select
id=
"selectByUserIdAndOrderId"
parameterType=
"com.xxfc.platform.order.entity.OrderInvoice"
resultType=
"com.xxfc.platform.order.entity.OrderInvoice"
>
select * from order_e_invoice where crt_user = #{crtUser} and ids like concat("%", ids, "%")
</select>
</mapper>
\ 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