|
|
@@ -101,6 +101,8 @@ public class CombineQuery {
|
|
|
@ApiModelProperty("自控类型 0、有效 1、无效 2、总数")
|
|
|
private Integer pcaType;
|
|
|
|
|
|
+ @ApiModelProperty("是否已结束")
|
|
|
+ private Integer finished;
|
|
|
|
|
|
/**
|
|
|
* 根据此提醒进行解析
|
|
|
@@ -129,6 +131,25 @@ public class CombineQuery {
|
|
|
@NotNull(message = "分页参数不可为空")
|
|
|
private Page<CombineResult> page;
|
|
|
|
|
|
+
|
|
|
+ @ApiModelProperty("按照输注开始时间排序")
|
|
|
+ private Boolean infusionStartTimeDesc;
|
|
|
+
|
|
|
+ @ApiModelProperty("按照输注是否结束排序")
|
|
|
+ private Boolean infusionFinishedDesc;
|
|
|
+
|
|
|
+ @ApiModelProperty("按照输注最后上传时间排序")
|
|
|
+ private Boolean infusionLastUploadTimeDesc;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "降序列",hidden = true)
|
|
|
+ @JsonIgnore
|
|
|
+ private List<String> orderByDesc=new ArrayList<>();
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "升序列",hidden = true)
|
|
|
+ @JsonIgnore
|
|
|
+ private List<String> orderByAsc=new ArrayList<>();
|
|
|
+
|
|
|
@ApiModelProperty("统计查询时的时间枚举条件, 1、天 2、周 3、月")
|
|
|
private StatsTimeUnit timeUnit;
|
|
|
public void setPcaCountRange(List<Integer> pcaCountRange) {
|
|
|
@@ -165,6 +186,32 @@ public class CombineQuery {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public void setInfusionStartTimeDesc(Boolean infusionStartTimeDesc) {
|
|
|
+ this.infusionStartTimeDesc = infusionStartTimeDesc;
|
|
|
+ if (Boolean.TRUE.equals(infusionStartTimeDesc)) {
|
|
|
+ orderByDesc.add("infusion_start_time");
|
|
|
+ }else if(Boolean.FALSE.equals(infusionStartTimeDesc)){
|
|
|
+ orderByAsc.add("infusion_start_time");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setInfusionFinishedDesc(Boolean infusionFinishedDesc) {
|
|
|
+ this.infusionFinishedDesc = infusionFinishedDesc;
|
|
|
+ if (Boolean.TRUE.equals(infusionFinishedDesc)) {
|
|
|
+ orderByDesc.add("infusion_finished");
|
|
|
+ }else if(Boolean.FALSE.equals(infusionFinishedDesc)){
|
|
|
+ orderByAsc.add("infusion_finished");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setInfusionLastUploadTimeDesc(Boolean infusionLastUploadTimeDesc) {
|
|
|
+ this.infusionLastUploadTimeDesc = infusionLastUploadTimeDesc;
|
|
|
+ if (Boolean.TRUE.equals(infusionLastUploadTimeDesc)) {
|
|
|
+ orderByDesc.add("last_upload_time");
|
|
|
+ }else if(Boolean.FALSE.equals(infusionLastUploadTimeDesc)){
|
|
|
+ orderByAsc.add("last_upload_time");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 将前端的提醒查询做统一封装,做请求处理
|