Commit 7fc1899b authored by hongguangwu's avatar hongguangwu

MVP1.7.2 去除log.error和system.out

parent 3a72c138
......@@ -214,7 +214,7 @@ public class NoUtil {
}
}
if (pos == -1) {
System.out.println("查找字母出错");
log.info("查找字母出错");
return "error";
}
if ('Z' == alphatableb[pos]) {
......@@ -225,7 +225,7 @@ public class NoUtil {
+ 'A' + restNumberFunc(numStr.substring(1));
} else {
//ZZZZZ
System.out.println("商户序号已达到最大值,请联系管理员");
log.info("商户序号已达到最大值,请联系管理员");
return "error";
}
} else {
......
......@@ -61,7 +61,7 @@ public class LocalDateUtil {
cal.setTime(date);
return true;
}catch (ParseException pe){
System.out.println("日期解析异常,返回false");
//System.out.println("日期解析异常,返回false")
return false;
}
}
......@@ -82,7 +82,7 @@ public class LocalDateUtil {
}
return null;
}catch (Exception e){
System.out.println("字符串格式的日期转LocalDate失败");
//System.out.println("字符串格式的日期转LocalDate失败")
return null;
}
}
......@@ -108,17 +108,18 @@ public class LocalDateUtil {
pastDate = sdf.parse(strDate);
//调用Date里面的after方法来做判断
flag = pastDate.after(nowDate);
if (flag) {
System.out.println("该日期晚于今日");
}else {
System.out.println("该日期早于今日");
}
/*if (flag)
System.out.println("该日期晚于今日")
}else
System.out.println("该日期早于今日")
}*/
} catch (ParseException e) {
e.printStackTrace();
}
}else {
System.out.println("日期参数不可为空");
}
//else {
//System.out.println("日期参数不可为空")
//}
return flag;
}
......@@ -145,17 +146,17 @@ public class LocalDateUtil {
pastDate = sdf.parse(strDate);
//调用Date里面的after方法来做判断
flag = pastDate.after(nowDate);
if (flag) {
System.out.println("该日期晚于今日");
}else {
System.out.println("该日期早于今日");
}
/*if (flag)
System.out.println("该日期晚于今日")
}else
System.out.println("该日期早于今日")
}*/
} catch (ParseException e) {
e.printStackTrace();
}
}else {
System.out.println("日期参数不可为空");
}
}/*else
System.out.println("日期参数不可为空")
}*/
return flag;
}
......@@ -181,17 +182,17 @@ public class LocalDateUtil {
parseEndDate = sdf.parse(endDate);
//调用Date里面的before方法来做判断
flag = parseStartDate.before(parseEndDate);
if (flag) {
System.out.println("开始日期早于结束日期");
/*if (flag)
System.out.println("开始日期早于结束日期")
}else {
System.out.println("开始日期晚于结束日期");
}
System.out.println("开始日期晚于结束日期")
}*/
} catch (ParseException e) {
e.printStackTrace();
}
}else {
System.out.println("日期参数不可为空");
}
}/*else
System.out.println("日期参数不可为空")
}*/
return flag;
}
......@@ -225,9 +226,9 @@ public class LocalDateUtil {
} catch (ParseException e) {
e.printStackTrace();
}
}else {
}/*else {
System.out.println("年月参数不可为空");
}
}*/
return flag;
}
......@@ -256,9 +257,9 @@ public class LocalDateUtil {
} catch (ParseException e) {
e.printStackTrace();
}
}else {
System.out.println("日期参数不可为空");
}
}/*else
System.out.println("日期参数不可为空")
}*/
return dif + 1;
}
......@@ -304,9 +305,9 @@ public class LocalDateUtil {
} catch (ParseException e) {
e.printStackTrace();
}
}else {
System.out.println("日期参数不可为空");
}
}/*else
System.out.println("日期参数不可为空")
}*/
return dif;
}
......@@ -339,7 +340,7 @@ public class LocalDateUtil {
&& (rightStartDate.equals(leftEndDate) || rightStartDate.isBefore(leftEndDate)));
}
public static void main(String[] args) {
System.out.println(parseLocalDate("2022-8-3"));
}
/*public static void main(String[] args)
System.out.println(parseLocalDate("2022-8-3"))
}*/
}
......@@ -25,7 +25,7 @@ public class MailServiceImpl implements MailService {
mailMessage.setText("你好 hello world");
mailMessage.setSubject("测试Spring邮箱服务");
mailSender.send(mailMessage);
System.out.println("====完成发送!====");
//System.out.println("====完成发送!====")
return null;
}
}
......@@ -67,10 +67,10 @@ public class TStatisticsTaxSalaryTwoServiceImpl extends ServiceImpl<TStatisticsT
// 刷新对应结算月的 本期申报
tStatisticsCurrentReportService.doRefreshStatisticsCurrentReport(declareMonth, lastMonth, lastTwoMonth);
} else {
log.error(taxR.getMsg());
log.info(taxR.getMsg());
}
} else {
log.error(accountR == null ? "刷新对应结算月的 年度报账-失败!" : accountR.getMsg());
log.info(accountR == null ? "刷新对应结算月的 年度报账-失败!" : accountR.getMsg());
}
}
}
......
......@@ -334,7 +334,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
long startTime = System.currentTimeMillis();
baseMapper.updateForecastById(library);
long times = System.currentTimeMillis() - startTime;
log.error("更新一条预估耗时:" + times + "毫秒");
log.info("更新一条预估耗时:" + times + "毫秒");
isSaveAndUpdate = true;
} else {
if (BigDecimal.ZERO.compareTo(BigDecimalUtils.isNullToZero(library.getUnitSocialSum())) != CommonConstants.ZERO_INT
......@@ -1904,7 +1904,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
long startTime = System.currentTimeMillis();
baseMapper.updateForecastById(library);
long times = System.currentTimeMillis() - startTime;
log.error("更新一条预估耗时:" + times + "毫秒");
log.info("更新一条预估耗时:" + times + "毫秒");
isSaveAndUpdate = true;
} else {
if (BigDecimal.ZERO.compareTo(BigDecimalUtils.isNullToZero(library.getUnitSocialSum())) != CommonConstants.ZERO_INT) {
......@@ -2282,7 +2282,7 @@ public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMap
long startTime = System.currentTimeMillis();
baseMapper.updateForecastById(library);
long times = System.currentTimeMillis() - startTime;
log.error("更新一条预估耗时:" + times + "毫秒");
log.info("更新一条预估耗时:" + times + "毫秒");
} else {
library.setCreateBy("305");
library.setCreateName("定时生成");
......
......@@ -420,7 +420,7 @@ public class TIncomeServiceImpl extends ServiceImpl<TIncomeMapper, TIncome> impl
}else {
doJointSocialTask.asynchronousEkpIncomeAsso(income);
}
log.error("线程执行耗时:"+ (System.currentTimeMillis()-start));
log.info("线程执行耗时:"+ (System.currentTimeMillis()-start));
return true;
}
......@@ -434,7 +434,7 @@ public class TIncomeServiceImpl extends ServiceImpl<TIncomeMapper, TIncome> impl
long start = System.currentTimeMillis();
income.setSourceId(paymentId);
doJointSocialTask.asynchronousEkpIncomePayment(income,paymentId);
log.error("线程执行耗时:"+ (System.currentTimeMillis()-start));
log.info("线程执行耗时:"+ (System.currentTimeMillis()-start));
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment