mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 02:32:20 +09:00
결합할인수정 기능 보완
This commit is contained in:
@@ -102,4 +102,8 @@ public interface CustMgtMapper {
|
||||
int insertLmtdctDtl(LmtdctDtlDto lmtdctDtlDto);
|
||||
/** 한도 초기화 저장 */
|
||||
int insertUserLmt(UserLmtDto lmtdctDtlDto);
|
||||
|
||||
/** 결합할인여부 수정*/
|
||||
int updateBindDcYn(SubsDetail subDetail);
|
||||
|
||||
}
|
||||
|
||||
@@ -242,6 +242,8 @@ public class CustMgtService {
|
||||
* @return updateAdminInfoResDto
|
||||
*/
|
||||
public UpdateAdminInfoResDto updateAdminInfo(UpdateAdminInfoReqDto adminInfoReqDto) {
|
||||
|
||||
logger.info("call 청약정보 수정, param ={}",adminInfoReqDto);
|
||||
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
|
||||
|
||||
SubsDetail subsDetail = new SubsDetail();
|
||||
@@ -249,9 +251,19 @@ public class CustMgtService {
|
||||
subsDetail.setAdminNm(adminInfoReqDto.getAdminNm());
|
||||
subsDetail.setServiceId(adminInfoReqDto.getServiceId());
|
||||
subsDetail.setBindDcYn(adminInfoReqDto.getBindDcYn());
|
||||
subsDetail.setStat(adminInfoReqDto.getStat());
|
||||
subsDetail.setEntrNo(adminInfoReqDto.getSubsNo());
|
||||
|
||||
|
||||
|
||||
try {
|
||||
custMgtMapper.updateAdminInfo(subsDetail);
|
||||
|
||||
//청약상태가 유큐브 개통 상태일 시에만 수정 가능
|
||||
if("유큐브개통".equals(subsDetail.getStat())) {
|
||||
custMgtMapper.updateBindDcYn(subsDetail);
|
||||
logger.info("결합여부 수정. ID={}, 결합여부 ={}, 청약상태 ={}",subsDetail.getAdminId(),subsDetail.getBindDcYn(),subsDetail.getStat());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info(e.toString());
|
||||
// TODO: handle exception
|
||||
|
||||
@@ -59,5 +59,7 @@ public class SubsDetail implements Serializable {
|
||||
private String userCnt;
|
||||
@ApiModelProperty(example = "결합할인여부", name = "결합할인여부", dataType = "String")
|
||||
private String bindDcYn;
|
||||
@ApiModelProperty(example = "유큐브가입번호", name = "유큐브가입번호", dataType = "String")
|
||||
private String entrNo;
|
||||
|
||||
}
|
||||
@@ -21,4 +21,9 @@ public class UpdateAdminInfoReqDto implements Serializable {
|
||||
@ApiModelProperty(example = "결합할인여부", name = "결합할인여부", dataType = "String")
|
||||
private String bindDcYn;
|
||||
|
||||
@ApiModelProperty(example = "청약상태", name = "청약상태", dataType = "String")
|
||||
private String stat;
|
||||
|
||||
@ApiModelProperty(example = "유큐브가입번호", name = "유큐브가입번호", dataType = "String")
|
||||
private String subsNo;
|
||||
}
|
||||
|
||||
@@ -423,7 +423,6 @@
|
||||
SET
|
||||
CHG_ID = #{serviceId}
|
||||
,CHG_DT = NOW()
|
||||
,BIND_DC_YN = #{bindDcYn}
|
||||
<if test="adminId != null and adminId != ''">
|
||||
,SUBSMNGR_ID= #{adminId}
|
||||
</if>
|
||||
@@ -1130,4 +1129,15 @@
|
||||
,now()
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
||||
<update id="updateBindDcYn" parameterType="kr.co.uplus.ez.api.custMgt.dto.SubsDetail">
|
||||
/* custMgt-mapper.xml(updateBindDcYn) */
|
||||
UPDATE hubez_common.EZ_SUBS_INFO
|
||||
SET
|
||||
BIND_DC_YN = #{bindDcYn},
|
||||
CHG_DT = NOW()
|
||||
WHERE
|
||||
ENTR_NO = #{entrNo}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user