mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 23:04:44 +09:00
admin_chrg db수정
This commit is contained in:
@@ -457,7 +457,6 @@ export default {
|
|||||||
for (var i = 0; i < dimmed.length; i++) {
|
for (var i = 0; i < dimmed.length; i++) {
|
||||||
dimmed[i].style.display = 'none';
|
dimmed[i].style.display = 'none';
|
||||||
}
|
}
|
||||||
console.log("3")
|
|
||||||
this.$parent.ChrgUpdateModal();
|
this.$parent.ChrgUpdateModal();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ import customGrid from '@/components/CustomGrid';
|
|||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import InsertChrgModal from '../components/InsertChrgModal';
|
import InsertChrgModal from '../components/InsertChrgModal';
|
||||||
import chrgDetailPop from '../components/ChrgDetailPop.vue';
|
import chrgDetailPop from '../components/ChrgDetailPop.vue';
|
||||||
import commonModal from "../components/commonModal";
|
import commonModal from "@/components/modal/commonModal";
|
||||||
import custMgtApi from '../service/custMgtApi';
|
import custMgtApi from '../service/custMgtApi';
|
||||||
|
|
||||||
class CustomATagRenderer {
|
class CustomATagRenderer {
|
||||||
@@ -293,7 +293,6 @@ export default {
|
|||||||
if (this.startDate > this.endDate) {
|
if (this.startDate > this.endDate) {
|
||||||
this.startDate = this.endDate;
|
this.startDate = this.endDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
selectedEndDate(day) {
|
selectedEndDate(day) {
|
||||||
if (day != undefined && day != null) {
|
if (day != undefined && day != null) {
|
||||||
@@ -356,14 +355,12 @@ export default {
|
|||||||
if (this.doValidate()) {
|
if (this.doValidate()) {
|
||||||
this.row.title = '충전금 관리';
|
this.row.title = '충전금 관리';
|
||||||
this.row.msg1 = '삭제 하시겠습니까?';
|
this.row.msg1 = '삭제 하시겠습니까?';
|
||||||
// console.log("row.list", this.row.list)
|
|
||||||
this.$refs.commonModal.confirmModalOpen2(this.row);
|
this.$refs.commonModal.confirmModalOpen2(this.row);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
async chrgdelete() {
|
async chrgdelete() {
|
||||||
try {
|
try {
|
||||||
// console.log("this.row",this.row)
|
|
||||||
let respose = await custMgtApi.deleteChrg(this.row);
|
let respose = await custMgtApi.deleteChrg(this.row);
|
||||||
|
|
||||||
const result = respose.data;
|
const result = respose.data;
|
||||||
@@ -396,18 +393,13 @@ export default {
|
|||||||
// return false;
|
// return false;
|
||||||
// }
|
// }
|
||||||
var chkList = this.$refs.table.checkedElementDatas();
|
var chkList = this.$refs.table.checkedElementDatas();
|
||||||
console.log("chkList",chkList)
|
|
||||||
// console.log("chkList.length", chkList.length)
|
|
||||||
if (chkList.length == 0) {
|
if (chkList.length == 0) {
|
||||||
this.row.title = '충전금 관리';
|
this.row.title = '충전금 관리';
|
||||||
this.row.msg1 = '삭제대상을 체크를 해주세요.';
|
this.row.msg1 = '삭제대상을 체크를 해주세요.';
|
||||||
this.$refs.commonModal.alertModalOpen(this.row);
|
this.$refs.commonModal.alertModalOpen(this.row);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// console.log("row.chrgSeq",this.row.chrgSeq)
|
|
||||||
const param = chkList.map((row) => ({ chrgSeq: row.chrgSeq }));
|
const param = chkList.map((row) => ({ chrgSeq: row.chrgSeq }));
|
||||||
// console.log("param",param)
|
|
||||||
// console.log("chrgSeq",chrgSeq)
|
|
||||||
this.row.list = param;
|
this.row.list = param;
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1011,7 +1011,7 @@ public class CustMgtService {
|
|||||||
|
|
||||||
String nowPage = String.valueOf(chrgListReqDto.getPage());
|
String nowPage = String.valueOf(chrgListReqDto.getPage());
|
||||||
int totalCnt = custMgtMapper.cntChrgList(chrgListReqDto);
|
int totalCnt = custMgtMapper.cntChrgList(chrgListReqDto);
|
||||||
|
logger.debug("getStartDt={}",chrgListReqDto.getStartDt());
|
||||||
if (totalCnt == 0) {
|
if (totalCnt == 0) {
|
||||||
|
|
||||||
ChrgListRes chrgListRes = new ChrgListRes();
|
ChrgListRes chrgListRes = new ChrgListRes();
|
||||||
|
|||||||
@@ -1156,12 +1156,10 @@
|
|||||||
WHERE 1 = 1
|
WHERE 1 = 1
|
||||||
AND ecm.USE_YN ='Y'
|
AND ecm.USE_YN ='Y'
|
||||||
AND esi.SUBS_STTUS_CD ='02'
|
AND esi.SUBS_STTUS_CD ='02'
|
||||||
<if test="startDt != null and startDt != ''">
|
AND (#{startDt} BETWEEN ecm.STRT_YM AND ecm.END_YM
|
||||||
AND (ecm.STRT_YM <![CDATA[ >= ]]> STR_TO_DATE(concat(REPLACE(#{startDt}, '-', '' ),'000000') , '%Y%m')
|
OR #{endDt} BETWEEN ecm.STRT_YM AND ecm.END_YM
|
||||||
</if>
|
OR ecm.STRT_YM BETWEEN #{startDt} AND #{endDt}
|
||||||
<if test="endDt != null and endDt != ''">
|
OR ecm.END_YM BETWEEN #{startDt} AND #{endDt})
|
||||||
OR ecm.END_YM <![CDATA[ <= ]]> STR_TO_DATE(concat(REPLACE(#{endDt}, '-', '' ),'235959'), '%Y%m'))
|
|
||||||
</if>
|
|
||||||
<if test="searchType1 != null and searchType1 != ''">
|
<if test="searchType1 != null and searchType1 != ''">
|
||||||
<if test="searchType1 == '01' and searchText1 != null and searchText1 != ''">
|
<if test="searchType1 == '01' and searchText1 != null and searchText1 != ''">
|
||||||
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))
|
||||||
|
|||||||
Reference in New Issue
Block a user