결합할인여부 수정 기능 개발

This commit is contained in:
Leeminha
2022-12-10 16:00:37 +09:00
parent a480a2e455
commit 9ed312959e
5 changed files with 18 additions and 0 deletions

View File

@@ -248,6 +248,7 @@ public class CustMgtService {
subsDetail.setAdminId(adminInfoReqDto.getAdminId());
subsDetail.setAdminNm(adminInfoReqDto.getAdminNm());
subsDetail.setServiceId(adminInfoReqDto.getServiceId());
subsDetail.setBindDcYn(adminInfoReqDto.getBindDcYn());
try {
custMgtMapper.updateAdminInfo(subsDetail);

View File

@@ -57,5 +57,7 @@ public class SubsDetail implements Serializable {
private String carryOver;
@ApiModelProperty(example = "사용자ID개수", name = "사용자ID개수", dataType = "String")
private String userCnt;
@ApiModelProperty(example = "결합할인여부", name = "결합할인여부", dataType = "String")
private String bindDcYn;
}

View File

@@ -17,5 +17,8 @@ public class UpdateAdminInfoReqDto implements Serializable {
@ApiModelProperty(example = "서비스ID", name = "서비스ID", dataType = "String")
private String serviceId;
@ApiModelProperty(example = "결합할인여부", name = "결합할인여부", dataType = "String")
private String bindDcYn;
}

View File

@@ -385,6 +385,7 @@
esi.ATTRCTOR_NM AS CHANNEL_NM,
esi.SUBSMNGR_ID AS ADMIN_ID,
esi.SUBSMNGR_NM AS ADMIN_NM,
esi.BIND_DC_YN,
-- 사용자 데이터
esu.USER_ID as SERVICE_ID,
esu.USER_SEQ,
@@ -422,6 +423,7 @@
SET
CHG_ID = #{serviceId}
,CHG_DT = NOW()
,BIND_DC_YN = #{bindDcYn}
<if test="adminId != null and adminId != ''">
,SUBSMNGR_ID= #{adminId}
</if>