관리자 전용전송사 업데이트 관련 수정
This commit is contained in:
parent
5e345ca074
commit
26e32878a4
@ -20,6 +20,10 @@ public interface MjonMsgAgentStsService {
|
|||||||
// 문자타입별 최저/최고 단가
|
// 문자타입별 최저/최고 단가
|
||||||
public MjonMsgAgentStsVO selectMjonMsgAgentMinMaxInfo(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception;
|
public MjonMsgAgentStsVO selectMjonMsgAgentMinMaxInfo(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception;
|
||||||
|
|
||||||
|
|
||||||
|
// 전송사 B선 여부 조회
|
||||||
|
public MjonMsgAgentStsVO selectMsgAgentBlineYnInfo(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception;
|
||||||
|
|
||||||
//전송사 상태 정보 수정
|
//전송사 상태 정보 수정
|
||||||
public int updateMjonMsgAgentStsData(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception;
|
public int updateMjonMsgAgentStsData(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception;
|
||||||
|
|
||||||
|
|||||||
@ -31,7 +31,14 @@ public class MjonMsgAgentStsVO {
|
|||||||
|
|
||||||
private String selectAgentCode ;
|
private String selectAgentCode ;
|
||||||
private String searchUseYn ;
|
private String searchUseYn ;
|
||||||
|
private String blineYn;
|
||||||
|
|
||||||
|
public String getBlineYn() {
|
||||||
|
return blineYn;
|
||||||
|
}
|
||||||
|
public void setBlineYn(String blineYn) {
|
||||||
|
this.blineYn = blineYn;
|
||||||
|
}
|
||||||
public double getMinPrice() {
|
public double getMinPrice() {
|
||||||
return minPrice;
|
return minPrice;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,6 +35,11 @@ public class MjonMsgAgentStsDAO extends EgovAbstractDAO {
|
|||||||
return (MjonMsgAgentStsVO) select("mjonMsgAgentStsDAO.selectMjonMsgAgentMinMaxInfo", mjonMsgAgentStsVO);
|
return (MjonMsgAgentStsVO) select("mjonMsgAgentStsDAO.selectMjonMsgAgentMinMaxInfo", mjonMsgAgentStsVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 전송사 B선 여부 조회
|
||||||
|
public MjonMsgAgentStsVO selectMsgAgentBlineYnInfo(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception{
|
||||||
|
return (MjonMsgAgentStsVO) select("mjonMsgAgentStsDAO.selectMsgAgentBlineYnInfo", mjonMsgAgentStsVO);
|
||||||
|
}
|
||||||
|
|
||||||
//전송사 상태 정보 수정
|
//전송사 상태 정보 수정
|
||||||
public int updateMjonMsgAgentStsData(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception{
|
public int updateMjonMsgAgentStsData(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception{
|
||||||
return update("mjonMsgAgentStsDAO.updateMjonMsgAgentStsData", mjonMsgAgentStsVO);
|
return update("mjonMsgAgentStsDAO.updateMjonMsgAgentStsData", mjonMsgAgentStsVO);
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||||
import itn.let.mjo.msgagent.service.MjonMsgAgentStsService;
|
import itn.let.mjo.msgagent.service.MjonMsgAgentStsService;
|
||||||
import itn.let.mjo.msgagent.service.MjonMsgAgentStsVO;
|
import itn.let.mjo.msgagent.service.MjonMsgAgentStsVO;
|
||||||
|
import itn.let.uat.uia.service.impl.MberManageDAO;
|
||||||
import itn.let.uss.umt.service.MberManageVO;
|
import itn.let.uss.umt.service.MberManageVO;
|
||||||
|
|
||||||
@Service("mjonMsgAgentStsService")
|
@Service("mjonMsgAgentStsService")
|
||||||
@ -18,6 +19,13 @@ public class MjonMsgAgentStsServiceImpl extends EgovAbstractServiceImpl implemen
|
|||||||
@Resource(name="mjonMsgAgentStsDAO")
|
@Resource(name="mjonMsgAgentStsDAO")
|
||||||
private MjonMsgAgentStsDAO mjonMsgAgentStsDAO;
|
private MjonMsgAgentStsDAO mjonMsgAgentStsDAO;
|
||||||
|
|
||||||
|
/** mberManageDAO */
|
||||||
|
@Resource(name="mberManageDAO")
|
||||||
|
private MberManageDAO mberManageDAO;
|
||||||
|
|
||||||
|
@Resource(name = "mjonMsgAgentStsService")
|
||||||
|
private MjonMsgAgentStsService mjonMsgAgentStsService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<MjonMsgAgentStsVO> selectMjonMsgAgentStsList() throws Exception{
|
public List<MjonMsgAgentStsVO> selectMjonMsgAgentStsList() throws Exception{
|
||||||
return mjonMsgAgentStsDAO.selectMjonMsgAgentStsList();
|
return mjonMsgAgentStsDAO.selectMjonMsgAgentStsList();
|
||||||
@ -44,6 +52,13 @@ public class MjonMsgAgentStsServiceImpl extends EgovAbstractServiceImpl implemen
|
|||||||
return mjonMsgAgentStsDAO.selectMjonMsgAgentMinMaxInfo(mjonMsgAgentStsVO);
|
return mjonMsgAgentStsDAO.selectMjonMsgAgentMinMaxInfo(mjonMsgAgentStsVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 전송사 B선 여부 조회
|
||||||
|
@Override
|
||||||
|
public MjonMsgAgentStsVO selectMsgAgentBlineYnInfo(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception{
|
||||||
|
return mjonMsgAgentStsDAO.selectMsgAgentBlineYnInfo(mjonMsgAgentStsVO);
|
||||||
|
}
|
||||||
|
|
||||||
//전송사 상태 정보 수정
|
//전송사 상태 정보 수정
|
||||||
public int updateMjonMsgAgentStsData(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception{
|
public int updateMjonMsgAgentStsData(MjonMsgAgentStsVO mjonMsgAgentStsVO) throws Exception{
|
||||||
mjonMsgAgentStsDAO.updateMjonRepAgent(mjonMsgAgentStsVO);
|
mjonMsgAgentStsDAO.updateMjonRepAgent(mjonMsgAgentStsVO);
|
||||||
@ -156,6 +171,9 @@ public class MjonMsgAgentStsServiceImpl extends EgovAbstractServiceImpl implemen
|
|||||||
|
|
||||||
result = mjonMsgAgentStsDAO.updateMberHotlineAgentCodeInfo(mberManageVO);
|
result = mjonMsgAgentStsDAO.updateMberHotlineAgentCodeInfo(mberManageVO);
|
||||||
|
|
||||||
|
// B선라인 일경우 회원테이블 업데이트
|
||||||
|
int uCnt = mberManageDAO.updateUserBlineCodeByAdm(mberManageVO);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
System.out.println("+++++++++++ updateMberHotlineAgentCodeInfo Service Imple Error!!! " + e);
|
System.out.println("+++++++++++ updateMberHotlineAgentCodeInfo Service Imple Error!!! " + e);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,6 +60,10 @@ public class MberManageDAO extends EgovComAbstractDAO{
|
|||||||
return (int)update("mberManageDAO.updateUserBlineCode", vo);
|
return (int)update("mberManageDAO.updateUserBlineCode", vo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int updateUserBlineCodeByAdm(MberManageVO vo) {
|
||||||
|
return (int)update("mberManageDAO.updateUserBlineCodeByAdm", vo);
|
||||||
|
}
|
||||||
|
|
||||||
// 이메일 발송용 정상회원 전체목록
|
// 이메일 발송용 정상회원 전체목록
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public List<MberManageVO> selectEmailSendMberList(UserDefaultVO userSearchVO){
|
public List<MberManageVO> selectEmailSendMberList(UserDefaultVO userSearchVO){
|
||||||
|
|||||||
@ -72,6 +72,14 @@
|
|||||||
LIMIT 1
|
LIMIT 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="mjonMsgAgentStsDAO.selectMsgAgentBlineYnInfo" parameterClass="mjonMsgAgentStsVO" resultClass="mjonMsgAgentStsVO">
|
||||||
|
SELECT BLINE_YN blineYn FROM MJ_AGENT_SEND_RATE
|
||||||
|
WHERE AGENT_CODE = #agentCode#
|
||||||
|
AND MSG_TYPE = 'S'
|
||||||
|
ORDER BY BLINE_YN DESC
|
||||||
|
LIMIT 1
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="mjonMsgAgentStsDAO.selectMjonMsgAgentStsData" parameterClass="mjonMsgAgentStsVO" resultClass="int">
|
<select id="mjonMsgAgentStsDAO.selectMjonMsgAgentStsData" parameterClass="mjonMsgAgentStsVO" resultClass="int">
|
||||||
SELECT
|
SELECT
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
|
|||||||
@ -372,6 +372,8 @@
|
|||||||
, prePaymentYn
|
, prePaymentYn
|
||||||
, smishingYn
|
, smishingYn
|
||||||
, vipYn
|
, vipYn
|
||||||
|
, blineCode
|
||||||
|
, recommendId
|
||||||
, DATE_FORMAT(sbscrbDe, '%Y-%m-%d %H:%i') sbscrbDe
|
, DATE_FORMAT(sbscrbDe, '%Y-%m-%d %H:%i') sbscrbDe
|
||||||
, DATE_FORMAT(expirePnttm, '%Y-%m-%d %H:%i') expirePnttm
|
, DATE_FORMAT(expirePnttm, '%Y-%m-%d %H:%i') expirePnttm
|
||||||
, DATE_FORMAT(mberSttusUptPnttm, '%Y-%m-%d %H:%i') mberSttusUptPnttm
|
, DATE_FORMAT(mberSttusUptPnttm, '%Y-%m-%d %H:%i') mberSttusUptPnttm
|
||||||
@ -411,6 +413,8 @@
|
|||||||
, PRE_PAYMENT_YN prePaymentYn
|
, PRE_PAYMENT_YN prePaymentYn
|
||||||
, SMISHING_YN smishingYn
|
, SMISHING_YN smishingYn
|
||||||
, VIP_YN vipYn
|
, VIP_YN vipYn
|
||||||
|
, BLINE_CODE blineCode
|
||||||
|
, RECOMMEND_ID recommendId
|
||||||
, EXPIRE_PNTTM expirePnttm
|
, EXPIRE_PNTTM expirePnttm
|
||||||
, MBER_STTUS_UPT_PNTTM mberSttusUptPnttm
|
, MBER_STTUS_UPT_PNTTM mberSttusUptPnttm
|
||||||
, ADMIN_SMS_NOTICE_YN AS adminSmsNoticeYn
|
, ADMIN_SMS_NOTICE_YN AS adminSmsNoticeYn
|
||||||
@ -502,7 +506,10 @@
|
|||||||
</isEqual>
|
</isEqual>
|
||||||
<isEqual prepend="AND" property="mberSttus" compareValue="VX">
|
<isEqual prepend="AND" property="mberSttus" compareValue="VX">
|
||||||
mberSttus = 'Y' AND vipYn != 'Y'
|
mberSttus = 'Y' AND vipYn != 'Y'
|
||||||
</isEqual>
|
</isEqual>
|
||||||
|
<isEqual prepend="AND" property="mberSttus" compareValue="BLINE">
|
||||||
|
blineCode != 'N'
|
||||||
|
</isEqual>
|
||||||
</isNotEmpty>
|
</isNotEmpty>
|
||||||
<isEmpty prepend="AND" property="mberSttus">
|
<isEmpty prepend="AND" property="mberSttus">
|
||||||
( mberSttus = 'Y' OR mberSttus = 'B' OR vipYn = 'Y')
|
( mberSttus = 'Y' OR mberSttus = 'B' OR vipYn = 'Y')
|
||||||
|
|||||||
@ -1000,6 +1000,19 @@
|
|||||||
WHERE MBER_ID = #mberId#
|
WHERE MBER_ID = #mberId#
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<update id="mberManageDAO.updateUserBlineCodeByAdm" parameterClass="mberVO">
|
||||||
|
UPDATE lettngnrlmber
|
||||||
|
SET
|
||||||
|
BLINE_CODE =
|
||||||
|
CASE
|
||||||
|
WHEN #hotlineAgentCode# = '08' THEN 'B1'
|
||||||
|
WHEN #hotlineAgentCode# = '09' THEN 'B2'
|
||||||
|
ELSE 'N'
|
||||||
|
END
|
||||||
|
WHERE MBER_ID = #mberId#
|
||||||
|
</update>
|
||||||
|
|
||||||
|
|
||||||
<update id="userManageDAO.updateUserSttusCode" parameterClass="userVO">
|
<update id="userManageDAO.updateUserSttusCode" parameterClass="userVO">
|
||||||
UPDATE
|
UPDATE
|
||||||
LETTNEMPLYRINFO
|
LETTNEMPLYRINFO
|
||||||
|
|||||||
@ -388,6 +388,7 @@ function customLinkPage(mberId){
|
|||||||
<option value="Y" <c:if test="${userSearchVO.mberSttus == 'Y'}">selected="selected"</c:if> >일반(VIP포함)</option>
|
<option value="Y" <c:if test="${userSearchVO.mberSttus == 'Y'}">selected="selected"</c:if> >일반(VIP포함)</option>
|
||||||
<option value="B" <c:if test="${userSearchVO.mberSttus == 'B'}">selected="selected"</c:if> >이용 정지</option>
|
<option value="B" <c:if test="${userSearchVO.mberSttus == 'B'}">selected="selected"</c:if> >이용 정지</option>
|
||||||
<option value="V" <c:if test="${userSearchVO.mberSttus == 'V'}">selected="selected"</c:if> >VIP</option>
|
<option value="V" <c:if test="${userSearchVO.mberSttus == 'V'}">selected="selected"</c:if> >VIP</option>
|
||||||
|
<option value="BLINE" <c:if test="${userSearchVO.mberSttus == 'BLINE'}">selected="selected"</c:if> >BLINE</option>
|
||||||
<option value="VX" <c:if test="${userSearchVO.mberSttus == 'VX'}">selected="selected"</c:if> >일반(VIP제외)</option>
|
<option value="VX" <c:if test="${userSearchVO.mberSttus == 'VX'}">selected="selected"</c:if> >일반(VIP제외)</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user