Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
7fc1899b
Commit
7fc1899b
authored
Nov 28, 2024
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.7.2 去除log.error和system.out
parent
3a72c138
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
45 deletions
+46
-45
NoUtil.java
.../com/yifu/cloud/plus/v1/yifu/common/core/util/NoUtil.java
+2
-2
LocalDateUtil.java
...ifu/cloud/plus/v1/yifu/insurances/util/LocalDateUtil.java
+36
-35
MailServiceImpl.java
...yifu/cloud/plus/v1/mail/service/impl/MailServiceImpl.java
+1
-1
TStatisticsTaxSalaryTwoServiceImpl.java
...lary/service/impl/TStatisticsTaxSalaryTwoServiceImpl.java
+2
-2
TForecastLibraryServiceImpl.java
...yifu/social/service/impl/TForecastLibraryServiceImpl.java
+3
-3
TIncomeServiceImpl.java
.../plus/v1/yifu/social/service/impl/TIncomeServiceImpl.java
+2
-2
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/NoUtil.java
View file @
7fc1899b
...
@@ -214,7 +214,7 @@ public class NoUtil {
...
@@ -214,7 +214,7 @@ public class NoUtil {
}
}
}
}
if
(
pos
==
-
1
)
{
if
(
pos
==
-
1
)
{
System
.
out
.
println
(
"查找字母出错"
);
log
.
info
(
"查找字母出错"
);
return
"error"
;
return
"error"
;
}
}
if
(
'Z'
==
alphatableb
[
pos
])
{
if
(
'Z'
==
alphatableb
[
pos
])
{
...
@@ -225,7 +225,7 @@ public class NoUtil {
...
@@ -225,7 +225,7 @@ public class NoUtil {
+
'A'
+
restNumberFunc
(
numStr
.
substring
(
1
));
+
'A'
+
restNumberFunc
(
numStr
.
substring
(
1
));
}
else
{
}
else
{
//ZZZZZ
//ZZZZZ
System
.
out
.
println
(
"商户序号已达到最大值,请联系管理员"
);
log
.
info
(
"商户序号已达到最大值,请联系管理员"
);
return
"error"
;
return
"error"
;
}
}
}
else
{
}
else
{
...
...
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/util/LocalDateUtil.java
View file @
7fc1899b
...
@@ -61,7 +61,7 @@ public class LocalDateUtil {
...
@@ -61,7 +61,7 @@ public class LocalDateUtil {
cal
.
setTime
(
date
);
cal
.
setTime
(
date
);
return
true
;
return
true
;
}
catch
(
ParseException
pe
){
}
catch
(
ParseException
pe
){
System
.
out
.
println
(
"日期解析异常,返回false"
);
//System.out.println("日期解析异常,返回false")
return
false
;
return
false
;
}
}
}
}
...
@@ -82,7 +82,7 @@ public class LocalDateUtil {
...
@@ -82,7 +82,7 @@ public class LocalDateUtil {
}
}
return
null
;
return
null
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
System
.
out
.
println
(
"字符串格式的日期转LocalDate失败"
);
//System.out.println("字符串格式的日期转LocalDate失败")
return
null
;
return
null
;
}
}
}
}
...
@@ -108,17 +108,18 @@ public class LocalDateUtil {
...
@@ -108,17 +108,18 @@ public class LocalDateUtil {
pastDate
=
sdf
.
parse
(
strDate
);
pastDate
=
sdf
.
parse
(
strDate
);
//调用Date里面的after方法来做判断
//调用Date里面的after方法来做判断
flag
=
pastDate
.
after
(
nowDate
);
flag
=
pastDate
.
after
(
nowDate
);
if
(
flag
)
{
/*if (flag)
System
.
out
.
println
(
"该日期晚于今日"
)
;
System.out.println("该日期晚于今日")
}
else
{
}else
System
.
out
.
println
(
"该日期早于今日"
)
;
System.out.println("该日期早于今日")
}
}
*/
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
else
{
System
.
out
.
println
(
"日期参数不可为空"
);
}
}
//else {
//System.out.println("日期参数不可为空")
//}
return
flag
;
return
flag
;
}
}
...
@@ -145,17 +146,17 @@ public class LocalDateUtil {
...
@@ -145,17 +146,17 @@ public class LocalDateUtil {
pastDate
=
sdf
.
parse
(
strDate
);
pastDate
=
sdf
.
parse
(
strDate
);
//调用Date里面的after方法来做判断
//调用Date里面的after方法来做判断
flag
=
pastDate
.
after
(
nowDate
);
flag
=
pastDate
.
after
(
nowDate
);
if
(
flag
)
{
/*if (flag)
System
.
out
.
println
(
"该日期晚于今日"
)
;
System.out.println("该日期晚于今日")
}
else
{
}else
System
.
out
.
println
(
"该日期早于今日"
)
;
System.out.println("该日期早于今日")
}
}
*/
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
else
{
}
/*else
System
.
out
.
println
(
"日期参数不可为空"
)
;
System.out.println("日期参数不可为空")
}
}
*/
return
flag
;
return
flag
;
}
}
...
@@ -181,17 +182,17 @@ public class LocalDateUtil {
...
@@ -181,17 +182,17 @@ public class LocalDateUtil {
parseEndDate
=
sdf
.
parse
(
endDate
);
parseEndDate
=
sdf
.
parse
(
endDate
);
//调用Date里面的before方法来做判断
//调用Date里面的before方法来做判断
flag
=
parseStartDate
.
before
(
parseEndDate
);
flag
=
parseStartDate
.
before
(
parseEndDate
);
if
(
flag
)
{
/*if (flag)
System
.
out
.
println
(
"开始日期早于结束日期"
)
;
System.out.println("开始日期早于结束日期")
}else {
}else {
System
.
out
.
println
(
"开始日期晚于结束日期"
)
;
System.out.println("开始日期晚于结束日期")
}
}
*/
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
else
{
}
/*else
System
.
out
.
println
(
"日期参数不可为空"
)
;
System.out.println("日期参数不可为空")
}
}
*/
return
flag
;
return
flag
;
}
}
...
@@ -225,9 +226,9 @@ public class LocalDateUtil {
...
@@ -225,9 +226,9 @@ public class LocalDateUtil {
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
else
{
}
/*
else {
System.out.println("年月参数不可为空");
System.out.println("年月参数不可为空");
}
}
*/
return
flag
;
return
flag
;
}
}
...
@@ -256,9 +257,9 @@ public class LocalDateUtil {
...
@@ -256,9 +257,9 @@ public class LocalDateUtil {
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
else
{
}
/*else
System
.
out
.
println
(
"日期参数不可为空"
)
;
System.out.println("日期参数不可为空")
}
}
*/
return
dif
+
1
;
return
dif
+
1
;
}
}
...
@@ -304,9 +305,9 @@ public class LocalDateUtil {
...
@@ -304,9 +305,9 @@ public class LocalDateUtil {
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
else
{
}
/*else
System
.
out
.
println
(
"日期参数不可为空"
)
;
System.out.println("日期参数不可为空")
}
}
*/
return
dif
;
return
dif
;
}
}
...
@@ -339,7 +340,7 @@ public class LocalDateUtil {
...
@@ -339,7 +340,7 @@ public class LocalDateUtil {
&&
(
rightStartDate
.
equals
(
leftEndDate
)
||
rightStartDate
.
isBefore
(
leftEndDate
)));
&&
(
rightStartDate
.
equals
(
leftEndDate
)
||
rightStartDate
.
isBefore
(
leftEndDate
)));
}
}
public
static
void
main
(
String
[]
args
)
{
/*public static void main(String[] args)
System
.
out
.
println
(
parseLocalDate
(
"2022-8-3"
))
;
System.out.println(parseLocalDate("2022-8-3"))
}
}
*/
}
}
yifu-mail/yifu-mail-biz/src/main/java/com/yifu/cloud/plus/v1/mail/service/impl/MailServiceImpl.java
View file @
7fc1899b
...
@@ -25,7 +25,7 @@ public class MailServiceImpl implements MailService {
...
@@ -25,7 +25,7 @@ public class MailServiceImpl implements MailService {
mailMessage
.
setText
(
"你好 hello world"
);
mailMessage
.
setText
(
"你好 hello world"
);
mailMessage
.
setSubject
(
"测试Spring邮箱服务"
);
mailMessage
.
setSubject
(
"测试Spring邮箱服务"
);
mailSender
.
send
(
mailMessage
);
mailSender
.
send
(
mailMessage
);
System
.
out
.
println
(
"====完成发送!===="
);
//System.out.println("====完成发送!====")
return
null
;
return
null
;
}
}
}
}
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TStatisticsTaxSalaryTwoServiceImpl.java
View file @
7fc1899b
...
@@ -67,10 +67,10 @@ public class TStatisticsTaxSalaryTwoServiceImpl extends ServiceImpl<TStatisticsT
...
@@ -67,10 +67,10 @@ public class TStatisticsTaxSalaryTwoServiceImpl extends ServiceImpl<TStatisticsT
// 刷新对应结算月的 本期申报
// 刷新对应结算月的 本期申报
tStatisticsCurrentReportService
.
doRefreshStatisticsCurrentReport
(
declareMonth
,
lastMonth
,
lastTwoMonth
);
tStatisticsCurrentReportService
.
doRefreshStatisticsCurrentReport
(
declareMonth
,
lastMonth
,
lastTwoMonth
);
}
else
{
}
else
{
log
.
error
(
taxR
.
getMsg
());
log
.
info
(
taxR
.
getMsg
());
}
}
}
else
{
}
else
{
log
.
error
(
accountR
==
null
?
"刷新对应结算月的 年度报账-失败!"
:
accountR
.
getMsg
());
log
.
info
(
accountR
==
null
?
"刷新对应结算月的 年度报账-失败!"
:
accountR
.
getMsg
());
}
}
}
}
}
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TForecastLibraryServiceImpl.java
View file @
7fc1899b
...
@@ -334,7 +334,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
...
@@ -334,7 +334,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
long
startTime
=
System
.
currentTimeMillis
();
long
startTime
=
System
.
currentTimeMillis
();
baseMapper
.
updateForecastById
(
library
);
baseMapper
.
updateForecastById
(
library
);
long
times
=
System
.
currentTimeMillis
()
-
startTime
;
long
times
=
System
.
currentTimeMillis
()
-
startTime
;
log
.
error
(
"更新一条预估耗时:"
+
times
+
"毫秒"
);
log
.
info
(
"更新一条预估耗时:"
+
times
+
"毫秒"
);
isSaveAndUpdate
=
true
;
isSaveAndUpdate
=
true
;
}
else
{
}
else
{
if
(
BigDecimal
.
ZERO
.
compareTo
(
BigDecimalUtils
.
isNullToZero
(
library
.
getUnitSocialSum
()))
!=
CommonConstants
.
ZERO_INT
if
(
BigDecimal
.
ZERO
.
compareTo
(
BigDecimalUtils
.
isNullToZero
(
library
.
getUnitSocialSum
()))
!=
CommonConstants
.
ZERO_INT
...
@@ -1904,7 +1904,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
...
@@ -1904,7 +1904,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
long
startTime
=
System
.
currentTimeMillis
();
long
startTime
=
System
.
currentTimeMillis
();
baseMapper
.
updateForecastById
(
library
);
baseMapper
.
updateForecastById
(
library
);
long
times
=
System
.
currentTimeMillis
()
-
startTime
;
long
times
=
System
.
currentTimeMillis
()
-
startTime
;
log
.
error
(
"更新一条预估耗时:"
+
times
+
"毫秒"
);
log
.
info
(
"更新一条预估耗时:"
+
times
+
"毫秒"
);
isSaveAndUpdate
=
true
;
isSaveAndUpdate
=
true
;
}
else
{
}
else
{
if
(
BigDecimal
.
ZERO
.
compareTo
(
BigDecimalUtils
.
isNullToZero
(
library
.
getUnitSocialSum
()))
!=
CommonConstants
.
ZERO_INT
)
{
if
(
BigDecimal
.
ZERO
.
compareTo
(
BigDecimalUtils
.
isNullToZero
(
library
.
getUnitSocialSum
()))
!=
CommonConstants
.
ZERO_INT
)
{
...
@@ -2282,7 +2282,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
...
@@ -2282,7 +2282,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
long
startTime
=
System
.
currentTimeMillis
();
long
startTime
=
System
.
currentTimeMillis
();
baseMapper
.
updateForecastById
(
library
);
baseMapper
.
updateForecastById
(
library
);
long
times
=
System
.
currentTimeMillis
()
-
startTime
;
long
times
=
System
.
currentTimeMillis
()
-
startTime
;
log
.
error
(
"更新一条预估耗时:"
+
times
+
"毫秒"
);
log
.
info
(
"更新一条预估耗时:"
+
times
+
"毫秒"
);
}
else
{
}
else
{
library
.
setCreateBy
(
"305"
);
library
.
setCreateBy
(
"305"
);
library
.
setCreateName
(
"定时生成"
);
library
.
setCreateName
(
"定时生成"
);
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TIncomeServiceImpl.java
View file @
7fc1899b
...
@@ -420,7 +420,7 @@ public class TIncomeServiceImpl extends ServiceImpl<TIncomeMapper, TIncome> impl
...
@@ -420,7 +420,7 @@ public class TIncomeServiceImpl extends ServiceImpl<TIncomeMapper, TIncome> impl
}
else
{
}
else
{
doJointSocialTask
.
asynchronousEkpIncomeAsso
(
income
);
doJointSocialTask
.
asynchronousEkpIncomeAsso
(
income
);
}
}
log
.
error
(
"线程执行耗时:"
+
(
System
.
currentTimeMillis
()-
start
));
log
.
info
(
"线程执行耗时:"
+
(
System
.
currentTimeMillis
()-
start
));
return
true
;
return
true
;
}
}
...
@@ -434,7 +434,7 @@ public class TIncomeServiceImpl extends ServiceImpl<TIncomeMapper, TIncome> impl
...
@@ -434,7 +434,7 @@ public class TIncomeServiceImpl extends ServiceImpl<TIncomeMapper, TIncome> impl
long
start
=
System
.
currentTimeMillis
();
long
start
=
System
.
currentTimeMillis
();
income
.
setSourceId
(
paymentId
);
income
.
setSourceId
(
paymentId
);
doJointSocialTask
.
asynchronousEkpIncomePayment
(
income
,
paymentId
);
doJointSocialTask
.
asynchronousEkpIncomePayment
(
income
,
paymentId
);
log
.
error
(
"线程执行耗时:"
+
(
System
.
currentTimeMillis
()-
start
));
log
.
info
(
"线程执行耗时:"
+
(
System
.
currentTimeMillis
()-
start
));
return
true
;
return
true
;
}
}
...
...
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