生态流量监控接口增加返回属性
parent
3d4d591d89
commit
57510912f4
|
|
@ -154,7 +154,7 @@ public class StWaterRController {
|
||||||
BigDecimal value = monthFlow.getValue();
|
BigDecimal value = monthFlow.getValue();
|
||||||
list.stream().forEach(w -> {
|
list.stream().forEach(w -> {
|
||||||
w.setApprovalV(value);
|
w.setApprovalV(value);
|
||||||
w.setIsStandard(w.getQ().compareTo(value) >= 0 ? "0" : "1");
|
w.setIsStandard(w.getQ().compareTo(value) >= 0 ? true : false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return R.ok(list);
|
return R.ok(list);
|
||||||
|
|
|
||||||
|
|
@ -70,8 +70,8 @@ public class StWaterR extends GenericPageParams implements Serializable {
|
||||||
* 是否达标
|
* 是否达标
|
||||||
*/
|
*/
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@Schema(description="是否达标(0是;1否)")
|
@Schema(description="是否达标")
|
||||||
private String isStandard;
|
private Boolean isStandard;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 水量
|
* 水量
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue