Compare commits
10 Commits
27812c6908
...
7a3fb61f2c
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a3fb61f2c | |||
| f521ed9ed2 | |||
| 295908641f | |||
| 60e0336cc5 | |||
| f1e7ff2e0c | |||
| b73b969b84 | |||
| c8e91551f1 | |||
| ca06fb2253 | |||
| 989f27b149 | |||
| 33ffaac9ea |
@ -7,6 +7,9 @@ import java.io.FileInputStream;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.net.HttpURLConnection;
|
||||||
|
import java.net.URL;
|
||||||
|
import java.net.URLConnection;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@ -1494,21 +1497,40 @@ public class EstimateService {
|
|||||||
|
|
||||||
// 도면 이미지 셋팅
|
// 도면 이미지 셋팅
|
||||||
String baseDrawingImgName = estimateRequest.getObjectNo() + "_" + estimateRequest.getPlanNo();
|
String baseDrawingImgName = estimateRequest.getObjectNo() + "_" + estimateRequest.getPlanNo();
|
||||||
File file = new File(drawingDirPath + File.separator + baseDrawingImgName + "_1.png");
|
|
||||||
if (file.exists()) {
|
URL url = new URL(drawingDirPath + File.separator + baseDrawingImgName + "_1.png");
|
||||||
|
URLConnection con = url.openConnection();
|
||||||
|
HttpURLConnection exitCode = (HttpURLConnection)con;
|
||||||
|
if (exitCode.getResponseCode() == 200) {
|
||||||
InputStream imageInputStream =
|
InputStream imageInputStream =
|
||||||
new FileInputStream(drawingDirPath + File.separator + baseDrawingImgName + "_1.png");
|
new URL(drawingDirPath + File.separator + baseDrawingImgName + "_1.png").openStream();
|
||||||
byte[] drawingImg1 = Util.toByteArray(imageInputStream);
|
byte[] drawingImg1 = Util.toByteArray(imageInputStream);
|
||||||
estimateResponse.setDrawingImg1(drawingImg1);
|
estimateResponse.setDrawingImg1(drawingImg1);
|
||||||
}
|
}
|
||||||
|
// File file = new File(drawingDirPath + File.separator + baseDrawingImgName + "_1.png");
|
||||||
file = new File(drawingDirPath + File.separator + baseDrawingImgName + "_2.png");
|
// if (file.exists()) {
|
||||||
if (file.exists()) {
|
// InputStream imageInputStream =
|
||||||
|
// new FileInputStream(drawingDirPath + File.separator + baseDrawingImgName + "_1.png");
|
||||||
|
// byte[] drawingImg1 = Util.toByteArray(imageInputStream);
|
||||||
|
// estimateResponse.setDrawingImg1(drawingImg1);
|
||||||
|
// }
|
||||||
|
String baseDrawingImgName2 = estimateRequest.getObjectNo() + "_" + estimateRequest.getPlanNo();
|
||||||
|
URL url2 = new URL(drawingDirPath + File.separator + baseDrawingImgName2 + "_2.png");
|
||||||
|
URLConnection con2 = url2.openConnection();
|
||||||
|
HttpURLConnection exitCode2 = (HttpURLConnection)con2;
|
||||||
|
if (exitCode2.getResponseCode() == 200) {
|
||||||
InputStream imageInputStream2 =
|
InputStream imageInputStream2 =
|
||||||
new FileInputStream(drawingDirPath + File.separator + baseDrawingImgName + "_2.png");
|
new URL(drawingDirPath + File.separator + baseDrawingImgName + "_2.png").openStream();
|
||||||
byte[] drawingImg2 = Util.toByteArray(imageInputStream2);
|
byte[] drawingImg2 = Util.toByteArray(imageInputStream2);
|
||||||
estimateResponse.setDrawingImg2(drawingImg2);
|
estimateResponse.setDrawingImg1(drawingImg2);
|
||||||
}
|
}
|
||||||
|
// file = new File(drawingDirPath + File.separator + baseDrawingImgName + "_2.png");
|
||||||
|
// if (file.exists()) {
|
||||||
|
// InputStream imageInputStream2 =
|
||||||
|
// new FileInputStream(drawingDirPath + File.separator + baseDrawingImgName + "_2.png");
|
||||||
|
// byte[] drawingImg2 = Util.toByteArray(imageInputStream2);
|
||||||
|
// estimateResponse.setDrawingImg2(drawingImg2);
|
||||||
|
// }
|
||||||
|
|
||||||
if ("PDF".equals(estimateRequest.getSchDownload())) { // PDF 다운로드
|
if ("PDF".equals(estimateRequest.getSchDownload())) { // PDF 다운로드
|
||||||
String[] arrSection = new String[6];
|
String[] arrSection = new String[6];
|
||||||
|
|||||||
@ -58,7 +58,7 @@ file:
|
|||||||
root.path: /home/development/public/files
|
root.path: /home/development/public/files
|
||||||
ini.root.path: /home/development/public/files/NewEstimate
|
ini.root.path: /home/development/public/files/NewEstimate
|
||||||
ini.base.filename: 料金シミュレーション.ini
|
ini.base.filename: 料金シミュレーション.ini
|
||||||
ini.drawing.img.path: /home/development/public/files/NewEstimate/Drawing
|
ini.drawing.img.path: https://files.hanasys.jp/Drawing
|
||||||
|
|
||||||
front:
|
front:
|
||||||
url: http://1.248.227.176:3000
|
url: http://1.248.227.176:3000
|
||||||
@ -39,7 +39,7 @@ spring:
|
|||||||
|
|
||||||
#QSP
|
#QSP
|
||||||
qsp:
|
qsp:
|
||||||
url: http://localhost:8120
|
url: http://1.248.227.176:8120
|
||||||
master-store-batch-url: /api/master/storeAdditionalInfo
|
master-store-batch-url: /api/master/storeAdditionalInfo
|
||||||
master-material-batch-url: /api/master/materialList
|
master-material-batch-url: /api/master/materialList
|
||||||
master-bom-batch-url: /api/master/bomList
|
master-bom-batch-url: /api/master/bomList
|
||||||
|
|||||||
@ -58,7 +58,7 @@ file:
|
|||||||
root.path: /home/production/public/files
|
root.path: /home/production/public/files
|
||||||
ini.root.path: /home/production/public/files/NewEstimate
|
ini.root.path: /home/production/public/files/NewEstimate
|
||||||
ini.base.filename: 料金シミュレーション.ini
|
ini.base.filename: 料金シミュレーション.ini
|
||||||
ini.drawing.img.path: /home/production/public/files/NewEstimate/Drawing
|
ini.drawing.img.path: https://files.hanasys.jp/Drawing
|
||||||
|
|
||||||
front:
|
front:
|
||||||
url: https://hanasys.jp
|
url: https://hanasys.jp
|
||||||
@ -65,7 +65,7 @@ file:
|
|||||||
root.path: /home/development/public/files
|
root.path: /home/development/public/files
|
||||||
ini.root.path: /home/development/public/files/NewEstimate
|
ini.root.path: /home/development/public/files/NewEstimate
|
||||||
ini.base.filename: 料金シミュレーション.ini
|
ini.base.filename: 料金シミュレーション.ini
|
||||||
ini.drawing.img.path: /home/development/public/files/NewEstimate/Drawing
|
ini.drawing.img.path: https://files.hanasys.jp/Drawing
|
||||||
|
|
||||||
# log
|
# log
|
||||||
logging:
|
logging:
|
||||||
|
|||||||
@ -322,7 +322,6 @@
|
|||||||
, II.ITEM_CTG_GR
|
, II.ITEM_CTG_GR
|
||||||
, ISNULL(PPM.SALE_PRICE, '0') AS SALE_PRICE
|
, ISNULL(PPM.SALE_PRICE, '0') AS SALE_PRICE
|
||||||
, CASE WHEN PPM.SALE_PRICE = 0 THEN '1' ELSE '0' END AS OPEN_FLG
|
, CASE WHEN PPM.SALE_PRICE = 0 THEN '1' ELSE '0' END AS OPEN_FLG
|
||||||
, CASE WHEN PPM.UNIT_PRICE = 0 AND PPM.SALE_PRICE <![CDATA[ <> ]]> 0 THEN '1' ELSE '0' END AS UNIT_OPEN_FLG
|
|
||||||
FROM M_ITEM I WITH (NOLOCK)
|
FROM M_ITEM I WITH (NOLOCK)
|
||||||
INNER JOIN M_ITEM_INFO II WITH (NOLOCK)
|
INNER JOIN M_ITEM_INFO II WITH (NOLOCK)
|
||||||
ON I.ITEM_ID = II.ITEM_ID
|
ON I.ITEM_ID = II.ITEM_ID
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user