。。。

This commit is contained in:
wangliwen 2022-04-26 15:04:27 +08:00
parent 816ec82d45
commit 299d0cc19b
4 changed files with 14 additions and 10 deletions

View File

@ -33,13 +33,13 @@ import java.util.Map;
* @since 1.0 2022-04-25
*/
@RestController
@RequestMapping("demanData/tdemanddata")
@RequestMapping("demanData")
@Api(tags = "能力需求评审主体")
public class TDemandDataController {
@Autowired
private TDemandDataService tDemandDataService;
@GetMapping("page")
@GetMapping("/page")
@ApiOperation("分页")
@ApiImplicitParams({
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码从1开始", paramType = "query", required = true, dataType = "int"),
@ -55,7 +55,7 @@ public class TDemandDataController {
return new Result<PageData<TDemandDataDTO>>().ok(page);
}
@GetMapping("{id}")
@GetMapping("/{id}")
@ApiOperation("信息")
// @RequiresPermissions("demanData:tdemanddata:info")
public Result<TDemandDataDTO> get(@PathVariable("id") Long id) {
@ -103,7 +103,7 @@ public class TDemandDataController {
return new Result();
}
@GetMapping("export")
@GetMapping("/export")
@ApiOperation("导出")
@LogOperation("导出")
// @RequiresPermissions("demanData:tdemanddata:export")

View File

@ -37,10 +37,11 @@ public class TDemandDataServiceImpl extends CrudServiceImpl<TDemandDataDao, TDem
case "flag":
wrapper.eq("flag", params.get("flag"));
break;
default:
wrapper.eq("flag", 3); // 默认只出审核通过
}
});
if (!params.containsKey("creator")) {
wrapper.eq("flag", 3); // 默认只出审核通过
}
return wrapper;
}

View File

@ -58,6 +58,9 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti
case EVENTNAME_CREATE:
createEvent(delegateTask);
break;
case EVENTNAME_COMPLETE:
logger.error("----------------------大数据审批通过-complete------------------------------");
break;
default:
logger.info("未处理该事件:" + eventName);
}

View File

@ -34,13 +34,13 @@ import java.util.Map;
* @since 3.0 2022-04-24
*/
@RestController
@RequestMapping("resourceMountApply/tresourcemountapply")
@RequestMapping("/resourceMountApply")
@Api(tags = "资源挂载申请表单")
public class TResourceMountApplyController {
@Autowired
private TResourceMountApplyService tResourceMountApplyService;
@GetMapping("page")
@GetMapping("/page")
@ApiOperation("分页")
@ApiImplicitParams({
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码从1开始", paramType = "query", required = true, dataType = "int"),
@ -55,7 +55,7 @@ public class TResourceMountApplyController {
return new Result<PageData<TResourceMountApplyDTO>>().ok(page);
}
@GetMapping("{id}")
@GetMapping("/{id}")
@ApiOperation("信息")
// @RequiresPermissions("resourceMountApply:tresourcemountapply:info")
public Result<TResourceMountApplyDTO> get(@PathVariable("id") Long id) {
@ -106,7 +106,7 @@ public class TResourceMountApplyController {
return new Result();
}
@GetMapping("export")
@GetMapping("/export")
@ApiOperation("导出")
@LogOperation("导出")
// @RequiresPermissions("resourceMountApply:tresourcemountapply:export")