docs: javadoc 추가

dev
Jonguk. Lim 1 month ago
parent 6671698b50
commit 953b73fda1

@ -23,30 +23,139 @@ import cokr.xit.ens.modules.nice.model.*;
*/
@Mapper
public interface INiceCiMapper {
//----------------------------------------------------------------------
// 공통
//----------------------------------------------------------------------
/**
* tb_input_xit
*
* @param niceCiParam NiceCiDTO.NiceCiParam
* @return List<NiceCiDTO.InputXit> InputXit .
*/
List<NiceCiDTO.InputXit> selectInputXits(final NiceCiDTO.NiceCiParam niceCiParam);
/**
* tb_input_data_xit
*
* @param niceCiParam NiceCiDTO.NiceCiParam
* @return List<NiceCiDTO.InputDataXit> InputDataXit .
*/
List<NiceCiDTO.InputDataXit> selectInputDataXits(final NiceCiDTO.NiceCiParam niceCiParam);
//----------------------------------------------------------------------
// 공통
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// accept
//----------------------------------------------------------------------
// accept //////////////////////////////////////////////////////////
int insertBill(final NiceCiDTO.BillDTO billDTO);
int updateBill(final NiceCiDTO.BillDTO billDTO);
/**
* ()
*
* @param billDTO NiceCiDTO.BillDTO
*/
void insertBill(final NiceCiDTO.BillDTO billDTO);
/**
* ()
*
* @param billDTO NiceCiDTO.BillDTO
*/
void updateBill(final NiceCiDTO.BillDTO billDTO);
/**
* () -
*
* @param billKkoDTO NiceCiDTO.BillKkoDTO
*/
void mergeBillKko(final NiceCiDTO.BillKkoDTO billKkoDTO);
/**
* NICE CI API URL - tb_input_data_xit
* @param inputDataXit NiceCiDTO.InputDataXit
*/
void updatePayUrlOfDataInput(final NiceCiDTO.InputDataXit inputDataXit);
/**
* - tb_input_xit
* @param inputXit
*/
void updatePrcsCdAndErrorOfInputXit(final NiceCiDTO.InputXit inputXit);
int mergeBillKko(final NiceCiDTO.BillKkoDTO billKkoDTO);
int updatePayUrlOfDataInput(final NiceCiDTO.InputDataXit inputDataXit);
int updatePrcsCdAndErrorOfInputXit(final NiceCiDTO.InputXit inputXit);
/**
* API
* @param orgCd
* @return Optional<OrgMng>
*/
Optional<OrgMng> selectKkoBpApiUrlFromEnsOrgMng(final String orgCd);
//----------------------------------------------------------------------
// accept
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// send
//----------------------------------------------------------------------
// send ///////////////////////////////////////////////////////
/**
* GET NICE CI request unique PK - sequence
* @return Optional<String> leftPad "0", 10 String
*/
Optional<String> selectNiceCiRequestId();
/**
* 릿
* @param tmpltId 릿 ID
* @return Optional<NiceCiDTO.TmpltMngDTO>
*/
Optional<NiceCiDTO.TmpltMngDTO> selectTmpltMsg(final String tmpltId);
int insertNiceSmsSndngRequest(final NiceCiApiSendDTO.Request requestDTO);
int insertNiceSmsSndngResponse(final NiceCiApiSendDTO.Response responseDTO);
/**
* SMS
* @param requestDTO NiceCiApiSendDTO.Request
*/
void insertNiceSmsSndngRequest(final NiceCiApiSendDTO.Request requestDTO);
// status /////////////////////////////////////////////////////////////////////////////
/**
* SMS
* @param responseDTO NiceCiApiSendDTO.Response
*/
void insertNiceSmsSndngResponse(final NiceCiApiSendDTO.Response responseDTO);
//----------------------------------------------------------------------
// send
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// status
//----------------------------------------------------------------------
/**
* <pre>
* GET NICE CI (from ~ to)
* -> tb_input_xit run_dt MIN(run_dt) ~ MAX(run_dt) + 1
* @param niceCiParam NiceCiDTO.NiceCiParam
* @return Optional<NiceCiApiStatusDTO.Request>
* </pre>
*/
Optional<NiceCiApiStatusDTO.Request> selectFromAndToOfStatusParam(final NiceCiDTO.NiceCiParam niceCiParam);
/**
* GET NICE CI inquire unique PK - sequence
* @return Optional<String> leftPad "0", 10 String
*/
Optional<String> selectNiceCiInqireId();
int insertNiceSmsSndngInquireRequest(final NiceCiApiStatusDTO.Request requestDTO);
int insertNiceSmsSndngInquireResponse(final NiceCiApiStatusDTO.Response responseDTO);
/**
* SMS
* @param requestDTO NiceCiApiStatusDTO.Request
*/
void insertNiceSmsSndngInquireRequest(final NiceCiApiStatusDTO.Request requestDTO);
/**
* SMS
* @param responseDTO NiceCiApiStatusDTO.Response
*/
void insertNiceSmsSndngInquireResponse(final NiceCiApiStatusDTO.Response responseDTO);
//----------------------------------------------------------------------
// status
//----------------------------------------------------------------------
}

