Commit 7fc1899b authored by hongguangwu's avatar hongguangwu

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

parent 3a72c138
...@@ -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 {
......
...@@ -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"))
} }*/
} }
...@@ -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;
} }
} }
...@@ -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());
} }
} }
} }
......
...@@ -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("定时生成");
......
...@@ -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;
} }
......
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