대리점 명 오류 처리

This commit is contained in:
kubo8
2023-05-02 13:02:50 +09:00
parent 02b2d6a65d
commit a313ad89de
3 changed files with 8 additions and 4 deletions

View File

@@ -34,7 +34,7 @@
"name": "유치채널" "name": "유치채널"
}, },
{ {
"key": "nogrNm", "key": "norgNm",
"name": "대리점" "name": "대리점"
}, },
{ {

View File

@@ -211,7 +211,7 @@ export default {
{ name: 'regDt', header: '가입일', align: 'center', width: '9%', cls: 'td_line' }, { name: 'regDt', header: '가입일', align: 'center', width: '9%', cls: 'td_line' },
{ name: 'stat', header: '상태', align: 'center', width: '8%' }, { name: 'stat', header: '상태', align: 'center', width: '8%' },
{ name: 'channel', header: '유치채널', align: 'center', width: '8%' }, { name: 'channel', header: '유치채널', align: 'center', width: '8%' },
{ name: 'nogrNm', header: '대리점', align: 'center', width: '8%' }, { name: 'norgNm', header: '대리점', align: 'center', width: '8%' },
{ name: 'bindDcYn', header: '결합여부', align: 'center', width: '8%' }, { name: 'bindDcYn', header: '결합여부', align: 'center', width: '8%' },
{ name: 'plan', header: '요금제', align: 'center', width: '9%' }, { name: 'plan', header: '요금제', align: 'center', width: '9%' },
{ name: 'carryOver', header: '이월누적금액', align: 'center', width: '9%' }, { name: 'carryOver', header: '이월누적금액', align: 'center', width: '9%' },
@@ -343,6 +343,9 @@ export default {
response = await custMgtApi.subsListExcel(params); response = await custMgtApi.subsListExcel(params);
const result = response.data; const result = response.data;
console.log(result);
// entity code 변환 // entity code 변환
result.data.list = result.data.list.map((item) => { result.data.list = result.data.list.map((item) => {
return { return {

View File

@@ -60,7 +60,7 @@
end as CHANNEL end as CHANNEL
,CASE WHEN A.NORG_NM IS NULL THEN '-' ,CASE WHEN A.NORG_NM IS NULL THEN '-'
ELSE A.NORG_NM ELSE A.NORG_NM
END AS norgNm END AS NORG_NM
, ( , (
SELECT SELECT
PROD_NM PROD_NM
@@ -148,7 +148,7 @@
) , '고객셀프가입') as CHANNEL ) , '고객셀프가입') as CHANNEL
,CASE WHEN A.NORG_NM IS NULL THEN '-' ,CASE WHEN A.NORG_NM IS NULL THEN '-'
ELSE A.NORG_NM ELSE A.NORG_NM
END AS norgNm END AS NORG_NM
, ( , (
SELECT SELECT
PROD_NM PROD_NM
@@ -194,6 +194,7 @@
<include refid="subsListCondition"/> <include refid="subsListCondition"/>
ORDER BY esi.SUBS_DT DESC ) A, ( SELECT @ROWNUM := 0 ) AS R ORDER BY esi.SUBS_DT DESC ) A, ( SELECT @ROWNUM := 0 ) AS R
</select> </select>
<sql id="subsListCondition"> <sql id="subsListCondition">
<if test="startDt != null and startDt != ''"> <if test="startDt != null and startDt != ''">
AND esi.SUBS_DT <![CDATA[ >= ]]> STR_TO_DATE(concat(REPLACE(#{startDt}, '-', '' ),'000000') , '%Y%m%d%H%i%s') AND esi.SUBS_DT <![CDATA[ >= ]]> STR_TO_DATE(concat(REPLACE(#{startDt}, '-', '' ),'000000') , '%Y%m%d%H%i%s')