update
This commit is contained in:
parent
02016fcb4d
commit
9c91316785
|
@ -91,7 +91,7 @@ public class ApiBaseDataController extends ApiBaseController {
|
|||
@GetMapping("dict")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "根据字典类型拿字典列表")
|
||||
@ApiImplicitParam(name = "type", value = "字典类型 例如:sys_yes_no")
|
||||
@ApiImplicitParam(name = "type", value = "字典类型 例如:sys_yes_no,conference_attachment_category")
|
||||
public void dict(String type) {
|
||||
List<DictData> dictList = DictUtils.getDictList(type, null);
|
||||
render(Ret.ok().data(dictList));
|
||||
|
|
|
@ -138,14 +138,14 @@ public class ApiConferenceController extends ApiBaseController {
|
|||
@DynamicResponseParameters(properties = {
|
||||
@DynamicParameter(name = "data", value = "会议", dataTypeClass = Conference.class)
|
||||
})
|
||||
public void conferenceHaveAttachmentList(String title, String category,String type) {
|
||||
public void conferenceHaveAttachmentList(String title, String category, String type) {
|
||||
QueryWrapper<Conference> wrapper = getQueryWrapper(title);
|
||||
//上传文件数>=1
|
||||
wrapper.ge("attachment_num", 1);
|
||||
wrapper.eq("category", category);
|
||||
if(StrUtil.isNotBlank(type)){
|
||||
if("near".equals(type))wrapper.ge("start_time", LocalDateTime.now());
|
||||
if("history".equals(type))wrapper.lt("start_time", LocalDateTime.now());
|
||||
if (StrUtil.isNotBlank(type)) {
|
||||
if ("near".equals(type)) wrapper.ge("start_time", LocalDateTime.now().minusDays(3L));
|
||||
if ("history".equals(type)) wrapper.lt("start_time", LocalDateTime.now().minusDays(3L));
|
||||
}
|
||||
|
||||
Page page = conferenceService.page(new Page(getPageNum(), getPageSize()), wrapper);
|
||||
|
|
Loading…
Reference in New Issue