|
@ -2,13 +2,12 @@ package com.epmet.controller; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
|
|
import com.epmet.dto.form.AddDepartmentFormDTO; |
|
|
|
|
|
import com.epmet.service.CustomerStaffDepartmentService; |
|
|
|
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.dto.result.AddDepartmentResultDTO; |
|
|
|
|
|
import com.epmet.dto.result.DepartmentDetailResultDTO; |
|
|
|
|
|
import com.epmet.dto.result.DepartmentInAgencyResultDTO; |
|
|
|
|
|
import com.epmet.dto.result.DepartmentListResultDTO; |
|
|
import com.epmet.service.DepartmentService; |
|
|
import com.epmet.service.DepartmentService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
@ -16,27 +15,8 @@ import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Auther zxc |
|
|
|
|
|
* @Create 2020-04-24 14:48 |
|
|
|
|
|
*/ |
|
|
|
|
|
@RestController |
|
|
|
|
|
@RequestMapping(value = "/department") |
|
|
|
|
|
public class DepartmentController { |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private CustomerStaffDepartmentService customerStaffDepartmentService; |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping(value = "adddepartmentstaff") |
|
|
|
|
|
public Result addDepartmentStaff(@LoginUser TokenDto tokenDto, @RequestBody AddDepartmentFormDTO addDepartmentFormDTO){ |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 部门 |
|
|
* 部门 |
|
|
* |
|
|
* |
|
@ -49,6 +29,11 @@ public class DepartmentController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private DepartmentService departmentService; |
|
|
private DepartmentService departmentService; |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping(value = "adddepartmentstaff") |
|
|
|
|
|
public Result addDepartmentStaff(@LoginUser TokenDto tokenDto, @RequestBody AddDepartmentFormDTO addDepartmentFormDTO){ |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
* @return |
|
|
* @return |
|
|