mirror of
https://git.hmsn.ink/kospo/svcm/api.git
synced 2026-03-20 00:32:17 +09:00
예외사유 대상 조회 오류 수정
This commit is contained in:
@@ -30,8 +30,8 @@ public interface ContRepository extends JpaRepository<Cont, String> {
|
|||||||
String getRegSabun();
|
String getRegSabun();
|
||||||
}
|
}
|
||||||
@Query(value = "select c.contNo as contNo, " +
|
@Query(value = "select c.contNo as contNo, " +
|
||||||
" p.cateCd as cateCd, " +
|
" c.cateCd as cateCd, " +
|
||||||
" p.cateNm as cateNm, " +
|
" c.cateNm as cateNm, " +
|
||||||
" c.compNm as compNm, " +
|
" c.compNm as compNm, " +
|
||||||
" c.title as title, " +
|
" c.title as title, " +
|
||||||
" c.signDt as signDt, " +
|
" c.signDt as signDt, " +
|
||||||
@@ -41,9 +41,8 @@ public interface ContRepository extends JpaRepository<Cont, String> {
|
|||||||
" c.regDt as regDt, " +
|
" c.regDt as regDt, " +
|
||||||
" c.regNm as regNm, " +
|
" c.regNm as regNm, " +
|
||||||
" c.regSabun as regSabun " +
|
" c.regSabun as regSabun " +
|
||||||
"from Cont c inner join Prcs p " +
|
"from Cont c " +
|
||||||
"on c.prcsNo = p.prcsNo " +
|
"where c.regSabun = :sabun " +
|
||||||
"and c.regSabun = :sabun " +
|
|
||||||
"and (:contStatCd is null or :contStatCd = '' or c.contStatCd = :contStatCd) " +
|
"and (:contStatCd is null or :contStatCd = '' or c.contStatCd = :contStatCd) " +
|
||||||
"and c.signDt between :signSdt and :signEdt order by c.contNo desc")
|
"and c.signDt between :signSdt and :signEdt order by c.contNo desc")
|
||||||
Page<IContResponse> findBySearch(String sabun, String contStatCd, String signSdt, String signEdt, Pageable pageable);
|
Page<IContResponse> findBySearch(String sabun, String contStatCd, String signSdt, String signEdt, Pageable pageable);
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
@@ -130,7 +131,8 @@ public class ContServiceImpl implements ContService {
|
|||||||
.build());
|
.build());
|
||||||
|
|
||||||
if(contSaveRequest.getContAtts() != null && contSaveRequest.getContAtts().size() > 0){
|
if(contSaveRequest.getContAtts() != null && contSaveRequest.getContAtts().size() > 0){
|
||||||
cont.setContAtts(contAttRepository.saveAll(contSaveRequest.getContAtts().stream().map(contAttSaveRequest -> {
|
|
||||||
|
cont.setContAtts(contAttRepository.saveAll(contSaveRequest.getContAtts().stream().filter(Objects::nonNull).map(contAttSaveRequest -> {
|
||||||
String pNm = CommonUtils.dateFormat("yyyyMMddHHmmssSSS");
|
String pNm = CommonUtils.dateFormat("yyyyMMddHHmmssSSS");
|
||||||
fileUtils.fileUpload(filePath + pNm, contAttSaveRequest.getData());
|
fileUtils.fileUpload(filePath + pNm, contAttSaveRequest.getData());
|
||||||
return ContAtt.builder()
|
return ContAtt.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user