Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c7027851
authored
Sep 10, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[账款状态的更新]
1 parent
e5b937ed
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
18 deletions
code/finance_serv/src/main/java/com/vion/financial/controller/ContractController.java
code/finance_serv/src/main/java/com/vion/financial/handler/Timer.java
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
code/finance_serv/src/main/java/com/vion/financial/controller/ContractController.java
View file @
c702785
...
...
@@ -73,4 +73,5 @@ public class ContractController extends BaseController {
public
Object
importExcel
(
@RequestParam
(
"file"
)
MultipartFile
file
)
{
return
contractService
.
importExcel
(
file
);
}
}
code/finance_serv/src/main/java/com/vion/financial/handler/Timer.java
0 → 100644
View file @
c702785
package
com
.
vion
.
financial
.
handler
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
@Component
public
class
Timer
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
Timer
.
class
);
@Scheduled
(
fixedRate
=
7200000
)
public
void
start
()
{
}
}
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
View file @
c702785
...
...
@@ -353,6 +353,42 @@ public class ContractServiceImpl implements ContractService {
}
}
}
if
(
contractVo
.
getAmount_state_unid
()!=
null
)
{
switch
(
contractVo
.
getAmount_state_unid
())
{
case
"50001"
:
contractVo
.
setAmount_state_unid_name
(
"正常验收款"
);
break
;
case
"50002"
:
contractVo
.
setAmount_state_unid_name
(
"正常维保"
);
break
;
case
"50003"
:
contractVo
.
setAmount_state_unid_name
(
"正常预付款"
);
break
;
case
"50004"
:
contractVo
.
setAmount_state_unid_name
(
"正常到货款"
);
break
;
case
"50005"
:
contractVo
.
setAmount_state_unid_name
(
"正常质保款"
);
break
;
case
"50006"
:
contractVo
.
setAmount_state_unid_name
(
"逾期预付款"
);
break
;
case
"50007"
:
contractVo
.
setAmount_state_unid_name
(
"逾期到货款"
);
break
;
case
"50008"
:
contractVo
.
setAmount_state_unid_name
(
"逾期验收款"
);
break
;
case
"50009"
:
contractVo
.
setAmount_state_unid_name
(
"逾期质保款"
);
break
;
case
"50012"
:
contractVo
.
setAmount_state_unid_name
(
"逾期维保款"
);
break
;
default
:
break
;
}
}
/* if(contractVo.getProduct_line_type()!=null) {
switch(contractVo.getProduct_line_type()) {
case "1" :
...
...
@@ -578,11 +614,8 @@ public class ContractServiceImpl implements ContractService {
case
"50009"
:
exportModel
.
setAmount_state_unid_name
(
"逾期质保款"
);
break
;
case
"50010"
:
exportModel
.
setAmount_state_unid_name
(
"暂停"
);
break
;
case
"50011"
:
exportModel
.
setAmount_state_unid_name
(
"质量问题"
);
case
"50012"
:
exportModel
.
setAmount_state_unid_name
(
"逾期维保款"
);
break
;
default
:
break
;
...
...
@@ -898,12 +931,12 @@ public class ContractServiceImpl implements ContractService {
case
"进行中"
:
contractVo
.
setContract_state
(
"30003"
);
break
;
/* case "待发货":
contractVo.setContract_state("30002");
break;
case "项目暂停":
case
"暂停"
:
contractVo
.
setContract_state
(
"30004"
);
break;*/
break
;
case
"质量问题"
:
contractVo
.
setContract_state
(
"30005"
);
break
;
default
:
break
;
}
...
...
@@ -920,9 +953,9 @@ public class ContractServiceImpl implements ContractService {
case
"集成"
:
contractVo
.
setContract_type
(
"40003"
);
break
;
/*
case "维保":
case
"维保"
:
contractVo
.
setContract_type
(
"40004"
);
break;
*/
break
;
default
:
break
;
}
...
...
@@ -964,12 +997,8 @@ public class ContractServiceImpl implements ContractService {
contractVo
.
setAmount_state_unid
(
"50009"
);
break
;
case
"暂停"
:
contractVo
.
setAmount_state_unid
(
"50010"
);
break
;
case
"质量问题"
:
contractVo
.
setAmount_state_unid
(
"50011"
);
case
"逾期维保款"
:
contractVo
.
setAmount_state_unid
(
"50012"
);
break
;
default
:
...
...
@@ -1244,4 +1273,5 @@ public class ContractServiceImpl implements ContractService {
return
listValues
;
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment