Commit 8639325a authored by zuoyh's avatar zuoyh

APP版本标识功能修改查詢條件

parent 451ca7cf
......@@ -77,12 +77,15 @@ public class AppVersionMarkController extends BaseController<AppVersionMarkBiz,
* @Date: 2020/1/10
*/
@GetMapping("/findAllByQuery")
public ObjectRestResponse findAllByQuery(@RequestBody AppVersionMarkQuery query) {
public ObjectRestResponse findAllByQuery(@RequestParam(value = "page", defaultValue = "1") Integer page,
@RequestParam(value = "limit", defaultValue = "10") Integer limit,
@RequestParam(value = "mark",defaultValue = "") String mark) {
Example example = new Example(AppVersionMark.class);
if (StringUtils.isNotBlank(query.getMarkName())) {
example.createCriteria().andLike("mark", "%" + query.getMark() + "%");
if (StringUtils.isNotBlank(mark)) {
example.createCriteria().andLike("mark", "%" + mark + "%");
}
PageHelper.startPage(query.getPage(), query.getLimit());
example.setOrderByClause("`crt_time` desc");
PageHelper.startPage(page, limit);
List<AppVersionMark> listPage = appVersionMarkBiz.selectByExample(example);
return ObjectRestResponse.succ(PageInfo.of(listPage));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment