|
|
@ -46,12 +46,14 @@ import org.springframework.http.HttpHeaders;
|
|
|
|
import org.springframework.http.HttpMethod;
|
|
|
|
import org.springframework.http.HttpMethod;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Propagation;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* <pre>
|
|
|
|
* <pre>
|
|
|
|
* description : 모바일 전자고지 배치 서비스
|
|
|
|
* description : 모바일 전자고지 배치 서비스
|
|
|
|
*
|
|
|
|
* - 배치에서 호출되는 클래스로 배치 로그등 Transaction 분리 필요
|
|
|
|
|
|
|
|
* - 메소드 트랜잭션 Transactional(propagation = Propagation.REQUIRES_NEW)로 선언
|
|
|
|
* packageName : kr.xit.biz.ens.service
|
|
|
|
* packageName : kr.xit.biz.ens.service
|
|
|
|
* fileName : EnsBatchService
|
|
|
|
* fileName : EnsBatchService
|
|
|
|
* author : limju
|
|
|
|
* author : limju
|
|
|
@ -128,7 +130,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
* </pre>
|
|
|
|
* </pre>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Transactional
|
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
|
|
|
public void accept(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
public void accept(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
final List<EnsDTO.SndngMssageParam> list = mapper.selectAcceptTgts(reqDTO);
|
|
|
|
final List<EnsDTO.SndngMssageParam> list = mapper.selectAcceptTgts(reqDTO);
|
|
|
|
String sndngDt = null;
|
|
|
|
String sndngDt = null;
|
|
|
@ -215,7 +217,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
* </pre>
|
|
|
|
* </pre>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Transactional
|
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
|
|
|
public void make(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
public void make(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
final String sndngProcessSttus2 = ApiConstants.SndngProcessStatus.SENDING1.getCode();
|
|
|
|
final String sndngProcessSttus2 = ApiConstants.SndngProcessStatus.SENDING1.getCode();
|
|
|
|
final String sndngProcessSttus3 = ApiConstants.SndngProcessStatus.SENDING2.getCode();
|
|
|
|
final String sndngProcessSttus3 = ApiConstants.SndngProcessStatus.SENDING2.getCode();
|
|
|
@ -292,7 +294,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
* </pre>
|
|
|
|
* </pre>
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Transactional
|
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
|
|
|
public void sendBulks(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
public void sendBulks(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
|
|
|
|
|
|
|
|
// 발송/통합발송 마스터에서 대상 조회
|
|
|
|
// 발송/통합발송 마스터에서 대상 조회
|
|
|
@ -339,7 +341,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
* @param reqDTO BatchEnsRequest
|
|
|
|
* @param reqDTO BatchEnsRequest
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Transactional
|
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
|
|
|
public void findKkoMyDocStatusBulks(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
public void findKkoMyDocStatusBulks(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
final String url = apiHost + apiKkoBulkStatus;
|
|
|
|
final String url = apiHost + apiKkoBulkStatus;
|
|
|
|
|
|
|
|
|
|
|
@ -388,7 +390,7 @@ public class EnsBatchService extends EgovAbstractServiceImpl implements IEnsBatc
|
|
|
|
* @param reqDTO BatchEnsRequest
|
|
|
|
* @param reqDTO BatchEnsRequest
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Transactional
|
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
|
|
|
public void close(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
public void close(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
final List<String> list = mapper.selectCloseTgts(reqDTO.getSndngProcessSttus());
|
|
|
|
final List<String> list = mapper.selectCloseTgts(reqDTO.getSndngProcessSttus());
|
|
|
|
|
|
|
|
|
|
|
|