|
@@ -47,7 +47,14 @@ public class WaterSupplyChart implements Serializable {
|
|
|
this.date= DateTimeFormatter.ofPattern("yyyy-MM-dd").format(LocalDate.now().plusDays(-i));
|
|
|
|
|
|
}
|
|
|
+ public WaterSupplyChart ( Integer i,Integer type){
|
|
|
+ this.sort=i;
|
|
|
+ this.waterData=BigDecimal.ZERO;
|
|
|
+ this.powerData=BigDecimal.ZERO;
|
|
|
+ this.drugData=BigDecimal.ZERO;
|
|
|
+ this.date= DateTimeFormatter.ofPattern("yyyy-MM").format(LocalDate.now().plusMonths(-i));
|
|
|
|
|
|
+ }
|
|
|
public WaterSupplyChart (Integer i,String dateString){
|
|
|
this.sort=i;
|
|
|
this.waterData=BigDecimal.ZERO;
|