|
|
|
@ -14,6 +14,7 @@ import com.ruoyi.jjh.ent.entity.request.JMemorandumRequest;
|
|
|
|
|
import com.ruoyi.jjh.ent.service.JMemorandumService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
@ -52,12 +53,13 @@ public class JMemorandumController extends BaseController {
|
|
|
|
|
* @param jMemorandumRequest 查询实体
|
|
|
|
|
* @return 所有数据
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,ent,sightseer')")
|
|
|
|
|
@ApiOperation(value = "分页查询所有数据", response = JMemorandum.class)
|
|
|
|
|
@GetMapping
|
|
|
|
|
public AjaxResult selectAll(Page<JMemorandum> page, JMemorandumRequest jMemorandumRequest) {
|
|
|
|
|
return success(jMemorandumService.page(page, jMemorandumRequest));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin')")
|
|
|
|
|
@ApiOperation(value = "定时更新法人库-法人基本信息(统一社会信用代码)")
|
|
|
|
|
@GetMapping("/getEnterpriseInfo")
|
|
|
|
|
public AjaxResult selectAll2() {
|
|
|
|
@ -65,6 +67,7 @@ public class JMemorandumController extends BaseController {
|
|
|
|
|
return success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin')")
|
|
|
|
|
@ApiOperation(value = "定时更新法人库-企业联络人员(统一社会信用代码)")
|
|
|
|
|
@GetMapping("/getChangeContacts")
|
|
|
|
|
public AjaxResult selectAll1() {
|
|
|
|
@ -79,6 +82,7 @@ public class JMemorandumController extends BaseController {
|
|
|
|
|
* @param jMemorandumRequest 查询实体
|
|
|
|
|
* @return 所有数据
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
|
|
|
|
|
@ApiOperation(value = "根据关联项目库ID查询该ID下的备忘录", response = JMemorandum.class)
|
|
|
|
|
@GetMapping("/getIdToList")
|
|
|
|
|
public AjaxResult selectIdToAll(JMemorandumRequest jMemorandumRequest) {
|
|
|
|
@ -109,6 +113,7 @@ public class JMemorandumController extends BaseController {
|
|
|
|
|
* @param jMemorandum 实体对象
|
|
|
|
|
* @return 新增结果
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
|
@ApiOperation(value = "新增数据")
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult insert(@RequestBody JMemorandum jMemorandum) {
|
|
|
|
@ -118,6 +123,7 @@ public class JMemorandumController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 导出备忘录表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov,sightseer')")
|
|
|
|
|
@ApiOperation(value = "导出备忘录表")
|
|
|
|
|
@Log(title = "导出备忘录表", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
@ -133,6 +139,7 @@ public class JMemorandumController extends BaseController {
|
|
|
|
|
* @param jMemorandum 实体对象
|
|
|
|
|
* @return 修改结果
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
|
@ApiOperation(value = "修改数据")
|
|
|
|
|
@PostMapping("/edit")
|
|
|
|
|
public AjaxResult update(@RequestBody JMemorandum jMemorandum) {
|
|
|
|
@ -145,6 +152,7 @@ public class JMemorandumController extends BaseController {
|
|
|
|
|
* @param id 主键结合
|
|
|
|
|
* @return 删除结果
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasAnyRoles('admin,other-gov,gov')")
|
|
|
|
|
@ApiOperation(value = "删除数据")
|
|
|
|
|
@PostMapping("/{id}")
|
|
|
|
|
public AjaxResult delete(@PathVariable Long id) {
|
|
|
|
|