mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-12 01:34:19 +09:00
시스템관리 - 권한관리, 고객관리 - 청약고객관리/회원관리 추가
This commit is contained in:
@@ -8,8 +8,12 @@ package kr.co.uplus.ez.api.custMgt;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.Valid;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
@@ -21,9 +25,24 @@ import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AdminInfoReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AdminInfoResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AllMemoListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AllMemoListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CarryOverListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CarryOverListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.DeleteMemoReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.DeleteMemoResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.DeleteUserReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.DeleteUserResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertMassUserReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertMassUserResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertTestIdReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertTestIdResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertUserReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertUserResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberAdminDetailReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberAdminDetailResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberDetailReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberDetailResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsDetailReqDto;
|
||||
@@ -32,6 +51,12 @@ import kr.co.uplus.ez.api.custMgt.dto.SubsListExcelReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsListExcelResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.UpdateAdminInfoReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.UpdateAdminInfoResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.UpdateUserReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.UpdateUserResDto;
|
||||
import kr.co.uplus.ez.common.components.ValidComponents;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseMessage;
|
||||
|
||||
/**
|
||||
@@ -44,9 +69,14 @@ import kr.co.uplus.ez.common.data.ApiResponseMessage;
|
||||
@RequestMapping(value = "api/v1/bo/custMgt")
|
||||
public class CustMgtController {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(CustMgtController.class);
|
||||
|
||||
@Autowired
|
||||
CustMgtService custService;
|
||||
|
||||
@Autowired
|
||||
ValidComponents validComponents;
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
@@ -54,7 +84,7 @@ public class CustMgtController {
|
||||
*
|
||||
* @param subsListReqDto
|
||||
* @return SubsListResDto
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "subsList", notes = "청약 고객 정보 목록 조회")
|
||||
@ApiResponses({
|
||||
@@ -62,7 +92,10 @@ public class CustMgtController {
|
||||
})
|
||||
@RequestMapping(value = "/subsList" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public SubsListResDto subsList(@RequestBody SubsListReqDto subsListReqDto) throws Exception{
|
||||
public SubsListResDto subsList(@RequestBody @Valid SubsListReqDto subsListReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new SubsListResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.subsList(subsListReqDto);
|
||||
}
|
||||
|
||||
@@ -73,11 +106,20 @@ public class CustMgtController {
|
||||
*
|
||||
* @param subsListExcelReqDto
|
||||
* @return SubsListExcelResDto
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "subsListExcel", notes = "청약 고객 정보 목록 엑셀 다운로드")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/subsListExcel" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public SubsListExcelResDto subsListExcel(@RequestBody SubsListExcelReqDto subsListExcelReqDto) throws Exception{
|
||||
public SubsListExcelResDto subsListExcel(@RequestBody @Valid SubsListExcelReqDto subsListExcelReqDto, BindingResult bindingResult) {
|
||||
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new SubsListExcelResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
|
||||
return custService.subsListExcel(subsListExcelReqDto);
|
||||
}
|
||||
|
||||
@@ -88,11 +130,20 @@ public class CustMgtController {
|
||||
*
|
||||
* @param subsDetailReqDto
|
||||
* @return SubsDetailResDto
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "subsDetail", notes = "청약 정보 상세 조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/subsDetail" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public SubsDetailResDto subsDetail(@RequestBody SubsDetailReqDto subsDetailReqDto) throws Exception{
|
||||
public SubsDetailResDto subsDetail(@RequestBody @Valid SubsDetailReqDto subsDetailReqDto, BindingResult bindingResult) {
|
||||
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new SubsDetailResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
|
||||
return custService.subsDetail(subsDetailReqDto);
|
||||
}
|
||||
|
||||
@@ -102,14 +153,38 @@ public class CustMgtController {
|
||||
* desc : 관리자명 조회
|
||||
* @param adminInfoReqDto
|
||||
* @return AdminInfoResDto
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@RequestMapping(value = "/adminInfo" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public AdminInfoResDto adminInfo(@RequestBody AdminInfoReqDto adminInfoReqDto) throws Exception{
|
||||
public AdminInfoResDto adminInfo(@RequestBody @Valid AdminInfoReqDto adminInfoReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new AdminInfoResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.adminInfo(adminInfoReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 관리자ID, 관리자명 수정
|
||||
* @param adminInfoReqDto
|
||||
* @return AdminInfoResDto
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "updateAdminInfo", notes = "관리자 정보 수정")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/updateAdminInfo" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public UpdateAdminInfoResDto updateAdminInfo(@RequestBody @Valid UpdateAdminInfoReqDto updateAdminInfoReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new UpdateAdminInfoResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.updateAdminInfo(updateAdminInfoReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
@@ -117,11 +192,18 @@ public class CustMgtController {
|
||||
*
|
||||
* @param carryOverListReqDto
|
||||
* @return CarryOverListResDto
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "carryOverList", notes = "이월금액 목록 조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/carryOverList" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public CarryOverListResDto carryOverList(@RequestBody CarryOverListReqDto carryOverListReqDto) throws Exception{
|
||||
public CarryOverListResDto carryOverList(@RequestBody @Valid CarryOverListReqDto carryOverListReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new CarryOverListResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.carryOverList(carryOverListReqDto);
|
||||
}
|
||||
|
||||
@@ -131,11 +213,18 @@ public class CustMgtController {
|
||||
* desc : 회원목록조회
|
||||
* @param memberListReqDto
|
||||
* @return MemberListResDto
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "memberList", notes = "회원목록조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/memberList" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public MemberListResDto memberList(@RequestBody MemberListReqDto memberListReqDto) throws Exception{
|
||||
public MemberListResDto memberList(@RequestBody @Valid MemberListReqDto memberListReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new MemberListResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.memberList(memberListReqDto);
|
||||
}
|
||||
|
||||
@@ -145,26 +234,59 @@ public class CustMgtController {
|
||||
* desc : 회원 정보 상세 조회
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "memberDetail", notes = "회원 정보 상세 조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/memberDetail" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public ApiResponseMessage memberDetail(@RequestBody MemberDetailReqDto memberDetailReqDto) throws Exception{
|
||||
public MemberDetailResDto memberDetail(@RequestBody @Valid MemberDetailReqDto memberDetailReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new MemberDetailResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.memberDetail(memberDetailReqDto);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param memberDetailListReqDto
|
||||
* @param bindingResult
|
||||
* @return MemberDetailListResDto
|
||||
*/
|
||||
@ApiOperation(value = "memberAdminDetail", notes = "회원 정보(관리자) 상세 조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/memberAdminDetail" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public MemberAdminDetailResDto memberAdminDetail(@RequestBody @Valid MemberAdminDetailReqDto memberAdminDetailReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new MemberAdminDetailResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.memberAdminDetail(memberAdminDetailReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 테스트ID 등록
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "insertTestId", notes = "테스트ID 등록")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/insertTestId" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public ApiResponseMessage insertTestId(@RequestBody Map<String, Object> paramMap) throws Exception{
|
||||
return custService.insertTestId(paramMap);
|
||||
public InsertTestIdResDto insertTestId(@RequestBody @Valid InsertTestIdReqDto insertTestIdReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new InsertTestIdResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.insertTestId(insertTestIdReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -173,12 +295,19 @@ public class CustMgtController {
|
||||
* desc : 전체 메모 목록 조회
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "allMemoList", notes = "전체 메모 목록 조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/allMemoList" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public ApiResponseMessage allMemoList(@RequestBody Map<String, Object> paramMap) throws Exception{
|
||||
return custService.allMemoList(paramMap);
|
||||
public AllMemoListResDto allMemoList(@RequestBody @Valid AllMemoListReqDto allMemoListReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new AllMemoListResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.allMemoList(allMemoListReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -187,12 +316,19 @@ public class CustMgtController {
|
||||
* desc : 메모 삭제
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "deleteMemo", notes = "메모 삭제")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/deleteMemo" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public ApiResponseMessage deleteMemo(@RequestBody Map<String, Object> paramMap) throws Exception{
|
||||
return custService.deleteMemo(paramMap);
|
||||
public DeleteMemoResDto deleteMemo(@RequestBody @Valid DeleteMemoReqDto deleteMemoReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new DeleteMemoResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.deleteMemo(deleteMemoReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -201,12 +337,19 @@ public class CustMgtController {
|
||||
* desc : 사용자 정보 등록
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "insertUser", notes = "사용자 정보 등록")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/insertUser" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public ApiResponseMessage insertUser(@RequestBody Map<String, Object> paramMap) throws Exception{
|
||||
return custService.insertUser(paramMap);
|
||||
public InsertUserResDto insertUser(@RequestBody @Valid InsertUserReqDto insertUserReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new InsertUserResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.insertUser(insertUserReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -215,12 +358,19 @@ public class CustMgtController {
|
||||
* desc : 사용자 정보 수정
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "updateUser", notes = "사용자 정보 수정")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/updateUser" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public ApiResponseMessage updateUser(@RequestBody Map<String, Object> paramMap) throws Exception{
|
||||
return custService.updateUser(paramMap);
|
||||
public UpdateUserResDto updateUser(@RequestBody @Valid UpdateUserReqDto updateUserReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new UpdateUserResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.updateUser(updateUserReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -229,12 +379,19 @@ public class CustMgtController {
|
||||
* desc : 사용자ID 대량등록
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "insertMassUser", notes = "사용자ID 대량등록")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/insertMassUser" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public ApiResponseMessage insertMassUser(@RequestBody Map<String, Object> paramMap) throws Exception{
|
||||
return custService.insertMassUser(paramMap);
|
||||
public InsertMassUserResDto insertMassUser(@RequestBody @Valid InsertMassUserReqDto insertMassUserReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new InsertMassUserResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.insertMassUser(insertMassUserReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -243,12 +400,19 @@ public class CustMgtController {
|
||||
* desc : 사용자 정보 삭제
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@ApiOperation(value = "/deleteUser", notes = "사용자 정보 수정")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "/deleteUser" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public ApiResponseMessage deleteUser(@RequestBody Map<String, Object> paramMap) throws Exception{
|
||||
return custService.deleteUser(paramMap);
|
||||
public DeleteUserResDto deleteUser(@RequestBody @Valid DeleteUserReqDto deleteUserReqDto, BindingResult bindingResult) {
|
||||
if(validComponents.validParameter(bindingResult)) {
|
||||
return new DeleteUserResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return custService.deleteUser(deleteUserReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -257,11 +421,11 @@ public class CustMgtController {
|
||||
* desc : 관리자 정보 수정
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws Exception
|
||||
* @
|
||||
*/
|
||||
@RequestMapping(value = "/updateMember" , method = {RequestMethod.POST})
|
||||
@ResponseBody
|
||||
public ApiResponseMessage updateMember(@RequestBody Map<String, Object> paramMap) throws Exception{
|
||||
public ApiResponseMessage updateMember(@RequestBody Map<String, Object> paramMap) {
|
||||
return custService.updateMember(paramMap);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +1,94 @@
|
||||
package kr.co.uplus.ez.api.custMgt;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AllMemoList;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AllMemoListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CarryOver;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CarryOverListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CustInfo;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.DeleteUserReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertUserReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberAdminDetailReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberAdminDetailRes;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberDetail;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberDetailReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberDetailRes;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberList;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsDetail;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsDetailReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsInfo;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsList;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsListExcelReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SvcUserInfo;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.UpdateUserReqDto;
|
||||
import kr.co.uplus.ez.common.data.ImUser;
|
||||
|
||||
@Mapper
|
||||
public interface CustMgtMapper {
|
||||
|
||||
/** 청구정보 카운트 조회.*/
|
||||
int selectSubsListTotalCnt(SubsListReqDto subsListReqDto);
|
||||
|
||||
/** 청구정보 목록 조회.*/
|
||||
List<SubsList> selectSubsLists(SubsListReqDto subsListReqDto);
|
||||
/** 청구정보 엑셀 목록 조회.*/
|
||||
List<SubsList> selectSubsListsExcel(SubsListExcelReqDto subsListExcelReqDto);
|
||||
/** 청구정보 상세 조회.*/
|
||||
SubsDetail selectSubsDetailInfo(SubsDetailReqDto subsDetailReqDto);
|
||||
/** 이월 금액 목록 조회.*/
|
||||
List<CarryOver> selectCarryOverList(CarryOverListReqDto carryOverListReqDto);
|
||||
/** 마당ID 조회.*/
|
||||
ImUser selectImUser(ImUser imUser);
|
||||
/** 회원정보 카운트 조회.*/
|
||||
int selectSvcUserListTotalCnt(MemberListReqDto memberListReqDto);
|
||||
/** 회원정보 목록 조회.*/
|
||||
List<MemberList> selectSvcUserList(MemberListReqDto memberListReqDto);
|
||||
/** 회원 상세 조회.*/
|
||||
MemberDetailRes selectMemberDetail(MemberDetailReqDto memberDetailReqDto);
|
||||
/** 회원(관리자) 상세 조회.*/
|
||||
MemberAdminDetailRes selectMemberAdminDetail(MemberAdminDetailReqDto memberAdminDetailReqDto);
|
||||
/** 사용자 아이디 카운트 조회.*/
|
||||
int selectMemberDetailListTotalCnt(MemberAdminDetailReqDto memberDetailListReqDto);
|
||||
/** 사용자 아이디 목록 조회.*/
|
||||
List<MemberDetail> selectMemberDetailList(MemberAdminDetailReqDto memberDetailListReqDto);
|
||||
/** 사용자 메모 목록 조회.*/
|
||||
List<AllMemoList> selectMemoList(AllMemoListReqDto allMemoListReqDto);
|
||||
/** 사용자 유무 확인.*/
|
||||
int getUserIdCount(String userId);
|
||||
/** 고객일련번호 조회.*/
|
||||
String getCustSeq(String bizrno);
|
||||
/** 이용자일련번호 조회.*/
|
||||
String getUserSeq();
|
||||
/** 080인증번호 조회.*/
|
||||
String getAuth080();
|
||||
|
||||
int updateAdminInfo(SubsDetail subDetail);
|
||||
|
||||
int insertUserInfo(InsertUserReqDto insertUserReqDto);
|
||||
|
||||
int selectUserInfoCnt(InsertUserReqDto insertUserReqDto);
|
||||
|
||||
int updateUserInfo(UpdateUserReqDto updateUserReqDto);
|
||||
|
||||
/** 고개정보 유무 조회.*/
|
||||
int selectCustInfoCount(String brno);
|
||||
/** 고객정보 등록.*/
|
||||
void insertCustInfo(CustInfo custInfo);
|
||||
/** 서비스 이용자 등록.*/
|
||||
void insertSvcUserInfo(SvcUserInfo svcUserInfo);
|
||||
/** 청약정보 등록.*/
|
||||
void insertSubsInfo(SubsInfo subsInfo);
|
||||
/** 메모 삭제 */
|
||||
int deleteMemo(Map<String, Object> paramMap);
|
||||
/** UserSeq 조회*/
|
||||
int selectUserSeq(String register);
|
||||
/** 사용자 정보 삭제*/
|
||||
int deleteUserList(DeleteUserReqDto deleteUserReqDto);
|
||||
/** 관리자아이디 조회*/
|
||||
int selectAdminId(String adminId);
|
||||
}
|
||||
|
||||
@@ -1,38 +1,73 @@
|
||||
package kr.co.uplus.ez.api.custMgt;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang3.RandomStringUtils;
|
||||
import org.mybatis.spring.SqlSessionTemplate;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AdminInfo;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AdminInfoReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AdminInfoResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AllMemoList;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AllMemoListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AllMemoListRes;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.AllMemoListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CarryOver;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CarryOverListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CarryOverListRes;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CarryOverListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.CustInfo;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.DeleteMemoReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.DeleteMemoResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.DeleteUserReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.DeleteUserResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertMassUserReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertMassUserResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertTestIdReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertTestIdResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertUserReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.InsertUserResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberAdminDetailReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberAdminDetailRes;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberAdminDetailResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberDetail;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberDetailReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberDetailRes;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberDetailResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberList;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberListRes;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.MemberListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsDetail;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsDetailReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsDetailResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsInfo;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsList;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsListExcelReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsListExcelResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsListReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsListRes;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SubsListResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.SvcUserInfo;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.UpdateAdminInfoReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.UpdateAdminInfoResDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.UpdateUserReqDto;
|
||||
import kr.co.uplus.ez.api.custMgt.dto.UpdateUserResDto;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseMessage;
|
||||
import kr.co.uplus.ez.common.data.Const;
|
||||
import kr.co.uplus.ez.common.data.ImUser;
|
||||
import kr.co.uplus.ez.common.data.Paging;
|
||||
import kr.co.uplus.ez.common.utils.DateUtils;
|
||||
import kr.co.uplus.ez.common.utils.EncryptionUtil;
|
||||
|
||||
@Service
|
||||
public class CustMgtService {
|
||||
@@ -48,6 +83,37 @@ public class CustMgtService {
|
||||
@Qualifier("sqlSessionTemplateDb2")
|
||||
private SqlSessionTemplate sqlSessionSlave;
|
||||
|
||||
/** 요금제. */
|
||||
@Value("${testId.prodCd}")
|
||||
private String prodCd;
|
||||
/** 생년월일. */
|
||||
@Value("${testId.rpsnBday}")
|
||||
private String rpsnBday;
|
||||
/** 사업자번호. */
|
||||
@Value("${testId.brno}")
|
||||
private String brno;
|
||||
/** 법인번호. */
|
||||
@Value("${testId.cono}")
|
||||
private String cono;
|
||||
/** 우편번호. */
|
||||
@Value("${testId.zipCd}")
|
||||
private String zipCd;
|
||||
/** 주소. */
|
||||
@Value("${testId.badr}")
|
||||
private String badr;
|
||||
/** 상세주소. */
|
||||
@Value("${testId.dadr}")
|
||||
private String dadr;
|
||||
/** 회사명. */
|
||||
@Value("${testId.cmpyNm}")
|
||||
private String cmpyNm;
|
||||
/** 청구방법. */
|
||||
@Value("${testId.paymMthd}")
|
||||
private String paymMthd;
|
||||
/** 고객유형코드. */
|
||||
@Value("${testId.custTyCd}")
|
||||
private String custTyCd;
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
@@ -59,12 +125,23 @@ public class CustMgtService {
|
||||
|
||||
CustMgtMapper custMgtMapper = sqlSessionSlave.getMapper(CustMgtMapper.class);
|
||||
|
||||
String nowPage = String.valueOf(subsListReqDto.getPage());
|
||||
int totalCnt = custMgtMapper.selectSubsListTotalCnt(subsListReqDto);
|
||||
|
||||
|
||||
if(totalCnt == 0) {
|
||||
return new SubsListResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
|
||||
SubsListRes subsListRes = new SubsListRes();
|
||||
subsListRes.setList(new ArrayList<>());
|
||||
|
||||
Paging paging = new Paging();
|
||||
paging.setPage(nowPage);
|
||||
paging.setTotalCnt(String.valueOf(totalCnt));
|
||||
subsListRes.setPaging(paging);
|
||||
|
||||
return new SubsListResDto(ApiResponseCode.CM_NOT_FOUND, subsListRes);
|
||||
}
|
||||
String nowPage = String.valueOf(subsListReqDto.getPage());
|
||||
|
||||
|
||||
int page = subsListReqDto.getPage();
|
||||
int pagePerRows = subsListReqDto.getPagePerRows();
|
||||
@@ -93,38 +170,21 @@ public class CustMgtService {
|
||||
* @return subsListExcelResDto
|
||||
*/
|
||||
public SubsListExcelResDto subsListExcel(SubsListExcelReqDto subsListExcelReqDto) {
|
||||
SubsListExcelResDto subsListExcelResDto = new SubsListExcelResDto(ApiResponseCode.SUCCESS);
|
||||
|
||||
List<Map<String, Object>> dataList = new ArrayList<>();
|
||||
Map<String, Object> dataObj = new HashMap<>();
|
||||
Map<String, Object> paging = new HashMap<>();
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
CustMgtMapper custMgtMapper = sqlSessionSlave.getMapper(CustMgtMapper.class);
|
||||
|
||||
paging.put(Const.TOTAL_CNT, "5");
|
||||
paging.put(Const.CURRENT_PAGE, "1");
|
||||
dataObj.put("paging", paging);
|
||||
SubsListRes subsListRes = new SubsListRes();
|
||||
// 청약 고객 정보 엑셀 조회.
|
||||
List<SubsList> subsLists = custMgtMapper.selectSubsListsExcel(subsListExcelReqDto);
|
||||
|
||||
Date now = new Date();
|
||||
String nowStr = DateUtils.dateToStr(now, "YYYY-MM-dd");
|
||||
//
|
||||
Paging paging = new Paging();
|
||||
paging.setTotalCnt(String.valueOf(subsLists.size()));
|
||||
subsListRes.setPaging(paging);
|
||||
subsListRes.setList(subsLists);
|
||||
|
||||
for(int i=1; i<=25; i++) {
|
||||
data = new HashMap<>();
|
||||
data.put("no", ""+i);
|
||||
data.put("serviceId", "Uplus01");
|
||||
data.put("custNm", "유플러스");
|
||||
data.put("regNo", "1234"+i);
|
||||
data.put("regDt", nowStr);
|
||||
data.put("stat", "사용중");
|
||||
data.put("channel", "유플러스");
|
||||
data.put("plan", "요금제3");
|
||||
data.put("carryOver", ""+(100000*i));
|
||||
dataList.add(data);
|
||||
}
|
||||
|
||||
dataObj.put("list", dataList);
|
||||
// subsListExcelResDto.setData(dataObj);
|
||||
|
||||
return subsListExcelResDto;
|
||||
// 성공 응답.
|
||||
return new SubsListExcelResDto(ApiResponseCode.SUCCESS, subsListRes);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -135,38 +195,19 @@ public class CustMgtService {
|
||||
* @return subsDetailResDto
|
||||
*/
|
||||
public SubsDetailResDto subsDetail(SubsDetailReqDto subsDetailReqDto) {
|
||||
SubsDetailResDto subsDetailResDto = new SubsDetailResDto(ApiResponseCode.SUCCESS);
|
||||
|
||||
Date now = new Date();
|
||||
String nowStr = DateUtils.dateToStr(now, "YYYY-MM-dd");
|
||||
CustMgtMapper custMgtMapper = sqlSessionSlave.getMapper(CustMgtMapper.class);
|
||||
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
data.put("custNm", "유플러스");
|
||||
data.put("reprNm", "홍길동");
|
||||
data.put("custType", "법인사업자");
|
||||
data.put("adr1", "12345");
|
||||
data.put("adr2", "서울 마포구 월드컵북로 416");
|
||||
data.put("adr3", "유플러스 상암사옥");
|
||||
data.put("bRegNo", "1231212345");
|
||||
data.put("cprRegNo", "1234561234567");
|
||||
data.put("subsDt", nowStr);
|
||||
data.put("stat", "사용");
|
||||
data.put("plan", "요금제1");
|
||||
data.put("subsNo", "12345");
|
||||
data.put("adminId", "Uplus02");
|
||||
data.put("adminNm", "김철수");
|
||||
data.put("channelId", "Uplus01");
|
||||
data.put("channelNm", "홍길동");
|
||||
data.put("serviceId", "uplus01");
|
||||
data.put("useAuth", "관리자ID");
|
||||
data.put("userNm", "유플러스");
|
||||
data.put("mdn", "01012341234");
|
||||
data.put("carryOver", "100000");
|
||||
data.put("userCnt", "10");
|
||||
// 청약정보 상세조회.
|
||||
SubsDetail subsDetail = custMgtMapper.selectSubsDetailInfo(subsDetailReqDto);
|
||||
|
||||
// subsDetailResDto.setData(data);
|
||||
// 조회 결과 없음.
|
||||
if(subsDetail == null) {
|
||||
return new SubsDetailResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
return subsDetailResDto;
|
||||
// 성공 응답.
|
||||
return new SubsDetailResDto(ApiResponseCode.SUCCESS, subsDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -177,16 +218,55 @@ public class CustMgtService {
|
||||
* @return adminInfoResDto
|
||||
*/
|
||||
public AdminInfoResDto adminInfo(AdminInfoReqDto adminInfoReqDto) {
|
||||
AdminInfoResDto adminInfoResDto = new AdminInfoResDto(ApiResponseCode.SUCCESS);
|
||||
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
data.put("adminId", "uplus01");
|
||||
data.put("adminCd", "U00001");
|
||||
data.put("adminNm", "홍길동");
|
||||
data.put("agencyNm", "lg대리점");
|
||||
// result.setData(data);
|
||||
CustMgtMapper custMgtMapper = sqlSessionSlave.getMapper(CustMgtMapper.class);
|
||||
|
||||
ImUser param = new ImUser();
|
||||
param.setLoginId(adminInfoReqDto.getAdminId());
|
||||
// 마당ID 정보 조회.
|
||||
ImUser imUser = custMgtMapper.selectImUser(param);
|
||||
|
||||
// 조회 결과 없음.
|
||||
if(imUser == null) {
|
||||
return new AdminInfoResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
AdminInfo adminInfo = new AdminInfo();
|
||||
adminInfo.setAdminId(imUser.getLoginId());
|
||||
adminInfo.setAdminCd(imUser.getUserCode());
|
||||
adminInfo.setAdminNm(imUser.getName());
|
||||
// TODO 대리점명 확인 필요.
|
||||
adminInfo.setAgencyNm(imUser.getName());
|
||||
|
||||
// 성공 응답.
|
||||
return new AdminInfoResDto(ApiResponseCode.SUCCESS, adminInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 관리자ID,관리자명 수정
|
||||
* @param updateAdminInfoReqDto
|
||||
* @return updateAdminInfoResDto
|
||||
*/
|
||||
public UpdateAdminInfoResDto updateAdminInfo(UpdateAdminInfoReqDto adminInfoReqDto) {
|
||||
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
|
||||
|
||||
SubsDetail subsDetail = new SubsDetail();
|
||||
subsDetail.setAdminId(adminInfoReqDto.getAdminId());
|
||||
subsDetail.setAdminNm(adminInfoReqDto.getAdminNm());
|
||||
subsDetail.setServiceId(adminInfoReqDto.getServiceId());
|
||||
|
||||
try {
|
||||
custMgtMapper.updateAdminInfo(subsDetail);
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
return new UpdateAdminInfoResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
|
||||
// 성공 응답.
|
||||
return new UpdateAdminInfoResDto(ApiResponseCode.SUCCESS);
|
||||
|
||||
return adminInfoResDto;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -197,48 +277,19 @@ public class CustMgtService {
|
||||
* @return carryOverListResDto
|
||||
*/
|
||||
public CarryOverListResDto carryOverList(CarryOverListReqDto carryOverListReqDto) {
|
||||
CarryOverListResDto carryOverListResDto = new CarryOverListResDto(ApiResponseCode.SUCCESS);
|
||||
|
||||
Map<String, Object> dataObj = new HashMap<>();
|
||||
List<Map<String, Object>> dataList = new ArrayList<>();
|
||||
CustMgtMapper custMgtMapper = sqlSessionSlave.getMapper(CustMgtMapper.class);
|
||||
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
data.put("date", "2022-03");
|
||||
data.put("startAmount", "130000");
|
||||
data.put("useAmount", "130000");
|
||||
data.put("krrrAmount", "-");
|
||||
data.put("extshAmoutn", "-");
|
||||
dataList.add(data);
|
||||
// 이월 금액 조회.
|
||||
List<CarryOver> carryOvers = custMgtMapper.selectCarryOverList(carryOverListReqDto);
|
||||
|
||||
data = new HashMap<>();
|
||||
data.put("date", "2022-02");
|
||||
data.put("startAmount", "80000");
|
||||
data.put("useAmount", "-");
|
||||
data.put("krrrAmount", "80000");
|
||||
data.put("extshAmoutn", "-");
|
||||
dataList.add(data);
|
||||
// 조회 결과 없음.
|
||||
if(carryOvers == null) {
|
||||
return new CarryOverListResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
data = new HashMap<>();
|
||||
data.put("date", "2022-01");
|
||||
data.put("startAmount", "50000");
|
||||
data.put("useAmount", "20000");
|
||||
data.put("krrrAmount", "30000");
|
||||
data.put("extshAmoutn", "-");
|
||||
dataList.add(data);
|
||||
|
||||
data = new HashMap<>();
|
||||
data.put("date", "2021-12");
|
||||
data.put("startAmount", "50000");
|
||||
data.put("useAmount", "50000");
|
||||
data.put("krrrAmount", "-");
|
||||
data.put("extshAmoutn", "-");
|
||||
dataList.add(data);
|
||||
|
||||
dataObj.put("list", dataList);
|
||||
|
||||
// carryOverListResDto.setData(dataObj);
|
||||
|
||||
return carryOverListResDto;
|
||||
// 성공 응답.
|
||||
return new CarryOverListResDto(ApiResponseCode.SUCCESS, new CarryOverListRes(carryOvers, String.valueOf(carryOvers.size())));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -249,81 +300,111 @@ public class CustMgtService {
|
||||
* @return memberListResDto
|
||||
*/
|
||||
public MemberListResDto memberList(MemberListReqDto memberListReqDto) {
|
||||
MemberListResDto memberListResDto = new MemberListResDto(ApiResponseCode.SUCCESS);
|
||||
|
||||
Map<String, Object> dataObj = new HashMap<>();
|
||||
List<Map<String, Object>> dataList = new ArrayList<>();
|
||||
Map<String, Object> paging = new HashMap<>();
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
CustMgtMapper custMgtMapper = sqlSessionSlave.getMapper(CustMgtMapper.class);
|
||||
|
||||
paging.put(Const.TOTAL_CNT, "5");
|
||||
paging.put(Const.CURRENT_PAGE, "1");
|
||||
dataObj.put("paging", paging);
|
||||
String nowPage = String.valueOf(memberListReqDto.getPage());
|
||||
int totalCnt = custMgtMapper.selectSvcUserListTotalCnt(memberListReqDto);
|
||||
|
||||
Date now = new Date();
|
||||
String nowStr = DateUtils.dateToStr(now, "YYYY-MM-dd");
|
||||
|
||||
for(int i=1; i<=20; i++) {
|
||||
data = new HashMap<>();
|
||||
data.put("no", ""+i);
|
||||
data.put("userNm", "홍길동"+i);
|
||||
data.put("userType", "관리자");
|
||||
data.put("adminId", "Uplus0"+i);
|
||||
data.put("userId", "Uplus0"+i);
|
||||
data.put("regDt", nowStr);
|
||||
data.put("userStat", "사용");
|
||||
dataList.add(data);
|
||||
if(totalCnt == 0) {
|
||||
|
||||
MemberListRes memberListRes = new MemberListRes();
|
||||
memberListRes.setList(new ArrayList<>());
|
||||
|
||||
Paging paging = new Paging();
|
||||
paging.setPage(nowPage);
|
||||
paging.setTotalCnt(String.valueOf(totalCnt));
|
||||
memberListRes.setPaging(paging);
|
||||
|
||||
return new MemberListResDto(ApiResponseCode.CM_NOT_FOUND, memberListRes);
|
||||
}
|
||||
|
||||
dataObj.put("list", dataList);
|
||||
// memberListResDto.setData(dataObj);
|
||||
|
||||
return memberListResDto;
|
||||
int page = memberListReqDto.getPage();
|
||||
int pagePerRows = memberListReqDto.getPagePerRows();
|
||||
page = (page -1) * pagePerRows;
|
||||
memberListReqDto.setPage(page);
|
||||
|
||||
List<MemberList> members = custMgtMapper.selectSvcUserList(memberListReqDto);
|
||||
|
||||
MemberListRes memberListRes = new MemberListRes();
|
||||
memberListRes.setList(members);
|
||||
|
||||
Paging paging = new Paging();
|
||||
paging.setPage(nowPage);
|
||||
paging.setTotalCnt(String.valueOf(totalCnt));
|
||||
memberListRes.setPaging(paging);
|
||||
|
||||
return new MemberListResDto(ApiResponseCode.SUCCESS, memberListRes);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 회원 정보 상세 조회
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @param memberDetailReqDto
|
||||
* @return MemberDetailResDto
|
||||
*/
|
||||
public ApiResponseMessage memberDetail(MemberDetailReqDto memberDetailReqDto) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
Map<String, Object> dataObj = new HashMap<>();
|
||||
List<Map<String, Object>> dataList = new ArrayList<>();
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
public MemberDetailResDto memberDetail(MemberDetailReqDto memberDetailReqDto) {
|
||||
|
||||
data.put("userNm", "유플러스");
|
||||
data.put("regDt", "2022-03-06");
|
||||
data.put("userType", "관리자ID");
|
||||
data.put("userId", "Uplus01");
|
||||
data.put("adminId", "Uplus02");
|
||||
data.put("adminNm", "김철수");
|
||||
data.put("sendingLimit", "100000");
|
||||
data.put("lineType", "일반");
|
||||
data.put("userStat", "Y");
|
||||
data.put("lastLoginDt", "2022-03-10 14:15:45");
|
||||
data.put("memo", "메모 입력 란입니다. \n작성글은 저장 버튼으로 저장퇴고 마지막 저장 내용은 남아 있습니다.");
|
||||
data.put("mdn", "01012345689");
|
||||
data.put("email", "lgTester@lgUplus.co.kr");
|
||||
CustMgtMapper custMgtMapper = sqlSessionSlave.getMapper(CustMgtMapper.class);
|
||||
|
||||
dataObj.put("data", data);
|
||||
MemberDetailRes memberDetailRes = custMgtMapper.selectMemberDetail(memberDetailReqDto);
|
||||
|
||||
for(int i=1; i<=5; i++) {
|
||||
data = new HashMap<>();
|
||||
data.put("no", ""+i);
|
||||
data.put("userId", "userId"+i);
|
||||
data.put("userNm", "홍길동"+i);
|
||||
data.put("mdn", "010-1234-1234");
|
||||
data.put("userStat", "Y");
|
||||
dataList.add(data);
|
||||
// 조회 결과 없음.
|
||||
if(memberDetailRes == null) {
|
||||
return new MemberDetailResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
dataObj.put("list", dataList);
|
||||
return new MemberDetailResDto(ApiResponseCode.SUCCESS, memberDetailRes);
|
||||
}
|
||||
|
||||
result.setData(dataObj);
|
||||
return result;
|
||||
/**
|
||||
* 사용자 상세 리스트 조회.
|
||||
*
|
||||
* @param memberDetailListReqDto
|
||||
* @return MemberDetailListResDto
|
||||
*/
|
||||
public MemberAdminDetailResDto memberAdminDetail(MemberAdminDetailReqDto memberAdminDetailReqDto) {
|
||||
|
||||
CustMgtMapper custMgtMapper = sqlSessionSlave.getMapper(CustMgtMapper.class);
|
||||
|
||||
MemberAdminDetailRes memberAdminDetailRes = custMgtMapper.selectMemberAdminDetail(memberAdminDetailReqDto);
|
||||
|
||||
// 조회 결과 없음.
|
||||
if(memberAdminDetailRes == null) {
|
||||
return new MemberAdminDetailResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
String nowPage = String.valueOf(memberAdminDetailReqDto.getPage());
|
||||
|
||||
int totalCnt = custMgtMapper.selectMemberDetailListTotalCnt(memberAdminDetailReqDto);
|
||||
|
||||
if(totalCnt == 0) {
|
||||
memberAdminDetailRes.setList(new ArrayList<>());
|
||||
|
||||
Paging paging = new Paging();
|
||||
paging.setPage(nowPage);
|
||||
paging.setTotalCnt(String.valueOf(totalCnt));
|
||||
memberAdminDetailRes.setPaging(paging);
|
||||
|
||||
}else {
|
||||
int page = memberAdminDetailReqDto.getPage();
|
||||
int pagePerRows = memberAdminDetailReqDto.getPagePerRows();
|
||||
page = (page -1) * pagePerRows;
|
||||
memberAdminDetailReqDto.setPage(page);
|
||||
|
||||
Paging paging = new Paging();
|
||||
paging.setPage(nowPage);
|
||||
paging.setTotalCnt(String.valueOf(totalCnt));
|
||||
memberAdminDetailRes.setPaging(paging);
|
||||
|
||||
List<MemberDetail> memberDetails = custMgtMapper.selectMemberDetailList(memberAdminDetailReqDto);
|
||||
memberAdminDetailRes.setList(memberDetails);
|
||||
}
|
||||
|
||||
return new MemberAdminDetailResDto(ApiResponseCode.SUCCESS, memberAdminDetailRes);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -333,46 +414,101 @@ public class CustMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage insertTestId(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
public InsertTestIdResDto insertTestId(InsertTestIdReqDto insertTestIdReqDto) {
|
||||
|
||||
return result;
|
||||
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
|
||||
|
||||
int getUserIdCount = custMgtMapper.getUserIdCount(insertTestIdReqDto.getUserId());
|
||||
|
||||
// 이미 존재하는 아이디.
|
||||
if(getUserIdCount > 0) {
|
||||
return new InsertTestIdResDto(ApiResponseCode.CE_DUPLICATE_ID);
|
||||
}
|
||||
|
||||
// 1. 사업자 번호로 조회.
|
||||
int checkCustInfo = custMgtMapper.selectCustInfoCount(brno);
|
||||
String custSeq = custMgtMapper.getCustSeq(brno);
|
||||
|
||||
if(checkCustInfo < 1) {
|
||||
// 1-2. 사업자 번호로 미존재시 : 고객정보 등록.
|
||||
CustInfo custInfo = new CustInfo();
|
||||
custInfo.setCustSeq(custSeq);
|
||||
custInfo.setBizrno(brno);
|
||||
custInfo.setCustNm(cmpyNm);
|
||||
custInfo.setCustTyCd(custTyCd);
|
||||
custInfo.setCorpno(cono);
|
||||
custInfo.setReprNm(insertTestIdReqDto.getUserNm());
|
||||
custInfo.setBrthdy(rpsnBday);
|
||||
custInfo.setZipcd(zipCd);
|
||||
custInfo.setAddr1(badr);
|
||||
custInfo.setAddr2(dadr);
|
||||
custInfo.setRegId(insertTestIdReqDto.getUserId());
|
||||
custInfo.setChgId(insertTestIdReqDto.getUserId());
|
||||
// 고객정보 등록.
|
||||
custMgtMapper.insertCustInfo(custInfo);
|
||||
}
|
||||
|
||||
// 2. 서비스 이용자 등록.
|
||||
String userSeq = custMgtMapper.getUserSeq();
|
||||
SvcUserInfo svcUserInfo = new SvcUserInfo();
|
||||
svcUserInfo.setUserSeq(userSeq);
|
||||
svcUserInfo.setUserId(insertTestIdReqDto.getUserId());
|
||||
svcUserInfo.setUserNm(insertTestIdReqDto.getUserNm());
|
||||
svcUserInfo.setUserSttusCd(Const.USER_STTUS_CD_NOMAL);
|
||||
svcUserInfo.setCustSeq(custSeq);
|
||||
svcUserInfo.setUserTpCd(Const.USER_TP_CD_TEST);
|
||||
svcUserInfo.setPwd(EncryptionUtil.getCustomSHA512(insertTestIdReqDto.getUserId(), insertTestIdReqDto.getUserPw()));
|
||||
svcUserInfo.setBizrAuthYn(Const.COMM_NO);
|
||||
svcUserInfo.setLineTpCd(Const.LINE_TP_CD_NORMAL);
|
||||
svcUserInfo.setHpNo(insertTestIdReqDto.getMdn());
|
||||
svcUserInfo.setEmail(insertTestIdReqDto.getUserEmail());
|
||||
svcUserInfo.setAuthcd080(custMgtMapper.getAuth080());
|
||||
svcUserInfo.setAutCd(Const.USER_AUTCD_USR);
|
||||
svcUserInfo.setRegId(insertTestIdReqDto.getUserId());
|
||||
svcUserInfo.setChgId(insertTestIdReqDto.getUserId());
|
||||
|
||||
// 서비스 이용자 등록.
|
||||
custMgtMapper.insertSvcUserInfo(svcUserInfo);
|
||||
|
||||
// 3. 청약정보 등록
|
||||
SubsInfo subsInfo = new SubsInfo();
|
||||
// TODO 향후 수정 필요.
|
||||
subsInfo.setSubsId("");
|
||||
// TODO 향후 수정 필요.
|
||||
subsInfo.setUqvSbscNo("");
|
||||
subsInfo.setUserSeq(userSeq);
|
||||
subsInfo.setCustSeq(custSeq);
|
||||
subsInfo.setSubsSttusCd(Const.SUBS_STTUS_CD_NORMAL);
|
||||
subsInfo.setProdCd(prodCd);
|
||||
subsInfo.setBindDcYn(Const.COMM_NO);
|
||||
subsInfo.setRegId(insertTestIdReqDto.getUserId());
|
||||
subsInfo.setChgId(insertTestIdReqDto.getUserId());
|
||||
|
||||
// 청약정보 등록.
|
||||
custMgtMapper.insertSubsInfo(subsInfo);
|
||||
|
||||
return new InsertTestIdResDto(ApiResponseCode.SUCCESS);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 전체 메모 목록 조회
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @param allMemoListReqDto
|
||||
* @return AllMemoListResDto
|
||||
*/
|
||||
public ApiResponseMessage allMemoList(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
Map<String, Object> dataObj = new HashMap<>();
|
||||
List<Map<String, Object>> dataList = new ArrayList<>();
|
||||
Map<String, Object> paging = new HashMap<>();
|
||||
Map<String, Object> data;
|
||||
public AllMemoListResDto allMemoList(AllMemoListReqDto allMemoListReqDto) {
|
||||
|
||||
paging.put("totalCnt", "50");
|
||||
paging.put("currentPage", "1");
|
||||
dataObj.put("paging", paging);
|
||||
CustMgtMapper custMgtMapper = sqlSessionSlave.getMapper(CustMgtMapper.class);
|
||||
|
||||
for(int i=1; i<=5; i++) {
|
||||
data = new HashMap<>();
|
||||
data.put("memo", "작성한 메모 내용이 노출됩니다. \r\n"
|
||||
+ "해당영역은 최대 5줄까지 노출되며 이후 우측 스크롤이 생성됩니다.\r\n"
|
||||
+ "작성한 메모 내용이 노출됩니다. \r\n"
|
||||
+ "해당영역은 최대 5줄까지 노출되며 이후 우측 스크롤이 생성됩니다.\r\n"
|
||||
+ "작성한 메모 내용이 노출됩니다. \r\n"
|
||||
+ "");
|
||||
data.put("register", "관리자");
|
||||
data.put("regDt", "2022-03-10");
|
||||
dataList.add(data);
|
||||
List<AllMemoList> allMemoLists = custMgtMapper.selectMemoList(allMemoListReqDto);
|
||||
|
||||
// 조회 결과 없음.
|
||||
if(allMemoLists == null) {
|
||||
return new AllMemoListResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
dataObj.put("list", dataList);
|
||||
result.setData(dataObj);
|
||||
|
||||
return result;
|
||||
return new AllMemoListResDto(new AllMemoListRes(allMemoLists));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -382,9 +518,37 @@ public class CustMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage deleteMemo(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
return result;
|
||||
public DeleteMemoResDto deleteMemo(DeleteMemoReqDto deleteMemoReqDto) {
|
||||
|
||||
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
|
||||
|
||||
// 1. 회원정보 조회.
|
||||
|
||||
//user_seq 이용자일련번호
|
||||
int checkUserSeq = custMgtMapper.selectUserSeq(deleteMemoReqDto.getRegister());
|
||||
|
||||
if(checkUserSeq < 1) {
|
||||
return new DeleteMemoResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
// 2. 메모 삭제.
|
||||
//seqNo, userSeq를 담음.
|
||||
Map<String, Object> MemoParamMap = new HashMap<String, Object>();
|
||||
MemoParamMap.put("seqNo", deleteMemoReqDto.getSeqNo());
|
||||
MemoParamMap.put("userSeq", checkUserSeq);
|
||||
|
||||
try {
|
||||
// 삭제한 건수가 나옴.
|
||||
int result = custMgtMapper.deleteMemo(MemoParamMap);
|
||||
// 한건이 나오지 않을경우
|
||||
if(result < 1) {
|
||||
return new DeleteMemoResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return new DeleteMemoResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
|
||||
return new DeleteMemoResDto(ApiResponseCode.SUCCESS);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -394,9 +558,32 @@ public class CustMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage insertUser(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
return result;
|
||||
public InsertUserResDto insertUser(InsertUserReqDto insertUserReqDto) {
|
||||
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
|
||||
|
||||
// 임시패스워드 평문 생성
|
||||
String imsiPw = RandomStringUtils.randomAlphanumeric(10);
|
||||
|
||||
String userId = insertUserReqDto.getUserId();
|
||||
String encPwd = "";
|
||||
|
||||
try {
|
||||
// 패스워드 암호화
|
||||
encPwd = EncryptionUtil.getCustomSHA512(userId, imsiPw);
|
||||
insertUserReqDto.setUserPw(encPwd);
|
||||
|
||||
// 사용자 정보 등록
|
||||
custMgtMapper.insertUserInfo(insertUserReqDto);
|
||||
|
||||
// 임시패스워드(평문) 이메일 발송처리
|
||||
// TODO: 임시패스워드(평문) 이메일 발송처리
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
return new InsertUserResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
|
||||
return new InsertUserResDto(ApiResponseCode.SUCCESS);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -406,9 +593,31 @@ public class CustMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage updateUser(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
return result;
|
||||
public UpdateUserResDto updateUser(UpdateUserReqDto updateUserReqDto) {
|
||||
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
|
||||
|
||||
String userId = updateUserReqDto.getUserId();
|
||||
String userPw = updateUserReqDto.getUserPw();
|
||||
String encPwd = "";
|
||||
|
||||
try {
|
||||
// 패스워드 암호화
|
||||
encPwd = EncryptionUtil.getCustomSHA512(userId, userPw);
|
||||
updateUserReqDto.setUserPw(encPwd);
|
||||
|
||||
// 사용자 정보 수정
|
||||
custMgtMapper.updateUserInfo(updateUserReqDto);
|
||||
|
||||
// 임시패스워드(평문) 이메일 발송처리
|
||||
// TODO: 임시패스워드(평문) 이메일 발송처리
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
return new UpdateUserResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
|
||||
|
||||
return new UpdateUserResDto(ApiResponseCode.SUCCESS);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -418,8 +627,14 @@ public class CustMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage insertMassUser(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
public InsertMassUserResDto insertMassUser(InsertMassUserReqDto insertMassUserReqDto) {
|
||||
|
||||
// 1. ID 중복 체크.
|
||||
|
||||
|
||||
|
||||
|
||||
InsertMassUserResDto result = new InsertMassUserResDto(ApiResponseCode.SUCCESS);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -430,9 +645,32 @@ public class CustMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage deleteUser(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
return result;
|
||||
public DeleteUserResDto deleteUser(DeleteUserReqDto deleteUserReqDto) {
|
||||
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
|
||||
|
||||
//1.관리자 정보 조회
|
||||
int checkAdminId = custMgtMapper.selectAdminId(deleteUserReqDto.getAdminId());
|
||||
|
||||
//2. 관리자 정보 조회결과 응답 없음
|
||||
if(checkAdminId < 1) {
|
||||
return new DeleteUserResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
try {
|
||||
//3. 사용자정보 삭제
|
||||
int result = custMgtMapper.deleteUserList(deleteUserReqDto);
|
||||
|
||||
//4. 삭제대상이 없음.
|
||||
if(result < 1) {
|
||||
return new DeleteUserResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
//5. 그 이외의 결과가 나왔을때 데이터
|
||||
return new DeleteUserResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
//6. 성공 응답.
|
||||
return new DeleteUserResDto(ApiResponseCode.SUCCESS);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AllMemoList implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "내용", name = "내용", dataType = "String")
|
||||
private String memo;
|
||||
@ApiModelProperty(example = "작성자", name = "작성자", dataType = "String")
|
||||
private String register;
|
||||
@ApiModelProperty(example = "작성일", name = "작성일", dataType = "String")
|
||||
private String regDt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AllMemoListReqDto implements Serializable {
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "사용자 ID", name = "사용자 ID", dataType = "String")
|
||||
private String userId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AllMemoListRes implements Serializable{
|
||||
|
||||
private List<AllMemoList> list;
|
||||
|
||||
public AllMemoListRes(List<AllMemoList> list) {
|
||||
super();
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AllMemoListResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
@ApiModelProperty(example = "데이터")
|
||||
private AllMemoListRes data;
|
||||
|
||||
public AllMemoListResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public AllMemoListResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public AllMemoListResDto(ApiResponseCode returnStr, AllMemoListRes data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public AllMemoListResDto(AllMemoListRes data) {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
22
src/main/java/kr/co/uplus/ez/api/custMgt/dto/CarryOver.java
Normal file
22
src/main/java/kr/co/uplus/ez/api/custMgt/dto/CarryOver.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class CarryOver implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "날짜", name = "날짜", dataType = "String")
|
||||
private String date;
|
||||
@ApiModelProperty(example = "시작금액", name = "시작금액", dataType = "String")
|
||||
private String startAmount;
|
||||
@ApiModelProperty(example = "사용금액", name = "사용금액", dataType = "String")
|
||||
private String useAmount;
|
||||
@ApiModelProperty(example = "이월금액", name = "이월금액", dataType = "String")
|
||||
private String krrrAmount;
|
||||
@ApiModelProperty(example = "소멸금액", name = "소멸금액", dataType = "String")
|
||||
private String extshAmount;
|
||||
}
|
||||
@@ -9,5 +9,20 @@ import lombok.Data;
|
||||
@Data
|
||||
public class CarryOverListRes implements Serializable{
|
||||
|
||||
private List<CarryOverList> list;
|
||||
private List<CarryOver> list;
|
||||
|
||||
private String totalCnt;
|
||||
|
||||
public CarryOverListRes(List<CarryOver> list) {
|
||||
super();
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
public CarryOverListRes(List<CarryOver> list, String totalCnt) {
|
||||
super();
|
||||
this.list = list;
|
||||
this.totalCnt = totalCnt;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
46
src/main/java/kr/co/uplus/ez/api/custMgt/dto/CustInfo.java
Normal file
46
src/main/java/kr/co/uplus/ez/api/custMgt/dto/CustInfo.java
Normal file
@@ -0,0 +1,46 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class CustInfo implements Serializable {
|
||||
|
||||
/** 고객_일련번호 . */
|
||||
private String custSeq;
|
||||
/** 사업자번호 . */
|
||||
private String bizrno;
|
||||
/** 고객사_명 . */
|
||||
private String custNm;
|
||||
/** 고객_유형_코드 . */
|
||||
private String custTyCd;
|
||||
/** 법인번호 . */
|
||||
private String corpno;
|
||||
/** 업종 . */
|
||||
private String tpind;
|
||||
/** 업태 . */
|
||||
private String bizcd;
|
||||
/** 종목 . */
|
||||
private String anitem;
|
||||
/** 대표자_명 . */
|
||||
private String reprNm;
|
||||
/** 대표자_생년월일. */
|
||||
private String brthdy;
|
||||
/** 우편번호 . */
|
||||
private String zipcd;
|
||||
/** 주소1 . */
|
||||
private String addr1;
|
||||
/** 주소2 . */
|
||||
private String addr2;
|
||||
/** 등록_ID . */
|
||||
private String regId;
|
||||
/** 등록_일시 . */
|
||||
private String regDt;
|
||||
/** 변경_ID . */
|
||||
private String chgId;
|
||||
/** 변경_일시 . */
|
||||
private String chgDt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class DeleteMemoReqDto implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "작성자 계정 ID", name = "작성자 계정 ID", dataType = "String")
|
||||
private String register;
|
||||
@ApiModelProperty(example = "메모 일련 번호", name = "메모 일련 번호", dataType = "String")
|
||||
private String seqNo;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class DeleteMemoResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
@ApiModelProperty(example = "데이터")
|
||||
private DeleteMemoReqDto data;
|
||||
|
||||
public DeleteMemoResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public DeleteMemoResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public DeleteMemoResDto(ApiResponseCode returnStr, DeleteMemoReqDto data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public DeleteMemoResDto(DeleteMemoReqDto data) {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
19
src/main/java/kr/co/uplus/ez/api/custMgt/dto/DeleteUser.java
Normal file
19
src/main/java/kr/co/uplus/ez/api/custMgt/dto/DeleteUser.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class DeleteUser implements Serializable {
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "사용자 ID", name = "사용자 ID", dataType = "String")
|
||||
private String userId;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class DeleteUserReqDto implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "관리자 ID", name = "관리자 ID", dataType = "String")
|
||||
private String adminId;
|
||||
|
||||
List<DeleteUser> list;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class DeleteUserResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
@ApiModelProperty(example = "데이터")
|
||||
private Object data;
|
||||
|
||||
public DeleteUserResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public DeleteUserResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public DeleteUserResDto(ApiResponseCode returnStr, Object data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public DeleteUserResDto(DeleteUserReqDto data) {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class InsertMassUser implements Serializable{
|
||||
|
||||
@ApiModelProperty(example = "사용자 ID", name = "사용자 ID", dataType = "String")
|
||||
private String userId;
|
||||
@ApiModelProperty(example = "사용자 이름", name = "사용자 이름", dataType = "String")
|
||||
private String userNm;
|
||||
@ApiModelProperty(example = "ID잠금 상태(사용/미사용)", name = "ID잠금 상태(사용/미사용)", dataType = "String")
|
||||
private String stat;
|
||||
@ApiModelProperty(example = "휴대폰번호", name = "휴대폰번호", dataType = "String")
|
||||
private String mdn;
|
||||
@ApiModelProperty(example = "이메일", name = "이메일", dataType = "String")
|
||||
private String email;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class InsertMassUserReqDto implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "관리자 ID", name = "관리자 ID", dataType = "String")
|
||||
private String adminId;
|
||||
|
||||
List<InsertMassUser> list;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class InsertMassUserResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
private Object data;
|
||||
|
||||
public InsertMassUserResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public InsertMassUserResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public InsertMassUserResDto(ApiResponseCode returnStr, Object data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class InsertTestIdReqDto implements Serializable {
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "테스트 계정 ID", name = "테스트 계정 ID", dataType = "String")
|
||||
private String userId;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "테스트 계정 비밀번호", name = "테스트 계정 비밀번호", dataType = "String")
|
||||
private String userPw;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "테스트 계정의 이름", name = "테스트 계정의 이름", dataType = "String")
|
||||
private String userNm;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "테스트 계정의 휴대폰 번호", name = "테스트 계정의 휴대폰 번호", dataType = "String")
|
||||
private String mdn;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "테스트 계정의 Email", name = "테스트 계정의 Email", dataType = "String")
|
||||
private String userEmail;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "테스트 계정의 상태", name = "테스트 계정의 상태", notes = "Y(사용)/N(정지)", dataType = "String")
|
||||
private String userStat;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class InsertTestIdResDto extends ResponseMessage implements Serializable {
|
||||
|
||||
// 데이터.
|
||||
private Object data;
|
||||
|
||||
public InsertTestIdResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public InsertTestIdResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public InsertTestIdResDto(ApiResponseCode returnStr, Object data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class InsertUserReqDto implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "관리자 ID", name = "관리자 ID", dataType = "String")
|
||||
private String adminId;
|
||||
@ApiModelProperty(example = "사용자 ID", name = "사용자 ID", dataType = "String")
|
||||
private String userId;
|
||||
@ApiModelProperty(example = "사용자 비밀번호", name = "사용자 비밀번호", dataType = "String")
|
||||
private String userPw;
|
||||
@ApiModelProperty(example = "사용자 이름", name = "사용자 이름", dataType = "String")
|
||||
private String userNm;
|
||||
@ApiModelProperty(example = "사용자 휴대폰 번호", name = "사용자 휴대폰 번호", dataType = "String")
|
||||
private String mdn;
|
||||
@ApiModelProperty(example = "사용자 Email", name = "사용자 Email", dataType = "String")
|
||||
private String userEmail;
|
||||
@ApiModelProperty(example = "사용자 상태", name = "사용자 상태", dataType = "String")
|
||||
private String userStat;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class InsertUserResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
private Object data;
|
||||
|
||||
public InsertUserResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public InsertUserResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public InsertUserResDto(ApiResponseCode returnStr, Object data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class MemberAdminDetailReqDto implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "사용자 ID", name = "사용자 ID", dataType = "String")
|
||||
private String userId;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "페이지당 조회할 목록 수", name = "페이지당 조회할 목록 수", dataType = "String")
|
||||
private int pagePerRows;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "현재 페이지", name = "현재 페이지", dataType = "int")
|
||||
private int page;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import kr.co.uplus.ez.common.data.Paging;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class MemberAdminDetailRes implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "이름", name = "이름", dataType = "String")
|
||||
private String userNm;
|
||||
@ApiModelProperty(example = "등록일", name = "등록일", dataType = "String")
|
||||
private String regDt;
|
||||
@ApiModelProperty(example = "구분", name = "구분", dataType = "String")
|
||||
private String userType;
|
||||
@ApiModelProperty(example = "사용자 ID", name = "사용자 ID", dataType = "String")
|
||||
private String userId;
|
||||
@ApiModelProperty(example = "관리자 ID", name = "관리자 ID", dataType = "String")
|
||||
private String adminId;
|
||||
@ApiModelProperty(example = "관리자명", name = "관리자명", dataType = "String")
|
||||
private String adminNm;
|
||||
@ApiModelProperty(example = "발송한도", name = "발송한도", dataType = "String")
|
||||
private String sendingLimit;
|
||||
@ApiModelProperty(example = "라인타입", name = "라인타입", dataType = "String")
|
||||
private String lineType;
|
||||
@ApiModelProperty(example = "사용자 상태", name = "사용자 상태", dataType = "String")
|
||||
private String userStat;
|
||||
@ApiModelProperty(example = "최종 접속일", name = "최종 접속일", dataType = "String")
|
||||
private String lastLoginDt;
|
||||
@ApiModelProperty(example = "메모", name = "메모", dataType = "String")
|
||||
private String memo;
|
||||
@ApiModelProperty(example = "휴대폰 번호", name = "휴대폰 번호", dataType = "String")
|
||||
private String mdn;
|
||||
@ApiModelProperty(example = "이메일", name = "이메일", dataType = "String")
|
||||
private String email;
|
||||
|
||||
private Paging paging;
|
||||
private List<MemberDetail> list;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class MemberAdminDetailResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
@ApiModelProperty(example = "데이터")
|
||||
private MemberAdminDetailRes data;
|
||||
|
||||
public MemberAdminDetailResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public MemberAdminDetailResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public MemberAdminDetailResDto(ApiResponseCode returnStr, MemberAdminDetailRes data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -9,20 +9,15 @@ import lombok.Data;
|
||||
@Data
|
||||
public class MemberDetail implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "관리자ID", name = "관리자ID", dataType = "String")
|
||||
private String adminId;
|
||||
@ApiModelProperty(example = "관리자코드", name = "관리자코드", dataType = "String")
|
||||
private String adminCd;
|
||||
@ApiModelProperty(example = "관리자명", name = "관리자명", dataType = "String")
|
||||
private String adminNm;
|
||||
@ApiModelProperty(example = "대리점명", name = "대리점명", dataType = "String")
|
||||
private String agencyNm;
|
||||
|
||||
// no
|
||||
// userId
|
||||
// userNm
|
||||
// mdn
|
||||
// userStat
|
||||
|
||||
@ApiModelProperty(example = "리스트 번호", name = "리스트 번호", dataType = "String")
|
||||
private String no;
|
||||
@ApiModelProperty(example = "사용자 ID", name = "사용자 ID", dataType = "String")
|
||||
private String userId;
|
||||
@ApiModelProperty(example = "사용자 이름", name = "사용자 이름", dataType = "String")
|
||||
private String userNm;
|
||||
@ApiModelProperty(example = "사용자 휴대폰 번호", name = "사용자 휴대폰 번호", dataType = "String")
|
||||
private String mdn;
|
||||
@ApiModelProperty(example = "사용자 상태", name = "사용자 상태", dataType = "String")
|
||||
private String userStat;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class MemberDetailRes implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "이름", name = "이름", dataType = "String")
|
||||
private String userNm;
|
||||
@ApiModelProperty(example = "등록일", name = "등록일", dataType = "String")
|
||||
private String regDt;
|
||||
@ApiModelProperty(example = "구분", name = "구분", dataType = "String")
|
||||
private String userType;
|
||||
@ApiModelProperty(example = "사용자 ID", name = "사용자 ID", dataType = "String")
|
||||
private String userId;
|
||||
@ApiModelProperty(example = "관리자 ID", name = "관리자 ID", dataType = "String")
|
||||
private String adminId;
|
||||
@ApiModelProperty(example = "관리자명", name = "관리자명", dataType = "String")
|
||||
private String adminNm;
|
||||
@ApiModelProperty(example = "사용자 상태", name = "사용자 상태", dataType = "String")
|
||||
private String userStat;
|
||||
@ApiModelProperty(example = "최종 접속일", name = "최종 접속일", dataType = "String")
|
||||
private String lastLoginDt;
|
||||
@ApiModelProperty(example = "휴대폰 번호", name = "휴대폰 번호", dataType = "String")
|
||||
private String mdn;
|
||||
@ApiModelProperty(example = "이메일", name = "이메일", dataType = "String")
|
||||
private String email;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class MemberDetailResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
@ApiModelProperty(example = "데이터")
|
||||
private MemberDetailRes data;
|
||||
|
||||
public MemberDetailResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public MemberDetailResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public MemberDetailResDto(ApiResponseCode returnStr, MemberDetailRes data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,8 @@ package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -21,6 +23,12 @@ public class MemberListReqDto implements Serializable {
|
||||
private String searchType3;
|
||||
@ApiModelProperty(example = "검색어 (입력항목)", name = "검색어 (입력항목)", dataType = "String")
|
||||
private String searchText1;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "페이지당 조회할 목록 수", name = "페이지당 조회할 목록 수", dataType = "String")
|
||||
private String pagePerRows;
|
||||
private int pagePerRows;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "현재 페이지", name = "현재 페이지", dataType = "int")
|
||||
private int page;
|
||||
}
|
||||
52
src/main/java/kr/co/uplus/ez/api/custMgt/dto/SubsInfo.java
Normal file
52
src/main/java/kr/co/uplus/ez/api/custMgt/dto/SubsInfo.java
Normal file
@@ -0,0 +1,52 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class SubsInfo implements Serializable{
|
||||
|
||||
/** 청약_ID . */
|
||||
private String subsId;
|
||||
/** 유큐브_가입_번호 */
|
||||
private String uqvSbscNo;
|
||||
/** 관리자_일련번호. */
|
||||
private String userSeq;
|
||||
/** 고객_일련번호 . */
|
||||
private String custSeq;
|
||||
/** 청약_상태_코드 . */
|
||||
private String subsSttusCd;
|
||||
/** 상품_코드 . */
|
||||
private String prodCd;
|
||||
/** 청약_일시 . */
|
||||
private String subsDt;
|
||||
/** 개통_일시 . */
|
||||
private String opnDt;
|
||||
/** 해지_일시 . */
|
||||
private String trmnDt;
|
||||
/** 청구_번호 . */
|
||||
private String billNo;
|
||||
/** 결합_할인_여부 . */
|
||||
private String bindDcYn;
|
||||
/** 고객_번호 . */
|
||||
private String custNo;
|
||||
/** 청약유치자_ID . */
|
||||
private String attrctorId;
|
||||
/** 청약유치자_명 . */
|
||||
private String attrctorNm;
|
||||
/** 청약관리자_ID . */
|
||||
private String subsmngrId;
|
||||
/** 청약관리자_명 . */
|
||||
private String subsmngrNm;
|
||||
/** 등록_ID . */
|
||||
private String regId;
|
||||
/** 등록_일시 . */
|
||||
private String regDt;
|
||||
/** 변경_ID . */
|
||||
private String chgId;
|
||||
/** 변경_일시 . */
|
||||
private String chgDt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class SvcUserInfo implements Serializable{
|
||||
|
||||
/** 이용자_일련번호 . */
|
||||
private String userSeq;
|
||||
/** 이용자_ID . */
|
||||
private String userId;
|
||||
/** 이용자_명 . */
|
||||
private String userNm;
|
||||
/** 이용자_상태_코드 . */
|
||||
private String userSttusCd;
|
||||
/** 부모_이용자_일련번호 . */
|
||||
private String prntsUserSeq;
|
||||
/** 고객_일련번호 . */
|
||||
private String custSeq;
|
||||
/** 이용자_유형_코드 . */
|
||||
private String userTpCd;
|
||||
/** 비밀번호 . */
|
||||
private String pwd;
|
||||
/** 사업자_인증_여부 . */
|
||||
private String bizrAuthYn;
|
||||
/** 라인_유형_코드 . */
|
||||
private String lineTpCd;
|
||||
/** 휴대폰_번호 . */
|
||||
private String hpNo;
|
||||
/** 이메일_주소 . */
|
||||
private String email;
|
||||
/** 인증코드_080 . */
|
||||
private String authcd080;
|
||||
/** 권한_코드 . */
|
||||
private String autCd;
|
||||
/** 마지막_로그인_일시 . */
|
||||
private String lastLoginDt;
|
||||
/** 로그인_실패_횟수 . */
|
||||
private String loginFailCnt;
|
||||
/** 비밀번호 초기화 여부 . */
|
||||
private String pwdInit;
|
||||
/** 비밀번호_변경_일시 . */
|
||||
private String pwdChgDt;
|
||||
/** 등록_ID . */
|
||||
private String regId;
|
||||
/** 등록_일시 . */
|
||||
private String regDt;
|
||||
/** 변경_ID . */
|
||||
private String chgId;
|
||||
/** 변경_일시 . */
|
||||
private String chgDt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class UpdateAdminInfoReqDto implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "관리자ID", name = "관리자ID", dataType = "String")
|
||||
private String adminId;
|
||||
|
||||
@ApiModelProperty(example = "관리자명", name = "관리자명", dataType = "String")
|
||||
private String adminNm;
|
||||
|
||||
@ApiModelProperty(example = "서비스ID", name = "서비스ID", dataType = "String")
|
||||
private String serviceId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class UpdateAdminInfoResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
// 데이터.
|
||||
private Object data;
|
||||
|
||||
public UpdateAdminInfoResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public UpdateAdminInfoResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public UpdateAdminInfoResDto(ApiResponseCode returnStr, Object data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class UpdateUserReqDto implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "관리자 ID", name = "관리자 ID", dataType = "String")
|
||||
private String adminId;
|
||||
@ApiModelProperty(example = "사용자 ID", name = "사용자 ID", dataType = "String")
|
||||
private String userId;
|
||||
@ApiModelProperty(example = "사용자 비밀번호", name = "사용자 비밀번호", dataType = "String")
|
||||
private String userPw;
|
||||
@ApiModelProperty(example = "사용자 이름", name = "사용자 이름", dataType = "String")
|
||||
private String userNm;
|
||||
@ApiModelProperty(example = "사용자 휴대폰 번호", name = "사용자 휴대폰 번호", dataType = "String")
|
||||
private String mdn;
|
||||
@ApiModelProperty(example = "사용자 Email", name = "사용자 Email", dataType = "String")
|
||||
private String userEmail;
|
||||
@ApiModelProperty(example = "사용자 상태", name = "사용자 상태", dataType = "String")
|
||||
private String userStat;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package kr.co.uplus.ez.api.custMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class UpdateUserResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
private Object data;
|
||||
|
||||
public UpdateUserResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public UpdateUserResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public UpdateUserResDto(ApiResponseCode returnStr, Object data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,21 +7,35 @@ package kr.co.uplus.ez.api.servMgt;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.Valid;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseMessage;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiResponse;
|
||||
import io.swagger.annotations.ApiResponses;
|
||||
import kr.co.uplus.ez.api.servMgt.dto.RejectRecvListReqDto;
|
||||
import kr.co.uplus.ez.api.servMgt.dto.RejectRecvListResDto;
|
||||
import kr.co.uplus.ez.common.components.ValidComponents;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "api/v1/bo/servMgt")
|
||||
public class ServMgtController {
|
||||
@Autowired
|
||||
ServMgtService ServService;
|
||||
ServMgtService servMgtService;
|
||||
|
||||
@Autowired
|
||||
ValidComponents validComponents;
|
||||
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
@@ -31,9 +45,19 @@ public class ServMgtController {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/rejectRecvList" , method = {RequestMethod.POST})
|
||||
@ApiOperation(value = "rejectRecvList", notes = "080수신거부 목록 조회")
|
||||
@ApiResponses({ @ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS") })
|
||||
@RequestMapping(value = "rejectRecvList", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public ApiResponseMessage rejectRecvList(@RequestBody Map<String, Object> paramMap) throws Exception{
|
||||
return ServMgtService.rejectRecvList(paramMap);
|
||||
public RejectRecvListResDto rejectRecvList(@RequestBody @Valid RejectRecvListReqDto rejectRecvListReqDto, BindingResult bindingResult) throws Exception{
|
||||
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new RejectRecvListResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
|
||||
return servMgtService.rejectRecvList(rejectRecvListReqDto);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
package kr.co.uplus.ez.api.servMgt;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import kr.co.uplus.ez.api.servMgt.dto.RejectRecvInfo;
|
||||
import kr.co.uplus.ez.api.servMgt.dto.RejectRecvListReqDto;
|
||||
|
||||
@Mapper
|
||||
public class ServMgtMapper {
|
||||
public interface ServMgtMapper {
|
||||
int selectRejectRecvTotalCnt(RejectRecvListReqDto rejectRecvListReqDto);
|
||||
|
||||
List<RejectRecvInfo> selectRejectRecvList(RejectRecvListReqDto rejectRecvListReqDto);
|
||||
|
||||
}
|
||||
|
||||
@@ -5,47 +5,72 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.mybatis.spring.SqlSessionTemplate;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import kr.co.uplus.ez.api.servMgt.dto.RejectRecvInfo;
|
||||
import kr.co.uplus.ez.api.servMgt.dto.RejectRecvListReqDto;
|
||||
import kr.co.uplus.ez.api.servMgt.dto.RejectRecvListRes;
|
||||
import kr.co.uplus.ez.api.servMgt.dto.RejectRecvListResDto;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseMessage;
|
||||
import kr.co.uplus.ez.common.data.Paging;
|
||||
|
||||
@Service
|
||||
public class ServMgtService {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(ServMgtService.class);
|
||||
|
||||
@Autowired
|
||||
@Qualifier("sqlSessionTemplateDb1")
|
||||
private SqlSessionTemplate sqlSessionMaster;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("sqlSessionTemplateDb2")
|
||||
private SqlSessionTemplate sqlSessionSlave;
|
||||
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 080수신거부 목록 조회
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @return
|
||||
*/
|
||||
public static ApiResponseMessage rejectRecvList(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
Map<String, Object> dataObj = new HashMap<>();
|
||||
List<Map<String,Object>> dataList = new ArrayList<>();
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
|
||||
data.put("totalCnt", "999");
|
||||
data.put("currentPage", "1");
|
||||
dataObj.put("paging", data);
|
||||
|
||||
for(int i=1; i<10; i++) {
|
||||
data = new HashMap<>();
|
||||
data.put("no", ""+i);
|
||||
data.put("custNm", "유플러스");
|
||||
data.put("bRegNo", "229-81-38889");
|
||||
data.put("adminId", "Uplus01");
|
||||
data.put("authCd", "12345");
|
||||
data.put("useYn", "사용");
|
||||
data.put("regDt", "2022-03-10");
|
||||
data.put("chgDt", "2022-03-10");
|
||||
|
||||
dataList.add(data);
|
||||
}
|
||||
dataObj.put("list", dataList);
|
||||
result.setData(dataObj);
|
||||
return result;
|
||||
}
|
||||
public RejectRecvListResDto rejectRecvList(RejectRecvListReqDto rejectRecvListReqDto) {
|
||||
ServMgtMapper servMgtMapper = sqlSessionSlave.getMapper(ServMgtMapper.class);
|
||||
String nowPage = String.valueOf(rejectRecvListReqDto.getPage());
|
||||
int totalCnt = servMgtMapper.selectRejectRecvTotalCnt(rejectRecvListReqDto);
|
||||
|
||||
|
||||
if(totalCnt == 0) {
|
||||
Paging paging = new Paging();
|
||||
paging.setPage(nowPage);
|
||||
paging.setTotalCnt(String.valueOf(totalCnt));
|
||||
RejectRecvListRes rejectRecvListRes = new RejectRecvListRes();
|
||||
rejectRecvListRes.setList(new ArrayList<>());
|
||||
rejectRecvListRes.setPaging(paging);
|
||||
return new RejectRecvListResDto(ApiResponseCode.CM_NOT_FOUND, rejectRecvListRes);
|
||||
}
|
||||
logger.info("perPage : "+rejectRecvListReqDto.getPagePerRows());
|
||||
int page = rejectRecvListReqDto.getPage();
|
||||
int pagePerRows = rejectRecvListReqDto.getPagePerRows();
|
||||
page = (page -1) * pagePerRows;
|
||||
rejectRecvListReqDto.setPage(page);
|
||||
|
||||
List<RejectRecvInfo> rejectRecvInfos = servMgtMapper.selectRejectRecvList(rejectRecvListReqDto);
|
||||
|
||||
Paging paging = new Paging();
|
||||
paging.setPage(nowPage);
|
||||
paging.setTotalCnt(String.valueOf(totalCnt));
|
||||
|
||||
RejectRecvListRes rejectRecvListRes = new RejectRecvListRes();
|
||||
rejectRecvListRes.setList(rejectRecvInfos);
|
||||
rejectRecvListRes.setPaging(paging);
|
||||
|
||||
return new RejectRecvListResDto(ApiResponseCode.SUCCESS, rejectRecvListRes);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package kr.co.uplus.ez.api.servMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class RejectRecvInfo implements Serializable{
|
||||
@ApiModelProperty(example = "리스트번호", name = "리스트번호", dataType = "String")
|
||||
private String no;
|
||||
@ApiModelProperty(example = "고객사명(이름)", name = "고객사명(이름)", dataType = "String")
|
||||
private String custNm;
|
||||
@ApiModelProperty(example = "사업자번호(생년월일)", name = "사업자번호(생년월일)", dataType = "String")
|
||||
private String bRegNo;
|
||||
@ApiModelProperty(example = "관리자ID", name = "관리자ID", dataType = "String")
|
||||
private String userId;
|
||||
@ApiModelProperty(example = "인증코드", name = "인증코드", dataType = "String")
|
||||
private String authcd080;
|
||||
@ApiModelProperty(example = "사용여부", name = "사용여부", dataType = "String")
|
||||
private String useYN;
|
||||
@ApiModelProperty(example = "등록일", name = "등록일", notes = "01:사용/ 02:중지", dataType = "String")
|
||||
private String regDt;
|
||||
@ApiModelProperty(example = "최종수정일", name = "최종수정일", dataType = "String")
|
||||
private String chgDt;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package kr.co.uplus.ez.api.servMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class RejectRecvListReqDto implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "사용상태", name = "사용상태", notes = "항목 : 전체(Default)/사용/중지", dataType = "String")
|
||||
private String searchType1;
|
||||
@ApiModelProperty(example = "검색조건", name = "검색조건", notes = "항목 : 고객사명/ 사업자번호 / 인증코드", dataType = "String")
|
||||
private String searchType2;
|
||||
@ApiModelProperty(example = "검색어(입력)", name = "검색어(입력)", dataType = "String")
|
||||
private String searchText1;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "페이지당 조회할 목록 수",notes = "페이지당 조회할 목록 수", name = "페이지당 조회할 목록 수", dataType = "int")
|
||||
private int pagePerRows;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "현재 페이지", name = "현재 페이지", dataType = "int")
|
||||
private int page;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package kr.co.uplus.ez.api.servMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import kr.co.uplus.ez.common.data.Paging;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class RejectRecvListRes implements Serializable{
|
||||
|
||||
private Paging paging;
|
||||
private List<RejectRecvInfo> list;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package kr.co.uplus.ez.api.servMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class RejectRecvListResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
// 데이터.
|
||||
private RejectRecvListRes data;
|
||||
|
||||
public RejectRecvListResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public RejectRecvListResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public RejectRecvListResDto(ApiResponseCode returnStr, RejectRecvListRes data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
package kr.co.uplus.ez.api.sysMgt;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
@@ -14,9 +13,9 @@ import javax.validation.Valid;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.core.context.SecurityContextHolder;
|
||||
import org.springframework.security.core.userdetails.UserDetails;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.validation.FieldError;
|
||||
import org.springframework.validation.ObjectError;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
@@ -30,17 +29,25 @@ import kr.co.uplus.ez.api.sysMgt.dto.AdminDetailReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AdminDetailResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AdminListReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AdminListResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthDetailReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthDetailResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthListResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.DeleteAdminReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.DeleteAdminResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.DeleteAuthReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.DeleteAuthResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.InsertAdminReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.InsertAdminResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.InsertAuthReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.InsertAuthResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.SearchMadangIdReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.SearchMadangIdResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.UpdateAdminReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.UpdateAdminResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.UpdateAuthReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.UpdateAuthResDto;
|
||||
import kr.co.uplus.ez.common.components.ValidComponents;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseMessage;
|
||||
|
||||
|
||||
/**
|
||||
* 시스템 관리 Controller.
|
||||
@@ -57,84 +64,59 @@ public class SysMgtController {
|
||||
@Autowired
|
||||
SysMgtService sysService;
|
||||
|
||||
@Autowired
|
||||
ValidComponents validComponents;
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : HUBEZ_BO_API_4001 - 관리자 목록 조회.
|
||||
* date : 2022. 4. 25. auth : ckr desc : HUBEZ_BO_API_4001 - 관리자 목록 조회.
|
||||
*
|
||||
* @param adminListReqDto
|
||||
* @return AdminListResDto
|
||||
*/
|
||||
@ApiOperation(value = "adminList", notes = "관리자 목록 조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "adminList" , method = {RequestMethod.POST})
|
||||
@ApiResponses({ @ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS") })
|
||||
@RequestMapping(value = "adminList", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public AdminListResDto adminList(@RequestBody @Valid AdminListReqDto adminListReqDto, BindingResult bindingResult){
|
||||
public AdminListResDto adminList(@RequestBody @Valid AdminListReqDto adminListReqDto, BindingResult bindingResult) {
|
||||
|
||||
if(bindingResult.hasErrors()) {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
List<ObjectError> objectErrors = bindingResult.getAllErrors();
|
||||
|
||||
objectErrors.forEach(objectError -> {
|
||||
FieldError fieldError = (FieldError) objectError;
|
||||
String field = fieldError.getField();
|
||||
String message = fieldError.getDefaultMessage();
|
||||
sb.append("field : " + field + "\n");
|
||||
sb.append("message : " + message + "\n");
|
||||
});
|
||||
logger.debug("adminList parm Error : {}", sb.toString());
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new AdminListResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
|
||||
|
||||
return sysService.adminList(adminListReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : HUBEZ_BO_API_4001 - 마당ID 조회.
|
||||
* date : 2022. 4. 25. auth : ckr desc : HUBEZ_BO_API_4001 - 마당ID 조회.
|
||||
*
|
||||
* @return SearchMadangIdResDto
|
||||
*/
|
||||
@ApiOperation(value = "madangId", notes = "마당ID 조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "madangId" , method = {RequestMethod.POST})
|
||||
@ApiResponses({ @ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS") })
|
||||
@RequestMapping(value = "madangId", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public SearchMadangIdResDto searchMadangId(@RequestBody @Valid SearchMadangIdReqDto searchMadangIdReqDto){
|
||||
public SearchMadangIdResDto searchMadangId(@RequestBody @Valid SearchMadangIdReqDto searchMadangIdReqDto,
|
||||
BindingResult bindingResult) {
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new SearchMadangIdResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return sysService.searchMadangId(searchMadangIdReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : HUBEZ_BO_API_4003 - 관리자 등록.
|
||||
* date : 2022. 4. 25. auth : ckr desc : HUBEZ_BO_API_4003 - 관리자 등록.
|
||||
*
|
||||
* @param insertAdminReqDto
|
||||
* @return InsertAdminResDto
|
||||
*/
|
||||
@ApiOperation(value = "insertAdmin", notes = "관리자 등록")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "insertAdmin" , method = {RequestMethod.POST})
|
||||
@ApiResponses({ @ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS") })
|
||||
@RequestMapping(value = "insertAdmin", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public InsertAdminResDto insertAdmin(@RequestBody @Valid InsertAdminReqDto insertAdminReqDto, BindingResult bindingResult){
|
||||
public InsertAdminResDto insertAdmin(@RequestBody @Valid InsertAdminReqDto insertAdminReqDto,
|
||||
BindingResult bindingResult) {
|
||||
|
||||
if(bindingResult.hasErrors()) {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
List<ObjectError> objectErrors = bindingResult.getAllErrors();
|
||||
|
||||
objectErrors.forEach(objectError -> {
|
||||
FieldError fieldError = (FieldError) objectError;
|
||||
String field = fieldError.getField();
|
||||
String message = fieldError.getDefaultMessage();
|
||||
sb.append("field : " + field + "\n");
|
||||
sb.append("message : " + message + "\n");
|
||||
});
|
||||
logger.debug("insertAdmin parm Error : {}", sb.toString());
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new InsertAdminResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
|
||||
@@ -142,33 +124,19 @@ public class SysMgtController {
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : HUBEZ_BO_API_4004 - 관리자 수정.
|
||||
* date : 2022. 4. 25. auth : ckr desc : HUBEZ_BO_API_4004 - 관리자 수정.
|
||||
*
|
||||
* @param updateAdminReqDto
|
||||
* @return UpdateAdminResDto
|
||||
* @
|
||||
* @return UpdateAdminResDto @
|
||||
*/
|
||||
@ApiOperation(value = "updateAdmin", notes = "관리자 수정")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "updateAdmin" , method = {RequestMethod.POST})
|
||||
@ApiResponses({ @ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS") })
|
||||
@RequestMapping(value = "updateAdmin", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public UpdateAdminResDto updateAdmin(@RequestBody @Valid UpdateAdminReqDto updateAdminReqDto, BindingResult bindingResult) {
|
||||
public UpdateAdminResDto updateAdmin(@RequestBody @Valid UpdateAdminReqDto updateAdminReqDto,
|
||||
BindingResult bindingResult) {
|
||||
|
||||
if(bindingResult.hasErrors()) {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
List<ObjectError> objectErrors = bindingResult.getAllErrors();
|
||||
|
||||
objectErrors.forEach(objectError -> {
|
||||
FieldError fieldError = (FieldError) objectError;
|
||||
String field = fieldError.getField();
|
||||
String message = fieldError.getDefaultMessage();
|
||||
sb.append("field : " + field + "\n");
|
||||
sb.append("message : " + message + "\n");
|
||||
});
|
||||
logger.debug("Error : {}", sb.toString());
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new UpdateAdminResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
|
||||
@@ -176,33 +144,19 @@ public class SysMgtController {
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : HUBEZ_BO_API_4005 - 관리자 삭제.
|
||||
* date : 2022. 4. 25. auth : ckr desc : HUBEZ_BO_API_4005 - 관리자 삭제.
|
||||
*
|
||||
* @param deleteAdminReqDto
|
||||
* @return DeleteAdminResDto
|
||||
* @
|
||||
* @return DeleteAdminResDto @
|
||||
*/
|
||||
@ApiOperation(value = "deleteAdmin", notes = "관리자 삭제")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "deleteAdmin" , method = {RequestMethod.POST})
|
||||
@ApiResponses({ @ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS") })
|
||||
@RequestMapping(value = "deleteAdmin", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public DeleteAdminResDto deleteAdmin(@RequestBody @Valid DeleteAdminReqDto deleteAdminReqDto, BindingResult bindingResult) {
|
||||
public DeleteAdminResDto deleteAdmin(@RequestBody @Valid DeleteAdminReqDto deleteAdminReqDto,
|
||||
BindingResult bindingResult) {
|
||||
|
||||
if(bindingResult.hasErrors()) {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
List<ObjectError> objectErrors = bindingResult.getAllErrors();
|
||||
|
||||
objectErrors.forEach(objectError -> {
|
||||
FieldError fieldError = (FieldError) objectError;
|
||||
String field = fieldError.getField();
|
||||
String message = fieldError.getDefaultMessage();
|
||||
sb.append("field : " + field + "\n");
|
||||
sb.append("message : " + message + "\n");
|
||||
});
|
||||
logger.debug("deleteAdmin parm Error : {}", sb.toString());
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new DeleteAdminResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
|
||||
@@ -210,33 +164,19 @@ public class SysMgtController {
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : HUBEZ_BO_API_4006 - 관리자 정보 상세 조회.
|
||||
* date : 2022. 4. 25. auth : ckr desc : HUBEZ_BO_API_4006 - 관리자 정보 상세 조회.
|
||||
*
|
||||
* @param adminDetailReqDto
|
||||
* @return AdminDetailResDto
|
||||
* @
|
||||
* @return AdminDetailResDto @
|
||||
*/
|
||||
@ApiOperation(value = "adminDetail", notes = "관리자 정보 상세 조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "adminDetail" , method = {RequestMethod.POST})
|
||||
@ApiResponses({ @ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS") })
|
||||
@RequestMapping(value = "adminDetail", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public AdminDetailResDto adminDetail(@RequestBody @Valid AdminDetailReqDto adminDetailReqDto, BindingResult bindingResult) {
|
||||
public AdminDetailResDto adminDetail(@RequestBody @Valid AdminDetailReqDto adminDetailReqDto,
|
||||
BindingResult bindingResult) {
|
||||
|
||||
if(bindingResult.hasErrors()) {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
List<ObjectError> objectErrors = bindingResult.getAllErrors();
|
||||
|
||||
objectErrors.forEach(objectError -> {
|
||||
FieldError fieldError = (FieldError) objectError;
|
||||
String field = fieldError.getField();
|
||||
String message = fieldError.getDefaultMessage();
|
||||
sb.append("field : " + field + "\n");
|
||||
sb.append("message : " + message + "\n");
|
||||
});
|
||||
logger.debug("adminDetail parm Error : {}", sb.toString());
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new AdminDetailResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
|
||||
@@ -244,77 +184,92 @@ public class SysMgtController {
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 권한 목록 조회
|
||||
* date : 2022. 4. 25. auth : ckr desc : 권한 목록 조회
|
||||
*
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @
|
||||
* @return @
|
||||
*/
|
||||
@ApiOperation(value = "authList", notes = "권한 목록 조회")
|
||||
@ApiResponses({
|
||||
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
|
||||
})
|
||||
@RequestMapping(value = "authList" , method = {RequestMethod.POST})
|
||||
@ApiResponses({ @ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS") })
|
||||
@RequestMapping(value = "authList", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public ApiResponseMessage authList(@RequestBody Map<String, Object> paramMap) {
|
||||
public AuthListResDto authList(@RequestBody Map<String, Object> paramMap) {
|
||||
return sysService.authList(paramMap);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 권한 삭제
|
||||
* date : 2022. 4. 25. auth : ckr desc : 권한 삭제
|
||||
*
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @
|
||||
* @return @
|
||||
*/
|
||||
@RequestMapping(value = "/deleteAuth" , method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/deleteAuth", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public ApiResponseMessage deleteAuth(@RequestBody Map<String, Object> paramMap) {
|
||||
return sysService.deleteAuth(paramMap);
|
||||
public DeleteAuthResDto deleteAuth(@RequestBody @Valid DeleteAuthReqDto deleteAuthReqDto,
|
||||
BindingResult bindingResult) {
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new DeleteAuthResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return sysService.deleteAuth(deleteAuthReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 권한 상세 조회
|
||||
* date : 2022. 4. 25. auth : ckr desc : 권한 상세 조회
|
||||
*
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @
|
||||
* @return @
|
||||
*/
|
||||
@RequestMapping(value = "/authDetail" , method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/authDetail", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public ApiResponseMessage authDetail(@RequestBody Map<String, Object> paramMap) {
|
||||
return sysService.authDetail(paramMap);
|
||||
public AuthDetailResDto authDetail(@RequestBody @Valid AuthDetailReqDto authDetailReqDto,
|
||||
BindingResult bindingResult) {
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new AuthDetailResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
return sysService.authDetail(authDetailReqDto);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 권한 추가
|
||||
* date : 2022. 4. 25. auth : ckr desc : 권한 추가
|
||||
*
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @
|
||||
* @return @
|
||||
*/
|
||||
@RequestMapping(value = "/insertAuth" , method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/insertAuth", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public ApiResponseMessage insertAuth(@RequestBody Map<String, Object> paramMap) {
|
||||
return sysService.insertAuth(paramMap);
|
||||
public InsertAuthResDto insertAuth(@RequestBody @Valid InsertAuthReqDto insertAuthReqDto,
|
||||
BindingResult bindingResult) {
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new InsertAuthResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
|
||||
UserDetails userDetails = (UserDetails) principal;
|
||||
|
||||
String regId = userDetails.getUsername();
|
||||
|
||||
return sysService.insertAuth(insertAuthReqDto, regId);
|
||||
}
|
||||
|
||||
/**
|
||||
* date : 2022. 4. 25.
|
||||
* auth : ckr
|
||||
* desc : 권한 수정
|
||||
* date : 2022. 4. 25. auth : ckr desc : 권한 수정
|
||||
*
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @
|
||||
* @return @
|
||||
*/
|
||||
@RequestMapping(value = "/updateAuth" , method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/updateAuth", method = { RequestMethod.POST })
|
||||
@ResponseBody
|
||||
public ApiResponseMessage updateAuth(@RequestBody Map<String, Object> paramMap) {
|
||||
return sysService.updateAuth(paramMap);
|
||||
|
||||
public UpdateAuthResDto updateAuth(@RequestBody @Valid UpdateAuthReqDto updateAuthReqDto,
|
||||
BindingResult bindingResult) {
|
||||
if (validComponents.validParameter(bindingResult)) {
|
||||
return new UpdateAuthResDto(ApiResponseCode.CM_PARAMETER_ERROR);
|
||||
}
|
||||
Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
|
||||
UserDetails userDetails = (UserDetails) principal;
|
||||
|
||||
String regId = userDetails.getUsername();
|
||||
|
||||
return sysService.updateAuth(updateAuthReqDto, regId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package kr.co.uplus.ez.api.sysMgt;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@@ -8,11 +9,18 @@ import kr.co.uplus.ez.api.sysMgt.dto.AdminDetail;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AdminDetailReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AdminInfo;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AdminListReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthDetail;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthDetailReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthInfo;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthMenu;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.DeleteAdmin;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.DeleteAuthReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.InsertAdminReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.InsertAuthReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.SearchMadangId;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.SearchMadangIdReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.UpdateAdminReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.UpdateAuthReqDto;
|
||||
|
||||
@Mapper
|
||||
public interface SysMgtMapper {
|
||||
@@ -34,5 +42,20 @@ public interface SysMgtMapper {
|
||||
SearchMadangId selectSearchMadangId(SearchMadangIdReqDto searchMadangId);
|
||||
|
||||
int deleteAdminList(List<DeleteAdmin> deleteAdmins);
|
||||
|
||||
List<AuthInfo> selectAuthList();
|
||||
|
||||
AuthDetail selectAuthDetail(AuthDetailReqDto authDetailReqDto); // 권한 상세 조회
|
||||
|
||||
}
|
||||
List<AuthMenu> selectAuthMemuList(AuthDetailReqDto authDetailReqDto); // 권한메뉴 리스트 조회
|
||||
|
||||
int insertAuth(Map<String, Object> paramMap); // 권한 등록
|
||||
|
||||
int insertAuthMenu(Map<String, Object> paramMap); // 권한메뉴 등록
|
||||
|
||||
int updateAuth(Map<String, Object> paramMap); // 권한 수정
|
||||
|
||||
int deleteAuth(Map<String, Object> paramMap); // 권한 삭제
|
||||
|
||||
int deleteAuthMenu(Map<String, Object> paramMap); // 권한메뉴 삭제
|
||||
}
|
||||
@@ -23,15 +23,28 @@ import kr.co.uplus.ez.api.sysMgt.dto.AdminInfo;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AdminListReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AdminListRes;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AdminListResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthDetail;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthDetailReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthDetailResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthInfo;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthListRes;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthListResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.AuthMenu;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.DeleteAdminReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.DeleteAdminResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.DeleteAuthReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.DeleteAuthResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.InsertAdminReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.InsertAdminResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.InsertAuthReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.InsertAuthResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.SearchMadangId;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.SearchMadangIdReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.SearchMadangIdResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.UpdateAdminReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.UpdateAdminResDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.UpdateAuthReqDto;
|
||||
import kr.co.uplus.ez.api.sysMgt.dto.UpdateAuthResDto;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseMessage;
|
||||
import kr.co.uplus.ez.common.data.Paging;
|
||||
@@ -100,9 +113,20 @@ public class SysMgtService {
|
||||
* @return SearchMadangIdResDto
|
||||
*/
|
||||
public SearchMadangIdResDto searchMadangId(SearchMadangIdReqDto searchMadangIdReqDto) {
|
||||
SysMgtMapper sysMgtMapper = sqlSessionSlave.getMapper(SysMgtMapper.class);
|
||||
|
||||
SearchMadangId MadangId = sysMgtMapper.selectSearchMadangId(searchMadangIdReqDto);
|
||||
SysMgtMapper sysMgtMapper = sqlSessionSlave.getMapper(SysMgtMapper.class);
|
||||
SearchMadangId MadangId = new SearchMadangId();
|
||||
try {
|
||||
MadangId = sysMgtMapper.selectSearchMadangId(searchMadangIdReqDto);
|
||||
|
||||
if(MadangId == null) {
|
||||
return new SearchMadangIdResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
return new SearchMadangIdResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
|
||||
return new SearchMadangIdResDto(ApiResponseCode.SUCCESS, MadangId);
|
||||
}
|
||||
@@ -188,9 +212,20 @@ public class SysMgtService {
|
||||
* @return
|
||||
*/
|
||||
public AdminDetailResDto adminDetail(AdminDetailReqDto adminDetailReqDto) {
|
||||
|
||||
SysMgtMapper sysMgtMapper = sqlSessionSlave.getMapper(SysMgtMapper.class);
|
||||
|
||||
AdminDetail adminDetail = sysMgtMapper.selectAdminDetail(adminDetailReqDto);
|
||||
AdminDetail adminDetail = new AdminDetail();
|
||||
try {
|
||||
adminDetail = sysMgtMapper.selectAdminDetail(adminDetailReqDto);
|
||||
|
||||
if(adminDetail == null) {
|
||||
return new AdminDetailResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
return new AdminDetailResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
|
||||
return new AdminDetailResDto(ApiResponseCode.SUCCESS, adminDetail);
|
||||
}
|
||||
@@ -202,50 +237,24 @@ public class SysMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage authList(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
Map<String, Object> dataObj = new HashMap<>();
|
||||
List<Map<String, Object>> dataList = new ArrayList<>();
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
public AuthListResDto authList(Map<String, Object> paramMap) {
|
||||
List<AuthInfo> rsAuthInfoList = new ArrayList<AuthInfo>();
|
||||
AuthListRes result = new AuthListRes();
|
||||
|
||||
SysMgtMapper sysMgtMapper = sqlSessionSlave.getMapper(SysMgtMapper.class);
|
||||
|
||||
try {
|
||||
rsAuthInfoList = sysMgtMapper.selectAuthList();
|
||||
if(rsAuthInfoList.size() < 1) {
|
||||
return new AuthListResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
result.setList(rsAuthInfoList);
|
||||
|
||||
} catch (Exception e) {
|
||||
return new AuthListResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
|
||||
|
||||
data = new HashMap<>();
|
||||
data.put("no", "1");
|
||||
data.put("authCd", "Admin_01");
|
||||
data.put("authNm", "슈퍼관리자");
|
||||
data.put("authStat", "사용");
|
||||
data.put("regDt", "2022-03-10");
|
||||
dataList.add(data);
|
||||
|
||||
data = new HashMap<>();
|
||||
data.put("no", "2");
|
||||
data.put("authCd", "Admin_02");
|
||||
data.put("authNm", "대리점");
|
||||
data.put("authStat", "사용");
|
||||
data.put("regDt", "2022-03-10");
|
||||
dataList.add(data);
|
||||
|
||||
data = new HashMap<>();
|
||||
data.put("no", "3");
|
||||
data.put("authCd", "Admin_03");
|
||||
data.put("authNm", "고객센터");
|
||||
data.put("authStat", "사용");
|
||||
data.put("regDt", "2022-03-10");
|
||||
dataList.add(data);
|
||||
|
||||
data = new HashMap<>();
|
||||
data.put("no", "4");
|
||||
data.put("authCd", "Admin_04");
|
||||
data.put("authNm", "운영자");
|
||||
data.put("authStat", "정지");
|
||||
data.put("regDt", "2022-03-10");
|
||||
dataList.add(data);
|
||||
|
||||
dataObj.put("list", dataList);
|
||||
|
||||
result.setData(dataObj);
|
||||
|
||||
return result;
|
||||
return new AuthListResDto(ApiResponseCode.SUCCESS, result);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -255,8 +264,29 @@ public class SysMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage deleteAuth(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
public DeleteAuthResDto deleteAuth(DeleteAuthReqDto deleteAuthReqDto) {
|
||||
|
||||
SysMgtMapper sysMgtMapper = sqlSessionMaster.getMapper(SysMgtMapper.class);
|
||||
Map<String, Object> authParamMap = new HashMap<String, Object>();
|
||||
|
||||
authParamMap.put("authCd", deleteAuthReqDto.getAuthCd());
|
||||
|
||||
try {
|
||||
// 1.권한메뉴 삭제
|
||||
sysMgtMapper.deleteAuthMenu(authParamMap);
|
||||
|
||||
// 2.권한 삭제
|
||||
int result = sysMgtMapper.deleteAuth(authParamMap);
|
||||
|
||||
if(result < 1) {
|
||||
return new DeleteAuthResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
return new DeleteAuthResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
|
||||
DeleteAuthResDto result = new DeleteAuthResDto(ApiResponseCode.SUCCESS);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -267,30 +297,35 @@ public class SysMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage authDetail(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
Map<String, Object> dataObj = new HashMap<>();
|
||||
List<Map<String, Object>> dataList = new ArrayList<>();
|
||||
Map<String, Object> data;
|
||||
|
||||
dataObj.put("authNm", "운영자");
|
||||
dataObj.put("authCd", "Admin_02");
|
||||
dataObj.put("authDesc", "운영자 권한");
|
||||
dataObj.put("authStat", "Y");
|
||||
|
||||
for(int i=1; i<=10; i++) {
|
||||
data = new HashMap<>();
|
||||
data.put("upperMenuNo", "1");
|
||||
data.put("name", "청약고객관리"+i);
|
||||
data.put("order", ""+i);
|
||||
data.put("useYn", "Y");
|
||||
data.put("menuLv", "1");
|
||||
dataList.add(data);
|
||||
public AuthDetailResDto authDetail(AuthDetailReqDto authDetailReqDto) {
|
||||
|
||||
SysMgtMapper sysMgtMapper = sqlSessionSlave.getMapper(SysMgtMapper.class);
|
||||
|
||||
AuthDetail authDetail = new AuthDetail();
|
||||
List<AuthMenu> authMenuList = new ArrayList<AuthMenu>();
|
||||
|
||||
try {
|
||||
authDetail = sysMgtMapper.selectAuthDetail(authDetailReqDto);
|
||||
|
||||
if(authDetail == null) {
|
||||
return new AuthDetailResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
authMenuList = sysMgtMapper.selectAuthMemuList(authDetailReqDto);
|
||||
|
||||
if(authMenuList.size() < 1) {
|
||||
return new AuthDetailResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||
}
|
||||
|
||||
authDetail.setList(authMenuList);
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
return new AuthDetailResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
dataObj.put("list", dataList);
|
||||
result.setData(dataObj);
|
||||
|
||||
return result;
|
||||
|
||||
return new AuthDetailResDto(ApiResponseCode.SUCCESS, authDetail);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -300,9 +335,50 @@ public class SysMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage insertAuth(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
return result;
|
||||
public InsertAuthResDto insertAuth(InsertAuthReqDto insertAuthReqDto, String regId) {
|
||||
|
||||
SysMgtMapper sysMgtMapper = sqlSessionMaster.getMapper(SysMgtMapper.class);
|
||||
|
||||
AuthDetailReqDto authDetailReqDto = new AuthDetailReqDto();
|
||||
AuthDetail authDetail = new AuthDetail();
|
||||
Map<String, Object> authParamMap = new HashMap<String, Object>();
|
||||
Map<String, Object> authMenuParamMap = new HashMap<String, Object>();
|
||||
List<AuthMenu> reqAuthMenuList = new ArrayList<AuthMenu>();
|
||||
|
||||
authDetailReqDto.setAuthCd(insertAuthReqDto.getAuthCd());
|
||||
|
||||
// 권한코드 조회(권한코드 중복체크)
|
||||
authDetail = sysMgtMapper.selectAuthDetail(authDetailReqDto);
|
||||
if(authDetail != null) {
|
||||
return new InsertAuthResDto(ApiResponseCode.CE_SYSMGT_AUTHCODE_INVALID);
|
||||
}
|
||||
|
||||
try {
|
||||
// 권한 등록
|
||||
authParamMap.put("authCd", insertAuthReqDto.getAuthCd());
|
||||
authParamMap.put("authNm", insertAuthReqDto.getAuthNm());
|
||||
authParamMap.put("authDesc", insertAuthReqDto.getAuthDesc());
|
||||
authParamMap.put("stat", insertAuthReqDto.getStat());
|
||||
authParamMap.put("regId", regId);
|
||||
sysMgtMapper.insertAuth(authParamMap);
|
||||
|
||||
// 권한메뉴 등록
|
||||
reqAuthMenuList = insertAuthReqDto.getList();
|
||||
|
||||
for(int i =0; i<reqAuthMenuList.size(); i++) {
|
||||
authMenuParamMap = new HashMap<String, Object>();
|
||||
authMenuParamMap.put("authCd", authParamMap.get("authCd"));
|
||||
authMenuParamMap.put("regId", regId);
|
||||
authMenuParamMap.put("menuNo", reqAuthMenuList.get(i).getMenuNo());
|
||||
|
||||
sysMgtMapper.insertAuthMenu(authMenuParamMap);
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
return new InsertAuthResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
return new InsertAuthResDto(ApiResponseCode.SUCCESS);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -312,9 +388,44 @@ public class SysMgtService {
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
public ApiResponseMessage updateAuth(Map<String, Object> paramMap) {
|
||||
ApiResponseMessage result = new ApiResponseMessage(ApiResponseCode.SUCCESS);
|
||||
return result;
|
||||
public UpdateAuthResDto updateAuth(UpdateAuthReqDto updateAuthReqDto, String regId) {
|
||||
SysMgtMapper sysMgtMapper = sqlSessionMaster.getMapper(SysMgtMapper.class);
|
||||
Map<String, Object> authParamMap = new HashMap<String, Object>();
|
||||
Map<String, Object> authMenuParamMap = new HashMap<String, Object>();
|
||||
List<AuthMenu> reqAuthMenuList = new ArrayList<AuthMenu>();
|
||||
|
||||
try {
|
||||
// 권한 데이터 수정
|
||||
authParamMap.put("authCd", updateAuthReqDto.getAuthCd());
|
||||
authParamMap.put("authNm", updateAuthReqDto.getAuthNm());
|
||||
authParamMap.put("authDesc", updateAuthReqDto.getAuthDesc());
|
||||
authParamMap.put("stat", updateAuthReqDto.getStat());
|
||||
authParamMap.put("regId", regId);
|
||||
|
||||
sysMgtMapper.updateAuth(authParamMap);
|
||||
|
||||
// 권한메뉴 수정 (기존 권한메뉴 등록데이터 삭제 후 등록)
|
||||
// 1. 기존 권한메뉴 데이터 삭제
|
||||
sysMgtMapper.deleteAuthMenu(authParamMap);
|
||||
|
||||
// 2. 권한메뉴 데이터 등록
|
||||
reqAuthMenuList = updateAuthReqDto.getList();
|
||||
|
||||
for(int i =0; i<reqAuthMenuList.size(); i++) {
|
||||
authMenuParamMap = new HashMap<String, Object>();
|
||||
authMenuParamMap.put("authCd", authParamMap.get("authCd"));
|
||||
authMenuParamMap.put("regId", regId);
|
||||
authMenuParamMap.put("menuNo", reqAuthMenuList.get(i).getMenuNo());
|
||||
|
||||
sysMgtMapper.insertAuthMenu(authMenuParamMap);
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
// TODO: handle exception
|
||||
return new UpdateAuthResDto(ApiResponseCode.CM_DB_QUERY_ERR);
|
||||
}
|
||||
|
||||
return new UpdateAuthResDto(ApiResponseCode.SUCCESS);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
26
src/main/java/kr/co/uplus/ez/api/sysMgt/dto/AuthDetail.java
Normal file
26
src/main/java/kr/co/uplus/ez/api/sysMgt/dto/AuthDetail.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import kr.co.uplus.ez.api.sysMgt.SysMgtMapper;
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.utils.EncryptionUtil;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AuthDetail implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "권한코드", name = "권한코드", dataType = "String")
|
||||
private String authCd;
|
||||
@ApiModelProperty(example = "권한명", name = "권한명", dataType = "String")
|
||||
private String authNm;
|
||||
@ApiModelProperty(example = "권한설명", name = "권한설명", dataType = "String")
|
||||
private String authDesc;
|
||||
@ApiModelProperty(example = "권한상태", name = "권한상태", dataType = "String")
|
||||
private String authStat;
|
||||
|
||||
private List<AuthMenu> list;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AuthDetailReqDto implements Serializable{
|
||||
|
||||
@ApiModelProperty(example = "권한코드", name = "권한코드", dataType = "String")
|
||||
String authCd;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AuthDetailResDto extends ResponseMessage implements Serializable {
|
||||
|
||||
//데이터
|
||||
private AuthDetail data;
|
||||
|
||||
public AuthDetailResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public AuthDetailResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public AuthDetailResDto(ApiResponseCode returnStr, AuthDetail data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
23
src/main/java/kr/co/uplus/ez/api/sysMgt/dto/AuthInfo.java
Normal file
23
src/main/java/kr/co/uplus/ez/api/sysMgt/dto/AuthInfo.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AuthInfo implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "리스트번호", name = "리스트번호", dataType = "String")
|
||||
private String no;
|
||||
@ApiModelProperty(example = "권한 코드", name = "권한 코드", dataType = "String")
|
||||
private String authCd;
|
||||
@ApiModelProperty(example = "권한명", name = "권한명", dataType = "String")
|
||||
private String authNm;
|
||||
@ApiModelProperty(example = "권한상태", name = "권한상태", notes = "01:사용/ 02:중지", dataType = "String")
|
||||
private String authStat;
|
||||
@ApiModelProperty(example = "등록일", name = "등록일", notes = "YYYY-MM-DD", dataType = "String")
|
||||
private String regDt;
|
||||
|
||||
}
|
||||
14
src/main/java/kr/co/uplus/ez/api/sysMgt/dto/AuthListRes.java
Normal file
14
src/main/java/kr/co/uplus/ez/api/sysMgt/dto/AuthListRes.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AuthListRes implements Serializable{
|
||||
|
||||
private List<AuthInfo> list;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AuthListResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
// 데이터.
|
||||
private AuthListRes data;
|
||||
|
||||
public AuthListResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public AuthListResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public AuthListResDto(ApiResponseCode returnStr, AuthListRes data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
24
src/main/java/kr/co/uplus/ez/api/sysMgt/dto/AuthMenu.java
Normal file
24
src/main/java/kr/co/uplus/ez/api/sysMgt/dto/AuthMenu.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class AuthMenu implements Serializable{
|
||||
|
||||
@ApiModelProperty(example = "메뉴번호", name = "메뉴번호", dataType = "String")
|
||||
private String menuNo;
|
||||
@ApiModelProperty(example = "상위메뉴번호", name = "상위메뉴번호", dataType = "String")
|
||||
private String upperMenuNo;
|
||||
@ApiModelProperty(example = "메뉴명", name = "메뉴명", dataType = "String")
|
||||
private String name;
|
||||
@ApiModelProperty(example = "메뉴순서", name = "메뉴순서", dataType = "String")
|
||||
private String menuOrder;
|
||||
@ApiModelProperty(example = "사용여부", name = "사용여부", dataType = "String")
|
||||
private String useYn;
|
||||
@ApiModelProperty(example = "메뉴레벨", name = "메뉴레벨", dataType = "String")
|
||||
private String menuLv;
|
||||
}
|
||||
@@ -12,4 +12,4 @@ public class DeleteAdminReqDto implements Serializable {
|
||||
// 삭제 대상 List.
|
||||
private List<DeleteAdmin> list;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class DeleteAuthReqDto implements Serializable {
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty(example = "권한코드", name = "권한코드", dataType = "String")
|
||||
private String authCd;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class DeleteAuthResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
// 데이터.
|
||||
private DeleteAuthReqDto data;
|
||||
|
||||
public DeleteAuthResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public DeleteAuthResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public DeleteAuthResDto(ApiResponseCode returnStr, DeleteAuthReqDto data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class InsertAuthReqDto implements Serializable{
|
||||
|
||||
@ApiModelProperty(example = "권한코드", name = "권한코드", dataType = "String")
|
||||
private String authCd;
|
||||
@ApiModelProperty(example = "권한명", name = "권한명", dataType = "String")
|
||||
private String authNm;
|
||||
@ApiModelProperty(example = "권한설명", name = "권한설명", dataType = "String")
|
||||
private String authDesc;
|
||||
@ApiModelProperty(example = "권한상태", name = "권한상태", dataType = "String")
|
||||
private String stat;
|
||||
|
||||
private List<AuthMenu> list;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class InsertAuthResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
// 데이터.
|
||||
private DeleteAuthReqDto data;
|
||||
|
||||
public InsertAuthResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public InsertAuthResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public InsertAuthResDto(ApiResponseCode returnStr, DeleteAuthReqDto data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class UpdateAuthReqDto implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "권한코드", name = "권한코드", dataType= "String")
|
||||
private String authCd;
|
||||
@ApiModelProperty(example = "권한명", name = "권한명", dataType= "String")
|
||||
private String authNm;
|
||||
@ApiModelProperty(example = "권한설명", name = "권한설명", dataType= "String")
|
||||
private String authDesc;
|
||||
@ApiModelProperty(example = "권한상태", name = "권한상태", dataType= "String")
|
||||
private String stat;
|
||||
|
||||
private List<AuthMenu> list;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||
import lombok.Data;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class UpdateAuthResDto extends ResponseMessage implements Serializable{
|
||||
|
||||
// 데이터.
|
||||
private Object data;
|
||||
|
||||
public UpdateAuthResDto() {
|
||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||
}
|
||||
|
||||
public UpdateAuthResDto(ApiResponseCode returnStr) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
}
|
||||
|
||||
public UpdateAuthResDto(ApiResponseCode returnStr, Object data) {
|
||||
this.retCode = returnStr.getResultCode();
|
||||
this.retMsg = returnStr.getResultMsg();
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package kr.co.uplus.ez.common.components;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.validation.FieldError;
|
||||
import org.springframework.validation.ObjectError;
|
||||
|
||||
@Component
|
||||
public class ValidComponents {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(ValidComponents.class);
|
||||
|
||||
/**
|
||||
* 파라미터 검증.
|
||||
*
|
||||
* @param bindingResult
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean validParameter(BindingResult bindingResult) {
|
||||
if(bindingResult.hasErrors()) {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
List<ObjectError> objectErrors = bindingResult.getAllErrors();
|
||||
|
||||
objectErrors.forEach(objectError -> {
|
||||
FieldError fieldError = (FieldError) objectError;
|
||||
String field = fieldError.getField();
|
||||
String message = fieldError.getDefaultMessage();
|
||||
sb.append("field : " + field + "\n");
|
||||
sb.append("message : " + message + "\n");
|
||||
});
|
||||
logger.debug("adminList parm Error : {}", sb.toString());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -2,43 +2,67 @@ package kr.co.uplus.ez.common.data;
|
||||
|
||||
public enum ApiResponseCode {
|
||||
|
||||
RESULT_CODE("resultCode")
|
||||
, RESULT_MSG("resultMsg")
|
||||
, SUCCESS("0000", "성공")
|
||||
RESULT_CODE("resultCode"), RESULT_MSG("resultMsg")
|
||||
/** 성공. */
|
||||
,SUCCESS("0000", "성공")
|
||||
|
||||
// 공통
|
||||
, CM_UNISSUED_APPLICATIONID("1001", "미발급된 ApplicationID")
|
||||
, CM_PARAMETER_ERROR("1002", "파라미터 오류")
|
||||
, CM_MISSING_REQUIRED("1003", "필수값 누락")
|
||||
, CM_NOT_FOUND("1004", "조회 결과 없음")
|
||||
, CM_DB_QUERY_ERR("1009", "데이터를 처리하는 동안 오류가 발생했습니다")
|
||||
/** 미발급된 ApplicationID. */
|
||||
,CM_UNISSUED_APPLICATIONID("1001", "미발급된 ApplicationID")
|
||||
/** 파라미터 오류. */
|
||||
,CM_PARAMETER_ERROR("1002", "파라미터 오류")
|
||||
/** 필수값 누락. */
|
||||
,CM_MISSING_REQUIRED("1003", "필수값 누락")
|
||||
/** 조회결과 없음. */
|
||||
,CM_NOT_FOUND("1004", "조회 결과 없음")
|
||||
/** 데이터를 처리하는 동안 오류가 발생했습니다. */
|
||||
,CM_DB_QUERY_ERR("1009", "데이터를 처리하는 동안 오류가 발생했습니다.")
|
||||
|
||||
// 어드민.
|
||||
, CE_AUTH_TOKEN_EXPIRE ("4001", "인증토큰 만료")
|
||||
, CE_REFRESH_AUTH_TOKEN_EXPIRE ("4002", "Refresh 토큰 만료")
|
||||
, CE_ID_NOT_FOUND ("4003", "사용자 정보가 없습니다.")
|
||||
, CE_ID_PWD ("4004", "ID/PWD 불일치")
|
||||
, CE_TO_LOCK ("4005", "ID/PWD 불일치 횟수초과")
|
||||
, CE_PWD_EXPIRE ("4006", "비밀번호 변경 기간 초과")
|
||||
, SS_NOT_USE ("4007", "사용자 상태 오류")
|
||||
, CE_ID_HP ("4008", "ID/HP 불일치")
|
||||
, CE_AUTHNUM_EXPIRE ("4009", "인증시간 초과")
|
||||
, CE_WRONG_AUTHNUM ("4010", "인증번호 오류")
|
||||
, CE_AUTHNUM_LOCK ("4011", "인증번호 불일치 횟수초과")
|
||||
, CE_TOKEN_ISSUANCE_FAILED("4012", "Access 토큰 발급 실패")
|
||||
, CE_FAILED_TO_CHANGE_USER("4013", "사용자정보 변경 실패")
|
||||
, CE_FAILED_TO_SEND_SMS("4014", "문자발송 실패")
|
||||
, CE_FAILED_TO_SEND_EMAIL("4015", "메일발송 실패")
|
||||
, CE_FAILED_TO_PW_CHANGE("4016", "비밀번호변경 실패")
|
||||
/** 인증토큰 만료. */
|
||||
,CE_AUTH_TOKEN_EXPIRE("4001", "인증토큰 만료")
|
||||
/** Refresh 토큰 만료. */
|
||||
,CE_REFRESH_AUTH_TOKEN_EXPIRE("4002", "Refresh 토큰 만료")
|
||||
/** 사용자 정보가 없습니다.. */
|
||||
,CE_ID_NOT_FOUND("4003", "사용자 정보가 없습니다.")
|
||||
/** ID/PWD 불일치. */
|
||||
,CE_ID_PWD("4004", "ID/PWD 불일치")
|
||||
/** ID/PWD 불일치 횟수초과. */
|
||||
,CE_TO_LOCK("4005", "ID/PWD 불일치 횟수초과")
|
||||
/** 비밀번호 변경 기간 초과. */
|
||||
,CE_PWD_EXPIRE("4006", "비밀번호 변경 기간 초과")
|
||||
/** 사용자 상태 오류. */
|
||||
,SS_NOT_USE("4007", "사용자 상태 오류")
|
||||
/** ID/HP 불일치. */
|
||||
,CE_ID_HP("4008", "ID/HP 불일치")
|
||||
/** 인증시간 초과. */
|
||||
,CE_AUTHNUM_EXPIRE("4009", "인증시간 초과")
|
||||
/** 인증번호 오류. */
|
||||
,CE_WRONG_AUTHNUM("4010", "인증번호 오류")
|
||||
/** 인증번호 불일치 횟수초과. */
|
||||
,CE_AUTHNUM_LOCK("4011", "인증번호 불일치 횟수초과")
|
||||
/** Access 토큰 발급 실패. */
|
||||
,CE_TOKEN_ISSUANCE_FAILED("4012", "Access 토큰 발급 실패")
|
||||
/** 사용자정보 변경 실패. */
|
||||
,CE_FAILED_TO_CHANGE_USER("4013", "사용자정보 변경 실패")
|
||||
/** 문자발송 실패. */
|
||||
,CE_FAILED_TO_SEND_SMS("4014", "문자발송 실패")
|
||||
/** 메일발송 실패. */
|
||||
,CE_FAILED_TO_SEND_EMAIL("4015", "메일발송 실패")
|
||||
/** 비밀번호변경 실패. */
|
||||
,CE_FAILED_TO_PW_CHANGE("4016", "비밀번호변경 실패")
|
||||
/** 권한코드가 유효하지않습니다. */
|
||||
,CE_SYSMGT_AUTHCODE_INVALID("4017", "권한코드가 유효하지않습니다.")
|
||||
/** 이미 사용중인 아이디 입니다. */
|
||||
,CE_DUPLICATE_ID("4018", "이미 사용중인 아이디 입니다.")
|
||||
|
||||
// 시스템
|
||||
, SE_UNKNOWN ("9999", "알 수 없는 에러")
|
||||
;
|
||||
/** 알 수 없는 에러. */
|
||||
,SE_UNKNOWN("9999", "알 수 없는 에러");
|
||||
|
||||
private String resultCode;
|
||||
private String resultMsg;
|
||||
|
||||
|
||||
public String getResultCode() {
|
||||
return resultCode;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,10 @@ import java.util.List;
|
||||
|
||||
public class Const {
|
||||
|
||||
/** Yes.*/
|
||||
public static final String COMM_YES = "Y";
|
||||
/** No.*/
|
||||
public static final String COMM_NO = "N";
|
||||
|
||||
public static final String CODE_VALUE_02 = "02"; // 코드값 02
|
||||
public static final String AUTH_TP_CD = "01"; // 어드민 로그인
|
||||
@@ -36,4 +39,50 @@ public class Const {
|
||||
public static final int MAX_AUTHNUM_FAIL = 5; // 5회 인증번호 검증 실패하면 발행 잠김
|
||||
public static final int AUTHNUM_LOCK_EXPIRE_MINS = 30; // 인증번호발행 잠김 만료기간 (분)
|
||||
|
||||
|
||||
// 이용자 상태 코드(01:정상, 02:사용중지)
|
||||
/** 이용자 상태 코드(01:정상).*/
|
||||
public static final String USER_STTUS_CD_NOMAL = "01";
|
||||
/** 이용자 상태 코드(02:사용중지).*/
|
||||
public static final String USER_STTUS_CD_STOP = "02";
|
||||
|
||||
// 이용자 유형 코드(01:관리자ID, 02: 사용자ID, 03:테스트ID)
|
||||
/** 이용자 유형 코드(01:관리자).*/
|
||||
public static final String USER_TP_CD_ADM = "01";
|
||||
/** 이용자 유형 코드(02:사용자ID).*/
|
||||
public static final String USER_TP_CD_USR = "02";
|
||||
/** 이용자 유형 코드(03:테스트ID).*/
|
||||
public static final String USER_TP_CD_TEST = "03";
|
||||
|
||||
|
||||
// 발송라인타입코드(NORMAL : 일반, REAL:실시간, BATCH:배치)
|
||||
/** 발송라인타입코드(NORMAL : 일반).*/
|
||||
public static final String LINE_TP_CD_NORMAL = "NORMAL";
|
||||
/** 발송라인타입코드(REAL:실시간).*/
|
||||
public static final String LINE_TP_CD_REAL = "REAL";
|
||||
/** 발송라인타입코드(BATCH:배치).*/
|
||||
public static final String LINE_TP_CD_BATCH = "BATCH";
|
||||
|
||||
/** 사용자 권한 (H001 관리자).*/
|
||||
public static final String USER_AUTCD_ADM = "H001";
|
||||
/** 사용자 권한 (H002 사용자).*/
|
||||
public static final String USER_AUTCD_USR = "H001";
|
||||
/** 사용자 권한 (H003 비로그인).*/
|
||||
public static final String USER_AUTCD_NO_LOGIN = "H003";
|
||||
|
||||
// 가입 상태 코드(01:대기, 02:정상, 03:일시정지, 04:미납정지, 98:취소, 99:해지)
|
||||
/** 가입 상태 코드(01:대기) */
|
||||
public static final String SUBS_STTUS_CD_WAIT = "01";
|
||||
/** 가입 상태 코드(02:정상) */
|
||||
public static final String SUBS_STTUS_CD_NORMAL = "02";
|
||||
/** 가입 상태 코드(03:일시정지) */
|
||||
public static final String SUBS_STTUS_CD_PAUSE = "03";
|
||||
/** 가입 상태 코드(04:미납정지) */
|
||||
public static final String SUBS_STTUS_CD_NON_PAY = "04";
|
||||
/** 가입 상태 코드(98:취소) */
|
||||
public static final String SUBS_STTUS_CD_CANCEL = "98";
|
||||
/** 가입 상태 코드(99:해지) */
|
||||
public static final String SUBS_STTUS_CD_BREAK = "99";
|
||||
|
||||
|
||||
}
|
||||
|
||||
37
src/main/java/kr/co/uplus/ez/common/data/ImUser.java
Normal file
37
src/main/java/kr/co/uplus/ez/common/data/ImUser.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package kr.co.uplus.ez.common.data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 마당아이디 정보.
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
@Data
|
||||
public class ImUser implements Serializable {
|
||||
|
||||
/** 로그인_ID . */
|
||||
private String loginId;
|
||||
/** 이름 . */
|
||||
private String name;
|
||||
/** 사용자_코드 . */
|
||||
private String userCode;
|
||||
/** 상태 . */
|
||||
private String status;
|
||||
/** 메일주소 . */
|
||||
private String email;
|
||||
/** 이동전화번호 . */
|
||||
private String mobile;
|
||||
/** 사원_구분_코드 . */
|
||||
private String exEmpDvCd;
|
||||
/** 사용자_프로비전_구. */
|
||||
private String exProvusertype;
|
||||
/** 재직_상태_코드 . */
|
||||
private String exHofcSttsCd;
|
||||
/** 소속_조직_코드 . */
|
||||
private String exDeptCd;
|
||||
/** 소속_조직_레벨 . */
|
||||
private String exDeptLevel;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user