|
|
|
@ -1,11 +1,13 @@ |
|
|
|
|
package com.dxhy.admin.sys.controller; |
|
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.springframework.beans.factory.annotation.Required; |
|
|
|
|
import org.springframework.http.ResponseEntity; |
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
@ -45,7 +47,11 @@ public class SysDeptController extends AbstractController { |
|
|
|
|
* 列表 |
|
|
|
|
*/ |
|
|
|
|
@RequestMapping("/list") |
|
|
|
|
public ResponseEntity<?> list(@RequestBody Map<String, String> pramsMap) { |
|
|
|
|
public ResponseEntity<?> list(@RequestBody(required = false) Map<String, String> pramsMap) { |
|
|
|
|
if(pramsMap == null){ |
|
|
|
|
pramsMap = new HashMap<>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
long deptId = 0; |
|
|
|
|
if(StringUtils.isNotEmpty(pramsMap.get("deptId"))) { |
|
|
|
|
deptId = Long.parseLong(pramsMap.get("deptId")); |
|
|
|
|