|
|
@ -27,6 +27,10 @@ import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
|
import com.epmet.dto.*; |
|
|
|
import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.CustomerStaffDTO; |
|
|
|
import com.epmet.dto.CustomerStaffGridDTO; |
|
|
|
import com.epmet.dto.StaffGridListDTO; |
|
|
|
import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.result.DepartInStaffListResultDTO; |
|
|
|
import com.epmet.dto.result.StaffDetailResultDTO; |
|
|
|
import com.epmet.dto.result.StaffInfoResultDTO; |
|
|
@ -145,18 +149,13 @@ public class CustomerStaffController { |
|
|
|
return customerStaffService.getCustomerStaffInfoByUserId(formDTO); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping(value = "selectgridstaffcountbyuserid") |
|
|
|
public Result<GridStaffCountDTO> selectGridStaffCountByUserId(@RequestBody UserIdDTO userIdDTO){ |
|
|
|
return customerStaffService.selectGridStaffCountByUserId(userIdDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 组织首页-工作人员列表 |
|
|
|
* @param fromDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("staffsinagency") |
|
|
|
public Result<List<StaffInfoResultDTO>> getStaffInfoForHome(@RequestBody StaffsInAgencyFromDTO fromDTO) { |
|
|
|
public Result<List<StaffInfoResultDTO>> getStaffInfoForHome(StaffsInAgencyFromDTO fromDTO) { |
|
|
|
return customerStaffService.getStaffInfoForHome(fromDTO); |
|
|
|
} |
|
|
|
|
|
|
@ -166,74 +165,18 @@ public class CustomerStaffController { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("stafflist") |
|
|
|
public Result<List<StaffInfoResultDTO>> getStaffList(@RequestBody StaffsInAgencyFromDTO fromDTO) { |
|
|
|
public Result<List<StaffInfoResultDTO>> getStaffList(StaffsInAgencyFromDTO fromDTO) { |
|
|
|
return customerStaffService.getStaffList(fromDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 人员添加页面初始化 |
|
|
|
* |
|
|
|
* @param fromDTO 参数 |
|
|
|
* @return Result<StaffInitResultDTO> |
|
|
|
* 查询网格下未被禁用人员 |
|
|
|
* @param userIdDTO |
|
|
|
* @auther zxc |
|
|
|
*/ |
|
|
|
@PostMapping("rolelist") |
|
|
|
public Result<StaffInitResultDTO> addStaffInit(@RequestBody StaffInfoFromDTO fromDTO){ |
|
|
|
return customerStaffService.addStaffInit(fromDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 人员编辑页面初始化 |
|
|
|
* |
|
|
|
* @param fromDTO 参数 |
|
|
|
* @return Result<StaffInitResultDTO> |
|
|
|
*/ |
|
|
|
@PostMapping("editstaffinit") |
|
|
|
public Result<StaffInitResultDTO> editStaffInit(@RequestBody StaffInfoFromDTO fromDTO){ |
|
|
|
return customerStaffService.editStaffInit(fromDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 人员添加 |
|
|
|
* |
|
|
|
* @param fromDTO 参数 |
|
|
|
* @return Result |
|
|
|
*/ |
|
|
|
@PostMapping("addstaff") |
|
|
|
public Result addStaff(@RequestBody StaffSubmitFromDTO fromDTO){ |
|
|
|
return customerStaffService.addStaff(fromDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 人员编辑 |
|
|
|
* |
|
|
|
* @param fromDTO 参数 |
|
|
|
* @return Result |
|
|
|
*/ |
|
|
|
@PostMapping("editstaff") |
|
|
|
public Result editStaff(@RequestBody StaffSubmitFromDTO fromDTO){ |
|
|
|
return customerStaffService.editStaff(fromDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 人员详情 |
|
|
|
* |
|
|
|
* @param fromDTO 参数 |
|
|
|
* @return Result<StaffDetailResultDTO> |
|
|
|
*/ |
|
|
|
@PostMapping("staffdetail") |
|
|
|
public Result<StaffDetailResultDTO> getStaffDetail(@RequestBody StaffInfoFromDTO fromDTO){ |
|
|
|
return customerStaffService.getStaffDetail(fromDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 人员禁用 |
|
|
|
* |
|
|
|
* @param fromDTO 参数 |
|
|
|
* @return Result |
|
|
|
*/ |
|
|
|
@PostMapping("disabledstaff") |
|
|
|
public Result disabledStaff(@RequestBody StaffInfoFromDTO fromDTO){ |
|
|
|
return customerStaffService.disabledStaff(fromDTO); |
|
|
|
@PostMapping(value = "selectgridstaffcountbyuserid") |
|
|
|
public Result<GridStaffCountDTO> selectGridStaffCountByUserId(@RequestBody UserIdDTO userIdDTO){ |
|
|
|
return customerStaffService.selectGridStaffCountByUserId(userIdDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -246,4 +189,9 @@ public class CustomerStaffController { |
|
|
|
public Result<List<DepartInStaffListResultDTO>> getDepartmentStaffList(DepartmentInStaffFormDTO fromDTO) { |
|
|
|
return customerStaffService.getDepartmentStaffList(fromDTO); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping(value = "selectcustomeridbyuserid") |
|
|
|
public Result<List<CustomerIdDTO>> selectCustomerIdByUserId(@RequestBody AddDepartmentStaffFormDTO addDepartmentStaffFormDTO){ |
|
|
|
return customerStaffService.selectCustomerIdByUserId(addDepartmentStaffFormDTO); |
|
|
|
} |
|
|
|
} |