|
|
@ -16,7 +16,9 @@ import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
* @ClassName: CheckingController |
|
|
@ -40,8 +42,10 @@ public class DfCheckingController { |
|
|
|
@PostMapping("/list") |
|
|
|
@ApiOperation("堤防巡视检查列表") |
|
|
|
public IPage<DfChecking> list(@RequestBody SearchParam<DfChecking> sp) { |
|
|
|
sp.getParams().put(SearchParam.ORDER_BY,"update_time"); |
|
|
|
sp.getParams().put(SearchParam.SORT_BY,""); |
|
|
|
Map<String, Object> params = sp.getParams() == null ? new HashMap<>(2) : sp.getParams(); |
|
|
|
params.put(SearchParam.ORDER_BY, "update_time"); |
|
|
|
params.put(SearchParam.SORT_BY, ""); |
|
|
|
sp.setParams(params); |
|
|
|
return dfCheckingService.selectPage(sp); |
|
|
|
} |
|
|
|
|
|
|
|