mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 16:43:32 +09:00
청구검증 데이터 유효성 체크 추가
This commit is contained in:
@@ -214,15 +214,26 @@ export default {
|
|||||||
if (result != null && result.retCode == '0000') {
|
if (result != null && result.retCode == '0000') {
|
||||||
this.list = result.data.list;
|
this.list = result.data.list;
|
||||||
this.totalCnt = result.data.list.length;
|
this.totalCnt = result.data.list.length;
|
||||||
|
}else{
|
||||||
|
this.initData();
|
||||||
|
this.row.title = '청구 목록 조회 실패';
|
||||||
|
this.row.msg1 = result.retMsg;
|
||||||
|
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(err){
|
} catch(err){
|
||||||
|
this.initData();
|
||||||
this.row.title = '청구 목록 조회 실패';
|
this.row.title = '청구 목록 조회 실패';
|
||||||
this.row.msg1 = err;
|
this.row.msg1 = err;
|
||||||
this.$parent.$refs.commmonModal.alertModalOpen(this.row);
|
this.$refs.commmonModal.alertModalOpen(this.row);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
initData: function(){
|
||||||
|
this.list = [];
|
||||||
|
this.totalCnt = 0;
|
||||||
|
},
|
||||||
customFormatter: function (date) {
|
customFormatter: function (date) {
|
||||||
if (this.sDateDiv == 'month') {
|
if (this.sDateDiv == 'month') {
|
||||||
return moment(date).format('YYYY-MM');
|
return moment(date).format('YYYY-MM');
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ public interface CalculateMapper {
|
|||||||
|
|
||||||
List<CalcList> selectCalculateExcelList(CalcListExcelReqDto calcListExcelReqDto);
|
List<CalcList> selectCalculateExcelList(CalcListExcelReqDto calcListExcelReqDto);
|
||||||
|
|
||||||
|
int verificationPartitionCnt(VerificationReqDto verificationReqDto);
|
||||||
|
|
||||||
List<VerificationDto> getVerificationList(VerificationReqDto verificationReqDto);
|
List<VerificationDto> getVerificationList(VerificationReqDto verificationReqDto);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,6 +98,10 @@ public class CalculateService {
|
|||||||
|
|
||||||
VerificationRes verificationRes = new VerificationRes();
|
VerificationRes verificationRes = new VerificationRes();
|
||||||
|
|
||||||
|
if(calcMapper.verificationPartitionCnt(verificationReqDto) < 2) {
|
||||||
|
return new VerificationResDto(ApiResponseCode.CM_NOT_FOUND);
|
||||||
|
}
|
||||||
|
|
||||||
List<VerificationDto> verificationDtoList = calcMapper.getVerificationList(verificationReqDto);
|
List<VerificationDto> verificationDtoList = calcMapper.getVerificationList(verificationReqDto);
|
||||||
|
|
||||||
verificationRes.setList(verificationDtoList);
|
verificationRes.setList(verificationDtoList);
|
||||||
|
|||||||
@@ -20,13 +20,13 @@ public class VerificationResDto extends ResponseMessage implements Serializable
|
|||||||
}
|
}
|
||||||
|
|
||||||
public VerificationResDto(ApiResponseCode returnStr) {
|
public VerificationResDto(ApiResponseCode returnStr) {
|
||||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
this.retCode = returnStr.getResultCode();
|
||||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
this.retMsg = returnStr.getResultMsg();
|
||||||
}
|
}
|
||||||
|
|
||||||
public VerificationResDto(ApiResponseCode returnStr, VerificationRes data) {
|
public VerificationResDto(ApiResponseCode returnStr, VerificationRes data) {
|
||||||
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
this.retCode = returnStr.getResultCode();
|
||||||
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
this.retMsg = returnStr.getResultMsg();
|
||||||
this.data = data;
|
this.data = data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,6 @@
|
|||||||
LIMIT #{page}, #{pagePerRows}
|
LIMIT #{page}, #{pagePerRows}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectCalculateExcelList" parameterType="kr.co.uplus.ez.api.calculate.dto.CalcListReqDto" resultType="kr.co.uplus.ez.api.calculate.dto.CalcList">
|
<select id="selectCalculateExcelList" parameterType="kr.co.uplus.ez.api.calculate.dto.CalcListReqDto" resultType="kr.co.uplus.ez.api.calculate.dto.CalcList">
|
||||||
/* calculate-mapper.xml(selectCalculateExcelList) */
|
/* calculate-mapper.xml(selectCalculateExcelList) */
|
||||||
SELECT eud.CUST_NM
|
SELECT eud.CUST_NM
|
||||||
@@ -139,6 +138,15 @@
|
|||||||
ORDER BY eud.USE_YM DESC, eud.CUST_NM DESC
|
ORDER BY eud.USE_YM DESC, eud.CUST_NM DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="verificationPartitionCnt" parameterType="kr.co.uplus.ez.api.calculate.dto.CalcListReqDto" resultType="int">
|
||||||
|
SELECT
|
||||||
|
COUNT(*) AS PARTITION_CNT
|
||||||
|
FROM INFORMATION_SCHEMA.PARTITIONS
|
||||||
|
WHERE TABLE_NAME IN ('EZ_SNDDCT_REQ','EZ_MSG_LOG')
|
||||||
|
AND PARTITION_NAME IN (CONCAT('EZ_SNDDCT_REQ_',#{lmtYm}),CONCAT('PT_EZ_MSG_LOG_',#{lmtYm}));
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="getVerificationList" parameterType="kr.co.uplus.ez.api.calculate.dto.VerificationReqDto" resultType="kr.co.uplus.ez.api.calculate.dto.VerificationDto">
|
<select id="getVerificationList" parameterType="kr.co.uplus.ez.api.calculate.dto.VerificationReqDto" resultType="kr.co.uplus.ez.api.calculate.dto.VerificationDto">
|
||||||
/* calculate-mapper.xml(getVerificationList) 청구 검증 목록 조회 */
|
/* calculate-mapper.xml(getVerificationList) 청구 검증 목록 조회 */
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
Reference in New Issue
Block a user