fix: 배치 서비스 메소드 Transactional(propagation = Propagation.REQUIRES_NEW)로 변경

dev
gitea-관리자 1 year ago
parent a4b8e04e58
commit 443ad51680

@ -46,12 +46,14 @@ import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
/**
* <pre>
* description :
*
* - Transaction
* - Transactional(propagation = Propagation.REQUIRES_NEW)
* packageName : kr.xit.biz.ens.service
* fileName : EnsBatchService
* author : limju
@ -128,7 +130,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
* </pre>
*/
@Override
@Transactional
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void accept(final EnsDTO.BatchEnsRequest reqDTO) {
final List<EnsDTO.SndngMssageParam> list = mapper.selectAcceptTgts(reqDTO);
String sndngDt = null;
@ -215,7 +217,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
* </pre>
*/
@Override
@Transactional
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void make(final EnsDTO.BatchEnsRequest reqDTO) {
final String sndngProcessSttus2 = ApiConstants.SndngProcessStatus.SENDING1.getCode();
final String sndngProcessSttus3 = ApiConstants.SndngProcessStatus.SENDING2.getCode();
@ -292,7 +294,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
* </pre>
*/
@Override
@Transactional
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void sendBulks(final EnsDTO.BatchEnsRequest reqDTO) {
// 발송/통합발송 마스터에서 대상 조회
@ -339,7 +341,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
* @param reqDTO BatchEnsRequest
*/
@Override
@Transactional
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void findKkoMyDocStatusBulks(final EnsDTO.BatchEnsRequest reqDTO) {
final String url = apiHost + apiKkoBulkStatus;
@ -388,7 +390,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
* @param reqDTO BatchEnsRequest
*/
@Override
@Transactional
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void close(final EnsDTO.BatchEnsRequest reqDTO) {
final List<String> list = mapper.selectCloseTgts(reqDTO.getSndngProcessSttus());

Loading…
Cancel
Save