库容曲线,泄流曲线按水位升序
parent
56788216ed
commit
b0e1d1d681
|
|
@ -2,6 +2,7 @@ package com.gunshi.project.xyt.controller;
|
|||
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
||||
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
|
||||
import com.gunshi.core.result.R;
|
||||
import com.gunshi.project.xyt.model.AttResBase;
|
||||
import com.gunshi.project.xyt.model.StZqrlB;
|
||||
|
|
@ -116,8 +117,13 @@ public class StZqrlBController {
|
|||
|
||||
@Operation(summary = "列表")
|
||||
@PostMapping("/list")
|
||||
public R<List<StZqrlB>> list() {
|
||||
return R.ok(service.lambdaQuery().orderByDesc(StZqrlB::getModitime).list());
|
||||
public R<List<StZqrlB>> list(@RequestBody StZqrlB dto) {
|
||||
LambdaQueryChainWrapper<StZqrlB> q = service.lambdaQuery().orderByAsc(StZqrlB::getZ);
|
||||
String stcd = dto.getStcd();
|
||||
if (StringUtils.isNotBlank(stcd)){
|
||||
q.eq(StZqrlB::getStcd, stcd);
|
||||
}
|
||||
return R.ok(q.list());
|
||||
}
|
||||
|
||||
// @Operation(summary = "分页")
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ public class StZvarlBController {
|
|||
@Operation(summary = "列表")
|
||||
@PostMapping("/list")
|
||||
public R<List<StZvarlB>> list(@RequestBody StZvarlB dto) {
|
||||
LambdaQueryChainWrapper<StZvarlB> q = service.lambdaQuery().orderByDesc(StZvarlB::getMstm);
|
||||
LambdaQueryChainWrapper<StZvarlB> q = service.lambdaQuery().orderByAsc(StZvarlB::getRz);
|
||||
String stcd = dto.getStcd();
|
||||
if (StringUtils.isNotBlank(stcd)){
|
||||
q.eq(StZvarlB::getStcd, stcd);
|
||||
|
|
|
|||
Loading…
Reference in New Issue