Merge branch 'master' of gitee.com:darlk/ShengTangManage into develop

This commit is contained in:
huangdeliang
2021-05-27 17:48:57 +08:00
11 changed files with 182 additions and 42 deletions

View File

@ -4,6 +4,7 @@ import java.util.Date;
import java.util.List;
import com.stdiet.common.utils.DateUtils;
import com.stdiet.common.utils.StringUtils;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -242,4 +243,22 @@ public class SysLiveSchedulController extends BaseController
List<SysLiveSchedul> list = sysLiveSchedulService.selectSysLiveSchedulList(sysLiveSchedul);
return AjaxResult.success(list);
}
/**
* 根据日期查询直播记录
*/
@GetMapping(value = "/getLiveSchedulByTime")
public AjaxResult getLiveSchedulByTime(SysLiveSchedul sysLiveSchedul){
SysLiveSchedul live = null;
try {
if(sysLiveSchedul.getFanChannel() != null && StringUtils.isNotEmpty(sysLiveSchedul.getLiveStartTimeString())){
sysLiveSchedul.setLiveStartTimeString(java.net.URLDecoder.decode(sysLiveSchedul.getLiveStartTimeString(), "UTF-8"));
sysLiveSchedul.setLiveStartTime(DateUtils.parseDate(sysLiveSchedul.getLiveStartTimeString()));
live = sysLiveSchedulService.getLiveSchedulByTime(sysLiveSchedul);
}
}catch (Exception e){
e.printStackTrace();
}
return AjaxResult.success(live);
}
}