Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
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
huluobin
bailuntec-cost
Commits
919cceaf
Commit
919cceaf
authored
Jan 14, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 3.0
# Conflicts: # cost-service/src/main/resources/mapper/Cost.xml
parents
4b20a03b
61dba47e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
README.md
README.md
+0
-3
CostController.java
.../com/blt/other/module/cost/controller/CostController.java
+10
-4
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+1
-1
Cost.xml
cost-service/src/main/resources/mapper/Cost.xml
+1
-0
No files found.
README.md
View file @
919cceaf
...
@@ -2,9 +2,6 @@
...
@@ -2,9 +2,6 @@
项目流转: 符式酉 -> 李灿浩 ->吴通 ->尹勇
项目流转: 符式酉 -> 李灿浩 ->吴通 ->尹勇
### 流程图

### 操作
### 操作
[
管理成本费用单明细SQL
](
http://code.bailuntec.com/bltdc/dc-cost-system/wikis/%E7%AE%A1%E7%90%86%E6%88%90%E6%9C%AC%E8%B4%B9%E7%94%A8%E5%8D%95%E6%98%8E%E7%BB%86SQL
)
[
管理成本费用单明细SQL
](
http://code.bailuntec.com/bltdc/dc-cost-system/wikis/%E7%AE%A1%E7%90%86%E6%88%90%E6%9C%AC%E8%B4%B9%E7%94%A8%E5%8D%95%E6%98%8E%E7%BB%86SQL
)
...
...
cost-service/src/main/java/com/blt/other/module/cost/controller/CostController.java
View file @
919cceaf
...
@@ -334,17 +334,23 @@ public class CostController {
...
@@ -334,17 +334,23 @@ public class CostController {
@ApiOperation
(
"财务付款回调接口"
)
@ApiOperation
(
"财务付款回调接口"
)
@PostMapping
(
value
=
{
"check/CashierCallbackUrl"
,
"check/lend/CashierCallbackUrl"
})
@PostMapping
(
value
=
{
"check/CashierCallbackUrl"
,
"check/lend/CashierCallbackUrl"
})
public
Map
<
String
,
Object
>
cashierCallbackUrl
(
@RequestBody
CashierCallbackUrlVo
cashierCallbackUrlVo
)
{
public
Map
<
String
,
Object
>
cashierCallbackUrl
(
@RequestBody
CashierCallbackUrlVo
cashierCallbackUrlVo
)
{
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"success"
,
true
);
result
.
put
(
"msg"
,
"success"
);
result
.
put
(
"result"
,
true
);
String
costNo
=
cashierCallbackUrlVo
.
getId
().
toUpperCase
();
String
costNo
=
cashierCallbackUrlVo
.
getId
().
toUpperCase
();
if
(!(
costNo
.
startsWith
(
"F"
)
||
costNo
.
startsWith
(
"SF"
)))
{
return
result
;
}
if
(
costNo
.
contains
(
"-"
))
{
if
(
costNo
.
contains
(
"-"
))
{
costNo
=
costNo
.
split
(
"-"
)[
0
];
costNo
=
costNo
.
split
(
"-"
)[
0
];
}
}
costService
=
CostServiceFactory
.
getCostService
(
costNo
);
costService
=
CostServiceFactory
.
getCostService
(
costNo
);
costService
.
cashierCallback
(
cashierCallbackUrlVo
);
costService
.
cashierCallback
(
cashierCallbackUrlVo
);
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"success"
,
true
);
result
.
put
(
"msg"
,
"success"
);
result
.
put
(
"result"
,
true
);
return
result
;
return
result
;
}
}
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
919cceaf
...
@@ -439,7 +439,7 @@ public abstract class AbstractCostService implements CostService {
...
@@ -439,7 +439,7 @@ public abstract class AbstractCostService implements CostService {
CostDomain
costDomain
=
this
.
getCostByCostNo
(
costCashiercallbackDomain
.
getCostNo
());
CostDomain
costDomain
=
this
.
getCostByCostNo
(
costCashiercallbackDomain
.
getCostNo
());
// 获取xx货币-->CNY的汇率
// 获取xx货币-->CNY的汇率
if
(
co
stCashiercallbackDomain
.
getCashierunitcode
()
!=
null
)
{
if
(
co
m
.
bailuntec
.
common
.
StringUtils
.
isNotEmpty
(
costCashiercallbackDomain
.
getCashierunitcode
())
)
{
BigDecimal
toRmbRate
=
CurUtils
.
getCur
(
costCashiercallbackDomain
.
getCashierunitcode
().
toUpperCase
(),
"CNY"
);
BigDecimal
toRmbRate
=
CurUtils
.
getCur
(
costCashiercallbackDomain
.
getCashierunitcode
().
toUpperCase
(),
"CNY"
);
costCashiercallbackDomain
.
setToRmbRate
(
toRmbRate
);
costCashiercallbackDomain
.
setToRmbRate
(
toRmbRate
);
costDomain
.
setToRmbRate
(
toRmbRate
);
costDomain
.
setToRmbRate
(
toRmbRate
);
...
...
cost-service/src/main/resources/mapper/Cost.xml
View file @
919cceaf
...
@@ -544,6 +544,7 @@
...
@@ -544,6 +544,7 @@
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
</if>
<include
refid=
"checkCostListSearch"
/>
<include
refid=
"checkCostListSearch"
/>
group by t1.id
</select>
</select>
<!--需要我人事审核的-->
<!--需要我人事审核的-->
...
...
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