admin_chrg db수정

This commit is contained in:
2023-03-30 15:44:31 +09:00
parent 68a0440688
commit 7fa6f0bf78
4 changed files with 7 additions and 18 deletions

View File

@@ -1011,7 +1011,7 @@ public class CustMgtService {
String nowPage = String.valueOf(chrgListReqDto.getPage());
int totalCnt = custMgtMapper.cntChrgList(chrgListReqDto);
logger.debug("getStartDt={}",chrgListReqDto.getStartDt());
if (totalCnt == 0) {
ChrgListRes chrgListRes = new ChrgListRes();

View File

@@ -1156,12 +1156,10 @@
WHERE 1 = 1
AND ecm.USE_YN ='Y'
AND esi.SUBS_STTUS_CD ='02'
<if test="startDt != null and startDt != ''">
AND (ecm.STRT_YM <![CDATA[ >= ]]> STR_TO_DATE(concat(REPLACE(#{startDt}, '-', '' ),'000000') , '%Y%m')
</if>
<if test="endDt != null and endDt != ''">
OR ecm.END_YM <![CDATA[ <= ]]> STR_TO_DATE(concat(REPLACE(#{endDt}, '-', '' ),'235959'), '%Y%m'))
</if>
AND (#{startDt} BETWEEN ecm.STRT_YM AND ecm.END_YM
OR #{endDt} BETWEEN ecm.STRT_YM AND ecm.END_YM
OR ecm.STRT_YM BETWEEN #{startDt} AND #{endDt}
OR ecm.END_YM BETWEEN #{startDt} AND #{endDt})
<if test="searchType1 != null and searchType1 != ''">
<if test="searchType1 == '01' and searchText1 != null and searchText1 != ''">
AND UPPER(eci.CUST_NM) LIKE UPPER(CONCAT('%', #{searchText1}, '%'))