|
|
|
|
@ -118,7 +118,7 @@ public class LiquidTankServiceImpl extends BaseServiceImpl<LiquidTankMapper, Liq |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
return R.fail("周期为月的每月数据格式不正确"); |
|
|
|
|
} |
|
|
|
|
if (Integer.parseInt(month)>=1 && Integer.parseInt(month)<=12) { |
|
|
|
|
if (Integer.parseInt(month)>=1 && Integer.parseInt(month)<=31) { |
|
|
|
|
} else { |
|
|
|
|
return R.fail("周期为月的每月数据格式不正确"); |
|
|
|
|
} |
|
|
|
|
@ -135,7 +135,7 @@ public class LiquidTankServiceImpl extends BaseServiceImpl<LiquidTankMapper, Liq |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (String date : yearList) { |
|
|
|
|
List< String> dates = Arrays.asList(date.split("/")); |
|
|
|
|
List< String> dates = Arrays.asList(date.split("-")); |
|
|
|
|
|
|
|
|
|
String month = dates.get(0); |
|
|
|
|
String day = dates.get(1); |
|
|
|
|
|