|
@@ -1,8 +1,5 @@
|
|
|
package bus.controller.biz;
|
|
package bus.controller.biz;
|
|
|
|
|
|
|
|
-import bus.model.BaseEntity;
|
|
|
|
|
-import bus.model.dto.BNoticeInfoDto;
|
|
|
|
|
-import bus.model.dto.page.BNoticeInfoPageDto;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageSerializable;
|
|
import com.github.pagehelper.PageSerializable;
|
|
|
import bus.model.dto.BNoticeUserDto;
|
|
import bus.model.dto.BNoticeUserDto;
|
|
@@ -16,7 +13,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import com.qzwisdom.qzframework.core.tool.base.controller.BaseController;
|
|
import com.qzwisdom.qzframework.core.tool.base.controller.BaseController;
|
|
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -28,36 +24,23 @@ import java.util.List;
|
|
|
@Slf4j
|
|
@Slf4j
|
|
|
@CrossOrigin
|
|
@CrossOrigin
|
|
|
@RestController
|
|
@RestController
|
|
|
-@Api(tags = "公告用户接口")
|
|
|
|
|
|
|
+@Api(tags = "bNoticeUser接口")
|
|
|
@RequestMapping(value="/bNoticeUser")
|
|
@RequestMapping(value="/bNoticeUser")
|
|
|
public class BNoticeUserController implements BaseController {
|
|
public class BNoticeUserController implements BaseController {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private BNoticeUserService bNoticeUserService;
|
|
private BNoticeUserService bNoticeUserService;
|
|
|
|
|
|
|
|
- @ApiOperation("查看后已读")
|
|
|
|
|
|
|
+ @ApiOperation("添加通知用户")
|
|
|
@PostMapping("/add")
|
|
@PostMapping("/add")
|
|
|
public void add(@RequestBody BNoticeUserDto dto) {
|
|
public void add(@RequestBody BNoticeUserDto dto) {
|
|
|
bNoticeUserService.addNoticeUser(dto);
|
|
bNoticeUserService.addNoticeUser(dto);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @ApiOperation("一键已读")
|
|
|
|
|
|
|
+ @ApiOperation("批量添加通知用户")
|
|
|
@PostMapping("/addAll")
|
|
@PostMapping("/addAll")
|
|
|
public void addAll() {
|
|
public void addAll() {
|
|
|
bNoticeUserService.addNoticeUserAll();
|
|
bNoticeUserService.addNoticeUserAll();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 查询 公告(包括是否已读)
|
|
|
|
|
- * @return 公告列表,包含已读状态
|
|
|
|
|
- */
|
|
|
|
|
- @ApiOperation("小程序公告")
|
|
|
|
|
- @PostMapping("/getNoticeInfoList")
|
|
|
|
|
- public PageSerializable<BNoticeInfoDto> getNoticeInfoList(@RequestBody BaseEntity dto){
|
|
|
|
|
- PageHelper.startPage(dto.getPageNum(),dto.getPageSize());
|
|
|
|
|
- List<BNoticeInfoDto> noticeInfoList = bNoticeUserService.getNoticeInfoList();
|
|
|
|
|
- return new PageSerializable<>(noticeInfoList);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|