新增接口
This commit is contained in:
parent
683ff67711
commit
45bae40260
@ -33,6 +33,20 @@ public class NoticeConfigAppController extends DefaultBaseController {
|
||||
@Autowired
|
||||
private INoticeConfigService noticeConfigService;
|
||||
|
||||
|
||||
@ApiOperation(value = "菜单显示的栏目配置列表", notes = "菜单显示的栏目配置列表接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
|
||||
})
|
||||
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
|
||||
@GetMapping("listswitchview")
|
||||
public List<NoticeConfigDTO> listSwitchView(@RequestHeader("token") String token) {
|
||||
Map<String, Object> params = requestParams();
|
||||
return noticeConfigService.listSwitchView(params);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "新增通知公告配置", notes = "新增通知公告配置接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "token", value = "token", paramType = "header")
|
||||
@ -92,6 +106,7 @@ public class NoticeConfigAppController extends DefaultBaseController {
|
||||
return noticeConfigService.list(params);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "通知公告配置分页列表", notes = "通知公告配置分页列表接口")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "token", value = "token", paramType = "header"),
|
||||
|
@ -19,6 +19,14 @@ import java.util.Map;
|
||||
**/
|
||||
public interface INoticeConfigService {
|
||||
|
||||
|
||||
/**
|
||||
* 菜单显示的新闻栏目
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<NoticeConfigDTO> listSwitchView(Map<String, Object> params);
|
||||
|
||||
void updateMenu(String noticeConfigId, String parentMenuId,String managerMenuId, String viewMenuId, String checkMenuId);
|
||||
|
||||
NoticeConfigMenuDTO getMenu(String noticeConfigId);
|
||||
|
@ -45,6 +45,14 @@ public class NoticeConfigServiceImpl extends DefaultBaseService implements INoti
|
||||
@Autowired
|
||||
private IMenuBaseService iMenuBaseService;
|
||||
|
||||
|
||||
public List<NoticeConfigDTO> listSwitchView(Map<String, Object> params){
|
||||
params.put("configSwitch","1");
|
||||
return this.list(params);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void save(NoticeConfigVO noticeConfigVO) {
|
||||
saveReturnId(noticeConfigVO);
|
||||
|
@ -396,6 +396,9 @@
|
||||
#{noticeConfigIds[${index}]}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="configSwitch != null and configSwitch != ''">
|
||||
AND t1.config_switch = #{configSwitch}
|
||||
</if>
|
||||
ORDER BY t1.config_order
|
||||
</select>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user