This commit is contained in:
lijiaqi 2022-08-03 10:28:24 +08:00
parent 02016fcb4d
commit 9c91316785
2 changed files with 5 additions and 5 deletions

View File

@ -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));

View File

@ -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);