초기소스

This commit is contained in:
jazz
2025-10-29 17:08:05 +09:00
parent e531aa9540
commit 439a379a02
7551 changed files with 1234427 additions and 3 deletions

View File

@@ -0,0 +1,35 @@
package com.wb.domainserver.domain.sample.service;
import org.springframework.beans.factory.annotation.Autowired;
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.sample.mapper.SampleMapper;
import com.wb.domainserver.domain.sample.vo.SampleVO;
import lombok.extern.slf4j.Slf4j;
@Service
@Slf4j
public class SampleService {
@Autowired
private SampleMapper sampleMapper;
public String selectGconeDatabase(BOBbsVO vo) {
try {
SampleVO vo1 = new SampleVO();
vo1.setMessage1("1");;
vo1.setMessage2("테스트1");;
int gconeCount = sampleMapper.insertGconeCheck(vo1);
String result = "gconeCount:"+gconeCount;
return result;
} catch (Exception e) {
log.error("Transaction failed: ", e);
throw e; // 트랜잭션 롤백을 위해 예외를 다시 던집니다.
}
}
}