feat: batch send 실행주기 추가

dev
gitea-관리자 1 year ago
parent b1d79de378
commit 7aae2c3aa3

@ -48,6 +48,12 @@ public class EnsDTO {
@Schema(requiredMode = Schema.RequiredMode.AUTO, title = "발송처리상태", example = " ") @Schema(requiredMode = Schema.RequiredMode.AUTO, title = "발송처리상태", example = " ")
@Size(max = 5) @Size(max = 5)
private String sndngProcessSttus; private String sndngProcessSttus;
/**
* - day|hour
*/
@Schema(hidden = true, requiredMode = Schema.RequiredMode.AUTO, title = "배치실행주기", example = "day|hour")
private String batchPeriod;
} }
@Data @Data

@ -44,9 +44,9 @@ import org.springframework.transaction.annotation.Transactional;
@Service @Service
public class EnsBatchExtractService extends EgovAbstractServiceImpl implements public class EnsBatchExtractService extends EgovAbstractServiceImpl implements
IEnsBatchExtractService { IEnsBatchExtractService {
@Value("${file.cmm.upload.root}") @Value("${app.file.cmm.upload.root}")
private String fileRoot; private String fileRoot;
@Value("${file.cmm.upload.post}") @Value("${app.file.cmm.upload.post}")
private String filePost; private String filePost;
private final IEnsBatchMapper mapper; private final IEnsBatchMapper mapper;

@ -591,6 +591,9 @@
WHERE tesm.sndng_process_sttus = #{sndngProcessSttus} WHERE tesm.sndng_process_sttus = #{sndngProcessSttus}
AND tesm.signgu_code = #{signguCode} AND tesm.signgu_code = #{signguCode}
AND tesm.ffnlg_code = #{ffnlgCode} AND tesm.ffnlg_code = #{ffnlgCode}
<if test="batchPeriod != null and batchPeriod != ''">
AND tesm.sndng_dt &lt;= now()
</if>
</select> </select>
<select id="selectKakaoSendTgts" resultType="kr.xit.biz.ens.model.EnsDTO$SendKakaoTgt"> <select id="selectKakaoSendTgts" resultType="kr.xit.biz.ens.model.EnsDTO$SendKakaoTgt">

Loading…
Cancel
Save