Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
c5aaf590f2
|
@ -2,6 +2,7 @@ package io.renren.common.controller;
|
||||||
|
|
||||||
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.page.PageData;
|
import io.renren.common.page.PageData;
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
import io.renren.common.validator.ValidatorUtils;
|
import io.renren.common.validator.ValidatorUtils;
|
||||||
|
@ -41,14 +42,17 @@ import java.util.stream.Collectors;
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/ability/center")
|
@RequestMapping("/ability/center")
|
||||||
public class AbilityCenterController {
|
public class AbilityCenterController {
|
||||||
private static Logger logger = LoggerFactory.getLogger(AbilityCenterController.class);
|
|
||||||
|
private static final Logger logger = LoggerFactory.getLogger(AbilityCenterController.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ActProcessService actProcessService;
|
private ActProcessService actProcessService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private TAbilityApplicationService tAbilityApplicationService;
|
private TAbilityApplicationService tAbilityApplicationService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private ActRunningService actRunningService;
|
private ActRunningService actRunningService;
|
||||||
private static String key = "abilityprocess";
|
|
||||||
|
private static final String key = "abilityprocess";
|
||||||
|
|
||||||
private static Map<String, Object> params = new HashMap<String, Object>() {
|
private static Map<String, Object> params = new HashMap<String, Object>() {
|
||||||
{
|
{
|
||||||
|
@ -66,6 +70,7 @@ public class AbilityCenterController {
|
||||||
*/
|
*/
|
||||||
@PostMapping(value = "/apply")
|
@PostMapping(value = "/apply")
|
||||||
@ApiOperation("批量进行能力申请")
|
@ApiOperation("批量进行能力申请")
|
||||||
|
@LogOperation("批量进行能力申请")
|
||||||
public Result<List<ProcessInstanceDTO>> apply(@RequestBody TAbilityBatchApplicationDTO abilityBatchApplicationDTO) {
|
public Result<List<ProcessInstanceDTO>> apply(@RequestBody TAbilityBatchApplicationDTO abilityBatchApplicationDTO) {
|
||||||
// 仿照请求接口 /act/process/lastestPage
|
// 仿照请求接口 /act/process/lastestPage
|
||||||
PageData<Map<String, Object>> page = actProcessService.page(params);
|
PageData<Map<String, Object>> page = actProcessService.page(params);
|
||||||
|
|
|
@ -33,7 +33,7 @@ import java.util.stream.Collectors;
|
||||||
@RequestMapping("/census/center")
|
@RequestMapping("/census/center")
|
||||||
public class CensusController {
|
public class CensusController {
|
||||||
|
|
||||||
private static Logger logger = LoggerFactory.getLogger(CensusController.class);
|
private static final Logger logger = LoggerFactory.getLogger(CensusController.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ResourceService resourceService;
|
private ResourceService resourceService;
|
||||||
|
@ -57,6 +57,7 @@ public class CensusController {
|
||||||
*/
|
*/
|
||||||
@GetMapping(value = "/resource_amount")
|
@GetMapping(value = "/resource_amount")
|
||||||
@ApiOperation("各类资源数目")
|
@ApiOperation("各类资源数目")
|
||||||
|
@LogOperation("各类资源数目")
|
||||||
public Result<List<Map<String, Object>>> resourceAmount() {
|
public Result<List<Map<String, Object>>> resourceAmount() {
|
||||||
List<Map<String, Object>> dbAmount = resourceService.getAmountGroupByType();
|
List<Map<String, Object>> dbAmount = resourceService.getAmountGroupByType();
|
||||||
dbAmount = dbAmount.stream().filter(index -> Arrays.asList(censusTypes).contains(index.get("type").toString())).collect(Collectors.toList());
|
dbAmount = dbAmount.stream().filter(index -> Arrays.asList(censusTypes).contains(index.get("type").toString())).collect(Collectors.toList());
|
||||||
|
@ -85,6 +86,7 @@ public class CensusController {
|
||||||
|
|
||||||
@GetMapping(value = "/whole_amount")
|
@GetMapping(value = "/whole_amount")
|
||||||
@ApiOperation("平台整体情况")
|
@ApiOperation("平台整体情况")
|
||||||
|
@LogOperation("平台整体情况")
|
||||||
public Result<List<Map<String, Object>>> wholeAmount() {
|
public Result<List<Map<String, Object>>> wholeAmount() {
|
||||||
List<Map<String, Object>> result = Collections.synchronizedList(new ArrayList<>());
|
List<Map<String, Object>> result = Collections.synchronizedList(new ArrayList<>());
|
||||||
|
|
||||||
|
@ -151,6 +153,7 @@ public class CensusController {
|
||||||
|
|
||||||
@GetMapping(value = "/apply_amount")
|
@GetMapping(value = "/apply_amount")
|
||||||
@ApiOperation("各类资源申请成功数目")
|
@ApiOperation("各类资源申请成功数目")
|
||||||
|
@LogOperation("各类资源申请成功数目")
|
||||||
public Result<List<Map<String, Object>>> applyAmount() {
|
public Result<List<Map<String, Object>>> applyAmount() {
|
||||||
List<Map<String, Object>> dbAmount = tAbilityApplicationService.getAmountGroupByType();
|
List<Map<String, Object>> dbAmount = tAbilityApplicationService.getAmountGroupByType();
|
||||||
List<String> temp = dbAmount.stream().map(index -> index.get("type").toString()).collect(Collectors.toList());
|
List<String> temp = dbAmount.stream().map(index -> index.get("type").toString()).collect(Collectors.toList());
|
||||||
|
|
|
@ -43,9 +43,11 @@ import java.util.stream.Collectors;
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/census/center/v2")
|
@RequestMapping("/census/center/v2")
|
||||||
public class CensusControllerV2 {
|
public class CensusControllerV2 {
|
||||||
|
|
||||||
@Value("${project.place}")
|
@Value("${project.place}")
|
||||||
private Integer projectPlace;
|
private Integer projectPlace;
|
||||||
@Value("${project.higher}")
|
@Value("${project.higher}")
|
||||||
|
|
||||||
private Boolean higher;
|
private Boolean higher;
|
||||||
private static final Logger logger = LoggerFactory.getLogger(CensusControllerV2.class);
|
private static final Logger logger = LoggerFactory.getLogger(CensusControllerV2.class);
|
||||||
|
|
||||||
|
@ -102,8 +104,8 @@ public class CensusControllerV2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/trafficStatistics")
|
@PostMapping("/trafficStatistics")
|
||||||
@ApiOperation("浏览量统计")
|
@ApiOperation("能力云图-浏览量统计")
|
||||||
@LogOperation("浏览量统计")
|
@LogOperation("能力云图-浏览量统计")
|
||||||
public Result trafficStatistics(@RequestBody JSONObject jsonObject) {
|
public Result trafficStatistics(@RequestBody JSONObject jsonObject) {
|
||||||
HashMap<String, Object> resultMap = new HashMap<>();
|
HashMap<String, Object> resultMap = new HashMap<>();
|
||||||
String startDate = jsonObject.getString("startDate");
|
String startDate = jsonObject.getString("startDate");
|
||||||
|
@ -116,8 +118,8 @@ public class CensusControllerV2 {
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/applicationNum")
|
@GetMapping("/applicationNum")
|
||||||
@ApiOperation("应用资源数量统计")
|
@ApiOperation("能力云图-应用资源数量统计")
|
||||||
@LogOperation("应用资源数量统计")
|
@LogOperation("能力云图-应用资源数量统计")
|
||||||
public Result<List<Map<String, Object>>> applicationNum() {
|
public Result<List<Map<String, Object>>> applicationNum() {
|
||||||
List<Map<String, Object>> result = new CopyOnWriteArrayList<>();
|
List<Map<String, Object>> result = new CopyOnWriteArrayList<>();
|
||||||
|
|
||||||
|
@ -157,16 +159,16 @@ public class CensusControllerV2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/districtResourceRank")
|
@GetMapping("/districtResourceRank")
|
||||||
@ApiOperation("应用资源区县市排名")
|
@ApiOperation("能力云图-应用资源区县市排名")
|
||||||
@LogOperation("应用资源区县市排名")
|
@LogOperation("能力云图-应用资源区县市排名")
|
||||||
public Result<List<Map<String, Object>>> districtResourceRank() {
|
public Result<List<Map<String, Object>>> districtResourceRank() {
|
||||||
List<Map<String, Object>> result = resourceRank(3);
|
List<Map<String, Object>> result = resourceRank(3);
|
||||||
return new Result().ok(result);
|
return new Result().ok(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/cityResourceRank")
|
@GetMapping("/cityResourceRank")
|
||||||
@ApiOperation("应用资源委办局排名")
|
@ApiOperation("能力云图-应用资源委办局排名")
|
||||||
@LogOperation("应用资源委办局排名")
|
@LogOperation("能力云图-应用资源委办局排名")
|
||||||
public Result<List<Map<String, Object>>> cityResourceRank() {
|
public Result<List<Map<String, Object>>> cityResourceRank() {
|
||||||
List<Map<String, Object>> result = resourceRank(2);
|
List<Map<String, Object>> result = resourceRank(2);
|
||||||
return new Result().ok(result);
|
return new Result().ok(result);
|
||||||
|
@ -217,8 +219,8 @@ public class CensusControllerV2 {
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/assemblerInfo")
|
@GetMapping("/assemblerInfo")
|
||||||
@ApiOperation("组件服务简况")
|
@ApiOperation("能力云图-组件服务简况")
|
||||||
@LogOperation("组件服务简况")
|
@LogOperation("能力云图-组件服务简况")
|
||||||
public Result<List<Map<String, Object>>> assemblerInfo() {
|
public Result<List<Map<String, Object>>> assemblerInfo() {
|
||||||
List<Map<String, Object>> result = new CopyOnWriteArrayList<>();
|
List<Map<String, Object>> result = new CopyOnWriteArrayList<>();
|
||||||
CompletableFuture<Void> allAssemblyAmount = CompletableFuture.supplyAsync(() -> { // 获取平台总组件服务数目
|
CompletableFuture<Void> allAssemblyAmount = CompletableFuture.supplyAsync(() -> { // 获取平台总组件服务数目
|
||||||
|
@ -277,8 +279,8 @@ public class CensusControllerV2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/knowledgeInfo")
|
@GetMapping("/knowledgeInfo")
|
||||||
@ApiOperation("知识库简况")
|
@ApiOperation("能力云图-知识库简况")
|
||||||
@LogOperation("知识库简况")
|
@LogOperation("能力云图-知识库简况")
|
||||||
public Result<List<Map<String, Object>>> knowledgeInfo() {
|
public Result<List<Map<String, Object>>> knowledgeInfo() {
|
||||||
List<Map<String, Object>> result = new CopyOnWriteArrayList<>();
|
List<Map<String, Object>> result = new CopyOnWriteArrayList<>();
|
||||||
CompletableFuture<Void> allKnowledgeAmount = CompletableFuture.supplyAsync(() -> { // 获取平台总知识库数目
|
CompletableFuture<Void> allKnowledgeAmount = CompletableFuture.supplyAsync(() -> { // 获取平台总知识库数目
|
||||||
|
@ -307,15 +309,15 @@ public class CensusControllerV2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/componentServiceRank")
|
@GetMapping("/componentServiceRank")
|
||||||
@ApiOperation("组件服务排名")
|
@ApiOperation("能力云图-组件服务排名")
|
||||||
@LogOperation("组件服务排名")
|
@LogOperation("能力云图-组件服务排名")
|
||||||
public Result componentServiceRank(String type) {
|
public Result componentServiceRank(String type) {
|
||||||
return new Result().ok(resourceService.componentServiceRank(type));
|
return new Result().ok(resourceService.componentServiceRank(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/infrastructureInfo")
|
@GetMapping("/infrastructureInfo")
|
||||||
@ApiOperation("基础设施简况")
|
@ApiOperation("能力云图-基础设施简况")
|
||||||
@LogOperation("基础设施简况")
|
@LogOperation("能力云图-基础设施简况")
|
||||||
public Result<List<Map<String, Object>>> infrastructureInfo() {
|
public Result<List<Map<String, Object>>> infrastructureInfo() {
|
||||||
List<Map<String, Object>> result = new CopyOnWriteArrayList<>();
|
List<Map<String, Object>> result = new CopyOnWriteArrayList<>();
|
||||||
CompletableFuture<Void> allAmount = null;
|
CompletableFuture<Void> allAmount = null;
|
||||||
|
@ -372,8 +374,8 @@ public class CensusControllerV2 {
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/dataResourceInfo")
|
@GetMapping("/dataResourceInfo")
|
||||||
@ApiOperation("数据资源简况")
|
@ApiOperation("能力云图-数据资源简况")
|
||||||
@LogOperation("数据资源简况")
|
@LogOperation("能力云图-数据资源简况")
|
||||||
public Result<List<Map<String, Object>>> dataResourceInfo() {
|
public Result<List<Map<String, Object>>> dataResourceInfo() {
|
||||||
List<Map<String, Object>> result = new CopyOnWriteArrayList<>();
|
List<Map<String, Object>> result = new CopyOnWriteArrayList<>();
|
||||||
CompletableFuture<Void> allAmount = null;
|
CompletableFuture<Void> allAmount = null;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package io.renren.common.controller;
|
package io.renren.common.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.page.PageData;
|
import io.renren.common.page.PageData;
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
import io.renren.modules.activiti.dto.ProcessInstanceDTO;
|
import io.renren.modules.activiti.dto.ProcessInstanceDTO;
|
||||||
|
@ -41,9 +42,10 @@ public class CommentController {
|
||||||
private TDemandCommentService tDemandCommentService;
|
private TDemandCommentService tDemandCommentService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private JdbcTemplate jdbcTemplate;
|
private JdbcTemplate jdbcTemplate;
|
||||||
private static Logger logger = LoggerFactory.getLogger(CommentController.class);
|
|
||||||
|
|
||||||
private static String key = "comment_review";
|
private static final Logger logger = LoggerFactory.getLogger(CommentController.class);
|
||||||
|
|
||||||
|
private static final String key = "comment_review";
|
||||||
|
|
||||||
private static Map<String, Object> params = new HashMap<String, Object>() {
|
private static Map<String, Object> params = new HashMap<String, Object>() {
|
||||||
{
|
{
|
||||||
|
@ -60,6 +62,7 @@ public class CommentController {
|
||||||
*/
|
*/
|
||||||
@PostMapping(value = "/apply")
|
@PostMapping(value = "/apply")
|
||||||
@ApiOperation("批量进行评论审核申请")
|
@ApiOperation("批量进行评论审核申请")
|
||||||
|
@LogOperation("批量进行评论审核申请")
|
||||||
public Result<ProcessInstanceDTO> apply(@RequestBody TDemandCommentDTO tDemandCommentDTO) {
|
public Result<ProcessInstanceDTO> apply(@RequestBody TDemandCommentDTO tDemandCommentDTO) {
|
||||||
// 仿照请求接口 /act/process/lastestPage
|
// 仿照请求接口 /act/process/lastestPage
|
||||||
PageData<Map<String, Object>> page = actProcessService.page(params);
|
PageData<Map<String, Object>> page = actProcessService.page(params);
|
||||||
|
|
|
@ -2,6 +2,7 @@ package io.renren.common.controller;
|
||||||
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.page.PageData;
|
import io.renren.common.page.PageData;
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
import io.renren.common.validator.ValidatorUtils;
|
import io.renren.common.validator.ValidatorUtils;
|
||||||
|
@ -32,7 +33,8 @@ import java.util.Map;
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/demand_v2/center")
|
@RequestMapping("/demand_v2/center")
|
||||||
public class DemandDataController {
|
public class DemandDataController {
|
||||||
private static Logger logger = LoggerFactory.getLogger(DemandDataController.class);
|
|
||||||
|
private static final Logger logger = LoggerFactory.getLogger(DemandDataController.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ActProcessService actProcessService;
|
private ActProcessService actProcessService;
|
||||||
|
@ -41,7 +43,7 @@ public class DemandDataController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private TDemandDataService tDemandDataService;
|
private TDemandDataService tDemandDataService;
|
||||||
|
|
||||||
private static String key = "abilitydemandapply";
|
private static final String key = "abilitydemandapply";
|
||||||
|
|
||||||
private static Map<String, Object> params = new HashMap<String, Object>() {
|
private static Map<String, Object> params = new HashMap<String, Object>() {
|
||||||
{
|
{
|
||||||
|
@ -52,6 +54,7 @@ public class DemandDataController {
|
||||||
|
|
||||||
@PostMapping(value = "/apply")
|
@PostMapping(value = "/apply")
|
||||||
@ApiOperation("进行能力需求申请")
|
@ApiOperation("进行能力需求申请")
|
||||||
|
@LogOperation("进行能力需求申请")
|
||||||
public Result<ProcessInstanceDTO> apply(@RequestBody TDemandDataDTO tDemandDataDTO) {
|
public Result<ProcessInstanceDTO> apply(@RequestBody TDemandDataDTO tDemandDataDTO) {
|
||||||
// 仿照请求接口 /act/process/lastestPage
|
// 仿照请求接口 /act/process/lastestPage
|
||||||
PageData<Map<String, Object>> page = actProcessService.page(params);
|
PageData<Map<String, Object>> page = actProcessService.page(params);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package io.renren.common.controller;
|
package io.renren.common.controller;
|
||||||
|
|
||||||
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
|
@ -35,7 +36,8 @@ public class FileUploadController {
|
||||||
private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd/");
|
private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd/");
|
||||||
|
|
||||||
@PostMapping("/upload")
|
@PostMapping("/upload")
|
||||||
@ApiOperation("上传")
|
@ApiOperation("文件上传")
|
||||||
|
@LogOperation("文件上传")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "file", value = "文件", paramType = "file", dataType = "file", required = true)
|
@ApiImplicitParam(name = "file", value = "文件", paramType = "file", dataType = "file", required = true)
|
||||||
})
|
})
|
||||||
|
|
|
@ -2,6 +2,7 @@ package io.renren.common.controller;
|
||||||
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
import io.renren.modules.activiti.service.ActTaskService;
|
import io.renren.modules.activiti.service.ActTaskService;
|
||||||
import io.renren.modules.sys.dto.SysUserDTO;
|
import io.renren.modules.sys.dto.SysUserDTO;
|
||||||
|
@ -36,6 +37,7 @@ public class RejectController {
|
||||||
|
|
||||||
@PostMapping("relaunch/{taskId}")
|
@PostMapping("relaunch/{taskId}")
|
||||||
@ApiOperation("携带更新后的表单重新发起流程")
|
@ApiOperation("携带更新后的表单重新发起流程")
|
||||||
|
@LogOperation("携带更新后的表单重新发起流程")
|
||||||
public Result relaunch(@PathVariable("taskId") String taskId, @RequestBody Map<String, Object> params) {
|
public Result relaunch(@PathVariable("taskId") String taskId, @RequestBody Map<String, Object> params) {
|
||||||
if (StringUtils.isEmpty(taskId)) {
|
if (StringUtils.isEmpty(taskId)) {
|
||||||
return new Result().error("流程taskId未传参");
|
return new Result().error("流程taskId未传参");
|
||||||
|
|
|
@ -4,6 +4,7 @@ package io.renren.common.controller;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.crypto.SecureUtil;
|
import cn.hutool.crypto.SecureUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.page.PageData;
|
import io.renren.common.page.PageData;
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
import io.renren.common.validator.ValidatorUtils;
|
import io.renren.common.validator.ValidatorUtils;
|
||||||
|
@ -44,7 +45,7 @@ import java.util.stream.Collectors;
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/resource/center")
|
@RequestMapping("/resource/center")
|
||||||
public class ResourceMountController {
|
public class ResourceMountController {
|
||||||
private static Logger logger = LoggerFactory.getLogger(ResourceMountController.class);
|
private static final Logger logger = LoggerFactory.getLogger(ResourceMountController.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ActProcessService actProcessService;
|
private ActProcessService actProcessService;
|
||||||
|
@ -60,18 +61,18 @@ public class ResourceMountController {
|
||||||
@Autowired
|
@Autowired
|
||||||
protected TaskService taskService;
|
protected TaskService taskService;
|
||||||
|
|
||||||
private static String apply_key = "resourcemountapply"; // 资源上架
|
private static final String apply_key = "resourcemountapply"; // 资源上架
|
||||||
|
|
||||||
private static String undercarriage_key = "resourcundercarriageapply"; // 资源下架
|
private static final String undercarriage_key = "resourcundercarriageapply"; // 资源下架
|
||||||
|
|
||||||
private static Map<String, Object> apply_params = new HashMap<String, Object>() {
|
private static final Map<String, Object> apply_params = new HashMap<String, Object>() {
|
||||||
{
|
{
|
||||||
put("isLatestVersion", true); // 取最新版本
|
put("isLatestVersion", true); // 取最新版本
|
||||||
put("key", apply_key); // 限定 能力资源上架
|
put("key", apply_key); // 限定 能力资源上架
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private static Map<String, Object> undercarriage_params = new HashMap<String, Object>() {
|
private static final Map<String, Object> undercarriage_params = new HashMap<String, Object>() {
|
||||||
{
|
{
|
||||||
put("isLatestVersion", true); // 取最新版本
|
put("isLatestVersion", true); // 取最新版本
|
||||||
put("key", undercarriage_key); // 限定 资源下架
|
put("key", undercarriage_key); // 限定 资源下架
|
||||||
|
@ -81,6 +82,7 @@ public class ResourceMountController {
|
||||||
|
|
||||||
@PostMapping(value = "/apply")
|
@PostMapping(value = "/apply")
|
||||||
@ApiOperation("批量进行能力上架申请")
|
@ApiOperation("批量进行能力上架申请")
|
||||||
|
@LogOperation("批量进行能力上架申请")
|
||||||
public Result<List<ProcessInstanceDTO>> apply(@RequestBody TResourceBatchMountApplyDTO tResourceBatchMountApplyDTO) {
|
public Result<List<ProcessInstanceDTO>> apply(@RequestBody TResourceBatchMountApplyDTO tResourceBatchMountApplyDTO) {
|
||||||
// 仿照请求接口 /act/process/lastestPage
|
// 仿照请求接口 /act/process/lastestPage
|
||||||
PageData<Map<String, Object>> page = actProcessService.page(apply_params);
|
PageData<Map<String, Object>> page = actProcessService.page(apply_params);
|
||||||
|
@ -143,6 +145,7 @@ public class ResourceMountController {
|
||||||
|
|
||||||
@PostMapping(value = "/undercarriage")
|
@PostMapping(value = "/undercarriage")
|
||||||
@ApiOperation("批量进行能力下架申请")
|
@ApiOperation("批量进行能力下架申请")
|
||||||
|
@LogOperation("批量进行能力下架申请")
|
||||||
public Result<List<ProcessInstanceDTO>> undercarriage(@RequestBody TResourceUndercarriageApplyDTO tResourceUndercarriageApplyDTO) {
|
public Result<List<ProcessInstanceDTO>> undercarriage(@RequestBody TResourceUndercarriageApplyDTO tResourceUndercarriageApplyDTO) {
|
||||||
// 仿照请求接口 /act/process/lastestPage
|
// 仿照请求接口 /act/process/lastestPage
|
||||||
PageData<Map<String, Object>> page = actProcessService.page(undercarriage_params);
|
PageData<Map<String, Object>> page = actProcessService.page(undercarriage_params);
|
||||||
|
|
|
@ -32,7 +32,8 @@ public class ActModelController {
|
||||||
private ActModelService actModelService;
|
private ActModelService actModelService;
|
||||||
|
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("模型管理-分页查询")
|
||||||
|
@LogOperation("模型管理-分页查询")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -47,8 +48,8 @@ public class ActModelController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@ApiOperation("新增模型")
|
@ApiOperation("模型管理-新增模型")
|
||||||
@LogOperation("新增模型")
|
@LogOperation("模型管理-新增模型")
|
||||||
// @RequiresPermissions("sys:model:all")
|
// @RequiresPermissions("sys:model:all")
|
||||||
public Result save(@RequestBody ModelDTO dto) throws Exception{
|
public Result save(@RequestBody ModelDTO dto) throws Exception{
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -60,8 +61,8 @@ public class ActModelController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("deploy/{id}")
|
@PostMapping("deploy/{id}")
|
||||||
@ApiOperation("部署")
|
@ApiOperation("模型管理-部署")
|
||||||
@LogOperation("部署")
|
@LogOperation("模型管理-部署")
|
||||||
// @RequiresPermissions("sys:model:all")
|
// @RequiresPermissions("sys:model:all")
|
||||||
public Result deploy(@PathVariable("id") String id) {
|
public Result deploy(@PathVariable("id") String id) {
|
||||||
actModelService.deploy(id);
|
actModelService.deploy(id);
|
||||||
|
@ -69,16 +70,16 @@ public class ActModelController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("export/{id}")
|
@GetMapping("export/{id}")
|
||||||
@ApiOperation("导出")
|
@ApiOperation("模型管理-导出")
|
||||||
@LogOperation("导出")
|
@LogOperation("模型管理-导出")
|
||||||
// @RequiresPermissions("sys:model:all")
|
// @RequiresPermissions("sys:model:all")
|
||||||
public void export(@PathVariable("id") String id, @ApiIgnore HttpServletResponse response) {
|
public void export(@PathVariable("id") String id, @ApiIgnore HttpServletResponse response) {
|
||||||
actModelService.export(id, response);
|
actModelService.export(id, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
@ApiOperation("删除")
|
@ApiOperation("模型管理-删除")
|
||||||
@LogOperation("删除")
|
@LogOperation("模型管理-删除")
|
||||||
// @RequiresPermissions("sys:model:all")
|
// @RequiresPermissions("sys:model:all")
|
||||||
public Result delete(@RequestBody String[] ids) {
|
public Result delete(@RequestBody String[] ids) {
|
||||||
for(String id : ids) {
|
for(String id : ids) {
|
||||||
|
@ -89,7 +90,7 @@ public class ActModelController {
|
||||||
|
|
||||||
// @GetMapping("image/{deploymentId}")
|
// @GetMapping("image/{deploymentId}")
|
||||||
@ApiOperation(value = "查看流程图", produces="application/octet-stream")
|
@ApiOperation(value = "查看流程图", produces="application/octet-stream")
|
||||||
@LogOperation("查看流程图")
|
@LogOperation("模型管理-查看流程图")
|
||||||
@RequiresPermissions("sys:model:all")
|
@RequiresPermissions("sys:model:all")
|
||||||
public void viewDeployImage(@PathVariable("deploymentId") String deploymentId, @ApiIgnore HttpServletResponse response){
|
public void viewDeployImage(@PathVariable("deploymentId") String deploymentId, @ApiIgnore HttpServletResponse response){
|
||||||
actModelService.deployImage(deploymentId, response);
|
actModelService.deployImage(deploymentId, response);
|
||||||
|
|
|
@ -48,6 +48,7 @@ public class ActProcessController {
|
||||||
|
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
@ApiOperation("流程管理-分页")
|
@ApiOperation("流程管理-分页")
|
||||||
|
@LogOperation("流程管理-分页")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -62,6 +63,7 @@ public class ActProcessController {
|
||||||
|
|
||||||
@GetMapping("lastestPage")
|
@GetMapping("lastestPage")
|
||||||
@ApiOperation("发起流程-分页")
|
@ApiOperation("发起流程-分页")
|
||||||
|
@LogOperation("发起流程-分页")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -92,6 +94,7 @@ public class ActProcessController {
|
||||||
|
|
||||||
@PutMapping("active/{id}")
|
@PutMapping("active/{id}")
|
||||||
@LogOperation("激活流程")
|
@LogOperation("激活流程")
|
||||||
|
@ApiOperation("激活流程")
|
||||||
// @RequiresPermissions("sys:process:all")
|
// @RequiresPermissions("sys:process:all")
|
||||||
public Result active(@PathVariable("id") String id) {
|
public Result active(@PathVariable("id") String id) {
|
||||||
actProcessService.active(id);
|
actProcessService.active(id);
|
||||||
|
@ -132,6 +135,7 @@ public class ActProcessController {
|
||||||
|
|
||||||
@GetMapping(value = "resource")
|
@GetMapping(value = "resource")
|
||||||
@ApiOperation(value="获取资源文件", produces="application/octet-stream")
|
@ApiOperation(value="获取资源文件", produces="application/octet-stream")
|
||||||
|
@LogOperation("获取资源文件")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "deploymentId", value = "部署ID", paramType = "query", dataType="String"),
|
@ApiImplicitParam(name = "deploymentId", value = "部署ID", paramType = "query", dataType="String"),
|
||||||
@ApiImplicitParam(name = "resourceName", value = "资源名称", paramType = "query", dataType="String")
|
@ApiImplicitParam(name = "resourceName", value = "资源名称", paramType = "query", dataType="String")
|
||||||
|
@ -155,6 +159,7 @@ public class ActProcessController {
|
||||||
|
|
||||||
@GetMapping(value = "getProcDefBizRoute/{id}")
|
@GetMapping(value = "getProcDefBizRoute/{id}")
|
||||||
@ApiOperation("根据流程ID获取业务路由配置")
|
@ApiOperation("根据流程ID获取业务路由配置")
|
||||||
|
@LogOperation("根据流程ID获取业务路由配置")
|
||||||
public Result getProcDefBizRoute(@PathVariable("id") String id){
|
public Result getProcDefBizRoute(@PathVariable("id") String id){
|
||||||
ProcessBizRouteDTO processBizRouteDTO = processBizRouteService.getProcDefBizRoute(id);
|
ProcessBizRouteDTO processBizRouteDTO = processBizRouteService.getProcDefBizRoute(id);
|
||||||
return new Result().ok(processBizRouteDTO);
|
return new Result().ok(processBizRouteDTO);
|
||||||
|
@ -162,6 +167,7 @@ public class ActProcessController {
|
||||||
|
|
||||||
@GetMapping(value = "getLatestProcDefBizRoute")
|
@GetMapping(value = "getLatestProcDefBizRoute")
|
||||||
@ApiOperation("根据流程定义KEY获取最新的流程配置信息")
|
@ApiOperation("根据流程定义KEY获取最新的流程配置信息")
|
||||||
|
@LogOperation("根据流程定义KEY获取最新的流程配置信息")
|
||||||
@ApiImplicitParam(name = "procDefKey", value = "流程定义KEY", paramType = "query", dataType="String")
|
@ApiImplicitParam(name = "procDefKey", value = "流程定义KEY", paramType = "query", dataType="String")
|
||||||
public Result getLatestProcDefBizRoute(String procDefKey){
|
public Result getLatestProcDefBizRoute(String procDefKey){
|
||||||
ProcessBizRouteDTO processBizRouteDTO = processBizRouteService.getLatestProcDefBizRoute(procDefKey);
|
ProcessBizRouteDTO processBizRouteDTO = processBizRouteService.getLatestProcDefBizRoute(procDefKey);
|
||||||
|
@ -170,6 +176,7 @@ public class ActProcessController {
|
||||||
|
|
||||||
@GetMapping(value = "getProcDefBizRouteAndProcessInstance")
|
@GetMapping(value = "getProcDefBizRouteAndProcessInstance")
|
||||||
@ApiOperation("根据业务ID获取流程业务路由配置和实例信息")
|
@ApiOperation("根据业务ID获取流程业务路由配置和实例信息")
|
||||||
|
@LogOperation("根据业务ID获取流程业务路由配置和实例信息")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "procDefKey", value = "流程定义KEY", required = true, paramType = "query", dataType="String"),
|
@ApiImplicitParam(name = "procDefKey", value = "流程定义KEY", required = true, paramType = "query", dataType="String"),
|
||||||
@ApiImplicitParam(name = "businessKey", value = "业务KEY", required = true, paramType = "query", dataType="String")
|
@ApiImplicitParam(name = "businessKey", value = "业务KEY", required = true, paramType = "query", dataType="String")
|
||||||
|
@ -198,6 +205,7 @@ public class ActProcessController {
|
||||||
|
|
||||||
@PostMapping("saveProcBizRoute")
|
@PostMapping("saveProcBizRoute")
|
||||||
@ApiOperation("保存业务路由配置")
|
@ApiOperation("保存业务路由配置")
|
||||||
|
@LogOperation("保存业务路由配置")
|
||||||
public Result saveProcBizRoute(@RequestBody ProcessBizRouteDTO processBizRouteDTO){
|
public Result saveProcBizRoute(@RequestBody ProcessBizRouteDTO processBizRouteDTO){
|
||||||
processBizRouteService.save(processBizRouteDTO);
|
processBizRouteService.save(processBizRouteDTO);
|
||||||
return new Result();
|
return new Result();
|
||||||
|
@ -205,6 +213,7 @@ public class ActProcessController {
|
||||||
|
|
||||||
@PutMapping("saveProcBizRoute")
|
@PutMapping("saveProcBizRoute")
|
||||||
@ApiOperation("更新业务路由配置")
|
@ApiOperation("更新业务路由配置")
|
||||||
|
@LogOperation("更新业务路由配置")
|
||||||
public Result updateProcBizRoute(@RequestBody ProcessBizRouteDTO processBizRouteDTO){
|
public Result updateProcBizRoute(@RequestBody ProcessBizRouteDTO processBizRouteDTO){
|
||||||
processBizRouteService.updateProcBizRoute(processBizRouteDTO);
|
processBizRouteService.updateProcBizRoute(processBizRouteDTO);
|
||||||
return new Result();
|
return new Result();
|
||||||
|
|
|
@ -30,7 +30,8 @@ public class ActRunningController {
|
||||||
private ActRunningService actRunningService;
|
private ActRunningService actRunningService;
|
||||||
|
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("运行中的流程-分页查询")
|
||||||
|
@LogOperation("运行中的流程-分页查询")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -45,8 +46,8 @@ public class ActRunningController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("{id}")
|
@DeleteMapping("{id}")
|
||||||
@ApiOperation("删除")
|
@ApiOperation("删除运行中的流程")
|
||||||
@LogOperation("删除")
|
@LogOperation("删除运行中的流程")
|
||||||
// @RequiresPermissions("sys:running:all")
|
// @RequiresPermissions("sys:running:all")
|
||||||
@ApiImplicitParam(name = "id", value = "ID", paramType = "query", dataType="String")
|
@ApiImplicitParam(name = "id", value = "ID", paramType = "query", dataType="String")
|
||||||
public Result deleteInstance(@PathVariable("id") String id) {
|
public Result deleteInstance(@PathVariable("id") String id) {
|
||||||
|
|
|
@ -42,6 +42,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
@ApiOperation("待办任务,默认查询所有待办任务。根据用户ID或角色ID查询个人或组的任务")
|
@ApiOperation("待办任务,默认查询所有待办任务。根据用户ID或角色ID查询个人或组的任务")
|
||||||
|
@LogOperation("查询所有待办任务,根据用户ID或角色ID查询个人或组的任务")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
||||||
|
@ -62,6 +63,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@GetMapping("myToDoTaskPage")
|
@GetMapping("myToDoTaskPage")
|
||||||
@ApiOperation("我的待办列表")
|
@ApiOperation("我的待办列表")
|
||||||
|
@LogOperation("我的待办列表查询")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
||||||
|
@ -97,6 +99,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("claim")
|
@PostMapping("claim")
|
||||||
@ApiOperation("认领任务")
|
@ApiOperation("认领任务")
|
||||||
|
@LogOperation("认领任务")
|
||||||
@ApiImplicitParam(name = "taskId", value = "taskId", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "taskId", value = "taskId", paramType = "query", dataType = "String")
|
||||||
// @RequiresPermissions("sys:task:all")
|
// @RequiresPermissions("sys:task:all")
|
||||||
public Result claimTask(String taskId) {
|
public Result claimTask(String taskId) {
|
||||||
|
@ -112,6 +115,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("unclaim")
|
@PostMapping("unclaim")
|
||||||
@ApiOperation("释放任务")
|
@ApiOperation("释放任务")
|
||||||
|
@LogOperation("释放任务")
|
||||||
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String")
|
||||||
// @RequiresPermissions("sys:task:all")
|
// @RequiresPermissions("sys:task:all")
|
||||||
public Result unclaimTask(String taskId) {
|
public Result unclaimTask(String taskId) {
|
||||||
|
@ -127,6 +131,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("complete")
|
@PostMapping("complete")
|
||||||
@ApiOperation("任务处理(完成任务)")
|
@ApiOperation("任务处理(完成任务)")
|
||||||
|
@LogOperation("任务处理(完成任务)")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "comment", value = "审批意见", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "comment", value = "审批意见", paramType = "query", dataType = "String")
|
||||||
|
@ -145,6 +150,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("completeByVariables")
|
@PostMapping("completeByVariables")
|
||||||
@ApiOperation("带参数的任务处理(完成任务)")
|
@ApiOperation("带参数的任务处理(完成任务)")
|
||||||
|
@LogOperation("带参数的任务处理(完成任务)")
|
||||||
// @RequiresPermissions("sys:task:all")
|
// @RequiresPermissions("sys:task:all")
|
||||||
public Result completeTaskByVariables(@RequestBody TaskDTO taskDTO) {
|
public Result completeTaskByVariables(@RequestBody TaskDTO taskDTO) {
|
||||||
if (StringUtils.isEmpty(taskDTO.getTaskId())) {
|
if (StringUtils.isEmpty(taskDTO.getTaskId())) {
|
||||||
|
@ -159,6 +165,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("entrust")
|
@PostMapping("entrust")
|
||||||
@ApiOperation("任务委托(更改审批人)")
|
@ApiOperation("任务委托(更改审批人)")
|
||||||
|
@LogOperation("任务委托(更改审批人)")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "assignee", value = "受理人", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "assignee", value = "受理人", paramType = "query", dataType = "String")
|
||||||
|
@ -178,6 +185,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@GetMapping("getTaskVariables")
|
@GetMapping("getTaskVariables")
|
||||||
@ApiOperation("获取流程变量")
|
@ApiOperation("获取流程变量")
|
||||||
|
@LogOperation("获取流程变量")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "taskId", value = "当前任务ID", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "taskId", value = "当前任务ID", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "variableName", value = "参数的键", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "variableName", value = "参数的键", paramType = "query", dataType = "String")
|
||||||
|
@ -195,6 +203,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("updateTaskVariable")
|
@PostMapping("updateTaskVariable")
|
||||||
@ApiOperation("更新任务变量")
|
@ApiOperation("更新任务变量")
|
||||||
|
@LogOperation("更新任务变量")
|
||||||
// @RequiresPermissions("sys:task:all")
|
// @RequiresPermissions("sys:task:all")
|
||||||
public Result updateTaskVariable(@RequestBody TaskDTO taskDTO) {
|
public Result updateTaskVariable(@RequestBody TaskDTO taskDTO) {
|
||||||
if (StringUtils.isEmpty(taskDTO.getTaskId())) {
|
if (StringUtils.isEmpty(taskDTO.getTaskId())) {
|
||||||
|
@ -209,6 +218,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@DeleteMapping("deleteTaskVariables")
|
@DeleteMapping("deleteTaskVariables")
|
||||||
@ApiOperation("删除任务的所有变量")
|
@ApiOperation("删除任务的所有变量")
|
||||||
|
@LogOperation("删除任务的所有变量")
|
||||||
@ApiImplicitParam(name = "taskId", value = "当前任务ID", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "taskId", value = "当前任务ID", paramType = "query", dataType = "String")
|
||||||
// @RequiresPermissions("sys:task:all")
|
// @RequiresPermissions("sys:task:all")
|
||||||
public Result deleteTaskVariables(String taskId) {
|
public Result deleteTaskVariables(String taskId) {
|
||||||
|
@ -224,6 +234,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@DeleteMapping("deleteVariable")
|
@DeleteMapping("deleteVariable")
|
||||||
@ApiOperation("删除指定变量,默认删除本地变量")
|
@ApiOperation("删除指定变量,默认删除本地变量")
|
||||||
|
@LogOperation("删除指定变量,默认删除本地变量")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "taskId", value = "当前任务ID", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "taskId", value = "当前任务ID", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "variableName", value = "变量名", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "variableName", value = "变量名", paramType = "query", dataType = "String"),
|
||||||
|
@ -243,6 +254,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("backPreviousTask")
|
@PostMapping("backPreviousTask")
|
||||||
@ApiOperation("回退任务到上一节点")
|
@ApiOperation("回退任务到上一节点")
|
||||||
|
@LogOperation("回退任务到上一节点")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "comment", value = "回退审核意见", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "comment", value = "回退审核意见", paramType = "query", dataType = "String")
|
||||||
|
@ -261,6 +273,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("endProcess")
|
@PostMapping("endProcess")
|
||||||
@ApiOperation("终止流程(直接全拒绝)")
|
@ApiOperation("终止流程(直接全拒绝)")
|
||||||
|
@LogOperation("终止流程(直接全拒绝)")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "comment", value = "终止审核意见", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "comment", value = "终止审核意见", paramType = "query", dataType = "String")
|
||||||
|
@ -276,6 +289,7 @@ public class ActTaskController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("backToFirst")
|
@PostMapping("backToFirst")
|
||||||
@ApiOperation("驳回,回退至第一个用户任务(重新录入表单)")
|
@ApiOperation("驳回,回退至第一个用户任务(重新录入表单)")
|
||||||
|
@LogOperation("驳回,回退至第一个用户任务(重新录入表单)")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
@ApiImplicitParam(name = "taskId", value = "任务ID", paramType = "query", dataType = "String"),
|
||||||
@ApiImplicitParam(name = "comment", value = "驳回审核意见", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "comment", value = "驳回审核意见", paramType = "query", dataType = "String")
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package io.renren.modules.activiti.controller;
|
package io.renren.modules.activiti.controller;
|
||||||
|
|
||||||
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.constant.Constant;
|
import io.renren.common.constant.Constant;
|
||||||
import io.renren.common.page.PageData;
|
import io.renren.common.page.PageData;
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
|
@ -57,6 +58,7 @@ public class HistoryController {
|
||||||
|
|
||||||
@GetMapping("getInstImage")
|
@GetMapping("getInstImage")
|
||||||
@ApiOperation(value = "获取流程活动图", produces = "application/octet-stream")
|
@ApiOperation(value = "获取流程活动图", produces = "application/octet-stream")
|
||||||
|
@LogOperation("获取流程活动图")
|
||||||
@ApiImplicitParam(name = "processInstanceId", value = "流程实例ID", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "processInstanceId", value = "流程实例ID", paramType = "query", dataType = "String")
|
||||||
// @RequiresPermissions("sys:his:all")
|
// @RequiresPermissions("sys:his:all")
|
||||||
public void getProcessInstanceDiagram(String processInstanceId, @ApiIgnore HttpServletResponse response) throws Exception {
|
public void getProcessInstanceDiagram(String processInstanceId, @ApiIgnore HttpServletResponse response) throws Exception {
|
||||||
|
@ -65,6 +67,7 @@ public class HistoryController {
|
||||||
|
|
||||||
@GetMapping("getHistoryProcessInstancePage")
|
@GetMapping("getHistoryProcessInstancePage")
|
||||||
@ApiOperation("历史流程实例列表")
|
@ApiOperation("历史流程实例列表")
|
||||||
|
@LogOperation("查询历史流程实例列表")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
||||||
|
@ -85,6 +88,7 @@ public class HistoryController {
|
||||||
|
|
||||||
@GetMapping("getMyProcessInstancePage")
|
@GetMapping("getMyProcessInstancePage")
|
||||||
@ApiOperation("我发起的流程")
|
@ApiOperation("我发起的流程")
|
||||||
|
@LogOperation("查询我发起的流程")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
||||||
|
@ -104,6 +108,7 @@ public class HistoryController {
|
||||||
|
|
||||||
@GetMapping("getMyHandledInstancePage")
|
@GetMapping("getMyHandledInstancePage")
|
||||||
@ApiOperation("已办任务:根据登录账号查询用户已办任务")
|
@ApiOperation("已办任务:根据登录账号查询用户已办任务")
|
||||||
|
@LogOperation("已办任务:根据登录账号查询用户已办任务")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
||||||
|
@ -144,6 +149,7 @@ public class HistoryController {
|
||||||
|
|
||||||
@GetMapping("getTaskHandleDetailInfo")
|
@GetMapping("getTaskHandleDetailInfo")
|
||||||
@ApiOperation("获取流程处理详情")
|
@ApiOperation("获取流程处理详情")
|
||||||
|
@LogOperation("获取流程处理详情")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "processInstanceId", value = "实例ID", paramType = "query", dataType = "String")
|
@ApiImplicitParam(name = "processInstanceId", value = "实例ID", paramType = "query", dataType = "String")
|
||||||
})
|
})
|
||||||
|
|
|
@ -2,6 +2,7 @@ package io.renren.modules.category.controller;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
||||||
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.exception.ErrorCode;
|
import io.renren.common.exception.ErrorCode;
|
||||||
import io.renren.common.utils.MessageUtils;
|
import io.renren.common.utils.MessageUtils;
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
|
@ -35,30 +36,35 @@ public class CategoryController {
|
||||||
|
|
||||||
@GetMapping("/getTopCategory")
|
@GetMapping("/getTopCategory")
|
||||||
@ApiOperation("获取一级分类")
|
@ApiOperation("获取一级分类")
|
||||||
|
@LogOperation("获取编目一级分类")
|
||||||
public Result getTopCategory() {
|
public Result getTopCategory() {
|
||||||
return new Result().ok(categoryService.getTopCategory());
|
return new Result().ok(categoryService.getTopCategory());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/getCategoryTree")
|
@GetMapping("/getCategoryTree")
|
||||||
@ApiOperation("获取完整分类数据")
|
@ApiOperation("获取完整分类数据")
|
||||||
|
@LogOperation("获取编目完整树形数据")
|
||||||
public Object getCategoryTree() {
|
public Object getCategoryTree() {
|
||||||
return new Result<List<CategoryDTO>>().ok(categoryService.getCategoryTree());
|
return new Result<List<CategoryDTO>>().ok(categoryService.getCategoryTree());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/getAllFiledByTopCategory")
|
@GetMapping("/getAllFiledByTopCategory")
|
||||||
@ApiOperation("根据一级分类获取属性字段")
|
@ApiOperation("根据一级分类获取属性字段")
|
||||||
|
@LogOperation("根据一级分类查询属性字段")
|
||||||
public Object getAllFiledByTopCategory(String topCategoryName) {
|
public Object getAllFiledByTopCategory(String topCategoryName) {
|
||||||
return new Result<List<Category>>().ok(categoryService.getAllFiledByTopCategory(topCategoryName));
|
return new Result<List<Category>>().ok(categoryService.getAllFiledByTopCategory(topCategoryName));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/getAllFilterCriteriaByTopCategory")
|
@GetMapping("/getAllFilterCriteriaByTopCategory")
|
||||||
@ApiOperation("根据一级分类获取筛选条件字段")
|
@ApiOperation("根据一级分类获取筛选条件字段")
|
||||||
|
@LogOperation("根据一级分类获取筛选条件字段")
|
||||||
public Object getAllFilterCriteriaByTopCategory(String topCategoryName) {
|
public Object getAllFilterCriteriaByTopCategory(String topCategoryName) {
|
||||||
return new Result<>().ok(categoryService.getAllFilterCriteriaByTopCategory(topCategoryName));
|
return new Result<>().ok(categoryService.getAllFilterCriteriaByTopCategory(topCategoryName));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/insert")
|
@PostMapping("/insert")
|
||||||
@ApiOperation("保存")
|
@ApiOperation("新增编目分类")
|
||||||
|
@LogOperation("新增编目分类")
|
||||||
public Object insert(@RequestBody CategoryDTO categoryDTO) {
|
public Object insert(@RequestBody CategoryDTO categoryDTO) {
|
||||||
//效验数据
|
//效验数据
|
||||||
ValidatorUtils.validateEntity(categoryDTO, AddGroup.class, DefaultGroup.class);
|
ValidatorUtils.validateEntity(categoryDTO, AddGroup.class, DefaultGroup.class);
|
||||||
|
@ -81,7 +87,8 @@ public class CategoryController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
@ApiOperation("修改")
|
@ApiOperation("修改编目")
|
||||||
|
@LogOperation("修改编目")
|
||||||
public Object update(@RequestBody CategoryDTO categoryDTO) {
|
public Object update(@RequestBody CategoryDTO categoryDTO) {
|
||||||
//效验数据
|
//效验数据
|
||||||
ValidatorUtils.validateEntity(categoryDTO, UpdateGroup.class, DefaultGroup.class);
|
ValidatorUtils.validateEntity(categoryDTO, UpdateGroup.class, DefaultGroup.class);
|
||||||
|
@ -93,7 +100,8 @@ public class CategoryController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/deleteById")
|
@PostMapping("/deleteById")
|
||||||
@ApiOperation("删除")
|
@ApiOperation("删除编目")
|
||||||
|
@LogOperation("删除编目")
|
||||||
public Object deleteById(@RequestBody JSONObject jsonObject) {
|
public Object deleteById(@RequestBody JSONObject jsonObject) {
|
||||||
try {
|
try {
|
||||||
categoryService.deleteByIds(jsonObject);
|
categoryService.deleteByIds(jsonObject);
|
||||||
|
|
|
@ -45,6 +45,7 @@ public class TDemandDataController {
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("分页")
|
||||||
|
@LogOperation("分页")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
||||||
|
@ -67,6 +68,7 @@ public class TDemandDataController {
|
||||||
|
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("信息")
|
||||||
|
@LogOperation("信息")
|
||||||
// @RequiresPermissions("demanData:tdemanddata:info")
|
// @RequiresPermissions("demanData:tdemanddata:info")
|
||||||
public Result<TDemandDataDTO> get(@PathVariable("id") Long id) {
|
public Result<TDemandDataDTO> get(@PathVariable("id") Long id) {
|
||||||
TDemandDataDTO data = tDemandDataService.get(id);
|
TDemandDataDTO data = tDemandDataService.get(id);
|
||||||
|
|
|
@ -47,6 +47,7 @@ public class TDemandCommentController {
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("分页")
|
||||||
|
@LogOperation("分页")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
||||||
|
@ -68,6 +69,7 @@ public class TDemandCommentController {
|
||||||
|
|
||||||
@GetMapping("/myComment/page")
|
@GetMapping("/myComment/page")
|
||||||
@ApiOperation("我的评论分页")
|
@ApiOperation("我的评论分页")
|
||||||
|
@LogOperation("我的评论分页")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
||||||
|
@ -91,6 +93,7 @@ public class TDemandCommentController {
|
||||||
|
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("信息")
|
||||||
|
@LogOperation("信息")
|
||||||
// @RequiresPermissions("demandComment:tdemandcomment:info")
|
// @RequiresPermissions("demandComment:tdemandcomment:info")
|
||||||
public Result<TDemandCommentDTO> get(@PathVariable("id") Long id) {
|
public Result<TDemandCommentDTO> get(@PathVariable("id") Long id) {
|
||||||
TDemandCommentDTO data = tDemandCommentService.get(id);
|
TDemandCommentDTO data = tDemandCommentService.get(id);
|
||||||
|
|
|
@ -40,6 +40,7 @@ public class DevelopmentGuideController {
|
||||||
|
|
||||||
@PostMapping("/uploadDevelopmentFile")
|
@PostMapping("/uploadDevelopmentFile")
|
||||||
@ApiOperation("开发指南文件上传")
|
@ApiOperation("开发指南文件上传")
|
||||||
|
@LogOperation("开发指南文件上传")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "file", value = "开发指南文件", paramType = "file", dataType = "file", required = true),
|
@ApiImplicitParam(name = "file", value = "开发指南文件", paramType = "file", dataType = "file", required = true),
|
||||||
@ApiImplicitParam(name = "fileName", value = "文件名称", paramType = "query", dataType = "String", required = true),
|
@ApiImplicitParam(name = "fileName", value = "文件名称", paramType = "query", dataType = "String", required = true),
|
||||||
|
|
|
@ -34,6 +34,7 @@ public class ScheduleJobController {
|
||||||
|
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("分页")
|
||||||
|
@LogOperation("分页")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -50,6 +51,7 @@ public class ScheduleJobController {
|
||||||
|
|
||||||
@GetMapping("{id}")
|
@GetMapping("{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("信息")
|
||||||
|
@LogOperation("信息")
|
||||||
// @RequiresPermissions("sys:schedule:info")
|
// @RequiresPermissions("sys:schedule:info")
|
||||||
public Result<ScheduleJobDTO> info(@PathVariable("id") Long id){
|
public Result<ScheduleJobDTO> info(@PathVariable("id") Long id){
|
||||||
ScheduleJobDTO schedule = scheduleJobService.get(id);
|
ScheduleJobDTO schedule = scheduleJobService.get(id);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package io.renren.modules.job.controller;
|
package io.renren.modules.job.controller;
|
||||||
|
|
||||||
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.constant.Constant;
|
import io.renren.common.constant.Constant;
|
||||||
import io.renren.common.page.PageData;
|
import io.renren.common.page.PageData;
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
|
@ -29,6 +30,7 @@ public class ScheduleJobLogController {
|
||||||
|
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("分页")
|
||||||
|
@LogOperation("分页")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -45,6 +47,7 @@ public class ScheduleJobLogController {
|
||||||
|
|
||||||
@GetMapping("{id}")
|
@GetMapping("{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("信息")
|
||||||
|
@LogOperation("信息")
|
||||||
// @RequiresPermissions("sys:schedule:log")
|
// @RequiresPermissions("sys:schedule:log")
|
||||||
public Result<ScheduleJobLogDTO> info(@PathVariable("id") Long id){
|
public Result<ScheduleJobLogDTO> info(@PathVariable("id") Long id){
|
||||||
ScheduleJobLogDTO log = scheduleJobLogService.get(id);
|
ScheduleJobLogDTO log = scheduleJobLogService.get(id);
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class TAbilityApplicationController {
|
||||||
|
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("分页")
|
||||||
|
@LogOperation("分页")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -57,6 +58,7 @@ public class TAbilityApplicationController {
|
||||||
|
|
||||||
@GetMapping("{id}")
|
@GetMapping("{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("信息")
|
||||||
|
@LogOperation("信息")
|
||||||
public Result<TAbilityApplicationDTO> get(@PathVariable("id") Long id){
|
public Result<TAbilityApplicationDTO> get(@PathVariable("id") Long id){
|
||||||
TAbilityApplicationDTO data = tAbilityApplicationService.get(id);
|
TAbilityApplicationDTO data = tAbilityApplicationService.get(id);
|
||||||
|
|
||||||
|
|
|
@ -436,6 +436,7 @@ public class ResourceController {
|
||||||
|
|
||||||
@PostMapping("/getDataResource")
|
@PostMapping("/getDataResource")
|
||||||
@ApiOperation("获取数据资源")
|
@ApiOperation("获取数据资源")
|
||||||
|
@LogOperation("获取数据资源")
|
||||||
public Result<Object> getDataResource(@RequestBody GetDataResourceListDto dto) {
|
public Result<Object> getDataResource(@RequestBody GetDataResourceListDto dto) {
|
||||||
Optional<AbstractDataResourceService> factory = DataResourceFactory.build();
|
Optional<AbstractDataResourceService> factory = DataResourceFactory.build();
|
||||||
if (factory.isPresent()) {
|
if (factory.isPresent()) {
|
||||||
|
|
|
@ -43,7 +43,8 @@ public class ResourceBrowseController {
|
||||||
private ResourceService resourceService;
|
private ResourceService resourceService;
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("浏览记录-分页查询")
|
||||||
|
@LogOperation("浏览记录-分页查询")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -58,7 +59,8 @@ public class ResourceBrowseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/select/{id}")
|
@GetMapping("/select/{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("浏览记录-详细信息")
|
||||||
|
@LogOperation("浏览记录-详细信息")
|
||||||
//@RequiresPermissions("resourceBrowse:resourcebrowse:info")
|
//@RequiresPermissions("resourceBrowse:resourcebrowse:info")
|
||||||
public Result<ResourceBrowseDTO> get(@PathVariable("id") Long id){
|
public Result<ResourceBrowseDTO> get(@PathVariable("id") Long id){
|
||||||
ResourceBrowseDTO data = resourceBrowseService.get(id);
|
ResourceBrowseDTO data = resourceBrowseService.get(id);
|
||||||
|
@ -67,8 +69,8 @@ public class ResourceBrowseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/insert")
|
@PostMapping("/insert")
|
||||||
@ApiOperation("保存")
|
@ApiOperation("保存浏览记录")
|
||||||
@LogOperation("保存")
|
@LogOperation("保存浏览记录")
|
||||||
//@RequiresPermissions("resourceBrowse:resourcebrowse:save")
|
//@RequiresPermissions("resourceBrowse:resourcebrowse:save")
|
||||||
public Result save(@RequestBody ResourceBrowseDTO dto){
|
public Result save(@RequestBody ResourceBrowseDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -93,8 +95,8 @@ public class ResourceBrowseController {
|
||||||
//}
|
//}
|
||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除")
|
@ApiOperation("批量删除浏览记录")
|
||||||
@LogOperation("删除")
|
@LogOperation("批量删除浏览记录")
|
||||||
//@RequiresPermissions("resourceBrowse:resourcebrowse:delete")
|
//@RequiresPermissions("resourceBrowse:resourcebrowse:delete")
|
||||||
public Result delete(@RequestBody Long[] ids){
|
public Result delete(@RequestBody Long[] ids){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
|
|
@ -34,7 +34,8 @@ public class ResourceCarController {
|
||||||
private ResourceCarService resourceCarService;
|
private ResourceCarService resourceCarService;
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("申购车-分页查询")
|
||||||
|
@LogOperation("申购车-分页查询")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "pageNum", value = "当前页码,从1开始", paramType = "body", required = true, dataType="int") ,
|
@ApiImplicitParam(name = "pageNum", value = "当前页码,从1开始", paramType = "body", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = "pageSize", value = "每页显示记录数", paramType = "body",required = true, dataType="int") ,
|
@ApiImplicitParam(name = "pageSize", value = "每页显示记录数", paramType = "body",required = true, dataType="int") ,
|
||||||
|
@ -47,14 +48,16 @@ public class ResourceCarController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/total")
|
@GetMapping("/total")
|
||||||
@ApiOperation("申购车总数")
|
@ApiOperation("申购车总数查询")
|
||||||
|
@LogOperation("申购车总数查询")
|
||||||
public Result total(){
|
public Result total(){
|
||||||
return new Result<>().ok(resourceCarService.total());
|
return new Result<>().ok(resourceCarService.total());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/select/{id}")
|
@GetMapping("/select/{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("申购记录详细信息查询")
|
||||||
|
@LogOperation("申购记录详细信息查询")
|
||||||
//@RequiresPermissions("resourceCar:resourcecar:info")
|
//@RequiresPermissions("resourceCar:resourcecar:info")
|
||||||
public Result<ResourceCarDTO> get(@PathVariable("id") Long id){
|
public Result<ResourceCarDTO> get(@PathVariable("id") Long id){
|
||||||
ResourceCarDTO data = resourceCarService.get(id);
|
ResourceCarDTO data = resourceCarService.get(id);
|
||||||
|
@ -62,8 +65,8 @@ public class ResourceCarController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/insert")
|
@PostMapping("/insert")
|
||||||
@ApiOperation("保存")
|
@ApiOperation("添加申购车")
|
||||||
@LogOperation("保存")
|
@LogOperation("添加申购车")
|
||||||
//@RequiresPermissions("resourceCar:resourcecar:save")
|
//@RequiresPermissions("resourceCar:resourcecar:save")
|
||||||
public Result save(@RequestBody ResourceCarDTO dto){
|
public Result save(@RequestBody ResourceCarDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -77,8 +80,8 @@ public class ResourceCarController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除")
|
@ApiOperation("删除申购")
|
||||||
@LogOperation("删除")
|
@LogOperation("删除申购")
|
||||||
//@RequiresPermissions("resourceCar:resourcecar:delete")
|
//@RequiresPermissions("resourceCar:resourcecar:delete")
|
||||||
public Result delete(@RequestBody JSONObject jsonObject){
|
public Result delete(@RequestBody JSONObject jsonObject){
|
||||||
resourceCarService.deleteByIds(jsonObject);
|
resourceCarService.deleteByIds(jsonObject);
|
||||||
|
|
|
@ -37,7 +37,8 @@ public class ResourceCollectionController {
|
||||||
private ResourceCollectionService resourceCollectionService;
|
private ResourceCollectionService resourceCollectionService;
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("我的收藏分页查询")
|
||||||
|
@LogOperation("我的收藏分页查询")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "pageNum", value = "当前页码,从1开始", paramType = "body", required = true, dataType="int") ,
|
@ApiImplicitParam(name = "pageNum", value = "当前页码,从1开始", paramType = "body", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = "pageSize", value = "每页显示记录数", paramType = "body",required = true, dataType="int") ,
|
@ApiImplicitParam(name = "pageSize", value = "每页显示记录数", paramType = "body",required = true, dataType="int") ,
|
||||||
|
@ -50,7 +51,7 @@ public class ResourceCollectionController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/select/{id}")
|
@GetMapping("/select/{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("收藏详细信息查询")
|
||||||
//@RequiresPermissions("resourceCollection:resourcecollection:info")
|
//@RequiresPermissions("resourceCollection:resourcecollection:info")
|
||||||
public Result<ResourceCollectionDTO> get(@PathVariable("id") Long id){
|
public Result<ResourceCollectionDTO> get(@PathVariable("id") Long id){
|
||||||
ResourceCollectionDTO data = resourceCollectionService.get(id);
|
ResourceCollectionDTO data = resourceCollectionService.get(id);
|
||||||
|
@ -59,8 +60,8 @@ public class ResourceCollectionController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/insert")
|
@PostMapping("/insert")
|
||||||
@ApiOperation("保存")
|
@ApiOperation("新增收藏")
|
||||||
@LogOperation("保存")
|
@LogOperation("新增收藏")
|
||||||
//@RequiresPermissions("resourceCollection:resourcecollection:save")
|
//@RequiresPermissions("resourceCollection:resourcecollection:save")
|
||||||
public Result save(@RequestBody List<ResourceCollectionEntity> list){
|
public Result save(@RequestBody List<ResourceCollectionEntity> list){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -85,8 +86,8 @@ public class ResourceCollectionController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除")
|
@ApiOperation("取消收藏")
|
||||||
@LogOperation("删除")
|
@LogOperation("取消收藏")
|
||||||
//@RequiresPermissions("resourceCollection:resourcecollection:delete")
|
//@RequiresPermissions("resourceCollection:resourcecollection:delete")
|
||||||
public Result delete(@RequestBody Long[] resourceIds){
|
public Result delete(@RequestBody Long[] resourceIds){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
|
|
@ -42,6 +42,7 @@ public class TResourceMountApplyController {
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("分页")
|
||||||
|
@LogOperation("分页")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType = "int"),
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query", required = true, dataType = "int"),
|
||||||
|
@ -58,6 +59,7 @@ public class TResourceMountApplyController {
|
||||||
|
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("信息")
|
||||||
|
@LogOperation("信息")
|
||||||
// @RequiresPermissions("resourceMountApply:tresourcemountapply:info")
|
// @RequiresPermissions("resourceMountApply:tresourcemountapply:info")
|
||||||
public Result<TResourceMountApplyDTO> get(@PathVariable("id") Long id) {
|
public Result<TResourceMountApplyDTO> get(@PathVariable("id") Long id) {
|
||||||
TResourceMountApplyDTO data = tResourceMountApplyService.get(id);
|
TResourceMountApplyDTO data = tResourceMountApplyService.get(id);
|
||||||
|
|
|
@ -41,6 +41,7 @@ public class ResourceScoreController {
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("分页")
|
||||||
|
@LogOperation("分页")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -56,6 +57,7 @@ public class ResourceScoreController {
|
||||||
|
|
||||||
@GetMapping("/select/{resourceId}")
|
@GetMapping("/select/{resourceId}")
|
||||||
@ApiOperation("查询个人评价信息")
|
@ApiOperation("查询个人评价信息")
|
||||||
|
@LogOperation("查询个人评价信息")
|
||||||
//@RequiresPermissions("resourceScore:resourcescore:info")
|
//@RequiresPermissions("resourceScore:resourcescore:info")
|
||||||
public Result<ResourceScoreDTO> get(@PathVariable("resourceId") Long resourceId){
|
public Result<ResourceScoreDTO> get(@PathVariable("resourceId") Long resourceId){
|
||||||
ResourceScoreDTO data = resourceScoreService.selectByRidAndUid(resourceId);
|
ResourceScoreDTO data = resourceScoreService.selectByRidAndUid(resourceId);
|
||||||
|
@ -64,8 +66,8 @@ public class ResourceScoreController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/insert")
|
@PostMapping("/insert")
|
||||||
@ApiOperation("保存")
|
@ApiOperation("新增能力评分")
|
||||||
@LogOperation("保存")
|
@LogOperation("新增能力评分")
|
||||||
//@RequiresPermissions("resourceScore:resourcescore:save")
|
//@RequiresPermissions("resourceScore:resourcescore:save")
|
||||||
public Result save(@RequestBody ResourceScoreDTO dto){
|
public Result save(@RequestBody ResourceScoreDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -79,8 +81,8 @@ public class ResourceScoreController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@ApiOperation("修改")
|
@ApiOperation("修改能力评分")
|
||||||
@LogOperation("修改")
|
@LogOperation("修改能力评分")
|
||||||
//@RequiresPermissions("resourceScore:resourcescore:update")
|
//@RequiresPermissions("resourceScore:resourcescore:update")
|
||||||
public Result update(@RequestBody ResourceScoreDTO dto){
|
public Result update(@RequestBody ResourceScoreDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -90,8 +92,8 @@ public class ResourceScoreController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除")
|
@ApiOperation("删除能力评分")
|
||||||
@LogOperation("删除")
|
@LogOperation("删除能力评分")
|
||||||
//@RequiresPermissions("resourceScore:resourcescore:delete")
|
//@RequiresPermissions("resourceScore:resourcescore:delete")
|
||||||
public Result delete(@RequestBody Long[] ids){
|
public Result delete(@RequestBody Long[] ids){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
|
|
@ -153,7 +153,7 @@ public class LoginController {
|
||||||
|
|
||||||
@PostMapping("logout")
|
@PostMapping("logout")
|
||||||
@ApiOperation(value = "退出")
|
@ApiOperation(value = "退出")
|
||||||
@LogOperation("/退出")
|
@LogOperation("退出")
|
||||||
public Result logout(HttpServletRequest request, HttpServletResponse response) {
|
public Result logout(HttpServletRequest request, HttpServletResponse response) {
|
||||||
UserDetail user = SecurityUser.getUser();
|
UserDetail user = SecurityUser.getUser();
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package io.renren.modules.sys.controller;
|
package io.renren.modules.sys.controller;
|
||||||
|
|
||||||
import io.renren.common.annotation.LogOperation;
|
import io.renren.common.annotation.LogOperation;
|
||||||
import io.renren.common.dao.BaseDao;
|
|
||||||
import io.renren.common.utils.Result;
|
import io.renren.common.utils.Result;
|
||||||
import io.renren.common.validator.AssertUtils;
|
import io.renren.common.validator.AssertUtils;
|
||||||
import io.renren.common.validator.ValidatorUtils;
|
import io.renren.common.validator.ValidatorUtils;
|
||||||
|
@ -39,7 +38,8 @@ public class SysDeptController {
|
||||||
/** ytl 2022-06-23 新增 start **/
|
/** ytl 2022-06-23 新增 start **/
|
||||||
@GetMapping("treeList")
|
@GetMapping("treeList")
|
||||||
@ApiOperation("根据当前用户所在部门查询下属部门tree,可以根据部门名称模糊查询")
|
@ApiOperation("根据当前用户所在部门查询下属部门tree,可以根据部门名称模糊查询")
|
||||||
public Result<List<SysDeptDTO>> treeList(@RequestParam(required = false,value = "keywords") String keywords){
|
@LogOperation("根据当前用户所在部门查询下属部门")
|
||||||
|
public Result<List<SysDeptDTO>> treeList(@RequestParam(required = false,value = "模糊查询,部门名称") String keywords){
|
||||||
Long deptId = SecurityUser.getDeptId();
|
Long deptId = SecurityUser.getDeptId();
|
||||||
List<SysDeptDTO> result = new ArrayList<>();
|
List<SysDeptDTO> result = new ArrayList<>();
|
||||||
SysDeptDTO sysDeptDTO = sysDeptService.get(deptId);
|
SysDeptDTO sysDeptDTO = sysDeptService.get(deptId);
|
||||||
|
@ -67,7 +67,8 @@ public class SysDeptController {
|
||||||
}
|
}
|
||||||
/** ytl 2022-06-23 新增 end **/
|
/** ytl 2022-06-23 新增 end **/
|
||||||
@GetMapping("list")
|
@GetMapping("list")
|
||||||
@ApiOperation("列表")
|
@ApiOperation("查询部门列表")
|
||||||
|
@LogOperation("查询部门列表")
|
||||||
// @RequiresPermissions("sys:dept:list")
|
// @RequiresPermissions("sys:dept:list")
|
||||||
public Result<List<SysDeptDTO>> list(){
|
public Result<List<SysDeptDTO>> list(){
|
||||||
List<SysDeptDTO> list = sysDeptService.list(new HashMap<>(1));
|
List<SysDeptDTO> list = sysDeptService.list(new HashMap<>(1));
|
||||||
|
@ -76,7 +77,8 @@ public class SysDeptController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("{id}")
|
@GetMapping("{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("查询部门详细信息")
|
||||||
|
@LogOperation("查询部门详细信息")
|
||||||
// @RequiresPermissions("sys:dept:info")
|
// @RequiresPermissions("sys:dept:info")
|
||||||
public Result<SysDeptDTO> get(@PathVariable("id") Long id){
|
public Result<SysDeptDTO> get(@PathVariable("id") Long id){
|
||||||
SysDeptDTO data = sysDeptService.get(id);
|
SysDeptDTO data = sysDeptService.get(id);
|
||||||
|
@ -85,8 +87,8 @@ public class SysDeptController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@ApiOperation("保存")
|
@ApiOperation("新增部门")
|
||||||
@LogOperation("保存")
|
@LogOperation("新增部门")
|
||||||
// @RequiresPermissions("sys:dept:save")
|
// @RequiresPermissions("sys:dept:save")
|
||||||
public Result save(@RequestBody SysDeptDTO dto){
|
public Result save(@RequestBody SysDeptDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -98,8 +100,8 @@ public class SysDeptController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
@ApiOperation("修改")
|
@ApiOperation("修改部门信息")
|
||||||
@LogOperation("修改")
|
@LogOperation("修改部门信息")
|
||||||
// @RequiresPermissions("sys:dept:update")
|
// @RequiresPermissions("sys:dept:update")
|
||||||
public Result update(@RequestBody SysDeptDTO dto){
|
public Result update(@RequestBody SysDeptDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -111,8 +113,8 @@ public class SysDeptController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("{id}")
|
@DeleteMapping("{id}")
|
||||||
@ApiOperation("删除")
|
@ApiOperation("删除部门")
|
||||||
@LogOperation("删除")
|
@LogOperation("删除部门")
|
||||||
// @RequiresPermissions("sys:dept:delete")
|
// @RequiresPermissions("sys:dept:delete")
|
||||||
public Result delete(@PathVariable("id") Long id){
|
public Result delete(@PathVariable("id") Long id){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
|
|
@ -33,7 +33,8 @@ public class SysDictDataController {
|
||||||
private SysDictDataService sysDictDataService;
|
private SysDictDataService sysDictDataService;
|
||||||
|
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
@ApiOperation("字典数据")
|
@ApiOperation("字典数据分页查询")
|
||||||
|
@LogOperation("字典数据分页查询")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -51,7 +52,8 @@ public class SysDictDataController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("{id}")
|
@GetMapping("{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("查询字典数据详细信息")
|
||||||
|
@LogOperation("查询字典数据详细信息")
|
||||||
// @RequiresPermissions("sys:dict:info")
|
// @RequiresPermissions("sys:dict:info")
|
||||||
public Result<SysDictDataDTO> get(@PathVariable("id") Long id){
|
public Result<SysDictDataDTO> get(@PathVariable("id") Long id){
|
||||||
SysDictDataDTO data = sysDictDataService.get(id);
|
SysDictDataDTO data = sysDictDataService.get(id);
|
||||||
|
@ -60,8 +62,8 @@ public class SysDictDataController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@ApiOperation("保存")
|
@ApiOperation("新增字典数据")
|
||||||
@LogOperation("保存")
|
@LogOperation("新增字典数据")
|
||||||
// @RequiresPermissions("sys:dict:save")
|
// @RequiresPermissions("sys:dict:save")
|
||||||
public Result save(@RequestBody SysDictDataDTO dto){
|
public Result save(@RequestBody SysDictDataDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -73,8 +75,8 @@ public class SysDictDataController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
@ApiOperation("修改")
|
@ApiOperation("修改字典数据信息")
|
||||||
@LogOperation("修改")
|
@LogOperation("修改字典数据信息")
|
||||||
// @RequiresPermissions("sys:dict:update")
|
// @RequiresPermissions("sys:dict:update")
|
||||||
public Result update(@RequestBody SysDictDataDTO dto){
|
public Result update(@RequestBody SysDictDataDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -86,8 +88,8 @@ public class SysDictDataController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
@ApiOperation("删除")
|
@ApiOperation("删除字典数据")
|
||||||
@LogOperation("删除")
|
@LogOperation("删除字典数据")
|
||||||
// @RequiresPermissions("sys:dict:delete")
|
// @RequiresPermissions("sys:dict:delete")
|
||||||
public Result delete(@RequestBody Long[] ids){
|
public Result delete(@RequestBody Long[] ids){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
|
|
@ -35,7 +35,8 @@ public class SysDictTypeController {
|
||||||
private SysDictTypeService sysDictTypeService;
|
private SysDictTypeService sysDictTypeService;
|
||||||
|
|
||||||
@GetMapping("page")
|
@GetMapping("page")
|
||||||
@ApiOperation("字典类型")
|
@ApiOperation("字典类型分页查询")
|
||||||
|
@LogOperation("字典类型分页查询")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -53,7 +54,8 @@ public class SysDictTypeController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("{id}")
|
@GetMapping("{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("查询字典类型详细信息")
|
||||||
|
@LogOperation("查询字典类型详细信息")
|
||||||
// @RequiresPermissions("sys:dict:info")
|
// @RequiresPermissions("sys:dict:info")
|
||||||
public Result<SysDictTypeDTO> get(@PathVariable("id") Long id){
|
public Result<SysDictTypeDTO> get(@PathVariable("id") Long id){
|
||||||
SysDictTypeDTO data = sysDictTypeService.get(id);
|
SysDictTypeDTO data = sysDictTypeService.get(id);
|
||||||
|
@ -62,8 +64,8 @@ public class SysDictTypeController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@ApiOperation("保存")
|
@ApiOperation("新增字典类型")
|
||||||
@LogOperation("保存")
|
@LogOperation("新增字典类型")
|
||||||
// @RequiresPermissions("sys:dict:save")
|
// @RequiresPermissions("sys:dict:save")
|
||||||
public Result save(@RequestBody SysDictTypeDTO dto){
|
public Result save(@RequestBody SysDictTypeDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -75,8 +77,8 @@ public class SysDictTypeController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
@ApiOperation("修改")
|
@ApiOperation("修改字典类型信息")
|
||||||
@LogOperation("修改")
|
@LogOperation("修改字典类型信息")
|
||||||
// @RequiresPermissions("sys:dict:update")
|
// @RequiresPermissions("sys:dict:update")
|
||||||
public Result update(@RequestBody SysDictTypeDTO dto){
|
public Result update(@RequestBody SysDictTypeDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -88,8 +90,8 @@ public class SysDictTypeController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
@ApiOperation("删除")
|
@ApiOperation("删除字典类型")
|
||||||
@LogOperation("删除")
|
@LogOperation("删除字典类型")
|
||||||
// @RequiresPermissions("sys:dict:delete")
|
// @RequiresPermissions("sys:dict:delete")
|
||||||
public Result delete(@RequestBody Long[] ids){
|
public Result delete(@RequestBody Long[] ids){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -101,7 +103,8 @@ public class SysDictTypeController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("all")
|
@GetMapping("all")
|
||||||
@ApiOperation("所有字典数据")
|
@ApiOperation("查询所有字典类型")
|
||||||
|
@LogOperation("查询所有字典类型")
|
||||||
public Result<List<DictType>> all(){
|
public Result<List<DictType>> all(){
|
||||||
List<DictType> list = sysDictTypeService.getAllList();
|
List<DictType> list = sysDictTypeService.getAllList();
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,8 @@ public class WorkDynamicsController {
|
||||||
private WorkDynamicsService workDynamicsService;
|
private WorkDynamicsService workDynamicsService;
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@ApiOperation("分页")
|
@ApiOperation("工作动态分页查询")
|
||||||
|
@LogOperation("工作动态分页查询")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
|
||||||
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
|
||||||
|
@ -55,7 +56,8 @@ public class WorkDynamicsController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/select/{id}")
|
@GetMapping("/select/{id}")
|
||||||
@ApiOperation("信息")
|
@ApiOperation("查询工作动态详细信息")
|
||||||
|
@LogOperation("查询工作动态详细信息")
|
||||||
//@RequiresPermissions("workDynamics:workdynamics:info")
|
//@RequiresPermissions("workDynamics:workdynamics:info")
|
||||||
public Result<WorkDynamicsDTO> get(@PathVariable("id") Long id){
|
public Result<WorkDynamicsDTO> get(@PathVariable("id") Long id){
|
||||||
WorkDynamicsDTO data = workDynamicsService.get(id);
|
WorkDynamicsDTO data = workDynamicsService.get(id);
|
||||||
|
@ -64,8 +66,8 @@ public class WorkDynamicsController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/insert")
|
@PostMapping("/insert")
|
||||||
@ApiOperation("保存")
|
@ApiOperation("新增工作动态")
|
||||||
@LogOperation("保存")
|
@LogOperation("新增工作动态")
|
||||||
//@RequiresPermissions("workDynamics:workdynamics:save")
|
//@RequiresPermissions("workDynamics:workdynamics:save")
|
||||||
public Result save(@RequestBody WorkDynamicsDTO dto){
|
public Result save(@RequestBody WorkDynamicsDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -77,8 +79,8 @@ public class WorkDynamicsController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@ApiOperation("修改")
|
@ApiOperation("修改工作动态信息")
|
||||||
@LogOperation("修改")
|
@LogOperation("修改工作动态信息")
|
||||||
//@RequiresPermissions("workDynamics:workdynamics:update")
|
//@RequiresPermissions("workDynamics:workdynamics:update")
|
||||||
public Result update(@RequestBody WorkDynamicsDTO dto){
|
public Result update(@RequestBody WorkDynamicsDTO dto){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
@ -90,8 +92,8 @@ public class WorkDynamicsController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
@ApiOperation("删除")
|
@ApiOperation("删除工作动态")
|
||||||
@LogOperation("删除")
|
@LogOperation("删除工作动态")
|
||||||
//@RequiresPermissions("workDynamics:workdynamics:delete")
|
//@RequiresPermissions("workDynamics:workdynamics:delete")
|
||||||
public Result delete(@RequestBody Long[] ids){
|
public Result delete(@RequestBody Long[] ids){
|
||||||
//效验数据
|
//效验数据
|
||||||
|
|
Loading…
Reference in New Issue