mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 18:42:43 +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;
|
||||
|
||||
}
|
||||
@@ -35,4 +35,17 @@ schedule:
|
||||
# 2차인증 제외 ID목록.
|
||||
authentication:
|
||||
without:
|
||||
id: jambler01,jambler02,jambler03,jambler04,jambler05,jambler06
|
||||
id: jambler01,jambler02,jambler03,jambler04,jambler05,jambler06
|
||||
|
||||
|
||||
testId:
|
||||
prodCd: LPZ0045389
|
||||
rpsnBday: 19800101
|
||||
brno: 1234567890
|
||||
cono: 9876543210987
|
||||
zipCd: 04389
|
||||
badr: 서울특별시 용산구 한강대로 32
|
||||
dadr: 0층
|
||||
cmpyNm: 임시회사
|
||||
paymMthd: 2
|
||||
custTyCd: 02
|
||||
@@ -44,8 +44,8 @@
|
||||
,T2.DTL_CD_NM as codeNm
|
||||
,T2.SORT_ODRG as sortOrder
|
||||
,T2.USE_YN as useYn
|
||||
FROM ${HUBEZ_ADMIN}.EZ_CD_GRP T1
|
||||
LEFT JOIN ${HUBEZ_ADMIN}.EZ_CD_DTL T2
|
||||
FROM ${HUBEZ_COMMON}.EZ_CD_GRP T1
|
||||
LEFT JOIN ${HUBEZ_COMMON}.EZ_CD_DTL T2
|
||||
ON T1.GRP_CD = T2.GRP_CD
|
||||
WHERE T1.GRP_CD = #{grpCd}
|
||||
ORDER BY T2.SORT_ODRG
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
ON
|
||||
eci.CUST_SEQ = esi.CUST_SEQ
|
||||
AND esi.CUST_SEQ = esu.CUST_SEQ
|
||||
WHERE
|
||||
esi.SUBS_DT <![CDATA[ >= ]]> STR_TO_DATE('20220101', '%Y%m%d')
|
||||
WHERE 1 = 1
|
||||
<include refid="subsListCondition"></include>
|
||||
</select>
|
||||
|
||||
<select id="selectSubsLists" parameterType="kr.co.uplus.ez.api.custMgt.dto.SubsListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.SubsList">
|
||||
@@ -30,17 +30,16 @@
|
||||
SELECT
|
||||
esu.USER_ID as SERVICE_ID,
|
||||
eci.CUST_NM as CUST_NM ,
|
||||
esi.UQV_SBSC_NO as REG_NO,
|
||||
esi.ENTR_NO as REG_NO,
|
||||
DATE_FORMAT(esi.OPN_DT, '%Y-%m-%d') AS REG_DT,
|
||||
(
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
hubez_admin.EZ_CD_DTL
|
||||
${HUBEZ_COMMON}.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'SUBS_STTUS_CD'
|
||||
AND DTL_CD = esi.SUBS_STTUS_CD) AS STAT
|
||||
-- , (select * from ${HUBEZ_IMDB}.EZ_MD_ACC where MD_ID = esi.ATTRCTOR_ID) AS CHANNEL -- 나중에 컬럼속성 확인되면.....
|
||||
,
|
||||
(
|
||||
SELECT
|
||||
@@ -50,7 +49,7 @@
|
||||
WHERE
|
||||
PROD_CD = esi.PROD_CD) AS PLAN
|
||||
,
|
||||
IFNULL((SELECT CFWD_AMT FROM hubez_admin.EZ_USER_LMT WHERE USER_SEQ = esi.USER_SEQ AND LMT_YM = DATE_FORMAT(NOW(), '%Y%m%d')), 0) AS CARRY_OVER
|
||||
IFNULL((SELECT CFWD_AMT FROM ${HUBEZ_ADMIN}.EZ_USER_LMT WHERE USER_SEQ = esi.USER_SEQ AND LMT_YM = DATE_FORMAT(NOW(), '%Y%m%d')), 0) AS CARRY_OVER
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_SUBS_INFO esi
|
||||
INNER JOIN ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
@@ -60,27 +59,677 @@
|
||||
ON
|
||||
eci.CUST_SEQ = esi.CUST_SEQ
|
||||
AND esi.CUST_SEQ = esu.CUST_SEQ
|
||||
WHERE
|
||||
esi.SUBS_DT <![CDATA[ >= ]]> STR_TO_DATE('20220101', '%Y%m%d')
|
||||
WHERE 1 = 1
|
||||
<include refid="subsListCondition"></include>
|
||||
ORDER BY
|
||||
esi.OPN_DT DESC
|
||||
LIMIT #{page}, #{pagePerRows}) A,
|
||||
( SELECT @ROWNUM := #{page} ) AS R
|
||||
</select>
|
||||
|
||||
<select id="selectSubsListsExcel" parameterType="kr.co.uplus.ez.api.custMgt.dto.SubsListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.SubsList">
|
||||
/* custMgt-mapper.xml(selectSubsListsExcel) */
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO,
|
||||
A.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
esu.USER_ID as SERVICE_ID,
|
||||
eci.CUST_NM as CUST_NM ,
|
||||
esi.ENTR_NO as REG_NO,
|
||||
DATE_FORMAT(esi.OPN_DT, '%Y-%m-%d') AS REG_DT,
|
||||
(
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'SUBS_STTUS_CD'
|
||||
AND DTL_CD = esi.SUBS_STTUS_CD) AS STAT
|
||||
,
|
||||
(
|
||||
SELECT
|
||||
PROD_NM
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_PROD_INFO
|
||||
WHERE
|
||||
PROD_CD = esi.PROD_CD) AS PLAN
|
||||
,
|
||||
IFNULL((SELECT CFWD_AMT FROM ${HUBEZ_ADMIN}.EZ_USER_LMT WHERE USER_SEQ = esi.USER_SEQ AND LMT_YM = DATE_FORMAT(NOW(), '%Y%m%d')), 0) AS CARRY_OVER
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_SUBS_INFO esi
|
||||
INNER JOIN ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
ON
|
||||
esu.USER_SEQ = esi.USER_SEQ
|
||||
INNER JOIN ${HUBEZ_COMMON}.EZ_CUST_INFO eci
|
||||
ON
|
||||
eci.CUST_SEQ = esi.CUST_SEQ
|
||||
AND esi.CUST_SEQ = esu.CUST_SEQ
|
||||
WHERE 1 = 1
|
||||
<include refid="subsListCondition"></include>
|
||||
ORDER BY
|
||||
esi.OPN_DT DESC
|
||||
LIMIT 100) A,
|
||||
( SELECT @ROWNUM := 0 ) AS R
|
||||
</select>
|
||||
<sql id="subsListCondition">
|
||||
<if test="startDt != null and startDt != ''">
|
||||
AND esi.SUBS_DT <![CDATA[ >= ]]> STR_TO_DATE(REPLACE( #{startDt}, '-', '' ), '%Y%m%d')
|
||||
</if>
|
||||
<if test="endDt != null and endDt != ''">
|
||||
AND esi.SUBS_DT <![CDATA[ <= ]]> STR_TO_DATE(REPLACE( #{endDt}, '-', '' ), '%Y%m%d')
|
||||
</if>
|
||||
<if test="searchType1 != null and searchType1 != ''">
|
||||
AND T1.AUT_CD = #{searchType1}
|
||||
AND esu.USER_STTUS_CD = #{searchType1}
|
||||
</if>
|
||||
<if test="searchType2 != null and searchType2 != ''">
|
||||
AND T1.STTUS_CD = #{searchType2}
|
||||
AND esu.USER_TP_CD = #{searchType2}
|
||||
</if>
|
||||
<if test="searchText1 != null and searchText1 != ''">
|
||||
AND T1.OPRTR_ID = #{searchText1}
|
||||
</if>
|
||||
<if test="searchText2 != null and searchText2 != ''">
|
||||
AND UPPER(T1.OPRTR_NM) LIKE UPPER('%' + #{searchText2} + '%')
|
||||
<if test="searchType3 != null and searchType3 != ''">
|
||||
<if test="searchType3 == '01'">
|
||||
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType3 == '02'">
|
||||
AND esi.ENTR_NO = #{searchText1}
|
||||
</if>
|
||||
<if test="searchType3 == '03'">
|
||||
AND esu.USER_ID = #{searchText1}
|
||||
</if>
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<insert id="insertSvcUser" parameterType="kr.co.uplus.ez.api.custMgt.dto.InsertTestIdReqDto">
|
||||
/* custMgt-mapper.xml(insertSvcUser) */
|
||||
INSERT
|
||||
INTO
|
||||
${HUBEZ_COMMON}.EZ_SVC_USER(
|
||||
USER_SEQ,
|
||||
USER_ID,
|
||||
USER_NM,
|
||||
USER_STTUS_CD,
|
||||
PRNTS_USER_SEQ,
|
||||
CUST_SEQ,
|
||||
USER_TP_CD,
|
||||
PWD,
|
||||
BIZR_AUTH_YN,
|
||||
LINE_TP_CD,
|
||||
HP_NO,
|
||||
EMAIL,
|
||||
AUTHCD_080,
|
||||
AUT_CD,
|
||||
LOGIN_FAIL_CNT,
|
||||
REG_ID,
|
||||
REG_DT,
|
||||
CHG_ID,
|
||||
CHG_DT
|
||||
)VALUES(
|
||||
${HUBEZ_ADMIN}.FUN_GET_USER_SEQ(),
|
||||
#{userId},
|
||||
#{userNm},
|
||||
#{userStat},
|
||||
#{prntsUserSeq},
|
||||
${HUBEZ_ADMIN}.FUN_GET_CUST_SEQ(),
|
||||
#{userTpCd},
|
||||
#{userPw},
|
||||
#{bizrAuthYn},
|
||||
#{lineTpCd},
|
||||
#{hpNo},
|
||||
#{email},
|
||||
#{authcd080},
|
||||
#{autCd},
|
||||
#{loginFailCnt},
|
||||
#{regId},
|
||||
NOW(),
|
||||
#{chgId},
|
||||
NOW())
|
||||
</insert>
|
||||
|
||||
<insert id="insertUserInfo" parameterType="kr.co.uplus.ez.api.custMgt.dto.InsertUserReqDto">
|
||||
/* custMgt-mapper.xml(insertUserInfo) */
|
||||
INTO
|
||||
${HUBEZ_COMMON}.EZ_SVC_USER(
|
||||
USER_SEQ,
|
||||
USER_ID,
|
||||
USER_NM,
|
||||
USER_STTUS_CD,
|
||||
PRNTS_USER_SEQ,
|
||||
CUST_SEQ,
|
||||
USER_TP_CD,
|
||||
PWD,
|
||||
LINE_TP_CD,
|
||||
HP_NO,
|
||||
EMAIL,
|
||||
AUT_CD,
|
||||
LOGIN_FAIL_CNT,
|
||||
REG_ID,
|
||||
REG_DT,
|
||||
CHG_ID,
|
||||
CHG_DT
|
||||
) SELECT
|
||||
${HUBEZ_ADMIN}.FUN_GET_USER_SEQ(),
|
||||
#{userId},
|
||||
#{userNm},
|
||||
#{userStat},
|
||||
esu.USER_SEQ,
|
||||
esu.CUST_SEQ,
|
||||
'02', -- 사용자ID
|
||||
#{userPw},
|
||||
'NORMAL',
|
||||
#{mdn},
|
||||
#{userEmail},
|
||||
'H002',
|
||||
0,
|
||||
#{userId},
|
||||
NOW(),
|
||||
#{userId},
|
||||
NOW()
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
WHERE esu.USER_ID = #{adminId}
|
||||
</insert>
|
||||
|
||||
<select id="selectUserInfoCnt" parameterType="kr.co.uplus.ez.api.custMgt.dto.InsertUserReqDto">
|
||||
/* custMgt-mapper.xml(selectUserInfoCnt) */
|
||||
SELECT
|
||||
COUNT(*)
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_SVC_USER
|
||||
AND USER_ID = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="selectSubsDetailInfo" parameterType="kr.co.uplus.ez.api.custMgt.dto.SubsDetailReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.SubsDetail">
|
||||
/* custMgt-mapper.xml(selectSubsDetailInfo) */
|
||||
SELECT
|
||||
esi.SUBS_ID ,
|
||||
-- 기본정보
|
||||
eci.CUST_NM as CUST_NM ,
|
||||
eci.REPR_NM,
|
||||
(
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'CUST_TY_CD'
|
||||
AND DTL_CD = eci.CUST_TY_CD) AS CUST_TYPE,
|
||||
eci.ZIPCD AS ADR1,
|
||||
eci.ADDR1 AS ADR2,
|
||||
eci.ADDR2 AS ADR3,
|
||||
eci.BIZRNO AS B_REG_NO,
|
||||
eci.CORPNO AS CPR_REG_NO,
|
||||
-- 사용정보
|
||||
DATE_FORMAT(esi.OPN_DT, '%Y-%m-%d') AS SUBS_DT,
|
||||
esi.PROD_CD,
|
||||
(
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'SUBS_STTUS_CD'
|
||||
AND DTL_CD = esi.SUBS_STTUS_CD) AS STAT,
|
||||
(
|
||||
SELECT
|
||||
PROD_NM
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_PROD_INFO
|
||||
WHERE
|
||||
PROD_CD = esi.PROD_CD) AS PLAN,
|
||||
esi.ENTR_NO as SUBS_NO,
|
||||
esi.ATTRCTOR_ID AS CHANNEL_ID,
|
||||
esi.ATTRCTOR_NM AS CHANNEL_NM,
|
||||
esi.SUBSMNGR_ID AS ADMIN_ID,
|
||||
esi.SUBSMNGR_NM AS ADMIN_NM,
|
||||
-- 사용자 데이터
|
||||
esu.USER_ID as SERVICE_ID,
|
||||
esu.USER_SEQ,
|
||||
(
|
||||
SELECT
|
||||
DTL_CD_NM
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_CD_DTL
|
||||
WHERE
|
||||
GRP_CD = 'SVCUSER_TP_CD'
|
||||
AND DTL_CD = esu.USER_TP_CD) AS USE_AUTH,
|
||||
esu.USER_NM,
|
||||
esu.HP_NO,
|
||||
IFNULL((SELECT CFWD_AMT + CFWD_RSTRT_BLNC FROM ${HUBEZ_ADMIN}.EZ_USER_LMT WHERE USER_SEQ = esi.USER_SEQ AND LMT_YM = DATE_FORMAT(NOW(), '%Y%m%d')), 0) AS CARRY_OVER,
|
||||
(SELECT COUNT(*) FROM ${HUBEZ_COMMON}.EZ_SVC_USER WHERE PRNTS_USER_SEQ =esu.USER_SEQ) AS USER_CNT
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_SUBS_INFO esi
|
||||
INNER JOIN ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
ON
|
||||
esu.USER_SEQ = esi.USER_SEQ
|
||||
INNER JOIN ${HUBEZ_COMMON}.EZ_CUST_INFO eci
|
||||
ON
|
||||
eci.CUST_SEQ = esi.CUST_SEQ
|
||||
AND esi.CUST_SEQ = esu.CUST_SEQ
|
||||
WHERE 1 = 1
|
||||
AND esu.USER_TP_CD = '01'
|
||||
AND esu.USER_ID = #{serviceId}
|
||||
</select>
|
||||
|
||||
<update id="updateAdminInfo" parameterType="kr.co.uplus.ez.api.custMgt.dto.SubsDetail">
|
||||
/* custMgt-mapper.xml(updateAdminInfo) */
|
||||
UPDATE ${HUBEZ_COMMON}.EZ_SUBS_INFO
|
||||
SET
|
||||
CHG_ID = #{serviceId}
|
||||
,CHG_DT = NOW()
|
||||
<if test="adminId != null and adminId != ''">
|
||||
,SUBSMNGR_ID= #{adminId}
|
||||
</if>
|
||||
<if test="adminNm != null and adminNm != ''">
|
||||
,SUBSMNGR_NM= #{adminNm}
|
||||
</if>
|
||||
WHERE USER_SEQ = (SELECT esi.USER_SEQ
|
||||
FROM ${HUBEZ_COMMON}.EZ_SUBS_INFO esi
|
||||
INNER JOIN ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
ON esu.USER_SEQ = esi.USER_SEQ
|
||||
WHERE esu.USER_TP_CD = '01'
|
||||
AND esu.USER_ID = #{serviceId})
|
||||
</update>
|
||||
|
||||
<update id="updateUserInfo" parameterType="kr.co.uplus.ez.api.custMgt.dto.UpdateUserReqDto">
|
||||
/* custMgt-mapper.xml(updateUserInfo) */
|
||||
UPDATE ${HUBEZ_COMMON}.EZ_SVC_USER
|
||||
SET
|
||||
CHG_ID = #{userId}
|
||||
,CHG_DT = NOW()
|
||||
<if test="userNm != null and userNm != ''">
|
||||
,USER_NM = #{userNm}
|
||||
</if>
|
||||
<if test="userStat != null and userStat != ''">
|
||||
,USER_STTUS_CD = #{userStat}
|
||||
</if>
|
||||
<if test="userPw != null and userPw != ''">
|
||||
,PWD = #{userPw}
|
||||
</if>
|
||||
<if test="mdn != null and mdn != ''">
|
||||
,HP_NO = #{mdn}
|
||||
</if>
|
||||
<if test="userEmail != null and userEmail != ''">
|
||||
,EMAIL = #{userEmail}
|
||||
</if>
|
||||
WHERE USER_ID = #{userId}
|
||||
</update>
|
||||
|
||||
<select id="selectCarryOverList" parameterType="kr.co.uplus.ez.api.custMgt.dto.CarryOverListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.CarryOver">
|
||||
/* custMgt-mapper.xml(selectCarryOverList) */
|
||||
SELECT
|
||||
eul.FX_LMT_AMT + CFWD_AMT AS START_AMOUNT
|
||||
,eul.FX_USE_AMT + eul.CFWDR_USE_AMT AS USE_AMOUNT
|
||||
,eul.FX_BLNC + eul.CFWD_RSTRT_BLNC AS KRRR_AMOUNT
|
||||
,EXTNC_AMT AS EXTSH_AMOUNT
|
||||
,esu.USER_ID
|
||||
,DATE_FORMAT(NOW() , '%Y-%m-%d') AS DATE
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
INNER JOIN ${HUBEZ_ADMIN}.EZ_USER_LMT eul
|
||||
ON
|
||||
eul.USER_SEQ = esu.USER_SEQ
|
||||
AND eul.LMT_YM BETWEEN DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 4 MONTH) , '%Y%m') AND DATE_FORMAT(NOW() , '%Y%m')
|
||||
WHERE
|
||||
esu.USER_ID = #{serviceId}
|
||||
ORDER BY
|
||||
eul.LMT_YM DESC
|
||||
</select>
|
||||
|
||||
<select id="selectImUser" parameterType="kr.co.uplus.ez.common.data.ImUser" resultType="kr.co.uplus.ez.common.data.ImUser">
|
||||
/* custMgt-mapper.xml(selectImUser) */
|
||||
SELECT
|
||||
LOGIN_ID
|
||||
, NAME
|
||||
, USER_CODE
|
||||
, STATUS
|
||||
, EMAIL
|
||||
, MOBILE
|
||||
, EX_EMP_DV_CD
|
||||
, EX_PROVUSERTYPE
|
||||
, EX_HOFC_STTS_CD
|
||||
, EX_DEPT_CD
|
||||
, EX_DEPT_LEVEL
|
||||
FROM ${HUBEZ_IMDB}.EZ_IM_USER
|
||||
WHERE STATUS = 1
|
||||
AND LOGIN_ID = #{loginId}
|
||||
</select>
|
||||
|
||||
<select id="selectSvcUserListTotalCnt" parameterType="kr.co.uplus.ez.api.custMgt.dto.MemberListReqDto" resultType="int">
|
||||
/* custMgt-mapper.xml(selectSvcUserListTotalCnt) */
|
||||
SELECT
|
||||
COUNT(*)
|
||||
FROM ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
WHERE 1 = 1
|
||||
<include refid="svcUserListCondition"></include>
|
||||
</select>
|
||||
|
||||
<select id="selectSvcUserList" parameterType="kr.co.uplus.ez.api.custMgt.dto.MemberListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.MemberList">
|
||||
/* custMgt-mapper.xml(selectSvcUserList) */
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO,
|
||||
A.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
USER_NM
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_COMMON}.EZ_CD_DTL WHERE GRP_CD = 'SVCUSER_TP_CD' AND DTL_CD = esu.USER_TP_CD) AS USER_TYPE
|
||||
,(SELECT USER_ID FROM ${HUBEZ_COMMON}.EZ_SVC_USER WHERE USER_SEQ = esu.PRNTS_USER_SEQ) AS ADMIN_ID
|
||||
,USER_ID
|
||||
,DATE_FORMAT(esu.REG_DT, '%Y-%m-%d') AS REG_DT
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_COMMON}.EZ_CD_DTL WHERE GRP_CD = 'SVCUSER_STTUS_CD' AND DTL_CD = esu.USER_STTUS_CD) AS USER_STAT
|
||||
FROM ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
WHERE 1 = 1
|
||||
<include refid="svcUserListCondition"></include>
|
||||
ORDER BY
|
||||
esu.REG_DT DESC
|
||||
LIMIT #{page}, #{pagePerRows}) A,
|
||||
( SELECT @ROWNUM := #{page} ) AS R
|
||||
</select>
|
||||
|
||||
<sql id="svcUserListCondition">
|
||||
<if test="startDt != null and startDt != ''">
|
||||
AND esu.REG_DT <![CDATA[ >= ]]> STR_TO_DATE(REPLACE( #{startDt}, '-', '' ), '%Y%m%d')
|
||||
</if>
|
||||
<if test="endDt != null and endDt != ''">
|
||||
AND esu.REG_DT <![CDATA[ <= ]]> STR_TO_DATE(REPLACE( #{endDt}, '-', '' ), '%Y%m%d')
|
||||
</if>
|
||||
<if test="searchType1 != null and searchType1 != ''">
|
||||
AND esu.USER_STTUS_CD = #{searchType1}
|
||||
</if>
|
||||
<if test="searchType2 != null and searchType2 != ''">
|
||||
AND esu.USER_TP_CD = #{searchType2}
|
||||
</if>
|
||||
<if test="searchType3 != null and searchType3 != ''">
|
||||
<if test="searchType3 == '01'">
|
||||
AND esu.USER_ID = #{searchText1}
|
||||
</if>
|
||||
<if test="searchType3 == '02'">
|
||||
AND UPPER(esu.USER_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||
</if>
|
||||
<if test="searchType3 == '03'">
|
||||
AND esu.USER_SEQ = (SELECT PRNTS_USER_SEQ FROM ${HUBEZ_COMMON}.EZ_SVC_USER WHERE USER_ID = #{searchText1})
|
||||
</if>
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="selectMemberDetail" parameterType="kr.co.uplus.ez.api.custMgt.dto.MemberDetailReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.MemberDetailRes">
|
||||
/* custMgt-mapper.xml(selectMemberDetail) */
|
||||
SELECT
|
||||
USER_NM
|
||||
,DATE_FORMAT(esu.REG_DT, '%Y-%m-%d') AS REG_DT
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_COMMON}.EZ_CD_DTL WHERE GRP_CD = 'SVCUSER_TP_CD' AND DTL_CD = esu.USER_TP_CD) AS USER_TYPE
|
||||
,USER_ID
|
||||
,(SELECT USER_ID FROM ${HUBEZ_COMMON}.EZ_SVC_USER where USER_SEQ = esu.PRNTS_USER_SEQ) AS ADMIN_ID
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_COMMON}.EZ_CD_DTL WHERE GRP_CD = 'SVCUSER_STTUS_CD' AND DTL_CD = esu.USER_STTUS_CD) AS USER_STTUS
|
||||
,DATE_FORMAT(esu.LAST_LOGIN_DT, '%Y-%m-%d %H:%i:%s') AS LAST_LOGIN_DT
|
||||
,esu.HP_NO AS MDN
|
||||
,esu.EMAIL
|
||||
FROM ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
WHERE esu.USER_ID = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="selectMemberAdminDetail" parameterType="kr.co.uplus.ez.api.custMgt.dto.MemberAdminDetailReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.MemberAdminDetailRes">
|
||||
/* custMgt-mapper.xml(selectMemberDetail) */
|
||||
SELECT
|
||||
USER_NM
|
||||
,DATE_FORMAT(esu.REG_DT, '%Y-%m-%d') AS REG_DT
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_COMMON}.EZ_CD_DTL WHERE GRP_CD = 'SVCUSER_TP_CD' AND DTL_CD = esu.USER_TP_CD) AS USER_TYPE
|
||||
,USER_ID
|
||||
,(SELECT USER_ID FROM ${HUBEZ_COMMON}.EZ_SVC_USER where USER_SEQ = esu.PRNTS_USER_SEQ) AS ADMIN_ID
|
||||
,(SELECT USER_NM FROM ${HUBEZ_COMMON}.EZ_SVC_USER where USER_SEQ = esu.PRNTS_USER_SEQ) AS ADMIN_NM
|
||||
,(SELECT PROD_AMT * 2 FROM ${HUBEZ_COMMON}.EZ_PROD_INFO WHERE PROD_CD = esi.PROD_CD) AS SENDING_LIMIT
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_COMMON}.EZ_CD_DTL WHERE GRP_CD = 'LINE_TP_CD' AND DTL_CD = esu.LINE_TP_CD) AS LINE_TYPE
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_COMMON}.EZ_CD_DTL WHERE GRP_CD = 'SVCUSER_STTUS_CD' AND DTL_CD = esu.USER_STTUS_CD) AS USER_STTUS
|
||||
,DATE_FORMAT(esu.LAST_LOGIN_DT, '%Y-%m-%d %H:%i:%s') AS LAST_LOGIN_DT
|
||||
,(SELECT MEMO FROM ${HUBEZ_COMMON}.EZ_USER_MEMO EUM ORDER BY REG_DT LIMIT 1) AS MEMO
|
||||
,esu.HP_NO AS MDN
|
||||
,esu.EMAIL
|
||||
FROM ${HUBEZ_COMMON}.EZ_SUBS_INFO esi
|
||||
INNER JOIN ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
ON esu.USER_SEQ = esi.USER_SEQ
|
||||
AND esu.USER_ID = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="selectMemberDetailListTotalCnt" parameterType="kr.co.uplus.ez.api.custMgt.dto.MemberDetailReqDto" resultType="int">
|
||||
/* custMgt-mapper.xml(selectMemberDetailListTotalCnt) */
|
||||
SELECT
|
||||
COUNT(*)
|
||||
FROM ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
WHERE esu.PRNTS_USER_SEQ = (SELECT USER_SEQ FROM ${HUBEZ_COMMON}.EZ_SVC_USER WHERE USER_ID = #{userId})
|
||||
</select>
|
||||
|
||||
<select id="selectMemberDetailList" parameterType="kr.co.uplus.ez.api.custMgt.dto.MemberDetailReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.MemberDetail">
|
||||
/* custMgt-mapper.xml(selectMemberDetailList) */
|
||||
<!--
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO,
|
||||
A.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
USER_ID AS userId
|
||||
,USER_NM AS userNm
|
||||
,HP_NO AS mdn
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_COMMON}.EZ_CD_DTL WHERE GRP_CD = 'SVCUSER_STTUS_CD' AND DTL_CD = esu.USER_STTUS_CD) AS userStat
|
||||
FROM ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
WHERE esu.PRNTS_USER_SEQ = (SELECT USER_SEQ FROM ${HUBEZ_COMMON}.EZ_SVC_USER WHERE USER_ID = #{userId})
|
||||
ORDER BY esu.REG_DT DESC
|
||||
LIMIT #{page}, #{pagePerRows}) A,
|
||||
( SELECT @ROWNUM := #{page} ) AS R
|
||||
-->
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO,
|
||||
A.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
USER_ID AS userId
|
||||
,USER_NM AS userNm
|
||||
,HP_NO AS mdn
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_COMMON}.EZ_CD_DTL WHERE GRP_CD = 'SVCUSER_STTUS_CD' AND DTL_CD = esu.USER_STTUS_CD) AS userStat
|
||||
FROM ${HUBEZ_COMMON}.EZ_SVC_USER esu
|
||||
WHERE esu.PRNTS_USER_SEQ = (SELECT USER_SEQ FROM ${HUBEZ_COMMON}.EZ_SVC_USER WHERE USER_ID = #{userId})
|
||||
ORDER BY esu.REG_DT DESC) A,
|
||||
( SELECT @ROWNUM := 0 ) AS R
|
||||
</select>
|
||||
|
||||
<select id="selectMemoList" parameterType="kr.co.uplus.ez.api.custMgt.dto.AllMemoListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.AllMemoList">
|
||||
/* custMgt-mapper.xml(selectMemoList) */
|
||||
SELECT
|
||||
MEMO,
|
||||
EUM.SEQ_NO,
|
||||
EUM.MKER_NM,
|
||||
DATE_FORMAT(EUM.REG_DT, '%Y-%m-%d') AS REG_DT
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_USER_MEMO EUM
|
||||
WHERE
|
||||
EUM.USER_SEQ = (SELECT USER_SEQ FROM ${HUBEZ_COMMON}.EZ_SVC_USER WHERE USER_ID = #{userId})
|
||||
ORDER BY REG_DT
|
||||
</select>
|
||||
|
||||
<select id="selectCustInfoCount" parameterType="String" resultType="int">
|
||||
/* custMgt-mapper.xml(selectCustInfo) */
|
||||
SELECT
|
||||
COUNT(*)
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_CUST_INFO ECI
|
||||
WHERE
|
||||
BIZRNO = #{bizrno}
|
||||
</select>
|
||||
|
||||
<!-- 이용자 아이디 유무 확인. -->
|
||||
<select id="getUserIdCount" parameterType="String" resultType="int">
|
||||
/* custMgt-mapper.xml(getUserIdCount) */
|
||||
SELECT
|
||||
COUNT(*)
|
||||
FROM
|
||||
${HUBEZ_COMMON}.EZ_SVC_USER
|
||||
WHERE
|
||||
USER_ID = #{userId}
|
||||
</select>
|
||||
|
||||
<!-- 고객 일련번호 조회 -->
|
||||
<select id="getCustSeq" parameterType="String" resultType="String">
|
||||
/* custMgt-mapper.xml(getCustSeq) */
|
||||
SELECT IFNULL((SELECT CUST_SEQ FROM ${HUBEZ_COMMON}.EZ_CUST_INFO ECI WHERE ECI.BIZRNO = #{bizrno}), ${HUBEZ_ADMIN}.FUN_GET_CUST_SEQ()) AS CUST_SEQ
|
||||
</select>
|
||||
|
||||
<!-- 이용자 일련번호 조회(채번) -->
|
||||
<select id="getUserSeq" resultType="String">
|
||||
/* custMgt-mapper.xml(getUserSeq) */
|
||||
SELECT ${HUBEZ_ADMIN}.FUN_GET_USER_SEQ()
|
||||
</select>
|
||||
|
||||
<!-- 080인증번호 채번 -->
|
||||
<select id="getAuth080" resultType="String">
|
||||
/* custMgt-mapper.xml(getAuth080) */
|
||||
SELECT ${HUBEZ_ADMIN}.FUN_GET_AUTH080()
|
||||
</select>
|
||||
|
||||
<insert id="insertCustInfo" parameterType="kr.co.uplus.ez.api.custMgt.dto.CustInfo">
|
||||
/* custMgt-mapper.xml(insertCustInfo) */
|
||||
INSERT
|
||||
INTO
|
||||
${HUBEZ_COMMON}.EZ_CUST_INFO(
|
||||
BIZRNO,
|
||||
CUST_NM,
|
||||
CUST_TY_CD,
|
||||
CORPNO,
|
||||
REPR_NM,
|
||||
BRTHDY,
|
||||
ZIPCD,
|
||||
ADDR1,
|
||||
ADDR2,
|
||||
REG_ID,
|
||||
REG_DT,
|
||||
CHG_ID,
|
||||
CHG_DT
|
||||
)VALUES(
|
||||
#{bizrno},
|
||||
#{custNm},
|
||||
#{custTyCd},
|
||||
#{corpno},
|
||||
#{reprNm},
|
||||
#{brthdy},
|
||||
#{zipcd},
|
||||
#{addr1},
|
||||
#{addr2},
|
||||
#{regId},
|
||||
NOW(),
|
||||
#{regId},
|
||||
NOW()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 서비스 이용자 정보 저장 -->
|
||||
<insert id="insertSvcUserInfo" parameterType="kr.co.uplus.ez.api.custMgt.dto.SvcUserInfo">
|
||||
/* custMgt-mapper.xml(insertSvcUserInfo) */
|
||||
INSERT INTO ${HUBEZ_COMMON}.EZ_SVC_USER(
|
||||
USER_SEQ
|
||||
,USER_ID
|
||||
,USER_NM
|
||||
,USER_STTUS_CD
|
||||
,PRNTS_USER_SEQ
|
||||
,CUST_SEQ
|
||||
,USER_TP_CD
|
||||
,PWD
|
||||
,BIZR_AUTH_YN
|
||||
,LINE_TP_CD
|
||||
,HP_NO
|
||||
,EMAIL
|
||||
,AUTHCD_080
|
||||
,AUT_CD
|
||||
,LOGIN_FAIL_CNT
|
||||
,REG_ID
|
||||
,REG_DT
|
||||
,CHG_ID
|
||||
,CHG_DT
|
||||
)VALUES(
|
||||
#{userSeq}
|
||||
, #{userId}
|
||||
, #{userNm}
|
||||
, #{userSttusCd}
|
||||
, #{userSeq}
|
||||
, #{custSeq}
|
||||
, #{userTpCd}
|
||||
, sha2(concat(#{userId}, #{pwd}), 512)
|
||||
, #{bizrAuthYn}
|
||||
, #{lineTpCd}
|
||||
, #{hpNo}
|
||||
, #{email}
|
||||
, #{authcd080}
|
||||
, #{autCd}
|
||||
, 0
|
||||
, #{regId}
|
||||
, now()
|
||||
, #{regId}
|
||||
, now()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 청약 정보 저장 -->
|
||||
<insert id="insertSubsInfo" parameterType="kr.co.uplus.ez.api.custMgt.dto.SubsInfo">
|
||||
/* custMgt-mapper.xml(insertSubsInfo) */
|
||||
INSERT INTO ${HUBEZ_COMMON}.EZ_SUBS_INFO(
|
||||
SUBS_ID
|
||||
,USER_SEQ
|
||||
,CUST_SEQ
|
||||
,SUBS_STTUS_CD
|
||||
,PROD_CD
|
||||
,SUBS_DT
|
||||
,OPN_DT
|
||||
,BIND_DC_YN
|
||||
,REG_ID
|
||||
,REG_DT
|
||||
,CHG_ID
|
||||
,CHG_DT
|
||||
)values(
|
||||
#{subsId}
|
||||
, #{userSeq}
|
||||
, #{custSeq}
|
||||
, #{subsSttusCd}
|
||||
, #{prodCd}
|
||||
, #{subsDt}
|
||||
, NOW()
|
||||
, #{bindDcYn}
|
||||
, #{regId}
|
||||
, NOW()
|
||||
, #{regId}
|
||||
, NOW()
|
||||
)
|
||||
</insert>
|
||||
<select id="selectUserSeq" parameterType="String" resultType="int">
|
||||
/* custMgt-mapper.xml(selectUserSeq) */
|
||||
SELECT USER_SEQ
|
||||
FROM ${HUBEZ_COMMON}.EZ_SVC_USER
|
||||
WHERE USER_ID = #{register}
|
||||
</select>
|
||||
|
||||
<delete id="deleteMemo" parameterType="Map">
|
||||
/* custMgt-mapper.xml(deleteMemo) */
|
||||
DELETE FROM ${HUBEZ_COMMON}.EZ_USER_MEMO
|
||||
WHERE SEQ_NO = #{seqNo}
|
||||
AND USER_SEQ = #{userSeq}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteUserList" parameterType="kr.co.uplus.ez.api.custMgt.dto.DeleteUserReqDto">
|
||||
/* custMgt-mapper.xml(deleteUserList) */
|
||||
DELETE from hubez_common.EZ_SVC_USER
|
||||
WHERE PRNTS_USER_SEQ = (SELECT USER_SEQ FROM ${HUBEZ_COMMON}.EZ_SVC_USER WHERE USER_ID = #{adminId} )
|
||||
<where>
|
||||
USER_ID IN
|
||||
<foreach collection ="list" item="item" index="i" open="("
|
||||
separator="," close=")">
|
||||
#{item.userId}
|
||||
</foreach>
|
||||
</where>
|
||||
and USER_TP_CD = '02'
|
||||
</delete>
|
||||
|
||||
<select id="selectAdminId" parameterType="String">
|
||||
/* custMgt-mapper.xml(selectAdminId) */
|
||||
SELECT USER_ID from ${HUBEZ_COMMON}.EZ_SVC_USER
|
||||
WHERE USER_ID = #{adminId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -17,12 +17,12 @@
|
||||
, T1.LAST_LOGIN_DT
|
||||
, T1.LOGIN_FAIL_CNT
|
||||
, T1.PWD_CHG_DT
|
||||
, T2.AGENCY_CD
|
||||
, T2.ACC_NM
|
||||
, T2.ACC_STTUS_CD
|
||||
, T2.USER_CODE
|
||||
, T2.NAME
|
||||
, T2.STATUS
|
||||
FROM
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER T1
|
||||
LEFT JOIN ${HUBEZ_IMDB}.EZ_MD_ACC T2 ON T1.OPRTR_ID = T2.MD_ID
|
||||
LEFT JOIN ${HUBEZ_IMDB}.EZ_IM_USER T2 ON T1.OPRTR_ID = T2.LOGIN_ID
|
||||
WHERE
|
||||
T1.OPRTR_ID = #{oprtrId}
|
||||
</select>
|
||||
@@ -84,7 +84,7 @@
|
||||
END AS PW_CHANGE_CHECK
|
||||
FROM
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER T1
|
||||
LEFT JOIN ${HUBEZ_IMDB}.EZ_MD_ACC T2 ON T1.OPRTR_ID = T2.MD_ID
|
||||
LEFT JOIN ${HUBEZ_IMDB}.EZ_IM_USER T2 ON T1.OPRTR_ID = T2.LOGIN_ID
|
||||
WHERE 1 = 1
|
||||
<if test="oprtrId != null and oprtrId != ''">
|
||||
AND T1.OPRTR_ID = #{oprtrId}
|
||||
|
||||
@@ -3,5 +3,78 @@
|
||||
|
||||
<mapper namespace="kr.co.uplus.ez.api.servMgt.ServMgtMapper">
|
||||
|
||||
<select id="selectRejectRecvTotalCnt" parameterType="kr.co.uplus.ez.api.servMgt.dto.RejectRecvListReqDto" resultType="int">
|
||||
select
|
||||
count(*)
|
||||
from hubez_common.EZ_SVC_USER esu
|
||||
inner join hubez_common.EZ_SUBS_INFO esi
|
||||
on esi.USER_SEQ = esu.USER_SEQ
|
||||
and esi.SUBS_STTUS_CD in ('02','03','04','99')
|
||||
inner join hubez_common.EZ_CUST_INFO eci
|
||||
on eci.CUST_SEQ = esi.CUST_SEQ
|
||||
where esu.USER_TP_CD = '01'
|
||||
and esu.AUTHCD_080 >= '000000'
|
||||
<include refid="rejectRecvListCondition"></include>
|
||||
</select>
|
||||
<select id="selectRejectRecvList" parameterType="kr.co.uplus.ez.api.servMgt.dto.RejectRecvListReqDto" resultType="kr.co.uplus.ez.api.servMgt.dto.RejectRecvInfo">
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO,
|
||||
A.*
|
||||
FROM
|
||||
(
|
||||
|
||||
select eci.CUST_NM as custNm
|
||||
, eci.BIZRNO as bRegNo
|
||||
, esu.USER_ID
|
||||
, esu.AUTHCD_080
|
||||
, case when esi.SUBS_STTUS_CD = '99' then 'N'
|
||||
else 'Y'
|
||||
end as useYN
|
||||
, DATE_FORMAT(esi.OPN_DT, '%Y-%m-%d') as regDt
|
||||
, case when esi.SUBS_STTUS_CD = '99' then DATE_FORMAT(esi.CHG_DT, '%Y-%m-%d')
|
||||
else DATE_FORMAT(esi.OPN_DT, '%Y-%m-%d')
|
||||
end as chgDt
|
||||
from hubez_common.EZ_SVC_USER esu
|
||||
inner join hubez_common.EZ_SUBS_INFO esi
|
||||
on esi.USER_SEQ = esu.USER_SEQ
|
||||
and esi.SUBS_STTUS_CD in ('02','03','04','99')
|
||||
inner join hubez_common.EZ_CUST_INFO eci
|
||||
on eci.CUST_SEQ = esi.CUST_SEQ
|
||||
where esu.USER_TP_CD = '01'
|
||||
and esu.AUTHCD_080 >= '000000'
|
||||
|
||||
|
||||
<include refid="rejectRecvListCondition"></include>
|
||||
LIMIT #{page}, #{pagePerRows}) A,
|
||||
( SELECT @ROWNUM := #{page} ) AS R
|
||||
</select>
|
||||
|
||||
<sql id="rejectRecvListCondition">
|
||||
<if test='searchType1 != null and searchType1 != ""'>
|
||||
<choose>
|
||||
<when test='searchType1 == "N"'> <!-- 상태 - 중지 -->
|
||||
AND esi.SUBS_STTUS_CD = '99'
|
||||
</when>
|
||||
<otherwise><!-- 상태 - 사용 -->
|
||||
AND esi.SUBS_STTUS_CD != '99'
|
||||
</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
<if test='searchText1 != null and searchText1 != ""'>
|
||||
<if test='searchType2 != null and searchType2 != ""'>
|
||||
<choose>
|
||||
<when test='searchType2 == "custNm"'><!-- 검색조건 - 고객사명 -->
|
||||
and UPPER(eci.CUST_NM) LIKE CONCAT('%' , UPPER(#{searchText1}) , '%')
|
||||
</when>
|
||||
<when test='searchType2 == "bizNo"'><!-- 검색조건 - 사업자번호 -->
|
||||
and eci.BIZRNO = #{searchText1}
|
||||
</when>
|
||||
<when test='searchType2 == "authCd"'><!-- 검색조건 - 인증코드 -->
|
||||
and esu.AUTHCD_080 = #{searchText1}
|
||||
</when>
|
||||
</choose>
|
||||
</if>
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
@@ -3,65 +3,75 @@
|
||||
|
||||
<mapper namespace="kr.co.uplus.ez.api.sysMgt.SysMgtMapper">
|
||||
|
||||
<select id="selectAdmUserTotalCnt" parameterType="kr.co.uplus.ez.api.sysMgt.dto.AdminListReqDto" resultType="int">
|
||||
<select id="selectAdmUserTotalCnt"
|
||||
parameterType="kr.co.uplus.ez.api.sysMgt.dto.AdminListReqDto"
|
||||
resultType="int">
|
||||
/* sysMgt-mapper.xml(selectAdmUserTotalCnt) */
|
||||
SELECT
|
||||
COUNT(*)
|
||||
COUNT(*)
|
||||
FROM
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER T1
|
||||
LEFT JOIN ${HUBEZ_IMDB}.EZ_MD_ACC T2 ON T1.OPRTR_ID = T2.MD_ID
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER T1
|
||||
LEFT JOIN ${HUBEZ_IMDB}.EZ_IM_USER T2 ON T1.OPRTR_ID = T2.LOGIN_ID
|
||||
WHERE 1 = 1
|
||||
<include refid="adminListCondition"></include>
|
||||
</select>
|
||||
|
||||
<select id="selectAdminList" parameterType="kr.co.uplus.ez.api.sysMgt.dto.AdminListReqDto" resultType="kr.co.uplus.ez.api.sysMgt.dto.AdminInfo">
|
||||
<select id="selectAdminList"
|
||||
parameterType="kr.co.uplus.ez.api.sysMgt.dto.AdminListReqDto"
|
||||
resultType="kr.co.uplus.ez.api.sysMgt.dto.AdminInfo">
|
||||
/* sysMgt-mapper.xml(selectAdminList) */
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS NO,
|
||||
A.*
|
||||
@ROWNUM := @ROWNUM + 1 AS NO,
|
||||
A.*
|
||||
FROM
|
||||
(
|
||||
(
|
||||
SELECT
|
||||
(SELECT AUT_NM FROM ${HUBEZ_ADMIN}.EZ_ADM_AUT WHERE AUT_CD = T1.AUT_CD) AS AUTH
|
||||
, T1.OPRTR_NM AS NAME
|
||||
, T1.OPRTR_ID AS ADMIN_ID
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_ADMIN}.EZ_CD_DTL WHERE GRP_CD = 'SUBS_STTUS_CD' AND DTL_CD = T1.STTUS_CD) AS ADMIN_STAT
|
||||
, DATE_FORMAT(T1.REG_DT, '%Y-%m-%d') AS REG_DT
|
||||
(SELECT AUT_NM FROM ${HUBEZ_ADMIN}.EZ_ADM_AUT WHERE AUT_CD = T1.AUT_CD) AS
|
||||
AUTH
|
||||
, T1.OPRTR_NM AS NAME
|
||||
, T1.OPRTR_ID AS ADMIN_ID
|
||||
,(SELECT DTL_CD_NM FROM ${HUBEZ_COMMON}.EZ_CD_DTL WHERE GRP_CD =
|
||||
'SUBS_STTUS_CD' AND DTL_CD = T1.STTUS_CD) AS ADMIN_STAT
|
||||
, DATE_FORMAT(T1.REG_DT, '%Y-%m-%d') AS REG_DT
|
||||
FROM
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER T1
|
||||
LEFT JOIN ${HUBEZ_IMDB}.EZ_MD_ACC T2 ON T1.OPRTR_ID = T2.MD_ID
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER T1
|
||||
LEFT JOIN ${HUBEZ_IMDB}.EZ_IM_USER T2 ON T1.OPRTR_ID = T2.LOGIN_ID
|
||||
WHERE 1 = 1
|
||||
<include refid="adminListCondition"></include>
|
||||
ORDER BY T1.REG_DT DESC
|
||||
LIMIT #{page}, #{pagePerRows}) A,
|
||||
( SELECT @ROWNUM := #{page} ) AS R
|
||||
( SELECT @ROWNUM := #{page} ) AS R
|
||||
</select>
|
||||
|
||||
<select id="selectSearchMadangId" parameterType="kr.co.uplus.ez.api.sysMgt.dto.SearchMadangIdReqDto" resultType="kr.co.uplus.ez.api.sysMgt.dto.SearchMadangId">
|
||||
<select id="selectSearchMadangId"
|
||||
parameterType="kr.co.uplus.ez.api.sysMgt.dto.SearchMadangIdReqDto"
|
||||
resultType="kr.co.uplus.ez.api.sysMgt.dto.SearchMadangId">
|
||||
/* sysMgt-mapper.xml(selectSearchMadangId) */
|
||||
SELECT
|
||||
MD_ID AS madangId
|
||||
,ACC_NM AS name
|
||||
,HP_NO AS mdn
|
||||
,EMAIL AS email
|
||||
,ACC_STTUS_CD AS code
|
||||
LOGIN_ID AS madangId
|
||||
,NAME AS name
|
||||
,MOBILE AS mdn
|
||||
,EMAIL AS email
|
||||
,USER_CODE AS code
|
||||
FROM
|
||||
${HUBEZ_IMDB}.EZ_MD_ACC
|
||||
${HUBEZ_IMDB}.EZ_IM_USER
|
||||
WHERE MD_ID = #{madangId}
|
||||
</select>
|
||||
|
||||
<select id="selectAdminDetail" parameterType="kr.co.uplus.ez.api.sysMgt.dto.AdminDetailReqDto" resultType="kr.co.uplus.ez.api.sysMgt.dto.AdminDetail">
|
||||
<select id="selectAdminDetail"
|
||||
parameterType="kr.co.uplus.ez.api.sysMgt.dto.AdminDetailReqDto"
|
||||
resultType="kr.co.uplus.ez.api.sysMgt.dto.AdminDetail">
|
||||
/* sysMgt-mapper.xml(selectAdminDetail) */
|
||||
SELECT
|
||||
OPRTR_ID AS adminId
|
||||
,OPRTR_NM AS name
|
||||
,HP_NO AS mdn
|
||||
,EMAIL AS email
|
||||
,AUT_CD AS auth
|
||||
,STTUS_CD AS stat
|
||||
/* 유치채널 코드 컬럼 확인 필요 */
|
||||
OPRTR_ID AS adminId
|
||||
,OPRTR_NM AS name
|
||||
,HP_NO AS mdn
|
||||
,EMAIL AS email
|
||||
,AUT_CD AS auth
|
||||
,STTUS_CD AS stat
|
||||
/* 유치채널 코드 컬럼 확인 필요 */
|
||||
FROM
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER
|
||||
WHERE OPRTR_ID = #{adminId}
|
||||
</select>
|
||||
|
||||
@@ -76,119 +86,272 @@
|
||||
AND T1.OPRTR_ID = #{searchText1}
|
||||
</if>
|
||||
<if test="searchText2 != null and searchText2 != ''">
|
||||
AND UPPER(T1.OPRTR_NM) LIKE UPPER('%' + #{searchText2} + '%')
|
||||
AND UPPER(T1.OPRTR_NM) LIKE UPPER('%' + #{searchText2} +
|
||||
'%')
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<insert id="insertAdmUser" parameterType="kr.co.uplus.ez.api.sysMgt.dto.InsertAdminReqDto">
|
||||
<insert id="insertAdmUser"
|
||||
parameterType="kr.co.uplus.ez.api.sysMgt.dto.InsertAdminReqDto">
|
||||
/* sysMgt-mapper.xml(insertAdmUser) */
|
||||
INSERT INTO ${HUBEZ_ADMIN}.EZ_ADM_USER(
|
||||
OPRTR_ID
|
||||
, OPRTR_NM
|
||||
, STTUS_CD
|
||||
, PWD
|
||||
, EMAIL
|
||||
, HP_NO
|
||||
, AUT_CD
|
||||
, PWD_CHG_DT
|
||||
, AUTHCHR_FAIL_CNT
|
||||
, LOGIN_FAIL_CNT
|
||||
, REG_ID
|
||||
, REG_DT
|
||||
, CHG_ID
|
||||
, CHG_DT)
|
||||
INSERT INTO
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER(
|
||||
OPRTR_ID
|
||||
, OPRTR_NM
|
||||
, STTUS_CD
|
||||
, PWD
|
||||
, EMAIL
|
||||
, HP_NO
|
||||
, AUT_CD
|
||||
, PWD_CHG_DT
|
||||
, AUTHCHR_FAIL_CNT
|
||||
, LOGIN_FAIL_CNT
|
||||
, REG_ID
|
||||
, REG_DT
|
||||
, CHG_ID
|
||||
, CHG_DT)
|
||||
VALUES (
|
||||
#{madangId}
|
||||
, #{name}
|
||||
, #{stat}
|
||||
, #{adminPw}
|
||||
, #{email}
|
||||
, #{mdn}
|
||||
, #{auth}
|
||||
, NOW()
|
||||
, 0
|
||||
, 0
|
||||
, #{madangId}
|
||||
, NOW()
|
||||
, #{madangId}
|
||||
, NOW()
|
||||
#{madangId}
|
||||
, #{name}
|
||||
, #{stat}
|
||||
, #{adminPw}
|
||||
, #{email}
|
||||
, #{mdn}
|
||||
, #{auth}
|
||||
, NOW()
|
||||
, 0
|
||||
, 0
|
||||
, #{madangId}
|
||||
, NOW()
|
||||
, #{madangId}
|
||||
, NOW()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="updateAdmUser" parameterType="kr.co.uplus.ez.api.sysMgt.dto.UpdateAdminReqDto">
|
||||
/* sysMgt-mapper.xml(updateAdmUser) */
|
||||
UPDATE ${HUBEZ_ADMIN}.EZ_ADM_USER
|
||||
SET
|
||||
CHG_ID = #{adminId}
|
||||
, CHG_DT = NOW()
|
||||
<if test="adminPw != null and adminPw != ''">
|
||||
, PWD = #{adminPw}
|
||||
, PWD_CHG_DT = NOW()
|
||||
</if>
|
||||
<if test="auth != null and auth != ''">
|
||||
, AUT_CD = #{auth}
|
||||
</if>
|
||||
<select id="selectAuthList"
|
||||
resultType="kr.co.uplus.ez.api.sysMgt.dto.AuthInfo">
|
||||
/* sysMgt-mapper.xml(selectAuthList) */
|
||||
SELECT
|
||||
@ROWNUM := @ROWNUM + 1 AS no,
|
||||
A.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
AUT_CD AS authCd
|
||||
,AUT_NM AS authNm
|
||||
,CASE
|
||||
WHEN USE_YN='Y' THEN '사용'
|
||||
WHEN USE_YN='N' THEN '정지'
|
||||
END AS authStat
|
||||
,DATE_FORMAT(REG_DT, '%Y-%m-%d') AS regDt
|
||||
FROM ${HUBEZ_ADMIN}.EZ_ADM_AUT
|
||||
ORDER BY REG_DT DESC
|
||||
) A, ( SELECT @ROWNUM := 0 ) AS R
|
||||
</select>
|
||||
|
||||
<insert id="insertAuth" parameterType="hashMap">
|
||||
/* sysMgt-mapper.xml(insertAuth) */
|
||||
INSERT INTO
|
||||
${HUBEZ_ADMIN}.EZ_ADM_AUT(
|
||||
AUT_CD
|
||||
,AUT_NM
|
||||
<if test="stat != null and stat != ''">
|
||||
, STTUS_CD = #{stat}
|
||||
,USE_YN
|
||||
</if>
|
||||
WHERE OPRTR_ID = #{adminId}
|
||||
,AUT_DESC
|
||||
,REG_ID
|
||||
,REG_DT
|
||||
,CHG_ID
|
||||
,CHG_DT
|
||||
)
|
||||
VALUES (
|
||||
#{authCd}
|
||||
,#{authNm}
|
||||
<if test="stat != null and stat != ''">
|
||||
<choose>
|
||||
<when test="stat eq '01'">,'Y'</when>
|
||||
<otherwise>,'N'</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
,#{authDesc}
|
||||
,#{regId}
|
||||
,NOW()
|
||||
,#{regId}
|
||||
,NOW()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertAuthMenu" parameterType="hashMap">
|
||||
/* sysMgt-mapper.xml(insertAuth) */
|
||||
INSERT INTO
|
||||
${HUBEZ_ADMIN}.EZ_ADM_AUTMENU(
|
||||
AUT_CD
|
||||
,MENU_NO
|
||||
,REG_ID
|
||||
,REG_DT
|
||||
)
|
||||
VALUES (
|
||||
#{authCd}
|
||||
,#{menuNo}
|
||||
,#{regId}
|
||||
,NOW()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="updateAdmUser"
|
||||
parameterType="kr.co.uplus.ez.api.sysMgt.dto.UpdateAdminReqDto">
|
||||
/* sysMgt-mapper.xml(updateAdmUser) */
|
||||
UPDATE
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER
|
||||
SET
|
||||
CHG_ID = #{adminId}
|
||||
, CHG_DT = NOW()
|
||||
<if test="adminPw != null and adminPw != ''">
|
||||
, PWD = #{adminPw}
|
||||
, PWD_CHG_DT = NOW()
|
||||
</if>
|
||||
<if test="auth != null and auth != ''">
|
||||
, AUT_CD = #{auth}
|
||||
</if>
|
||||
<if test="stat != null and stat != ''">
|
||||
, STTUS_CD = #{stat}
|
||||
</if>
|
||||
WHERE OPRTR_ID = #{adminId}
|
||||
</update>
|
||||
|
||||
<insert id="insertMdAcc" parameterType="kr.co.uplus.ez.api.sysMgt.dto.InsertAdminReqDto">
|
||||
<update id="updateAuth" parameterType="hashMap">
|
||||
/* sysMgt-mapper.xml(updateAuth) */
|
||||
UPDATE ${HUBEZ_ADMIN}.EZ_ADM_AUT
|
||||
SET
|
||||
CHG_ID = #{regId}
|
||||
,CHG_DT = NOW()
|
||||
<if test="authNm != null and authNm != ''">
|
||||
,AUT_NM = #{authNm}
|
||||
</if>
|
||||
<if test="stat != null and stat != ''">
|
||||
<choose>
|
||||
<when test="stat eq '01'">
|
||||
,USE_YN = 'Y'
|
||||
</when>
|
||||
<otherwise>
|
||||
,USE_YN = 'N'
|
||||
</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
<if test="authDesc != null and authDesc != ''">
|
||||
,AUT_DESC = #{authDesc}
|
||||
</if>
|
||||
WHERE
|
||||
AUT_CD = #{authCd}
|
||||
</update>
|
||||
|
||||
<insert id="insertMdAcc"
|
||||
parameterType="kr.co.uplus.ez.api.sysMgt.dto.InsertAdminReqDto">
|
||||
/* sysMgt-mapper.xml(insertMdAcc) */
|
||||
INSERT INTO ${HUBEZ_IMDB}.EZ_MD_ACC(
|
||||
MD_ID
|
||||
, ACC_NM
|
||||
, AGENCY_CD
|
||||
, AGENCY_NM
|
||||
, ACC_STTUS_CD
|
||||
, HP_NO
|
||||
, EMAIL
|
||||
, REG_ID
|
||||
, REG_DT
|
||||
, CHG_ID
|
||||
, CHG_DT)
|
||||
INSERT INTO
|
||||
${HUBEZ_IMDB}.EZ_IM_USER(
|
||||
LOGIN_ID
|
||||
, NAME
|
||||
, USER_CODE
|
||||
, STATUS
|
||||
, MOBILE
|
||||
, EMAIL
|
||||
, REG_ID
|
||||
, REG_DT
|
||||
, CHG_ID
|
||||
, CHG_DT)
|
||||
VALUES (
|
||||
#{madangId}
|
||||
, #{name}
|
||||
, #{stat}
|
||||
, #{adminPw}
|
||||
, #{email}
|
||||
, #{mdn}
|
||||
, #{auth}
|
||||
, NOW()
|
||||
, #{madangId}
|
||||
, NOW()
|
||||
, #{madangId}
|
||||
, NOW()
|
||||
#{madangId}
|
||||
, #{name}
|
||||
, #{stat}
|
||||
, #{adminPw}
|
||||
, #{email}
|
||||
, #{mdn}
|
||||
, #{auth}
|
||||
, NOW()
|
||||
, #{madangId}
|
||||
, NOW()
|
||||
, #{madangId}
|
||||
, NOW()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="updateMdAcc" parameterType="kr.co.uplus.ez.api.sysMgt.dto.UpdateAdminReqDto">
|
||||
<update id="updateMdAcc"
|
||||
parameterType="kr.co.uplus.ez.api.sysMgt.dto.UpdateAdminReqDto">
|
||||
/* sysMgt-mapper.xml(updateMdAcc) */
|
||||
UPDATE ${HUBEZ_IMDB}.EZ_MD_ACC
|
||||
SET
|
||||
CHG_ID
|
||||
, CHG_DT = NOW()
|
||||
<if test="adminPw != null and adminPw != ''">
|
||||
, PWD = #{adminPw}
|
||||
, PWD_CHG_DT = NOW()
|
||||
</if>
|
||||
<if test="stat != null and stat != ''">
|
||||
, STTUS_CD = #{stat}
|
||||
</if>
|
||||
WHERE MD_ID = #{adminId}
|
||||
UPDATE ${HUBEZ_IMDB}.EZ_IM_USER
|
||||
SET
|
||||
CHG_ID
|
||||
, CHG_DT = NOW()
|
||||
<if test="adminPw != null and adminPw != ''">
|
||||
, PWD = #{adminPw}
|
||||
, PWD_CHG_DT = NOW()
|
||||
</if>
|
||||
<if test="stat != null and stat != ''">
|
||||
, STTUS_CD = #{stat}
|
||||
</if>
|
||||
WHERE LOGIN_ID = #{adminId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteAdminList" parameterType="List">
|
||||
/* sysMgt-mapper.xml(deleteAdminList) */
|
||||
DELETE FROM ${HUBEZ_ADMIN}.EZ_ADM_USER
|
||||
DELETE FROM
|
||||
${HUBEZ_ADMIN}.EZ_ADM_USER
|
||||
<where>
|
||||
OPRTR_ID IN
|
||||
<foreach collection="list" item="item" index="i" open="(" separator="," close=")">
|
||||
#{item.adminId}
|
||||
</foreach>
|
||||
</where>
|
||||
OPRTR_ID IN
|
||||
<foreach collection="list" item="item" index="i" open="("
|
||||
separator="," close=")">
|
||||
#{item.adminId}
|
||||
</foreach>
|
||||
</where>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteAuth" parameterType="hashMap">
|
||||
/* sysMgt-mapper.xml(deleteAuth) */
|
||||
DELETE FROM
|
||||
${HUBEZ_ADMIN}.EZ_ADM_AUT
|
||||
WHERE AUT_CD = #{authCd}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteAuthMenu" parameterType="hashMap">
|
||||
/* sysMgt-mapper.xml(deleteAuthMenu) */
|
||||
DELETE FROM
|
||||
${HUBEZ_ADMIN}.EZ_ADM_AUTMENU
|
||||
WHERE AUT_CD = #{authCd}
|
||||
</delete>
|
||||
|
||||
<select id="selectAuthDetail"
|
||||
parameterType="kr.co.uplus.ez.api.sysMgt.dto.AuthDetailReqDto"
|
||||
resultType="kr.co.uplus.ez.api.sysMgt.dto.AuthDetail">
|
||||
SELECT
|
||||
AUT_CD AS authCd
|
||||
,AUT_NM AS authNm
|
||||
,IFNULL(AUT_DESC,'') AS authDesc
|
||||
,CASE
|
||||
WHEN USE_YN='Y' THEN '01'
|
||||
WHEN USE_YN='N' THEN '02'
|
||||
END AS authStat
|
||||
FROM ${HUBEZ_ADMIN}.EZ_ADM_AUT
|
||||
WHERE AUT_CD = #{authCd}
|
||||
</select>
|
||||
|
||||
<select id="selectAuthMemuList"
|
||||
parameterType="kr.co.uplus.ez.api.sysMgt.dto.AuthDetailReqDto"
|
||||
resultType="kr.co.uplus.ez.api.sysMgt.dto.AuthMenu">
|
||||
SELECT
|
||||
T2.MENU_NO AS menuNo
|
||||
,T3.PRNTS_MENU_NO AS upperMenuNo
|
||||
,T3.MENU_NM AS name
|
||||
,T3.MENU_ODRG AS menuOrder
|
||||
,T3.USE_YN AS useYn
|
||||
,T3.MENU_LVL AS menuLv
|
||||
FROM
|
||||
${HUBEZ_ADMIN}.EZ_ADM_AUTMENU AS T2
|
||||
INNER JOIN ${HUBEZ_ADMIN}.EZ_ADM_MENU AS T3
|
||||
ON T2.MENU_NO = T3.MENU_NO
|
||||
WHERE T2.AUT_CD = #{authCd}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user