Compare commits
No commits in common. "3a1a85caaec03b5179068afe6d9f5abf56228f9e" and "1de1a09f5d539cda0b00ffe712b2e05623b326ef" have entirely different histories.
3a1a85caae
...
1de1a09f5d
@ -10,6 +10,7 @@ import java.math.BigDecimal;
|
|||||||
import java.net.HttpURLConnection;
|
import java.net.HttpURLConnection;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.net.URLConnection;
|
import java.net.URLConnection;
|
||||||
|
import java.security.cert.X509Certificate;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@ -72,6 +73,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
|||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@ -1495,12 +1497,18 @@ public class EstimateService {
|
|||||||
|
|
||||||
estimateResponse.setPwrGnrSim(pwrGnrSimResponse);
|
estimateResponse.setPwrGnrSim(pwrGnrSimResponse);
|
||||||
|
|
||||||
|
|
||||||
// 도면 이미지 셋팅
|
// 도면 이미지 셋팅
|
||||||
String baseDrawingImgName = estimateRequest.getObjectNo() + "_" + estimateRequest.getPlanNo();
|
String baseDrawingImgName = estimateRequest.getObjectNo() + "_" + estimateRequest.getPlanNo();
|
||||||
|
|
||||||
URL url = new URL(drawingDirPath + File.separator + baseDrawingImgName + "_1.png");
|
URL url = new URL(drawingDirPath + File.separator + baseDrawingImgName + "_1.png");
|
||||||
URLConnection con = url.openConnection();
|
URLConnection con = url.openConnection();
|
||||||
HttpURLConnection exitCode = (HttpURLConnection) con;
|
HttpURLConnection exitCode = (HttpURLConnection) con;
|
||||||
|
|
||||||
|
System.err.println("exitCode: " + exitCode);
|
||||||
|
System.err.println("Exit code: " + exitCode.getResponseCode());
|
||||||
|
|
||||||
|
|
||||||
if (exitCode.getResponseCode() == 200) {
|
if (exitCode.getResponseCode() == 200) {
|
||||||
InputStream imageInputStream =
|
InputStream imageInputStream =
|
||||||
new URL(drawingDirPath + File.separator + baseDrawingImgName + "_1.png").openStream();
|
new URL(drawingDirPath + File.separator + baseDrawingImgName + "_1.png").openStream();
|
||||||
|
|||||||
@ -362,12 +362,7 @@
|
|||||||
<select id="selectEstimateRoofCertVolKw" parameterType="com.interplug.qcast.biz.estimate.dto.EstimateRequest" resultType="String">
|
<select id="selectEstimateRoofCertVolKw" parameterType="com.interplug.qcast.biz.estimate.dto.EstimateRequest" resultType="String">
|
||||||
/* sqlid : com.interplug.qcast.biz.estimate.selectEstimateRoofCertVolKw */
|
/* sqlid : com.interplug.qcast.biz.estimate.selectEstimateRoofCertVolKw */
|
||||||
SELECT
|
SELECT
|
||||||
-- FORMAT(ISNULL(SUM(CASE WHEN T.MODULE_VOL_KW <![CDATA[ <= ]]> T.PC_VOL_KW THEN T.MODULE_VOL_KW ELSE T.PC_VOL_KW END), 0), '#,##0.000') AS CERT_VOL_KW
|
FORMAT(ISNULL(SUM(CASE WHEN T.MODULE_VOL_KW <![CDATA[ <= ]]> T.PC_VOL_KW THEN T.MODULE_VOL_KW ELSE T.PC_VOL_KW END), 0), '#,##0.000') AS CERT_VOL_KW
|
||||||
REPLACE(CONVERT(VARCHAR, CAST(ISNULL(SUM(
|
|
||||||
CASE
|
|
||||||
WHEN T.MODULE_VOL_KW <![CDATA[ <= ]]> T.PC_VOL_KW THEN T.MODULE_VOL_KW
|
|
||||||
ELSE T.PC_VOL_KW
|
|
||||||
END), 0) AS NUMERIC(18, 3)), 1), ',', '') AS CERT_VOL_KW
|
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user