|
@@ -70,9 +70,7 @@ public class TProcessinforController extends BaseRESTfulController {
|
|
|
PageList<TProcessinfor> list = tProcessinforService.queryLikeForPage(parmas, pageNum, pageSize);
|
|
|
return success(list);
|
|
|
}
|
|
|
-
|
|
|
- @ApiOperation(value="创建", notes="根据TProcessinfor对象创建")
|
|
|
- @ApiImplicitParam(name = "tProcessinfor", value = "详细实体tProcessinfor", required = true, dataType = "TProcessinfor")
|
|
|
+
|
|
|
//@RequiresPermissions("tprocessinfor:create")
|
|
|
@PostMapping(value = "/")
|
|
|
public RESTfulResult add(@ModelAttribute TProcessinfor model){
|
|
@@ -97,8 +95,6 @@ public class TProcessinforController extends BaseRESTfulController {
|
|
|
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
|
|
|
- @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
|
|
|
//@RequiresPermissions("tprocessinfor:view")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public RESTfulResult get(@PathVariable String id){
|
|
@@ -106,21 +102,17 @@ public class TProcessinforController extends BaseRESTfulController {
|
|
|
return success(tProcessinfor);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- @ApiOperation(value="获取树状数据", notes="获取TProcessinfor的树形数据")
|
|
|
@GetMapping(value = "/gettree/")
|
|
|
public RESTfulResult getTree(@RequestParam HashMap parameters){
|
|
|
TreeUtils treeUtils = new TreeUtils();
|
|
|
List<TProcessinfor> list = tProcessinforService.getTree(parameters);
|
|
|
return success(treeUtils.getTreeData(list));
|
|
|
}
|
|
|
- @ApiOperation(value="获取上层节点", notes="查询上层节点名字和id")
|
|
|
@GetMapping(value = "/getparent/", produces = "application/json;charset=UTF-8")
|
|
|
public RESTfulResult getParent(){
|
|
|
List<TProcessinfor> tProcessinfors = tProcessinforService.getParent();
|
|
|
return success(tProcessinfors);
|
|
|
}
|
|
|
- @ApiOperation(value = "查询下拉框的值",notes = "根据 namd 和 id 来显示")
|
|
|
@GetMapping("/getIdAndName")
|
|
|
public RESTfulResult getIdAndName(@RequestParam HashMap<String, Object> parmas){
|
|
|
if(parmas.get("id") != null && !parmas.get("id").toString().isEmpty()){
|
|
@@ -140,9 +132,7 @@ public class TProcessinforController extends BaseRESTfulController {
|
|
|
return success(menus);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value="批量更新详细信息", notes="根据传过来的tRmWorkproc数组信息来更新详细信息")
|
|
|
- @ApiImplicitParam(name = "tProcessinfor", value = "详细实体tProcessinfor", required = true, dataType = "TProcessinfor")
|
|
|
- //@RequiresPermissions("trmworkproc:update")
|
|
|
+
|
|
|
@PutMapping(value = "/", produces = "application/json;charset=UTF-8")
|
|
|
public RESTfulResult batchupdate(@RequestBody TProcessinfor[] model){
|
|
|
int failnum = 0;
|
|
@@ -167,8 +157,7 @@ public class TProcessinforController extends BaseRESTfulController {
|
|
|
}
|
|
|
return success();
|
|
|
}
|
|
|
- @ApiOperation(value="删除", notes="根据用户ID来指定删除对象")
|
|
|
- @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
|
|
|
+
|
|
|
//@RequiresPermissions("trmworkproc:delete")
|
|
|
@DeleteMapping(value = "/{id}")
|
|
|
public RESTfulResult delete(@PathVariable String id){
|
|
@@ -187,11 +176,7 @@ public class TProcessinforController extends BaseRESTfulController {
|
|
|
return success();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的tRmWorkproc信息来更新详细信息")
|
|
|
- @ApiImplicitParams({
|
|
|
- @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String"),
|
|
|
- @ApiImplicitParam(name = "tProcessinfor", value = "详细实体tProcessinfor", required = true, dataType = "tProcessinfor")
|
|
|
- })
|
|
|
+
|
|
|
//@RequiresPermissions("trmworkproc:update")
|
|
|
@PutMapping(value = "/{id}", produces = "application/json;charset=UTF-8")
|
|
|
public RESTfulResult update(@PathVariable String id, @RequestBody TProcessinfor model){
|