@ -22,12 +22,51 @@ import cokr.xit.ens.modules.nice.model.*;
*/
@Mapper
public interface INiceCiNewTransactionMapper {
//----------------------------------------------------------------------
// accept
int insertBillHistory(final NiceCiDTO.BillHistDTO billHistDTO);
int updateBillHistory(final NiceCiDTO.BillHistDTO billHistDTO);
//----------------------------------------------------------------------
/**
*
* @param billHistDTO NiceCiDTO.BillHistDTO
*/
void insertBillHistory(final NiceCiDTO.BillHistDTO billHistDTO);
/**
*
* @param billHistDTO NiceCiDTO.BillHistDTO
*/
void updateBillHistory(final NiceCiDTO.BillHistDTO billHistDTO);
//----------------------------------------------------------------------
// accept
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// status
int insertNiceSmsSndngInquireResponseRepeats(final List<NiceCiApiResult> resultList);
//----------------------------------------------------------------------
/**
* NICE CI SMS
* @param resultList List<NiceCiApiResult>
*/
void insertNiceSmsSndngInquireResponseRepeats(final List<NiceCiApiResult> resultList);
/**
* <pre>
* DATA ID
* NICE CI SMS NICE CI SMS DATA ID GET
* @param result NiceCiApiResult
* @return Optional<NiceCiDTO.SendResult>
* </pre>
*/
Optional<NiceCiDTO.SendResult> selectDataIdFromSendResult(final NiceCiApiResult result);
int insertSendResults(final List<NiceCiDTO.SendResult> sendResults);
/**
* SMS
* @param sendResults NiceCiDTO.SendResult
*/
void insertSendResults(final List<NiceCiDTO.SendResult> sendResults);
//----------------------------------------------------------------------
// status
//----------------------------------------------------------------------
}

