|
@@ -31,13 +31,11 @@ public class GraphDefineController {
|
|
|
private IGraphDefineService service;
|
|
|
|
|
|
@PostMapping("query")
|
|
|
- public CommonResult<PageList<ObjectType>> query(@RequestBody QueryCriteria criteria) {
|
|
|
+ public CommonResult<PageList<GraphDefine>> query(@RequestBody QueryCriteria criteria) {
|
|
|
if(criteria == null) {
|
|
|
throw new BusinessException(ResponseCode.A0400.getCode(), ResponseCode.A0400.getDesc());
|
|
|
}
|
|
|
QueryWrapper<GraphDefine> wrapper = new QueryWrapper<>();
|
|
|
-
|
|
|
- DigitalCommonUtils.ensureProjectCriteria(wrapper);
|
|
|
|
|
|
criteria.toWrapper(wrapper);
|
|
|
Page page = service.queryByCondition(criteria.toPage(), wrapper);
|
|
@@ -46,7 +44,6 @@ public class GraphDefineController {
|
|
|
|
|
|
@PostMapping("/create")
|
|
|
public CommonResult<GraphDefine> create(@RequestBody GraphDefine vo){
|
|
|
- vo.setProjectId(DigitalCommonUtils.getProjectId());
|
|
|
vo = service.insert(vo);
|
|
|
return ResultHelper.single(vo);
|
|
|
}
|