1.分布式光伏台账相关

This commit is contained in:
2022-07-13 09:04:57 +08:00
parent d00bd4bf0c
commit 63ce5e649c
36 changed files with 1072 additions and 103 deletions

View File

@@ -16,9 +16,8 @@ import com.njcn.user.pojo.param.DeptParam;
import com.njcn.user.pojo.vo.DeptAllTreeVO;
import com.njcn.user.pojo.vo.DeptTreeVO;
import com.njcn.user.pojo.vo.DeptVO;
import com.njcn.user.pojo.vo.PvTerminalTreeVO;
import com.njcn.user.service.IDeptService;
import com.njcn.web.pojo.param.DeptLineParam;
import com.njcn.web.utils.ControllerUtil;
import io.swagger.annotations.*;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@@ -256,5 +255,19 @@ public class DeptController extends BaseController {
}
}
/**
* 获取所有的部门
* @author cdf
* @date 2022/7/12
*/
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
@GetMapping("/allDeptList")
@ApiOperation("获取所有单位")
public HttpResult<List<PvTerminalTreeVO>> allDeptList() {
String methodDescribe = getMethodDescribe("allDeptList");
List<PvTerminalTreeVO> result = deptService.allDeptList();
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
}
}