Compare commits
5 Commits
4799f03963
...
858940b8e8
| Author | SHA1 | Date | |
|---|---|---|---|
| 858940b8e8 | |||
| 5a888f18e6 | |||
| 803765de81 | |||
| 7832f9fee4 | |||
| 92124475ce |
@ -10,6 +10,7 @@ import java.math.BigDecimal;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@ -72,6 +73,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@ -1495,12 +1497,18 @@ public class EstimateService {
|
||||
|
||||
estimateResponse.setPwrGnrSim(pwrGnrSimResponse);
|
||||
|
||||
|
||||
// 도면 이미지 셋팅
|
||||
String baseDrawingImgName = estimateRequest.getObjectNo() + "_" + estimateRequest.getPlanNo();
|
||||
|
||||
URL url = new URL(drawingDirPath + File.separator + baseDrawingImgName + "_1.png");
|
||||
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) {
|
||||
InputStream imageInputStream =
|
||||
new URL(drawingDirPath + File.separator + baseDrawingImgName + "_1.png").openStream();
|
||||
@ -1517,7 +1525,7 @@ public class EstimateService {
|
||||
String baseDrawingImgName2 = estimateRequest.getObjectNo() + "_" + estimateRequest.getPlanNo();
|
||||
URL url2 = new URL(drawingDirPath + File.separator + baseDrawingImgName2 + "_2.png");
|
||||
URLConnection con2 = url2.openConnection();
|
||||
HttpURLConnection exitCode2 = (HttpURLConnection)con2;
|
||||
HttpURLConnection exitCode2 = (HttpURLConnection) con2;
|
||||
if (exitCode2.getResponseCode() == 200) {
|
||||
InputStream imageInputStream2 =
|
||||
new URL(drawingDirPath + File.separator + baseDrawingImgName2 + "_2.png").openStream();
|
||||
|
||||
@ -37,9 +37,9 @@ spring:
|
||||
profiles:
|
||||
scheduler: Y
|
||||
|
||||
#QSP
|
||||
#QSP url #http://jp.qsalesplatform.com
|
||||
qsp:
|
||||
url: http://1.248.227.176:8120
|
||||
url: http://172.16.56.60:8110
|
||||
master-store-batch-url: /api/master/storeAdditionalInfo
|
||||
master-material-batch-url: /api/master/materialList
|
||||
master-bom-batch-url: /api/master/bomList
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user