@ -48,6 +48,12 @@ public class EnsDTO {
@Schema(requiredMode = Schema.RequiredMode.AUTO, title = "발송처리상태", example = " ")
@Size(max = 5)
private String sndngProcessSttus;
/**
* 배치실행주기 - day|hour
*/
@Schema(hidden = true, requiredMode = Schema.RequiredMode.AUTO, title = "배치실행주기", example = "day|hour")
private String batchPeriod;
}
@Data
@ -44,9 +44,9 @@ import org.springframework.transaction.annotation.Transactional;
@Service
public class EnsBatchExtractService extends EgovAbstractServiceImpl implements
IEnsBatchExtractService {
@Value("${file.cmm.upload.root}")
@Value("${app.file.cmm.upload.root}")
private String fileRoot;
@Value("${file.cmm.upload.post}")
@Value("${app.file.cmm.upload.post}")
private String filePost;
private final IEnsBatchMapper mapper;
@ -591,6 +591,9 @@
WHERE tesm.sndng_process_sttus = #{sndngProcessSttus}
AND tesm.signgu_code = #{signguCode}
AND tesm.ffnlg_code = #{ffnlgCode}
<if test="batchPeriod != null and batchPeriod != ''">
AND tesm.sndng_dt <= now()
</if>
</select>
<select id="selectKakaoSendTgts" resultType="kr.xit.biz.ens.model.EnsDTO$SendKakaoTgt">