어드민 고객 정보 수정 (화면 구성 변경 및 사용자 라인 타입 수정)

This commit is contained in:
kubo8
2022-11-08 16:20:26 +09:00
parent 22408a2178
commit a131c45400
11 changed files with 207 additions and 81 deletions

View File

@@ -73,6 +73,8 @@ public interface CustMgtMapper {
String selectAdminId(String adminId);
int updateAdminInfoTotal(UpdateAdminInfoTotalReqDto updateAdminInfoTotalReqDto);
int updateMemberInfo(UpdateAdminInfoTotalReqDto updateAdminInfoTotalReqDto);
int insertMemo(UpdateAdminInfoTotalReqDto updateAdminInfoTotalReqDto);

View File

@@ -918,7 +918,7 @@ public class CustMgtService {
Map<String, Object> rstAmtMap = new HashMap<String, Object>();
try {
// 1. 사용자 정보 update
custMgtMapper.updateAdminInfoTotal(updateAdminInfoTotalReqDto);
custMgtMapper.updateMemberInfo(updateAdminInfoTotalReqDto);
// 2. 메모정보 insert
if(StringUtils.isNotEmpty(updateAdminInfoTotalReqDto.getMemo())) {

View File

@@ -29,6 +29,8 @@ public class MemberDetailRes implements Serializable {
private String mdn;
@ApiModelProperty(example = "이메일", name = "이메일", dataType = "String")
private String email;
@ApiModelProperty(example = "라인타입", name = "라인타입", dataType = "String")
private String lineType;
/** 홈페이지 로그인 url */
@ApiModelProperty(hidden = true)

View File

@@ -51,6 +51,8 @@ public class SubsDetail implements Serializable {
private String userNm;
@ApiModelProperty(example = "휴대폰번호", name = "휴대폰번호", dataType = "String")
private String mdn;
@ApiModelProperty(example = "이메일", name = "이메일", dataType = "String")
private String email;
@ApiModelProperty(example = "이월누적금액", name = "이월누적금액", dataType = "String")
private String carryOver;
@ApiModelProperty(example = "사용자ID개수", name = "사용자ID개수", dataType = "String")

View File

@@ -12,6 +12,15 @@ public class UpdateAdminInfoTotalReqDto implements Serializable {
@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 hpNo;
@ApiModelProperty(example = "이메일", name = "이메일", dataType = "String")
private String email;
@ApiModelProperty(example = "사용자 상태", name = "사용자 상태", dataType = "String")
private String userStat;

View File

@@ -23,5 +23,7 @@ public class UpdateUserReqDto implements Serializable {
private String userEmail;
@ApiModelProperty(example = "사용자 상태", name = "사용자 상태", dataType = "String")
private String userStat;
@ApiModelProperty(example = "라인타입", name = "라인타입", dataType = "String")
private String lineType;
}

View File

@@ -373,6 +373,7 @@
esu.USER_ID as SERVICE_ID,
esu.USER_SEQ,
esu.HP_NO as mdn,
esu.EMAIL,
(
SELECT
DTL_CD_NM
@@ -421,8 +422,7 @@
<update id="updateUserInfo" parameterType="kr.co.uplus.ez.api.custMgt.dto.UpdateUserReqDto">
/* custMgt-mapper.xml(updateUserInfo) */
UPDATE hubez_common.EZ_SVC_USER
SET
UPDATE hubez_common.EZ_SVC_USER SET
CHG_ID = #{userId}
,CHG_DT = NOW()
<if test="userNm != null and userNm != ''">
@@ -440,7 +440,11 @@
<if test="userEmail != null and userEmail != ''">
,EMAIL = #{userEmail}
</if>
WHERE USER_ID = #{userId}
<if test="lineType != null and lineType != ''">
,LINE_TP_CD = #{lineType}
</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">
@@ -562,6 +566,7 @@
,DATE_FORMAT(esu.LAST_LOGIN_DT, '%Y-%m-%d %H:%i:%s') AS LAST_LOGIN_DT
,esu.HP_NO AS MDN
,esu.EMAIL
,LINE_TP_CD AS LINE_TYPE
FROM hubez_common.EZ_SVC_USER esu
WHERE esu.USER_ID = #{userId}
</select>
@@ -864,6 +869,20 @@
</if>
WHERE USER_ID = #{userId}
</update>
<update id="updateMemberInfo" parameterType="kr.co.uplus.ez.api.custMgt.dto.UpdateAdminInfoTotalReqDto">
/* custMgt-mapper.xml(updateMemberInfo) */
UPDATE hubez_common.EZ_SVC_USER SET
USER_NM = #{userNm},
HP_NO = #{hpNo},
EMAIL = #{email},
USER_STTUS_CD = #{userStat},
LINE_TP_CD = #{lineType},
CHG_ID = #{userId},
CHG_DT = NOW()
WHERE
USER_ID = #{userId}
</update>
<insert id="insertMemo" parameterType="kr.co.uplus.ez.api.custMgt.dto.UpdateAdminInfoTotalReqDto">
/* custMgt-mapper.xml(insertMemo) */