mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 20:53:52 +09:00
결합할인수정 기능 보완
This commit is contained in:
@@ -90,7 +90,7 @@
|
|||||||
<td colspan="4"><input type="text" disabled v-model="subsNo" /></td>
|
<td colspan="4"><input type="text" disabled v-model="subsNo" /></td>
|
||||||
<th>결합할인여부</th>
|
<th>결합할인여부</th>
|
||||||
<td colspan="1">
|
<td colspan="1">
|
||||||
<select name="" id="" v-model="bindDcYn">
|
<select name="" id="" v-bind:disabled="stat != '유큐브개통'" v-model="bindDcYn">
|
||||||
<option value="Y">Y</option>
|
<option value="Y">Y</option>
|
||||||
<option value="N">N</option>
|
<option value="N">N</option>
|
||||||
</select>
|
</select>
|
||||||
@@ -349,6 +349,8 @@ export default {
|
|||||||
this.row.adminId = this.adminId;
|
this.row.adminId = this.adminId;
|
||||||
this.row.adminNm = this.adminNm;
|
this.row.adminNm = this.adminNm;
|
||||||
this.row.bindDcYn = this.bindDcYn;
|
this.row.bindDcYn = this.bindDcYn;
|
||||||
|
this.row.stat = this.stat;
|
||||||
|
this.row.subsNo = this.subsNo;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await custMgtApi.updateAdminInfo(this.row);
|
const response = await custMgtApi.updateAdminInfo(this.row);
|
||||||
|
|||||||
@@ -102,4 +102,8 @@ public interface CustMgtMapper {
|
|||||||
int insertLmtdctDtl(LmtdctDtlDto lmtdctDtlDto);
|
int insertLmtdctDtl(LmtdctDtlDto lmtdctDtlDto);
|
||||||
/** 한도 초기화 저장 */
|
/** 한도 초기화 저장 */
|
||||||
int insertUserLmt(UserLmtDto lmtdctDtlDto);
|
int insertUserLmt(UserLmtDto lmtdctDtlDto);
|
||||||
|
|
||||||
|
/** 결합할인여부 수정*/
|
||||||
|
int updateBindDcYn(SubsDetail subDetail);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -242,6 +242,8 @@ public class CustMgtService {
|
|||||||
* @return updateAdminInfoResDto
|
* @return updateAdminInfoResDto
|
||||||
*/
|
*/
|
||||||
public UpdateAdminInfoResDto updateAdminInfo(UpdateAdminInfoReqDto adminInfoReqDto) {
|
public UpdateAdminInfoResDto updateAdminInfo(UpdateAdminInfoReqDto adminInfoReqDto) {
|
||||||
|
|
||||||
|
logger.info("call 청약정보 수정, param ={}",adminInfoReqDto);
|
||||||
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
|
CustMgtMapper custMgtMapper = sqlSessionMaster.getMapper(CustMgtMapper.class);
|
||||||
|
|
||||||
SubsDetail subsDetail = new SubsDetail();
|
SubsDetail subsDetail = new SubsDetail();
|
||||||
@@ -249,9 +251,19 @@ public class CustMgtService {
|
|||||||
subsDetail.setAdminNm(adminInfoReqDto.getAdminNm());
|
subsDetail.setAdminNm(adminInfoReqDto.getAdminNm());
|
||||||
subsDetail.setServiceId(adminInfoReqDto.getServiceId());
|
subsDetail.setServiceId(adminInfoReqDto.getServiceId());
|
||||||
subsDetail.setBindDcYn(adminInfoReqDto.getBindDcYn());
|
subsDetail.setBindDcYn(adminInfoReqDto.getBindDcYn());
|
||||||
|
subsDetail.setStat(adminInfoReqDto.getStat());
|
||||||
|
subsDetail.setEntrNo(adminInfoReqDto.getSubsNo());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
custMgtMapper.updateAdminInfo(subsDetail);
|
custMgtMapper.updateAdminInfo(subsDetail);
|
||||||
|
|
||||||
|
//청약상태가 유큐브 개통 상태일 시에만 수정 가능
|
||||||
|
if("유큐브개통".equals(subsDetail.getStat())) {
|
||||||
|
custMgtMapper.updateBindDcYn(subsDetail);
|
||||||
|
logger.info("결합여부 수정. ID={}, 결합여부 ={}, 청약상태 ={}",subsDetail.getAdminId(),subsDetail.getBindDcYn(),subsDetail.getStat());
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.info(e.toString());
|
logger.info(e.toString());
|
||||||
// TODO: handle exception
|
// TODO: handle exception
|
||||||
|
|||||||
@@ -59,5 +59,7 @@ public class SubsDetail implements Serializable {
|
|||||||
private String userCnt;
|
private String userCnt;
|
||||||
@ApiModelProperty(example = "결합할인여부", name = "결합할인여부", dataType = "String")
|
@ApiModelProperty(example = "결합할인여부", name = "결합할인여부", dataType = "String")
|
||||||
private String bindDcYn;
|
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")
|
@ApiModelProperty(example = "결합할인여부", name = "결합할인여부", dataType = "String")
|
||||||
private String bindDcYn;
|
private String bindDcYn;
|
||||||
|
|
||||||
|
@ApiModelProperty(example = "청약상태", name = "청약상태", dataType = "String")
|
||||||
|
private String stat;
|
||||||
|
|
||||||
|
@ApiModelProperty(example = "유큐브가입번호", name = "유큐브가입번호", dataType = "String")
|
||||||
|
private String subsNo;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -423,7 +423,6 @@
|
|||||||
SET
|
SET
|
||||||
CHG_ID = #{serviceId}
|
CHG_ID = #{serviceId}
|
||||||
,CHG_DT = NOW()
|
,CHG_DT = NOW()
|
||||||
,BIND_DC_YN = #{bindDcYn}
|
|
||||||
<if test="adminId != null and adminId != ''">
|
<if test="adminId != null and adminId != ''">
|
||||||
,SUBSMNGR_ID= #{adminId}
|
,SUBSMNGR_ID= #{adminId}
|
||||||
</if>
|
</if>
|
||||||
@@ -1130,4 +1129,15 @@
|
|||||||
,now()
|
,now()
|
||||||
)
|
)
|
||||||
</insert>
|
</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>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user