admin_chrg 등록/조회

This commit is contained in:
2023-03-16 13:20:41 +09:00
parent 20f6b0c44d
commit bd4e8d1f6d
11 changed files with 545 additions and 23 deletions

View File

@@ -29,10 +29,14 @@ 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.ChrgListReqDto;
import kr.co.uplus.ez.api.custMgt.dto.ChrgListResDto;
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.InsertChrgReqDto;
import kr.co.uplus.ez.api.custMgt.dto.InsertChrgResDto;
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;
@@ -482,13 +486,57 @@ public class CustMgtController {
}
/**
* date : 2023. 3. 15.
* auth : won
* desc : 충전관리 목록 조회
* @param
* @return
* @
*/
@ApiOperation(value="chrgList", notes = "충전관리 목록 조회")
@ApiResponses({
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
})
@RequestMapping(value="/chrgList", method = {RequestMethod.POST})
@ResponseBody
public ChrgListResDto chrgList(@RequestBody @Valid ChrgListReqDto chrgListReqDto, BindingResult bindingResult) {
if(validComponents.validParameter(bindingResult)) {
return new ChrgListResDto(ApiResponseCode.CM_PARAMETER_ERROR);
}
return custService.chrgList(chrgListReqDto);
}
/**
* date : 2023. 3. 15.
* auth : won
* desc : 충전관리 등록
* @param paramMap
* @return
* @
*/
@ApiOperation(value="insertChrg", notes = "충전관리 등록")
@ApiResponses({
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
})
@RequestMapping(value="/insertChrg", method= {RequestMethod.POST})
@ResponseBody
public InsertChrgResDto insertChrg (@RequestBody @Valid InsertChrgReqDto insertChrgReqDto, BindingResult bindingResult) {
if(validComponents.validParameter(bindingResult)) {
return new InsertChrgResDto(ApiResponseCode.CM_PARAMETER_ERROR);
}
return custService.InsertChrg(insertChrgReqDto);
}
/*2023-03-07 add request 부분
*
* date : 2023. 1. 1.
* auth : ckr
* auth : won
* desc : 요금제 구매 내역 목록 조회
* @param UserLmtListReqDto
* @return UserLmtListRestDto
* @
*/
@ApiOperation(value = "BLNCList", notes = "요금제 구매 내역 목록 조회")
@ApiResponses({
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
@@ -502,15 +550,15 @@ public class CustMgtController {
return custService.BLNCList(userLmtListReqDto);
}
/**
* date : 2023. 1. 1.
* auth : ckr
* auth : won
* desc : 요금제 구매 내역 정보 목록 엑셀 다운로드
*
* @param userLmtListExcelReqDto
* @return UserLmtListExcelResDto
* @
*/
@ApiOperation(value = "BLNCListExcel", notes = "청약 고객 정보 목록 엑셀 다운로드")
@ApiResponses({
@ApiResponse(code = HttpServletResponse.SC_OK, message = "SUCESS")
@@ -525,4 +573,5 @@ public class CustMgtController {
return custService.userLmtListExcel(userLmtListExcelReqDto);
}
*/
}

View File

@@ -111,8 +111,18 @@ public interface CustMgtMapper {
/** 청구정보 카운트 조회.*/
int selectUserLmtListTotalCnt(UserLmtListReqDto userLmtListReqDto);
/** 요금제 구매 내역 정보 목록 조회.*/
List<UserLmtList> selectBLNCLists(UserLmtListReqDto userLmtListReqDto);
/** 요금제 구매 내역 정보 엑셀 목록 조회.*/
List<UserLmtList> selectUserLmtListsExcel(UserLmtListExcelReqDto userLmtListExcelReqDto);
/**충전관리 목록 조회*/
List<ChrgList> selectChrgList(ChrgListReqDto chrgListReqDto);
/**이용자 충전번호 */
String getChrgSeq();
/**충전관리 등록 */
void insertChrgInfo(InsertChrgReqDto insertChrgReqDto);
//2023-03-07 add request 부분
// /** 요금제 구매 내역 정보 목록 조회.*/
// List<UserLmtList> selectBLNCLists(UserLmtListReqDto userLmtListReqDto);
// /** 요금제 구매 내역 정보 엑셀 목록 조회.*/
// List<UserLmtList> selectBLNCListsExcel(UserLmtListExcelReqDto userLmtListExcelReqDto);
}

View File

@@ -115,6 +115,7 @@ public class CustMgtService {
@Value("${mail.templeteCode:E0005}")
private String templeteCode;
/**
* date : 2022. 4. 25. auth : ckr desc : 청약 고객 정보 목록 조회
@@ -997,15 +998,89 @@ public class CustMgtService {
return new InsertUserResDto(ApiResponseCode.SUCCESS);
}
/**
* date : 2023. 3. 15.
* auth : won
* desc : 충전관리 목록 조회
* @param
* @return
*/
public ChrgListResDto chrgList(ChrgListReqDto chrgListReqDto) {
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
List<ChrgList> chrgList= custMgtMapper.selectChrgList(chrgListReqDto);
ChrgListRes chrgListRes = new ChrgListRes();
chrgListRes.setList(chrgList);
return new ChrgListResDto(ApiResponseCode.SUCCESS, chrgListRes);
}
/**
* * date : 2023. 3. 15.
* * auth : won
* * desc : 충전관리 등록
* @param insertChrgReqDto
* @return
*/
public InsertChrgResDto InsertChrg(@Valid InsertChrgReqDto insertChrgReqDto) {
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
Map<Object, Object> reqMap = new HashMap<Object,Object>();
String userId = insertChrgReqDto.getUserId();
// // 1. 사용자 유무 확인
// int getUserIdCount = custMgtMapper.getUserIdCount(insertChrgReqDto.getUserId());
//
// if (getUserIdCount < 1) {
// return new InsertChrgResDto(ApiResponseCode.CE_DUPLICATE_ID);
// }
// // 1. 사용자 유무 확인
SvcUserInfo svcUserInfo = custMgtMapper.selectSvcUserInfo(insertChrgReqDto.getUserId());
if (svcUserInfo == null) {
return new InsertChrgResDto(ApiResponseCode.CM_NOT_FOUND);
}
// 2. 관리자 ID 존재 여부 체크.
SvcUserInfo svcadmUserInfo = custMgtMapper.selectSvcUserInfo(insertChrgReqDto.getAdminId());
if (svcadmUserInfo == null) {
return new InsertChrgResDto(ApiResponseCode.CM_NOT_FOUND);
}
// 3. 충전 정보 등록
String chrgSeq = custMgtMapper.getChrgSeq();
String userSeq = custMgtMapper.getUserSeq();
Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
UserDetails userDetails = (UserDetails) principal;
String regId = userDetails.getUsername();
ChrgInfo chrgInfo = new ChrgInfo();
chrgInfo.setChrgSeq(chrgSeq);
chrgInfo.setUserSeq(userSeq);
chrgInfo.setChrgDiv(insertChrgReqDto.getChrdDiv());
chrgInfo.setStartDt(insertChrgReqDto.getStartDt());
chrgInfo.setEndDt(insertChrgReqDto.getEndDt());
chrgInfo.setChrgAmt(insertChrgReqDto.getChrgAmt());
chrgInfo.setRegId(regId); //로그인 ID
chrgInfo.setChgId(regId); //로그인 ID
custMgtMapper.insertChrgInfo(insertChrgReqDto);
return new InsertChrgResDto(ApiResponseCode.SUCCESS);
}
/* 2023-03-07 add request 부분
* date : 2023. 1. 1.
* auth : ckr
* auth : won
* desc : 요금제 구매 내역 목록 조회
* @param UserLmtListReqDto
* @return UserLmtListRestDto
* @
*/
public UserLmtListResDto BLNCList(UserLmtListReqDto userLmtListReqDto) {
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
@@ -1042,21 +1117,21 @@ public class CustMgtService {
return new UserLmtListResDto(ApiResponseCode.SUCCESS, userLmtListRes);
}
/**
*
* date : 2023. 1. 1.
* auth : ckr
* auth : won
* desc : 요금제 구매 내역 정보 목록 엑셀 다운로드
*
* @param userLmtListExcelReqDto
* @return UserLmtListExcelResDto
*/
public UserLmtListExcelResDto userLmtListExcel(@Valid UserLmtListExcelReqDto userLmtListExcelReqDto) {
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
UserLmtListRes userLmtListRes = new UserLmtListRes();
//리스트 조회
List<UserLmtList> userLmtLists = custMgtMapper.selectUserLmtListsExcel(userLmtListExcelReqDto);
List<UserLmtList> userLmtLists = custMgtMapper.selectBLNCListsExcel(userLmtListExcelReqDto);
Paging paging = new Paging();
paging.setTotalCnt(String.valueOf(userLmtLists.size()));
@@ -1065,6 +1140,6 @@ public class CustMgtService {
return new UserLmtListExcelResDto(ApiResponseCode.SUCCESS,userLmtListRes);
}
*/
}

View File

@@ -0,0 +1,33 @@
package kr.co.uplus.ez.api.custMgt.dto;
import java.io.Serializable;
import lombok.Data;
@SuppressWarnings("serial")
@Data
public class ChrgInfo implements Serializable{
/** 충전 SEQUENCE */
private String chrgSeq;
/** 유저 SEQUENCE */
private String userSeq;
/** 충전구분 */
private String chrgDiv;
/** 충전 시작년월 */
private String startDt;
/** 충전 종료년월 */
private String endDt;
/** 충전금액 */
private String chrgAmt;
/** 사용여부 */
private String useYn;
/** 등록_ID . */
private String regId;
/** 등록_일시 . */
private String regDt;
/** 변경_ID . */
private String chgId;
/** 변경_일시 . */
private String chgDt;
}

View File

@@ -0,0 +1,29 @@
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 ChrgList implements Serializable{
@ApiModelProperty(example = "리스트 번호", name = "리스트 번호", dataType = "Integer")
private Integer no;
@ApiModelProperty(example = "고객사명", name = "고객사명", dataType = "String")
private String custNm;
@ApiModelProperty(example = "고객명", name = "고객명", dataType = "String")
private String userId;
@ApiModelProperty(example = "충전구분", name = "충전구분", dataType = "String")
private String chrdDiv;
@ApiModelProperty(example = "충전시작일", name = "충전시작일", dataType = "String")
private String startDt;
@ApiModelProperty(example = "충전종료일", name = "충전종료일", dataType = "String")
private String endDt;
@ApiModelProperty(example = "충전금액", name = "충전금액", dataType = "String")
private String chrgAmt;
@ApiModelProperty(example = "사용여부", name = "사용여부", dataType = "String")
private String useYn;
@ApiModelProperty(example = "사업자명", name = "사업자명", dataType = "String")
private String bizrNo;
}

View File

@@ -0,0 +1,24 @@
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 ChrgListReqDto implements Serializable{
@ApiModelProperty(example = "조회 시작 날짜", name = "조회 시작 날짜", notes = "YYYYMM", dataType = "String")
private String startDt;
@ApiModelProperty(example = "조회 종료 날짜", name = "조회 종료 날짜", notes = "YYYYMM", dataType = "String")
private String endDt;
@ApiModelProperty(example = "상세검색", name = "상세검색", notes = "항목 : 고객사명(01)/가입번호(02)/서비스ID(03)", dataType = "String")
private String searchType3;
@ApiModelProperty(example = "검색어 (입력항목)", name = "검색어 (입력항목)", dataType = "String")
private String searchText1;
@ApiModelProperty(example = "페이지당 조회할 목록 수", name = "페이지당 조회할 목록 수", dataType = "String")
private int pagePerRows;
@ApiModelProperty(example = "현재 페이지", name = "현재 페이지", dataType = "String")
private int page;
}

View File

@@ -0,0 +1,14 @@
package kr.co.uplus.ez.api.custMgt.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 ChrgListRes implements Serializable{
private List<ChrgList> list;
}

View File

@@ -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 ChrgListResDto extends ResponseMessage implements Serializable{
private ChrgListRes data;
public ChrgListResDto() {
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
}
public ChrgListResDto(ApiResponseCode returnStr) {
this.retCode = returnStr.getResultCode();
this.retMsg = returnStr.getResultMsg();
}
public ChrgListResDto(ApiResponseCode returnStr, ChrgListRes data) {
this.retCode = returnStr.getResultCode();
this.retMsg = returnStr.getResultMsg();
this.data = data;
}
}

View File

@@ -0,0 +1,38 @@
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 InsertChrgReqDto implements Serializable{
@ApiModelProperty(example = "관리자 ID", name = "관리자 ID", dataType = "String")
private String adminId;
@ApiModelProperty(example = "리스트 번호", name = "리스트 번호", dataType = "Integer")
private Integer no;
@ApiModelProperty(example = "고객사명", name = "고객사명", dataType = "String")
private String custNm;
@ApiModelProperty(example = "고객명", name = "고객명", dataType = "String")
private String userId;
@ApiModelProperty(example = "충전구분", name = "충전구분", dataType = "String")
private String chrdDiv;
@ApiModelProperty(example = "충전시작일", name = "충전시작일", dataType = "String")
private String startDt;
@ApiModelProperty(example = "충전종료일", name = "충전종료일", dataType = "String")
private String endDt;
@ApiModelProperty(example = "충전금액", name = "충전금액", dataType = "String")
private String chrgAmt;
@ApiModelProperty(example = "사용여부", name = "사용여부", dataType = "String")
private String useYn;
@ApiModelProperty(example = "사업자명", name = "사업자명", dataType = "String")
private String bizrNo;
}

View File

@@ -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 InsertChrgResDto extends ResponseMessage implements Serializable{
private InsertChrgResDto data;
public InsertChrgResDto() {
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
}
public InsertChrgResDto(ApiResponseCode returnStr) {
this.retCode = returnStr.getResultCode();
this.retMsg = returnStr.getResultMsg();
}
public InsertChrgResDto(ApiResponseCode returnStr, InsertChrgResDto data) {
this.retCode = returnStr.getResultCode();
this.retMsg = returnStr.getResultMsg();
this.data = data;
}
}

View File

@@ -1144,8 +1144,124 @@
ENTR_NO = #{entrNo}
</update>
<select id="selectBLNCLists" resultType="kr.co.uplus.ez.api.custMgt.dto.UserLmtDto" parameterType="Map" >
/* custMgt-mapper.xml(selectSubsLists) */
<!-- 충전관리 목록 조회 -->
<select id="selectChrgList">
SELECT
@ROWNUM := @ROWNUM + 1 AS NO
, eci.CUST_NM
, esu.USER_ID
, ecm.CHRG_DIV
, ecm.STRT_YM
, ecm.END_YM
, ecm.CHRG_AMT
, ecm.USE_YN
, eci.BIZRNO
FROM hubez_admin.EZ_CHARGE_MNG ecm
INNER JOIN hubez_common.EZ_SVC_USER esu on esu.USER_SEQ = ecm.USER_SEQ
INNER JOIN hubez_common.EZ_CUST_INFO eci on eci.CUST_SEQ = esu.CUST_SEQ
WHERE ecm.USE_YN ='Y' AND 1 =1
<if test="startDt != null and startDt != ''">
AND esi.SUBS_DT <![CDATA[ >= ]]> STR_TO_DATE(concat(REPLACE(#{startDt}, '-', '' ),'000000') , '%Y%m%')
</if>
<if test="endDt != null and endDt != ''">
AND esi.SUBS_DT <![CDATA[ <= ]]> STR_TO_DATE(concat(REPLACE(#{endDt}, '-', '' ),'235959'), '%Y%m%')
</if>
<if test="searchType3 != null and searchType3 != ''">
<if test="searchType3 == '01' and searchText1 != null and searchText1 != ''">
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
</if>
<if test="searchType3 == '02' and searchText1 != null and searchText1 != ''">
AND UPPER(eci.BIZRNO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
</if>
<if test="searchType3 == '03' and searchText1 != null and searchText1 != ''">
AND UPPER(esu.USER_ID) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
</if>
</if>
ORDER BY esu.USER_ID DESC
</select>
<!-- 이용자 충전번호 조회(채번) -->
<select id="getChrgSeq" resultType="String">
/* custMgt-mapper.xml(getChrgSeq) */
SELECT hubez_common.FUN_NEXT_SEQ('CHRG_SEQ')
</select>
<!-- 충전관리 등록 -->
<insert id="insertChrgInfo">
INSERT INTO hubez_admin.EZ_CHARGE_MNG (
CHRG_SEQ
, USER_SEQ
, CHRG_DIV
, STRT_YM
, END_YM
, CHRG_AMT
, USE_YN
, REG_ID
, REG_DT
, CHG_ID
, CHG_DT
)
) VALUES(
#{chrgSeq}
, #{userSeq}
, 'Y'
, #{startDt}
, #{endDt}
, #{chrgAmt}
, #{regId}
, NOW()
, #{regId}
, NOW()
)
</insert>
<update id="updateChrg">
hubez_admin.EZ_CHARGE_MNG
set
ecm.USE_YN ='N'
WHERE USER_SEQ = (SELECT USER_SEQ FROM hubez_common.EZ_SVC_USER WHERE USER_ID = #{userId})
</update>
<insert id="addChrg">
INSERT INTO hubez_admin.EZ_CHARGE_MNG (
CHRG_SEQ
, USER_SEQ
, CHRG_DIV
, STRT_YM
, END_YM
, CHRG_AMT
, USE_YN
, REG_ID
, REG_DT
, CHG_ID
, CHG_DT
)
) VALUES(
#{chrgSeq}
, #{userSeq}
, 'Y'
, #{startDt}
, #{endDt}
, #{chrgAmt}
, #{regId}
, NOW()
, #{regId}
, NOW()
)
</insert>
<update id="deleteChrg">
UPDATE
hubez_admin.EZ_CHARGE_MNG
set
ecm.USE_YN ='N'
WHERE USER_SEQ = (SELECT USER_SEQ FROM hubez_common.EZ_SVC_USER WHERE USER_ID = #{userId})
</update>
<!-- 2023-03-07 add request 부분
<select id="selectBLNCLists" parameterType="kr.co.uplus.ez.api.custMgt.dto.UserLmtListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.UserLmtList" >
/* custMgt-mapper.xml(selectBLNCLists) */
SELECT
@ROWNUM := @ROWNUM + 1 AS NO
, eci.CUST_SEQ
@@ -1211,15 +1327,88 @@
</if>
<if test="searchType3 != null and searchType3 != ''">
<if test="searchType3 == '01' and searchText1 != null and searchText1 != ''">
AND UPPER(eci.CUST_SEQ) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
</if>
<if test="searchType3 == '02' and searchText1 != null and searchText1 != ''">
AND UPPER(esi.ENTR_NO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
</if>
<if test="searchType3 == '03' and searchText1 != null and searchText1 != ''">
<if test="searchType3 == '02' and searchText1 != null and searchText1 != ''">
AND UPPER(eci.BIZRNO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
</if>
</if>
ORDER BY eci.CUST_SEQ DESC
</select>
<select id="selectBLNCListsExcel" parameterType="kr.co.uplus.ez.api.custMgt.dto.UserLmtListReqDto" resultType="kr.co.uplus.ez.api.custMgt.dto.UserLmtList">
SELECT
@ROWNUM := @ROWNUM + 1 AS NO
, eci.CUST_SEQ
, eul.LMT_YM
, eul.FX_LMT_AMT
, eul.CFWD_AMT
, eul.FX_LMT_AMT + eul.CFWD_AMT AS TOTAL_AMT
, eul.SMS_USE_AMT + eul.MMS_USE_AMT + eul.LMS_USE_AMT + eul.MMS_USE_AMT AS YM_USE_AMT
, CASE WHEN (eul.FX_LMT_AMT + eul.CFWD_AMT)-(eul.SMS_USE_AMT + eul.MMS_USE_AMT+ eul.LMS_USE_AMT + eul.MMS_USE_AMT) <![CDATA[<]]>0 THEN '-'
ELSE (eul.FX_LMT_AMT + eul.CFWD_AMT)-(eul.SMS_USE_AMT + eul.MMS_USE_AMT + eul.LMS_USE_AMT + eul.MMS_USE_AMT)
END AS YM_BLNC
FROM hubez_admin.EZ_USER_LMT eul
INNER JOIN hubez_common.EZ_SUBS_INFO esi on eul.USER_SEQ = esi.USER_SEQ
INNER JOIN hubez_common.EZ_CUST_INFO eci on esi.CUST_SEQ =eci.CUST_SEQ
LEFT JOIN hubez_imdb.EZ_IM_USER eiu on eiu.LOGIN_ID = esi.ATTRCTOR_ID
WHERE 1 = 1
<if test="startDt != null and startDt != ''">
AND eul.REG_DT <![CDATA[ >= ]]> STR_TO_DATE(concat(REPLACE(#{startDt}, '-', '' ),'000000') , '%Y%m%d%H%i%s')
</if>
<if test="endDt != null and endDt != ''">
AND esi.SUBS_STTUS_CD <![CDATA[ <= ]]> STR_TO_DATE(concat(REPLACE(#{endDt}, '-', '' ),'235959'), '%Y%m%d%H%i%s')
</if>
<if test="searchType1 != null and searchType1 != ''">
AND esi.SUBS_STTUS_CD = #{searchType1}
</if>
<if test="searchType2 != null and searchType2 != ''">
<if test="searchType2 == '01'">
AND eiu.EX_PROVUSERTYPE is null
</if>
<if test="searchType2 == '02' ">
AND eiu.EX_PROVUSERTYPE = 'DEALER'
</if>
<if test="searchType2 == '03' ">
AND eiu.EX_PROVUSERTYPE in ( 'CCS-CS1'
, 'CCS-CB1'
, 'CCS-CB2'
, 'CCS-CJ'
, 'CCS-LS2'
, 'CCS-LS3'
, 'CCS-M'
, 'CCS-MJ'
, 'CCS-P'
, 'CCS-P2'
, 'CCS-D'
, 'CCS-G'
, 'CCS-S')
</if>
<if test="searchType2 == '04' ">
AND eiu.EX_PROVUSERTYPE not in ( 'CCS-CS1'
, 'CCS-CB1'
, 'CCS-CB2'
, 'CCS-CJ'
, 'CCS-LS2'
, 'CCS-LS3'
, 'CCS-M'
, 'CCS-MJ'
, 'CCS-P'
, 'CCS-P2'
, 'CCS-D'
, 'CCS-G'
, 'CCS-S', 'DEALER')
</if>
</if>
<if test="searchType3 != null and searchType3 != ''">
<if test="searchType3 == '01' and searchText1 != null and searchText1 != ''">
AND UPPER(esi.ENTR_NO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
</if>
<if test="searchType3 == '02' and searchText1 != null and searchText1 != ''">
AND UPPER(eci.BIZRNO) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
</if>
</if>
ORDER BY eci.CUST_SEQ DESC
</select>
-->
</mapper>