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
09814895
Commit
09814895
authored
Mar 25, 2020
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务审核-发票状态回退,用户借还单发票附件重新提交更改
parent
40a0b238
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
7 deletions
+40
-7
CostStatusSyncConfiguration.java
.../other/other_cost/config/CostStatusSyncConfiguration.java
+2
-2
CostCheckLendController.java
.../other/other_cost/controller/CostCheckLendController.java
+9
-2
CostListController.java
...m/blt/other/other_cost/controller/CostListController.java
+25
-0
CostPlanNewController.java
...lt/other/other_cost/controller/CostPlanNewController.java
+1
-1
CostStatusSyncJob.java
.../java/com/blt/other/other_cost/job/CostStatusSyncJob.java
+1
-0
CostExportServiceImpl.java
.../other/other_cost/service/impl/CostExportServiceImpl.java
+2
-2
No files found.
cost-core/src/main/java/com/blt/other/other_cost/config/CostStatusSyncConfiguration.java
View file @
09814895
...
@@ -11,7 +11,7 @@ public class CostStatusSyncConfiguration {
...
@@ -11,7 +11,7 @@ public class CostStatusSyncConfiguration {
// 扫描主体列表时间间隔:(秒)
// 扫描主体列表时间间隔:(秒)
private
static
final
int
TIME
=
3
;
private
static
final
int
TIME
=
86400
;
// JobDetail 定义要执行的 job
// JobDetail 定义要执行的 job
@Bean
@Bean
...
@@ -25,7 +25,7 @@ public class CostStatusSyncConfiguration {
...
@@ -25,7 +25,7 @@ public class CostStatusSyncConfiguration {
@Bean
@Bean
public
Trigger
costCompanySyncJobTrigger
(){
public
Trigger
costCompanySyncJobTrigger
(){
SimpleScheduleBuilder
simpleScheduleBuilder
=
SimpleScheduleBuilder
.
simpleSchedule
()
SimpleScheduleBuilder
simpleScheduleBuilder
=
SimpleScheduleBuilder
.
simpleSchedule
()
.
withIntervalIn
Hour
s
(
TIME
).
repeatForever
();
.
withIntervalIn
Second
s
(
TIME
).
repeatForever
();
return
TriggerBuilder
.
newTrigger
().
forJob
(
costCompanySyncJobJobDetail
())
return
TriggerBuilder
.
newTrigger
().
forJob
(
costCompanySyncJobJobDetail
())
.
withIdentity
(
"costStatusSuncTrigger"
)
.
withIdentity
(
"costStatusSuncTrigger"
)
.
withSchedule
(
simpleScheduleBuilder
).
build
();
.
withSchedule
(
simpleScheduleBuilder
).
build
();
...
...
cost-core/src/main/java/com/blt/other/other_cost/controller/CostCheckLendController.java
View file @
09814895
...
@@ -192,14 +192,20 @@ public class CostCheckLendController {
...
@@ -192,14 +192,20 @@ public class CostCheckLendController {
@PostMapping
(
value
=
"invoice"
)
@PostMapping
(
value
=
"invoice"
)
public
Map
<
String
,
Object
>
invoice
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
Map
<
String
,
Object
>
invoice
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
AxiosUtil
.
setCors
(
response
,
request
);
Map
<
String
,
Object
>
map
=
null
;
Map
<
String
,
Object
>
map
=
null
;
CostDomain
costDomain
=
new
CostDomain
();
CostDomain
costDomain
=
new
CostDomain
();
String
costNo
=
request
.
getParameter
(
"costNo"
);
String
costNo
=
request
.
getParameter
(
"costNo"
);
String
updateuserid
=
request
.
getParameter
(
"updateuserid"
);
String
updateuserid
=
request
.
getParameter
(
"updateuserid"
);
costDomain
.
setHasInvoice
(
1
);
int
invoiceValue
=
Integer
.
parseInt
(
request
.
getParameter
(
"hasInvoice"
));
costDomain
.
setHasInvoice
(
invoiceValue
);
costDomain
.
setCostNo
(
costNo
);
costDomain
.
setCostNo
(
costNo
);
map
=
costService
.
upadateCost
(
costDomain
);
map
=
costService
.
upadateCost
(
costDomain
);
costLogService
.
save
(
costNo
,
Integer
.
valueOf
(
updateuserid
),
"确认发票"
);
if
(
invoiceValue
==
0
)
{
costLogService
.
save
(
costNo
,
Integer
.
valueOf
(
updateuserid
),
"更改发票状态为:未给"
);
}
else
if
(
invoiceValue
==
1
)
{
costLogService
.
save
(
costNo
,
Integer
.
valueOf
(
updateuserid
),
"更改发票状态为:已给"
);
}
map
.
put
(
"success"
,
true
);
map
.
put
(
"success"
,
true
);
map
.
put
(
"msg"
,
"确认发票成功!"
);
map
.
put
(
"msg"
,
"确认发票成功!"
);
return
map
;
return
map
;
...
@@ -492,6 +498,7 @@ public class CostCheckLendController {
...
@@ -492,6 +498,7 @@ public class CostCheckLendController {
costService
.
upadateCost
(
supCostDomain
);
costService
.
upadateCost
(
supCostDomain
);
}
}
result
=
"{result:true,msg:\"保存成功\"}"
;
result
=
"{result:true,msg:\"保存成功\"}"
;
costLogService
.
save
(
costCashiercallbackDomain
.
getCostNo
(),
costCashiercallbackDomain
.
getPayuserid
(),
"出纳收/付款成功:"
+
costCashiercallbackDomain
.
getPaynote
());
}
else
{
}
else
{
result
=
"{result:false,msg:\"发生错误\"}"
;
result
=
"{result:false,msg:\"发生错误\"}"
;
}
}
...
...
cost-core/src/main/java/com/blt/other/other_cost/controller/CostListController.java
View file @
09814895
...
@@ -92,6 +92,31 @@ public class CostListController {
...
@@ -92,6 +92,31 @@ public class CostListController {
}
}
/**
/**
* 修改发票附件
* @param request
* @param response
* @param file
* @return
*/
@PostMapping
(
"reset/resetInvoice"
)
public
Map
<
String
,
Object
>
resetInvoice
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@RequestParam
(
"fileSelect"
)
MultipartFile
file
)
{
AxiosUtil
.
setCors
(
response
,
request
);
String
costNo
=
request
.
getParameter
(
"costNo"
);
CostDomain
costDomain
=
new
CostDomain
();
costDomain
.
setCostNo
(
costNo
);
costDomain
.
setHasInvoice
(
1
);
// 文件上传的路径
String
filePath
=
PathUtil
.
getBasePath
()+
PathUtil
.
getPath
(
"cost/"
+
costDomain
.
getCostNo
()+
"/"
);
// 调用工具类执行保存,并返回 path
String
path
=
CostFileUtil
.
upload
(
file
,
filePath
);
costDomain
.
setFilePath
(
path
);
Map
<
String
,
Object
>
map
=
costService
.
upadateCost
(
costDomain
);
costLogService
.
save
(
costNo
,
costService
.
getCostDomainByNo
(
costNo
).
getCreateUserid
(),
"修改发票信息"
);
map
.
put
(
"success"
,
true
);
return
map
;
}
/**
* 信息修改,带附件
* 信息修改,带附件
* @param response
* @param response
* @param request
* @param request
...
...
cost-core/src/main/java/com/blt/other/other_cost/controller/CostPlanNewController.java
View file @
09814895
...
@@ -48,7 +48,7 @@ public class CostPlanNewController {
...
@@ -48,7 +48,7 @@ public class CostPlanNewController {
if
(
null
!=
affirm
&&
affirm
>=
0
)
{
if
(
null
!=
affirm
&&
affirm
>=
0
)
{
result
.
put
(
"success"
,
true
);
result
.
put
(
"success"
,
true
);
result
.
put
(
"msg"
,
"已生成 "
+
affirm
+
" 张付款费用单"
);
result
.
put
(
"msg"
,
"已生成 "
+
affirm
+
" 张付款费用单
<br>费用列表提交审核
"
);
}
else
{
}
else
{
result
.
put
(
"success"
,
false
);
result
.
put
(
"success"
,
false
);
result
.
put
(
"msg"
,
"付款计划不存在或发生其他错误"
);
result
.
put
(
"msg"
,
"付款计划不存在或发生其他错误"
);
...
...
cost-core/src/main/java/com/blt/other/other_cost/job/CostStatusSyncJob.java
View file @
09814895
...
@@ -38,6 +38,7 @@ public class CostStatusSyncJob extends QuartzJobBean {
...
@@ -38,6 +38,7 @@ public class CostStatusSyncJob extends QuartzJobBean {
@Override
@Override
protected
void
executeInternal
(
JobExecutionContext
jobExecutionContext
)
throws
JobExecutionException
{
protected
void
executeInternal
(
JobExecutionContext
jobExecutionContext
)
throws
JobExecutionException
{
logger
.
info
(
"系统自动作废驳回费用单"
);
List
<
CostDto
>
costDtoList
=
costService
.
getCostByRejectStatus
();
List
<
CostDto
>
costDtoList
=
costService
.
getCostByRejectStatus
();
for
(
CostDto
costDto
:
costDtoList
)
{
for
(
CostDto
costDto
:
costDtoList
)
{
CostDomain
costDomain
=
new
CostDomain
();
CostDomain
costDomain
=
new
CostDomain
();
...
...
cost-core/src/main/java/com/blt/other/other_cost/service/impl/CostExportServiceImpl.java
View file @
09814895
...
@@ -107,9 +107,9 @@ public class CostExportServiceImpl implements CostExportService {
...
@@ -107,9 +107,9 @@ public class CostExportServiceImpl implements CostExportService {
row
.
createCell
(
12
).
setCellValue
(
costDto
.
getPayPlanAmountDto
());
row
.
createCell
(
12
).
setCellValue
(
costDto
.
getPayPlanAmountDto
());
row
.
createCell
(
13
).
setCellValue
(
costDto
.
getPayDicDto
());
row
.
createCell
(
13
).
setCellValue
(
costDto
.
getPayDicDto
());
if
(
costDto
.
getHasInvoice
()
==
1
)
{
if
(
costDto
.
getHasInvoice
()
==
1
)
{
row
.
createCell
(
18
).
setCellValue
(
"
有
"
);
row
.
createCell
(
18
).
setCellValue
(
"
已给
"
);
}
else
{
}
else
{
row
.
createCell
(
18
).
setCellValue
(
""
);
row
.
createCell
(
18
).
setCellValue
(
"
未给
"
);
}
}
}
}
}
}
...
...
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