초기소스
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
package com.wb.domainserver.domain.sure.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.wb.domainserver.domain.admin.ntcn.stl.vo.BOMaStlMssageVO;
|
||||
import com.wb.domainserver.domain.gcone.ntcn.lgqymssage.vo.BOLgqyMssageVO;
|
||||
import com.wb.domainserver.domain.gcone.ntcn.mssage.vo.BOMMSContentsVO;
|
||||
import com.wb.domainserver.domain.gcone.ntcn.mssage.vo.BOSuremVO;
|
||||
import com.wb.domainserver.domain.gcone.sms.vo.BOSmsBillingVO;
|
||||
import com.wb.domainserver.domain.itrnt.ntcn.stl.vo.BOItrntStlMssageVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import com.wb.domainserver.domain.sample.vo.SampleVO;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
|
||||
@Mapper
|
||||
public interface SureMapper {
|
||||
|
||||
public int insertCrmCheck(SampleVO vo);
|
||||
|
||||
/**
|
||||
* mmsContent 등록
|
||||
* @param mmsVo
|
||||
*/
|
||||
void insertBOMssageSndngMmsContent(BOMMSContentsVO mmsVo);
|
||||
|
||||
/**
|
||||
* 슈어 등록
|
||||
* @param suremList
|
||||
*/
|
||||
void insertBOMssageSureRegist(List<BOSuremVO> suremList);
|
||||
|
||||
/**
|
||||
* 슈어 로그 등록
|
||||
*
|
||||
* @param logMap
|
||||
*/
|
||||
void insertBOMssageSureLogRegist(List<BOSuremVO> suremList);
|
||||
|
||||
/**
|
||||
* 슈어 목록 조회
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
List<DataMap> selectBOMssageSureSeqNo(DataMap paramMap);
|
||||
|
||||
/**
|
||||
* 슈어 상태 수정 대상 조회
|
||||
* @param sureSttusMap
|
||||
* @return
|
||||
*/
|
||||
List<DataMap> selectBOMssageSureSttusInqire(DataMap sureSttusMap);
|
||||
|
||||
|
||||
DataMap selectBOMssageLgqySndngSureSuccInqire(BOLgqyMssageVO vo);
|
||||
|
||||
|
||||
/**
|
||||
* 슈어 정산 계산
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
List<DataMap> selectBOMaStlMssageChargeList(BOMaStlMssageVO vo);
|
||||
|
||||
/**
|
||||
* 슈어 정산 계산
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
List<DataMap> selectBOItrntStlMssageChargeList(BOItrntStlMssageVO vo);
|
||||
|
||||
/**
|
||||
* 슈어로그 통계 가져오기
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
List<DataMap> selectBOMaStlSureList(BOMaStlMssageVO vo);
|
||||
|
||||
/**
|
||||
* 슈어 테이블 조회
|
||||
* @param resultMap
|
||||
* @return
|
||||
*/
|
||||
DataMap selectBOAtmcSendSureSeqNo(DataMap resultMap);
|
||||
|
||||
/**
|
||||
* GC_SEND - 슈어 등록
|
||||
* @param boSuremVo
|
||||
*/
|
||||
void insertBOMssageSendSureRegist(BOSuremVO boSuremVo);
|
||||
|
||||
/**
|
||||
* 대량 메세지 관리 > 대량 메세지 등록
|
||||
*
|
||||
* @param boSuremVo
|
||||
* @return
|
||||
*/
|
||||
int insertBOMssageLgqySndngSureRegistOne(BOSuremVO boSuremVo);
|
||||
|
||||
/**
|
||||
* 정산목록 추출
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectSmsBillingList(BOSmsBillingVO vo);
|
||||
|
||||
public Integer deleteSureDataMssageList(BOSuremVO suremVo);
|
||||
|
||||
public Integer deleteSureDataMssage(BOSuremVO suremVo);
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.wb.domainserver.domain.sure.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.security.core.context.SecurityContextHolder;
|
||||
import org.springframework.security.oauth2.jwt.Jwt;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.bbs.bbs.vo.BOBbsVO;
|
||||
import com.wb.domainserver.domain.gcone.goods.banner.mapper.BOBannerMapper;
|
||||
import com.wb.domainserver.domain.sample.mapper.SampleMapper;
|
||||
import com.wb.domainserver.domain.sample.vo.SampleVO;
|
||||
import com.wb.domainserver.domain.sure.mapper.SureMapper;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@Service
|
||||
@Slf4j
|
||||
public class SureService {
|
||||
|
||||
@Autowired
|
||||
private SureMapper sureMapper;
|
||||
|
||||
@Transactional(transactionManager = "BTransactionManager")
|
||||
public String selectSureDatabase(BOBbsVO vo) {
|
||||
|
||||
try {
|
||||
// CRM DB 등록 <= dev_nutri table : tmp_order
|
||||
SampleVO vo2 = new SampleVO();
|
||||
vo2.setMessage1("2");
|
||||
vo2.setMessage2("테스트2");;
|
||||
int crmCount = sureMapper.insertCrmCheck(vo2);
|
||||
String result = "crmCount:"+crmCount;
|
||||
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
log.error("Transaction failed: ", e);
|
||||
throw e; // 트랜잭션 롤백을 위해 예외를 다시 던집니다.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user