Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Data-王博
finance-api
Commits
cf3681ef
Commit
cf3681ef
authored
Mar 02, 2017
by
Data-王博
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into bug_fix
parents
d5340238
1adfbeb5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
HuBeiServiceImpl.java
...n/quantgroup/financial/service/impl/HuBeiServiceImpl.java
+8
-0
DateUtil.java
src/main/java/cn/quantgroup/financial/util/DateUtil.java
+10
-0
HubeiCFCUtil.java
src/main/java/cn/quantgroup/financial/util/HubeiCFCUtil.java
+13
-0
No files found.
src/main/java/cn/quantgroup/financial/service/impl/HuBeiServiceImpl.java
View file @
cf3681ef
...
@@ -322,12 +322,20 @@ public class HuBeiServiceImpl implements IHuBeiService {
...
@@ -322,12 +322,20 @@ public class HuBeiServiceImpl implements IHuBeiService {
StringBuilder
stringBuilder
=
new
StringBuilder
();
StringBuilder
stringBuilder
=
new
StringBuilder
();
String
base64String
=
""
;
String
base64String
=
""
;
List
<
HuBeiHistory
>
errorHuBeiHistoryList
=
new
ArrayList
<>();
List
<
HuBeiHistory
>
errorHuBeiHistoryList
=
new
ArrayList
<>();
Date
deadline
=
HubeiCFCUtil
.
getTodayDeadLine
();
if
(
huBeiHistoryList
!=
null
&&
huBeiHistoryList
.
size
()>
0
){
if
(
huBeiHistoryList
!=
null
&&
huBeiHistoryList
.
size
()>
0
){
int
size
=
huBeiHistoryList
.
size
();
int
size
=
huBeiHistoryList
.
size
();
for
(
int
index
=
0
;
index
<
size
;
index
++){
for
(
int
index
=
0
;
index
<
size
;
index
++){
HuBeiHistory
history
=
huBeiHistoryList
.
get
(
index
);
HuBeiHistory
history
=
huBeiHistoryList
.
get
(
index
);
HuBeiJsonBean
jsonBean
=
history
.
getData
();
HuBeiJsonBean
jsonBean
=
history
.
getData
();
//提前还款文件 要过滤应还日小于等于当天
if
(
hubeiCFCDataType
.
get
().
compareTo
(
RETURN_ADVANCE_REPAYMENT
.
get
())==
0
){
Date
repayDate
=
DateUtil
.
dateParse
(
jsonBean
.
getRepayDate
());
if
(
repayDate
!=
null
&&
repayDate
.
before
(
deadline
)){
continue
;
}
}
//应扣不等于实扣 需要发送异常邮件
//应扣不等于实扣 需要发送异常邮件
//提前还款没有实扣
//提前还款没有实扣
if
(
hubeiCFCDataType
.
get
().
compareTo
(
RETURN_ADVANCE_REPAYMENT
.
get
())!=
0
){
if
(
hubeiCFCDataType
.
get
().
compareTo
(
RETURN_ADVANCE_REPAYMENT
.
get
())!=
0
){
...
...
src/main/java/cn/quantgroup/financial/util/DateUtil.java
View file @
cf3681ef
...
@@ -291,6 +291,16 @@ public class DateUtil {
...
@@ -291,6 +291,16 @@ public class DateUtil {
return
DateFormat
.
format
(
date
);
return
DateFormat
.
format
(
date
);
}
}
public
static
Date
dateParse
(
String
date
){
Date
d
=
null
;
try
{
d
=
DateFormat
.
parse
(
date
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
d
;
}
public
static
String
cnDateFormat
(
Date
date
)
{
public
static
String
cnDateFormat
(
Date
date
)
{
return
CNDateFormat
.
format
(
date
);
return
CNDateFormat
.
format
(
date
);
}
}
...
...
src/main/java/cn/quantgroup/financial/util/HubeiCFCUtil.java
View file @
cf3681ef
...
@@ -176,6 +176,19 @@ public class HubeiCFCUtil {
...
@@ -176,6 +176,19 @@ public class HubeiCFCUtil {
return
dates
;
return
dates
;
}
}
/**
* 当天还款日零点
* @return
*/
public
static
Date
getTodayDeadLine
(){
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
set
(
Calendar
.
MILLISECOND
,
0
);
calendar
.
set
(
Calendar
.
SECOND
,
0
);
calendar
.
set
(
Calendar
.
MINUTE
,
0
);
calendar
.
set
(
Calendar
.
HOUR_OF_DAY
,
0
);
return
calendar
.
getTime
();
}
public
static
String
getDocName
(
HubeiCFCDataType
hubeiCFCDataType
,
Byte
seqNo
){
public
static
String
getDocName
(
HubeiCFCDataType
hubeiCFCDataType
,
Byte
seqNo
){
Calendar
calendar
=
Calendar
.
getInstance
();
Calendar
calendar
=
Calendar
.
getInstance
();
// calendar.set(Calendar.DATE,calendar.get(Calendar.DATE)-1);
// calendar.set(Calendar.DATE,calendar.get(Calendar.DATE)-1);
...
...
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