修改权限

wushunjie
杜函宇 7 months ago
parent 1471a2695c
commit dcc136434c

@ -160,6 +160,7 @@ public class BmsDeclarationRecordsController extends BaseController {
/**
* 线-
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@GetMapping("/listRecords")
public TableDataInfo listRecords(BmsDeclarationRecordsDto bmsDeclarationRecordsDto) {
startPage();

@ -78,7 +78,7 @@ public class BmsEnterpriseBasicInfoController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "导入企业基础信息列表")
@Log(title = "导入企业基础信息列表", businessType = BusinessType.IMPORT)
@PostMapping(value = "/importEnterprise", consumes = "multipart/form-data")

@ -56,7 +56,7 @@ public class BmsTemplateInfoController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@GetMapping("/allList")
@ApiOperation(value = "新增项目时查询所有模板信息", response = BmsTemplateInfo.class)
public AjaxResult allList(BmsTemplateInfo bmsTemplateInfo) {
@ -101,7 +101,7 @@ public class BmsTemplateInfoController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@Log(title = "新增申报模板信息", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增申报模板信息")
@PostMapping
@ -112,7 +112,7 @@ public class BmsTemplateInfoController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@Log(title = "修改申报模板信息", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改申报模板信息")
@PostMapping("/edit")
@ -128,7 +128,7 @@ public class BmsTemplateInfoController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@Log(title = "申报模板信息", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除申报模板信息")
@PostMapping("/{ids}")

@ -68,7 +68,7 @@ public class BmsTemplateRecordController extends BaseController {
* @param bmsTemplateRecordUpdateDto
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "补录")
@PostMapping("/supplementation")
public AjaxResult supplementation(@RequestBody BmsTemplateRecordUpdateDto bmsTemplateRecordUpdateDto) {
@ -125,7 +125,7 @@ public class BmsTemplateRecordController extends BaseController {
* 线
*/
@ApiOperation(value = "删除在线模板")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@Log(title = "在线模板", businessType = BusinessType.DELETE)
@PostMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {

@ -96,7 +96,7 @@ public class JEnterpriseContactController extends BaseController {
* @param jEnterpriseContact
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,ent')")
@ApiOperation(value = "新增数据")
@PostMapping
public AjaxResult insert(@RequestBody JEnterpriseContact jEnterpriseContact) {
@ -112,7 +112,7 @@ public class JEnterpriseContactController extends BaseController {
* @param jEnterpriseContact
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,ent')")
@ApiOperation(value = "修改数据")
@PostMapping("/edit")
public AjaxResult update(@RequestBody JEnterpriseContact jEnterpriseContact) {
@ -128,7 +128,7 @@ public class JEnterpriseContactController extends BaseController {
* @param ids
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,ent')")
@ApiOperation(value = "删除数据")
@PostMapping("/{ids}")
public AjaxResult delete(@PathVariable Long[] ids) {

@ -70,7 +70,7 @@ public class JPolicyFileController extends BaseController {
*/
@ApiOperation(value = "新增数据")
@PostMapping
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
public AjaxResult insert(@RequestBody JPolicyFile jPolicyFile) {
return success(jPolicyFileService.save(jPolicyFile));
}
@ -81,7 +81,7 @@ public class JPolicyFileController extends BaseController {
* @param jPolicyFile
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "修改数据")
@PostMapping("/edit")
public AjaxResult update(@RequestBody JPolicyFile jPolicyFile) {
@ -94,7 +94,7 @@ public class JPolicyFileController extends BaseController {
* @param id
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "删除数据")
@PostMapping("/{id}")
public AjaxResult delete(@PathVariable Long id) {

@ -168,7 +168,7 @@ public class JProjectController extends BaseController {
* @param id
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "删除项目")
@PostMapping("/{id}")
public AjaxResult delete(@PathVariable Long id) {
@ -178,7 +178,7 @@ public class JProjectController extends BaseController {
/**
* excel
*/
@PreAuthorize("@ss.hasAnyRoles('admin,gov,other-gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "导入已有的excel项目数据")
@PostMapping(value = "/export", consumes = "multipart/form-data")
public AjaxResult export(@RequestPart("file") MultipartFile file) throws Exception {
@ -197,7 +197,7 @@ public class JProjectController extends BaseController {
/**
* excel
*/
// @PreAuthorize("@ss.hasAnyRoles('admin,gov,other-gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "导入下载的excel模板和参数项目数据")
@PostMapping(value = "/importTemplateProject", consumes = "multipart/form-data")
@ApiImplicitParams({

@ -163,7 +163,7 @@ public class JSmartRemindersController extends BaseController {
* @param id
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "通过主键查询单条智能提醒规则数据", response = JSmartReminders.class)
@GetMapping("{id}")
public AjaxResult selectOneSmart(@PathVariable Serializable id) {
@ -176,7 +176,7 @@ public class JSmartRemindersController extends BaseController {
* @param jSmartRemindersDq
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "新增定期提醒数据(政务端和企业端)")
@PostMapping
public AjaxResult insertDs(@RequestBody @Valid JSmartRemindersDq jSmartRemindersDq) throws SchedulerException, TaskException {
@ -195,7 +195,7 @@ public class JSmartRemindersController extends BaseController {
* @param dq
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "修改定期提醒数据")
@PostMapping("/updateDq")
public AjaxResult updateDq(@RequestBody @Valid JSmartRemindersDq dq) throws SchedulerException, TaskException {
@ -212,7 +212,7 @@ public class JSmartRemindersController extends BaseController {
* @param ndq
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "修改不定期提醒数据")
@PostMapping("/updateNdq")
public AjaxResult updateNdq(@RequestBody @Valid JSmartRemindersNDq ndq) {
@ -230,7 +230,7 @@ public class JSmartRemindersController extends BaseController {
* @param id
* @return
*/
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov')")
@ApiOperation(value = "删除数据")
@PostMapping("/{id}")
public AjaxResult delete(@PathVariable Long id) throws SchedulerException {

@ -52,7 +52,7 @@
<if test="req.road != null ">and a.road = #{req.road}</if>
<if test="req.level != null ">and b.level = #{req.level}</if>
<if test="req.responsibilityUnit != null ">and b.responsibility_unit = #{req.responsibilityUnit}</if>
<if test="req.templateName != null and templateName != ''">and b.template_name like concat('%',
<if test="req.templateName != null and req.templateName != ''">and b.template_name like concat('%',
#{req.templateName}, '%')
</if>
</where>

Loading…
Cancel
Save