@ -11,7 +11,7 @@ import lombok.extern.slf4j.*;
/**
* <pre>
* description :
* description : NICE CI API DTO
* packageName : cokr.xit.ens.modules.nice.model
* fileName : NiceCiCommon
* author : limju
@ -199,6 +199,11 @@ public class NiceCiApiCommon {
@Size(min = 1, max = 1, message = "조회동의사유는 1자리 입니다")
private String inqireAgreResn = "4";
/**
* NICE CI API - 2, 1
* @param isSend send
* @return String NICE CI
*/
public String ofString(boolean isSend) {
StringBuilder sb = new StringBuilder();
sb.append(spcltyGroupcode);
@ -217,6 +222,11 @@ public class NiceCiApiCommon {
return sb.toString();
}
/**
* NICE CI API - 2, 1
* @param tgtString
* @return NiceCiApiCommon NICE CI DTO
*/
public static NiceCiApiCommon parse(String tgtString) {
final int[] parseLength = {
9, // 전문그룹코드

@ -8,7 +8,7 @@ import lombok.*;
/**
* <pre>
* description :
* description : NICE CI API DTO
* packageName : cokr.xit.ens.modules.nice.model
* fileName : NiceCiApiResult
* author : limju
@ -241,6 +241,11 @@ public class NiceCiApiResult {
this.rspnsReptitBlnk = StringUtils.trim(rspnsReptitBlnk);
}
/**
* NICE CI API - 2, 1
* @param tgtString
* @return NiceCiApiResult NICE CI DTO
*/
public static NiceCiApiResult parse(String tgtString) {
// 110 자리
final int[] parseLength = {

@ -15,7 +15,7 @@ import lombok.*;
/**
* <pre>
* description : Nice CI DTO
* description : Nice CI DTO
* Builder X
* -> setter
* packageName : cokr.xit.ens.modules.nice.model
@ -220,6 +220,10 @@ public class NiceCiApiSendDTO {
// 버튼요청부 반복: 3000 자리
//----------------------------------------------------------------------------------------------
/**
* NICE CI API - 2, 1
* @return String NICE CI send
*/
public String ofString() {
StringBuilder sb = new StringBuilder();
//sb.append(trCode);

@ -16,7 +16,7 @@ import lombok.*;
/**
* <pre>
* description : Nice CI DTO
* description : Nice CI DTO
* Builder X
* -> setter
* packageName : cokr.xit.ens.modules.nice.model
@ -196,6 +196,10 @@ public class NiceCiApiStatusDTO {
// 개별요청부 : 100 자리
//----------------------------------------------------------------------------------------------
/**
* NICE CI API - 2, 1
* @return String NICE CI
*/
public String ofString() {
StringBuilder sb = new StringBuilder();
sb.append(trnscId);

@ -10,7 +10,7 @@ import lombok.*;
/**
* <pre>
* description :
* description : NICE CI DTO
* packageName : cokr.xit.ens.modules.nice.model
* fileName : NiceCiDTO
* author : limju

@ -32,24 +32,40 @@ public class NiceCiController {
private final NiceCiStatBulkService niceCiStatBulkService;
private final NiceCiCloseService niceCiCloseService;
/**
* NICE CI
* @return ResponseEntity
*/
@Operation(summary = "접수")
@PostMapping(value = "/accept/all", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> accept() {
return new ResponseEntity<>(niceCiAcceptService.accept(), HttpStatus.OK);
}
/**
* NICE CI
* @return ResponseEntity
*/
@Operation(summary = "(대량)전송요청")
@PostMapping(value = "/send/bulk/all", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> sendBulk() {
return new ResponseEntity<>(niceCiSendService.requestSendBulk(), HttpStatus.OK);
}
/**
* NICE CI
* @return ResponseEntity
*/
@Operation(summary = "(대량)상태조회")
@PostMapping(value = "/stat/bulk/all", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> findBulkStatus() {
return new ResponseEntity<>(niceCiStatBulkService.findBulkStatus(), HttpStatus.OK);
}
/**
* NICE CI
* @return ResponseEntity
*/
@Operation(summary = "마감(종료)")
@PostMapping(value = "/stat/closed", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> cloased() {

@ -49,13 +49,13 @@ public class NiceCiNewTransactionService {
}
@Transactional(propagation = Propagation.REQUIRES_NEW)
public int insertNiceSmsSndngInquireResponseRepeats(final List<NiceCiApiResult> resultList){
return mapper.insertNiceSmsSndngInquireResponseRepeats(resultList);
public void insertNiceSmsSndngInquireResponseRepeats(final List<NiceCiApiResult> resultList){
mapper.insertNiceSmsSndngInquireResponseRepeats(resultList);
}
@Transactional(propagation = Propagation.REQUIRES_NEW)
public int insertSendResults(final List<NiceCiDTO.SendResult> sendResults){
return mapper.insertSendResults(sendResults);
public void insertSendResults(final List<NiceCiDTO.SendResult> sendResults){
mapper.insertSendResults(sendResults);
}
// status /////////////////////////////////////////////////////
}

@ -50,6 +50,11 @@ public class NiceCiApiService {
private static final Validator validator = Validation.buildDefaultValidatorFactory().getValidator();
/**
* NICE CI SMS API
* @param reqDTO NiceCiApiSendDTO.Request
* @return EnsResponseVO
*/
public EnsResponseVO<?> requestSendBulk(final NiceCiApiSendDTO.Request reqDTO) {
List<String> errors = new ArrayList<>();
final Set<ConstraintViolation<NiceCiApiSendDTO.Request>> list = validator.validate(reqDTO);
@ -90,6 +95,11 @@ public class NiceCiApiService {
.build();
}
/**
* NICE CI SMS API
* @param reqDTO NiceCiApiStatusDTO.Request
* @return EnsResponseVO
*/
public EnsResponseVO<?> findBulkStatus(final NiceCiApiStatusDTO.Request reqDTO) {
List<String> errors = new ArrayList<>();
final Set<ConstraintViolation<NiceCiApiStatusDTO.Request>> list = validator.validate(reqDTO);

Loading…
Cancel
Save