Commit d8cc548a authored by 周健威's avatar 周健威

添加我的定制列表

parent ffda2559
......@@ -87,11 +87,14 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom
}
@RequestMapping(value = "myCustoms",method = RequestMethod.GET)
public ObjectRestResponse<PageDataVO<CustomForm>> myCustoms(PageParam dto) {
public ObjectRestResponse<PageDataVO<CustomForm>> myCustoms(DTO dto) {
return ObjectRestResponse.succ(PageDataVO.pageInfo(dto.initQuery(), () -> baseBiz.selectByWeekend(w -> {
w.andEqualTo(CustomForm::getUserId, getAppUser().getUserid());
w.andEqualTo(CustomForm::getIsDel, SYS_FALSE);
if(null != dto.getType()) {
w.andEqualTo(CustomForm::getType, dto.getType());
}
return w;
}, " crt_time desc")));
}
......@@ -108,4 +111,9 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom
return ObjectRestResponse.succ();
}
@Data
public static class DTO extends PageParam {
private Integer type;
}
}
\ No newline at end of file
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