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
edbbdd7c
Commit
edbbdd7c
authored
Jan 09, 2020
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-invoice-modular' into dev
parents
c0cd9331
fdbcafbc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
QueryOrderDTO.java
...ava/com/xxfc/platform/order/pojo/order/QueryOrderDTO.java
+3
-0
OrderInvoiceBiz.java
...ain/java/com/xxfc/platform/order/biz/OrderInvoiceBiz.java
+10
-1
BaseOrderMapper.xml
...rder-server/src/main/resources/mapper/BaseOrderMapper.xml
+8
-0
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/order/QueryOrderDTO.java
View file @
edbbdd7c
...
@@ -43,4 +43,7 @@ public class QueryOrderDTO extends PageParam {
...
@@ -43,4 +43,7 @@ public class QueryOrderDTO extends PageParam {
* 开票状态,0未开票,1已开票
* 开票状态,0未开票,1已开票
*/
*/
private
Integer
invoiceStatus
;
private
Integer
invoiceStatus
;
private
String
orderIds
;
}
}
\ No newline at end of file
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderInvoiceBiz.java
View file @
edbbdd7c
...
@@ -28,6 +28,7 @@ import org.springframework.transaction.interceptor.TransactionAspectSupport;
...
@@ -28,6 +28,7 @@ import org.springframework.transaction.interceptor.TransactionAspectSupport;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.entity.Example
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.math.BigDecimal
;
import
java.util.HashSet
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -51,6 +52,10 @@ public class OrderInvoiceBiz extends BaseBiz<OrderInvoiceMapper, OrderInvoice> {
...
@@ -51,6 +52,10 @@ public class OrderInvoiceBiz extends BaseBiz<OrderInvoiceMapper, OrderInvoice> {
@Autowired
@Autowired
ThirdFeign
thirdFeign
;
ThirdFeign
thirdFeign
;
@Autowired
OrderAccountBiz
orderAccountBiz
;
/**
/**
* 添加发票记录
* 添加发票记录
* @return
* @return
...
@@ -86,7 +91,11 @@ public class OrderInvoiceBiz extends BaseBiz<OrderInvoiceMapper, OrderInvoice> {
...
@@ -86,7 +91,11 @@ public class OrderInvoiceBiz extends BaseBiz<OrderInvoiceMapper, OrderInvoice> {
if
(
baseOrder
.
getType
()
==
OrderTypeEnum
.
MEMBER
.
getCode
())
{
if
(
baseOrder
.
getType
()
==
OrderTypeEnum
.
MEMBER
.
getCode
())
{
orderData
.
setOrderName
(
OrderTypeEnum
.
MEMBER
.
getDesc
());
orderData
.
setOrderName
(
OrderTypeEnum
.
MEMBER
.
getDesc
());
}
}
orderData
.
setPrice
(
baseOrder
.
getRealAmount
());
BigDecimal
cost
=
orderAccountBiz
.
getAllOrderCost
(
baseOrder
.
getId
());
log
.
info
(
"{}退款费用总计:{}"
,
baseOrder
.
getNo
(),
cost
);
log
.
info
(
"{}订单实际金额:{}"
,
baseOrder
.
getNo
(),
baseOrder
.
getRealAmount
());
orderData
.
setPrice
(
baseOrder
.
getRealAmount
().
multiply
(
cost
));
log
.
info
(
"{}用户实际支付金额: {}"
,
baseOrder
.
getNo
(),
orderData
.
getPrice
());
list
.
add
(
orderData
);
list
.
add
(
orderData
);
continue
;
continue
;
}
else
{
//已开票
}
else
{
//已开票
...
...
xx-order/xx-order-server/src/main/resources/mapper/BaseOrderMapper.xml
View file @
edbbdd7c
...
@@ -101,6 +101,14 @@
...
@@ -101,6 +101,14 @@
</foreach>
</foreach>
)
)
</if>
</if>
<if
test=
"orderIds != null and orderIds != ''"
>
and
(
<foreach
collection=
"orderIds.split(',')"
index=
"sIndex"
item=
"orderId"
separator=
" or "
>
id = #{orderId}
</foreach>
)
</if>
<if
test=
"multiTypes != null"
>
<if
test=
"multiTypes != null"
>
and
and
(
(
...
...
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