등록기간 종료 처리

This commit is contained in:
2025-05-27 01:03:03 +00:00
parent 2e95f2c854
commit d2129436a2
3 changed files with 6 additions and 2 deletions

View File

@@ -11,7 +11,9 @@ public interface PrcsBizRepository extends JpaRepository<PrcsBiz, PrcsBizId> {
"inner join PrcsBiz pb on p.prcsNo = pb.id.prcsNo \n" + "inner join PrcsBiz pb on p.prcsNo = pb.id.prcsNo \n" +
"inner join ApprMst am on am.prcsNo = p.prcsNo \n" + "inner join ApprMst am on am.prcsNo = p.prcsNo \n" +
"and pb.id.bizNo = :bizNo " + "and pb.id.bizNo = :bizNo " +
"and p.stCd = '0200' and pb.estStatCd = '0000' and am.apprStatCd = '0200' ") "and p.stCd = '0200' and pb.estStatCd = '0000' and am.apprStatCd = '0200' " +
"and p.regSdat >= to_char(current_date, 'yyyy-MM-dd') " +
"and p.regEdat <= to_char(current_date, 'yyyy-MM-dd') ")
int countReqByBizNo(String bizNo); int countReqByBizNo(String bizNo);
/*입찰 상태 변경*/ /*입찰 상태 변경*/

View File

@@ -98,6 +98,8 @@ public interface PrcsRepository extends JpaRepository<Prcs, String> {
"inner join ApprMst am on am.prcsNo = p.prcsNo \n" + "inner join ApprMst am on am.prcsNo = p.prcsNo \n" +
"and pb.id.bizNo = :bizNo " + "and pb.id.bizNo = :bizNo " +
"and p.stCd = '0200' and pb.estStatCd = '0000' and am.apprStatCd = '0200' " + "and p.stCd = '0200' and pb.estStatCd = '0000' and am.apprStatCd = '0200' " +
"and p.regSdat >= to_char(current_date, 'yyyy-MM-dd') " +
"and p.regEdat <= to_char(current_date, 'yyyy-MM-dd') " +
"and (:cateCd is null or :cateCd = '' or p.cateCd = :cateCd) " + "and (:cateCd is null or :cateCd = '' or p.cateCd = :cateCd) " +
"and (:regNm is null or :regNm = '' or p.regNm like concat('%', :regNm, '%'))" + "and (:regNm is null or :regNm = '' or p.regNm like concat('%', :regNm, '%'))" +
"and (:title is null or :title = '' or p.title like concat('%', :title, '%'))" + "and (:title is null or :title = '' or p.title like concat('%', :title, '%'))" +

View File

@@ -81,7 +81,7 @@ public class ContServiceImpl implements ContService {
if(prcs != null) { if(prcs != null) {
if(!prcs.getSvyYn()) throw new CustomException(ErrorCode.No_SVY_NOT_EXECUTE); if(!prcs.getSvyYn()) throw new CustomException(ErrorCode.No_SVY_NOT_EXECUTE);
} else { } else {
if(!contSaveRequest.isExcYn() || StringUtil.isBlank(contSaveRequest.getReason())) throw new CustomMessageException(CustomMessageException.CusMessage.builder() if(contSaveRequest.isExcYn() && StringUtil.isBlank(contSaveRequest.getReason())) throw new CustomMessageException(CustomMessageException.CusMessage.builder()
.code("999999") .code("999999")
.message("가격조사를 안했을 시 예외 사유는 필수 입니다.") .message("가격조사를 안했을 시 예외 사유는 필수 입니다.")
.build()); .build());