merge master into develop - CscListRForm.jsp FAQ 아코디언 버그 수정

This commit is contained in:
jilee4unity
2026-05-28 23:34:06 +09:00
7250 changed files with 570509 additions and 25 deletions

View File

@@ -0,0 +1,168 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.wb.domainserver.domain.itrnt.mngr.mapper.BOItrntMngrMapper">
<!-- 관리자 목록 조회 -->
<select id="selectBOItrntMngrList">
SELECT
A.*
FROM
GC_STORE A
WHERE 1=1
AND A.TENTCPN_ID !='base' -- 입점사 아이디
AND A.MNGR_GROUP = #{strInnb} -- 관리자 그룹
OR A.STR_INNB = #{strInnb} -- 고유번호
ORDER BY STR_INNB DESC
LIMIT #{pageIndex}, #{recordCountPerPage}
</select>
<!-- 페이징처리를 위한 관리자 목록 총 개수 -->
<select id="selectBOItrntMngrListCnt">
SELECT
count(*)
FROM
GC_STORE A
WHERE 1=1
AND A.TENTCPN_ID !='base' -- 입점사 아이디
AND A.MNGR_GROUP = #{strInnb} -- 관리자 그룹
OR A.STR_INNB = #{strInnb} -- 고유번호
</select>
<!-- 관리자 등록 -->
<insert id="insertBOItrntMngrRegist">
<selectKey keyProperty="strInnb" resultType="String" order="BEFORE">
SELECT IFNULL(MAX(STR_INNB), 0) + 1
FROM GC_STORE
</selectKey>
INSERT INTO GC_STORE(
STR_INNB
,TENTCPN_ID
,TENTCPN_NM -- 입점사명
, TENTCPN_PASSWORD
, REPRSNT_MNGR_AT -- 대표관리자 여부
<if test="accesLmttIp != null and accesLmttIp != '' ">
,ACCES_LMTT_IP -- 접근제한 IP
</if>
, MNGR_AUTHOR -- 관리자 권한
, REGIST_DT -- 등록일
)
VALUES(
#{strInnb}
, #{tentcpnId}
, #{tentcpnNm}
, #{tentcpnPassword}
, #{reprsntMngrAt}
<if test="accesLmttIp != null and accesLmttIp != '' ">
, #{accesLmttIp}
</if>
, #{mngrAuthor}
, now())
</insert>
<!-- 관리자 상세 화면 조회-->
<select id="selectBOItrntMngrDtlFrom">
SELECT STR_INNB -- 고유번호
, DATE_FORMAT(LAST_LOGIN_DT, '%Y-%m-%d %H:%i') as lastLoginDt -- 최종로그인일시
, DATE_FORMAT(REGIST_DT, '%Y-%m-%d %H:%i') as registDt -- 등록일시
, REPRSNT_MNGR_AT -- 대표관리자여부
, TENTCPN_ID -- 입점사 아이디
, TENTCPN_NM -- 입점사명
, MNGR_AUTHOR -- 관리자 권한
FROM GC_STORE
WHERE STR_INNB = #{strInnb} -- 고유번호
</select>
<!-- 관리자 수정 -->
<update id="updateBOItrntMngrUpdt">
UPDATE GC_STORE
SET
TENTCPN_NM = #{tentcpnNm} -- 입점사명
<if test="tentcpnPassword != null and tentcpnPassword != '' ">
,TENTCPN_PASSWORD = #{tentcpnPassword} -- 변경할 비밀번호
, PASSWORD_CHNG_DE = now() -- 비밀번호 변경일
</if>
, UPDT_DT = now() -- 수정일시
WHERE
STR_INNB = #{strInnb} -- 고유번호
</update>
<select id="selectBOItrntMngr">
select p.*
,c.charge -- 수수료
,c.FEE_TY -- 수수료 정산 타입
,d.*
, p.STR_INNB as strInnb -- 매장고유번호
, g.pgroup_name -- 등급명칭
, g.pgroup_icon -- 기본아이콘
from GC_STORE as p
left join fm_intranet_charge as c on (p.STR_INNB = c.provider_seq and c.link=1)
left join fm_intranet_shipping as d on p.STR_INNB = d.provider_seq
left join fm_intranet_group as g on p.STR_INNB = g.pgroup_seq
where p.STR_INNB IN(#{strInnb})
</select>
<!-- 관리자 입점사 상세 화면 조회-->
<select id="selectBOItrntMngrTentcpnDtlForm">
select
DATE_FORMAT(A.REGIST_DT, '%Y-%m-%d %H:%i') as registDt -- 최초 입점일
,DATE_FORMAT(A.LAST_LOGIN_DT, '%Y-%m-%d %H:%i') as lastLoginDt -- 최근 접속일
,DATE_FORMAT(A.UPDT_DT, '%Y-%m-%d %H:%i') as updtDt -- 최근 변경(정상/종료)일
,A.TENT_GROUP -- 구분
,A.TENTCPN_NM -- 매장(업체)명
,A.TENTCPN_ID -- 매장 ID
,A.MNGR_AUTHOR -- 관리자 권한
,B.*
,C.pgroup_name -- 등급명칭
,C.pgroup_icon -- 기본아이콘
from GC_STORE A
left join GC_INTRANET_CHARGE B -- 공급사 정산율
on A.STR_INNB = B.provider_seq
and B.link =1
left join GC_INTRANET_GROUP C -- 입점사 등급 정보
on A.STR_INNB = C.pgroup_seq
where
A.STR_INNB = #{strInnb}; -- 고유번호
</select>
<!-- 비밀번호 변경 이력 -->
<insert id="insertBOItrntMngrPwdHistory">
<selectKey keyProperty="historySeq" resultType="String" order="BEFORE">
SELECT IFNULL(MAX(HISTORY_SEQ), 0) + 1
FROM GC_INTRANET_PWD_HISTORY
</selectKey>
insert into GC_INTRANET_PWD_HISTORY (
HISTORY_SEQ
, PROVIDER_SEQ -- 관리자 고유번호
, PWD -- 비밀번호
, REGIST_DATE -- 등록일
)
value(
#{historySeq}
, #{strInnb}
, #{tentcpnPassword}
, now()
)
</insert>
<!-- 관리자 삭제 -->
<delete id="deleteBOItrntMngrDel">
DELETE
FROM GC_STORE
WHERE
STR_INNB IN (${strInnb}) -- 고유번호
</delete>
<!-- 관리자 아이디 중복 확인-->
<select id="selectBOItrntMngrIdChk">
SELECT
count(*)
FROM GC_STORE
WHERE TENTCPN_ID = #{tentcpnId} -- 입점사 아이디
</select>
</mapper>