|
|
@ -6,10 +6,12 @@ import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.exception.ServiceException;
|
|
|
|
import com.ruoyi.common.exception.ServiceException;
|
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
|
import com.ruoyi.common.utils.SecurityUtils;
|
|
|
|
import com.ruoyi.jjh.declaration.regular.TimeChange;
|
|
|
|
import com.ruoyi.jjh.declaration.regular.TimeChange;
|
|
|
|
|
|
|
|
import com.ruoyi.jjh.ent.entity.JProject;
|
|
|
|
import com.ruoyi.jjh.ent.entity.JSmartDeclaration;
|
|
|
|
import com.ruoyi.jjh.ent.entity.JSmartDeclaration;
|
|
|
|
import com.ruoyi.jjh.ent.entity.JSmartReminders;
|
|
|
|
import com.ruoyi.jjh.ent.entity.JSmartReminders;
|
|
|
|
import com.ruoyi.jjh.ent.entity.request.JSmartRemindersDq;
|
|
|
|
import com.ruoyi.jjh.ent.entity.request.JSmartRemindersDq;
|
|
|
|
import com.ruoyi.jjh.ent.entity.request.JSmartRemindersNDq;
|
|
|
|
import com.ruoyi.jjh.ent.entity.request.JSmartRemindersNDq;
|
|
|
|
|
|
|
|
import com.ruoyi.jjh.ent.service.JProjectService;
|
|
|
|
import com.ruoyi.jjh.ent.service.JSmartDeclarationService;
|
|
|
|
import com.ruoyi.jjh.ent.service.JSmartDeclarationService;
|
|
|
|
import com.ruoyi.jjh.ent.service.JSmartRemindersService;
|
|
|
|
import com.ruoyi.jjh.ent.service.JSmartRemindersService;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
@ -41,6 +43,7 @@ public class JSmartRemindersController extends BaseController {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private JSmartDeclarationService jSmartDeclarationService;
|
|
|
|
private JSmartDeclarationService jSmartDeclarationService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private TimeChange timeChange;
|
|
|
|
private TimeChange timeChange;
|
|
|
|
|
|
|
|
|
|
|
@ -49,6 +52,7 @@ public class JSmartRemindersController extends BaseController {
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return 所有数据
|
|
|
|
* @return 所有数据
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin')")
|
|
|
|
@ApiOperation(value = "定时器更新定期提醒数据(暂存)")
|
|
|
|
@ApiOperation(value = "定时器更新定期提醒数据(暂存)")
|
|
|
|
@GetMapping("/updateRegularReminders")
|
|
|
|
@GetMapping("/updateRegularReminders")
|
|
|
|
public AjaxResult updateRegularReminders() {
|
|
|
|
public AjaxResult updateRegularReminders() {
|
|
|
@ -60,6 +64,7 @@ public class JSmartRemindersController extends BaseController {
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return 所有数据
|
|
|
|
* @return 所有数据
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin')")
|
|
|
|
@ApiOperation(value = "定时器更新不定期提醒数据(暂存)")
|
|
|
|
@ApiOperation(value = "定时器更新不定期提醒数据(暂存)")
|
|
|
|
@GetMapping("/updateNoRegularReminders")
|
|
|
|
@GetMapping("/updateNoRegularReminders")
|
|
|
|
public AjaxResult updateNoRegularReminders() {
|
|
|
|
public AjaxResult updateNoRegularReminders() {
|
|
|
@ -137,7 +142,7 @@ public class JSmartRemindersController extends BaseController {
|
|
|
|
* @param jSmartReminders 查询实体
|
|
|
|
* @param jSmartReminders 查询实体
|
|
|
|
* @return 所有数据
|
|
|
|
* @return 所有数据
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
// @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
@ApiOperation(value = "分页查询智能提醒规则数据", response = JSmartReminders.class)
|
|
|
|
@ApiOperation(value = "分页查询智能提醒规则数据", response = JSmartReminders.class)
|
|
|
|
@GetMapping
|
|
|
|
@GetMapping
|
|
|
|
public AjaxResult selectAll(Page<JSmartReminders> page, JSmartReminders jSmartReminders) {
|
|
|
|
public AjaxResult selectAll(Page<JSmartReminders> page, JSmartReminders jSmartReminders) {
|
|
|
@ -151,11 +156,11 @@ public class JSmartRemindersController extends BaseController {
|
|
|
|
* @param id 主键
|
|
|
|
* @param id 主键
|
|
|
|
* @return 单条数据
|
|
|
|
* @return 单条数据
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
// @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
@ApiOperation(value = "通过主键查询单条智能提醒规则数据", response = JSmartReminders.class)
|
|
|
|
@ApiOperation(value = "通过主键查询单条智能提醒规则数据", response = JSmartReminders.class)
|
|
|
|
@GetMapping("{id}")
|
|
|
|
@GetMapping("{id}")
|
|
|
|
public AjaxResult selectOne(@PathVariable Serializable id) {
|
|
|
|
public AjaxResult selectOneSmart(@PathVariable Serializable id) {
|
|
|
|
return success(jSmartRemindersService.getById(id));
|
|
|
|
return success(jSmartRemindersService.selectOneSmart(id));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -178,7 +183,7 @@ public class JSmartRemindersController extends BaseController {
|
|
|
|
* @param dq 实体对象
|
|
|
|
* @param dq 实体对象
|
|
|
|
* @return 修改结果
|
|
|
|
* @return 修改结果
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
// @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
@ApiOperation(value = "修改定期提醒数据")
|
|
|
|
@ApiOperation(value = "修改定期提醒数据")
|
|
|
|
@PutMapping("/updateDq")
|
|
|
|
@PutMapping("/updateDq")
|
|
|
|
public AjaxResult updateDq(@RequestBody @Valid JSmartRemindersDq dq) {
|
|
|
|
public AjaxResult updateDq(@RequestBody @Valid JSmartRemindersDq dq) {
|
|
|
@ -191,7 +196,7 @@ public class JSmartRemindersController extends BaseController {
|
|
|
|
* @param ndq 实体对象
|
|
|
|
* @param ndq 实体对象
|
|
|
|
* @return 修改结果
|
|
|
|
* @return 修改结果
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
// @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
@ApiOperation(value = "修改不定期提醒数据")
|
|
|
|
@ApiOperation(value = "修改不定期提醒数据")
|
|
|
|
@PutMapping("/updateNdq")
|
|
|
|
@PutMapping("/updateNdq")
|
|
|
|
public AjaxResult updateNdq(@RequestBody @Valid JSmartRemindersNDq ndq) {
|
|
|
|
public AjaxResult updateNdq(@RequestBody @Valid JSmartRemindersNDq ndq) {
|
|
|
@ -205,7 +210,7 @@ public class JSmartRemindersController extends BaseController {
|
|
|
|
* @param id 主键结合
|
|
|
|
* @param id 主键结合
|
|
|
|
* @return 删除结果
|
|
|
|
* @return 删除结果
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
// @PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
@ApiOperation(value = "删除数据")
|
|
|
|
@ApiOperation(value = "删除数据")
|
|
|
|
@DeleteMapping
|
|
|
|
@DeleteMapping
|
|
|
|
public AjaxResult delete(@RequestParam("id") Long id) {
|
|
|
|
public AjaxResult delete(@RequestParam("id") Long id) {
|
|
|
|