Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
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
bltdc
dc-cost-system
Commits
b3244293
Commit
b3244293
authored
Dec 30, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0dee97a6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
14 deletions
+21
-14
CostPlanNewController.java
...t/other/module/cost/controller/CostPlanNewController.java
+3
-2
PayCostServiceImpl.java
...her/module/cost/service/impl/cost/PayCostServiceImpl.java
+9
-8
application-test.yml
bailuntec-cost-core/src/main/resources/application-test.yml
+4
-4
JwtUtilTest.java
.../src/test/java/com/blt/other/common/util/JwtUtilTest.java
+5
-0
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostPlanNewController.java
View file @
b3244293
...
@@ -44,7 +44,7 @@ public class CostPlanNewController {
...
@@ -44,7 +44,7 @@ public class CostPlanNewController {
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
CostPlanNoLock
lock
=
CostPlanNoLock
.
getInstance
();
CostPlanNoLock
lock
=
CostPlanNoLock
.
getInstance
();
try
{
try
{
lock
.
lock
(
costPlanNo
.
hashCode
(
));
lock
.
lock
(
Math
.
abs
(
costPlanNo
.
hashCode
()
));
CostPlanService
costPlanService
=
CostPlanServiceFactory
.
getCostPlanService
(
costPlanNo
);
CostPlanService
costPlanService
=
CostPlanServiceFactory
.
getCostPlanService
(
costPlanNo
);
Integer
affirm
=
costPlanService
.
affirm
(
costPlanNo
);
Integer
affirm
=
costPlanService
.
affirm
(
costPlanNo
);
...
@@ -53,10 +53,11 @@ public class CostPlanNewController {
...
@@ -53,10 +53,11 @@ public class CostPlanNewController {
return
result
;
return
result
;
}
finally
{
}
finally
{
lock
.
unlock
(
costPlanNo
.
hashCode
(
));
lock
.
unlock
(
Math
.
abs
(
costPlanNo
.
hashCode
()
));
}
}
}
}
@ApiOperation
(
"/删除费用计划"
)
@ApiOperation
(
"/删除费用计划"
)
@PostMapping
(
"/deleted"
)
@PostMapping
(
"/deleted"
)
public
Map
<
String
,
Object
>
deleted
(
@RequestParam
String
costPlanNo
)
{
public
Map
<
String
,
Object
>
deleted
(
@RequestParam
String
costPlanNo
)
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/cost/PayCostServiceImpl.java
View file @
b3244293
...
@@ -7,12 +7,12 @@ import com.bailuntec.common.BeanUtils;
...
@@ -7,12 +7,12 @@ import com.bailuntec.common.BeanUtils;
import
com.bailuntec.common.JsonUtilByFsJson
;
import
com.bailuntec.common.JsonUtilByFsJson
;
import
com.bailuntec.common.JsonUtilByJackson
;
import
com.bailuntec.common.JsonUtilByJackson
;
import
com.blt.other.common.exception.RpcException
;
import
com.blt.other.common.exception.RpcException
;
import
com.blt.other.database.model.CostTofinanceDomain
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.module.cost.vo.CashierCallbackUrlDataDataVo
;
import
com.blt.other.module.cost.vo.CashierCallbackUrlDataDataVo
;
import
com.blt.other.module.cost.vo.CashierCallbackUrlDataVo
;
import
com.blt.other.module.cost.vo.CashierCallbackUrlDataVo
;
import
com.blt.other.module.cost.vo.TofinanceVo
;
import
com.blt.other.module.cost.vo.TofinanceVo
;
import
com.blt.other.database.model.CostTofinanceDomain
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -49,19 +49,20 @@ public class PayCostServiceImpl extends AbstractCostService implements CostServi
...
@@ -49,19 +49,20 @@ public class PayCostServiceImpl extends AbstractCostService implements CostServi
//todo
//todo
applyMoneyDetail
.
setMoneyRmb
(
cost
.
getAmount
());
applyMoneyDetail
.
setMoneyRmb
(
cost
.
getAmount
());
applyMoneyDetail
.
setRemark
(
""
);
applyMoneyDetail
.
setRemark
(
""
);
applyMoneyDetailList
.
add
(
applyMoneyDetail
);
applyMoneyDetailList
.
add
(
applyMoneyDetail
);
// 出纳申请金额明细(MoneyDetail)不可为空;
// 出纳申请金额明细(MoneyDetail)不可为空;
req
.
setMoneyDetail
(
applyMoneyDetailList
);
req
.
setMoneyDetail
(
applyMoneyDetailList
);
log
.
info
(
"提交出纳参数:{}"
,
JsonUtilByFsJson
.
beanToJson
(
req
));
CwResult
<
String
>
cwResult
=
cwApi
.
postApply
(
req
);
CwResult
<
String
>
cwResult
=
cwApi
.
postApply
(
req
);
log
.
info
(
"提交出纳响应:{}"
,
JsonUtilByFsJson
.
beanToJson
(
cwResult
));
if
(!
cwResult
.
getSuccess
())
{
if
(!
cwResult
.
getSuccess
())
{
throw
new
RpcException
(
cwResult
.
getMessage
());
throw
new
RpcException
(
cwResult
.
getMessage
());
}
}
TofinanceVo
tofinanceVo
=
JsonUtilByJackson
.
readValue
(
cwResult
.
getData
().
replaceAll
(
"/^['|\"](.*)['|\"]$/"
,
""
),
TofinanceVo
.
class
);
TofinanceVo
tofinanceVo
=
JsonUtilByJackson
.
readValue
(
cwResult
.
getData
().
replaceAll
(
"/^['|\"](.*)['|\"]$/"
,
""
),
TofinanceVo
.
class
);
//保存财务系统调用信息
//保存财务系统调用信息
CostTofinanceDomain
costTofinanceDomain
=
new
CostTofinanceDomain
();
CostTofinanceDomain
costTofinanceDomain
=
new
CostTofinanceDomain
();
...
@@ -75,9 +76,9 @@ public class PayCostServiceImpl extends AbstractCostService implements CostServi
...
@@ -75,9 +76,9 @@ public class PayCostServiceImpl extends AbstractCostService implements CostServi
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
CashierCallbackUrlDataDataVo
cashierCallbackUrlDataDataVo
=
new
CashierCallbackUrlDataDataVo
();
CashierCallbackUrlDataDataVo
cashierCallbackUrlDataDataVo
=
new
CashierCallbackUrlDataDataVo
();
CashierCallbackUrlDataVo
cashierCallbackUrlDataVo
=
new
CashierCallbackUrlDataVo
();
CashierCallbackUrlDataVo
cashierCallbackUrlDataVo
=
new
CashierCallbackUrlDataVo
();
cashierCallbackUrlDataVo
.
setData
(
JsonUtilByFsJson
.
beanToJson
(
cashierCallbackUrlDataDataVo
));
cashierCallbackUrlDataVo
.
setData
(
JsonUtilByFsJson
.
beanToJson
(
cashierCallbackUrlDataDataVo
));
System
.
out
.
println
(
JsonUtilByFsJson
.
beanToJson
(
cashierCallbackUrlDataVo
));
System
.
out
.
println
(
JsonUtilByFsJson
.
beanToJson
(
cashierCallbackUrlDataVo
));
}
}
}
}
bailuntec-cost-core/src/main/resources/application-test.yml
View file @
b3244293
...
@@ -44,10 +44,10 @@ logging:
...
@@ -44,10 +44,10 @@ logging:
cost
:
cost
:
url
:
url
:
# fee
# fee
purchase-apply-callback-url-post
:
http://
api.test.fee.bailuntec.com
/purchase/other/purchasing/list/detail/ApplyCallbackUrl
purchase-apply-callback-url-post
:
http://
10.0.11.124
/purchase/other/purchasing/list/detail/ApplyCallbackUrl
purchase-cashier-callback-url-post
:
http://
api.test.fee.bailuntec.com
/purchase/other/purchasing/list/detail/CashierCallbackUrl
purchase-cashier-callback-url-post
:
http://
10.0.11.124
/purchase/other/purchasing/list/detail/CashierCallbackUrl
cost-apply-callback-url-post
:
http://
api.test.fee.bailuntec.com
/purchase/other/cost/check/ApplyCallbackUrl
cost-apply-callback-url-post
:
http://
10.0.11.124
/purchase/other/cost/check/ApplyCallbackUrl
cost-cashier-callback-url-post
:
http://
api.test.fee.bailuntec.com
/purchase/other/cost/check/CashierCallbackUrl
cost-cashier-callback-url-post
:
http://
10.0.11.124
/purchase/other/cost/check/CashierCallbackUrl
# oa
# oa
buy-user-api
:
http://oa.bailuntec.com/Api/User/GetUser
buy-user-api
:
http://oa.bailuntec.com/Api/User/GetUser
login-user-api
:
http://oa.bailuntec.com/Login/GetUserByBLUserAcct
login-user-api
:
http://oa.bailuntec.com/Login/GetUserByBLUserAcct
...
...
bailuntec-cost-core/src/test/java/com/blt/other/common/util/JwtUtilTest.java
View file @
b3244293
...
@@ -25,4 +25,9 @@ class JwtUtilTest {
...
@@ -25,4 +25,9 @@ class JwtUtilTest {
log
.
error
(
ex
.
getMessage
());
log
.
error
(
ex
.
getMessage
());
}
}
}
}
@Test
void
test
()
{
}
}
}
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