견적서 API 쿼리 수정

This commit is contained in:
LAPTOP-L3VE7KK2\USER 2024-11-27 13:01:11 +09:00
parent b1478e8a7b
commit bb706a983c
2 changed files with 5 additions and 2 deletions

View File

@ -565,7 +565,10 @@ public class EstimateService {
}
// 견적서 정보 수정
estimateRequest.setPriceCd("UNIT_PRICE");
estimateRequest.setPriceCd(
!StringUtils.isEmpty(estimateRequest.getPriceCd())
? estimateRequest.getPriceCd()
: "UNIT_PRICE");
estimateMapper.updateEstimate(estimateRequest);
// 도면 작성일 경우에만 지붕재 데이터 초기화 저장

View File

@ -470,7 +470,7 @@
SELECT
MAX(T.CODE_NM) AS CODE_NM
, STUFF((
SELECT ',' + CODE FROM M_COMM_L T2
SELECT '' + CODE FROM M_COMM_L T2
WHERE T2.HEAD_CD = '202400' AND T.REF_CHR3 = T2.REF_CHR3
FOR XML PATH('')),1,1,''
) AS CODE