견적서 PDF 다운로드 API 개발

This commit is contained in:
LAPTOP-L3VE7KK2\USER 2024-11-14 18:12:33 +09:00
parent c7d9400463
commit 98fe9b7427
4 changed files with 12 additions and 5 deletions

View File

@ -785,10 +785,6 @@ public class EstimateService {
for (ItemResponse itemResponse : estimateItemList) { for (ItemResponse itemResponse : estimateItemList) {
itemResponse.setNo(String.valueOf(j++)); itemResponse.setNo(String.valueOf(j++));
System.out.println(">>>>>>>>>" + itemResponse.getSalePrice());
System.out.println(">>>>>>>>>" + itemResponse.getAmount());
System.out.println(">>>>>>>>>" + itemResponse.getSaleTotPrice());
// 문자열 통화로 변환 처리 // 문자열 통화로 변환 처리
itemResponse.setSalePrice( itemResponse.setSalePrice(
String.format("%1$,.0f", Double.parseDouble(itemResponse.getSalePrice()))); String.format("%1$,.0f", Double.parseDouble(itemResponse.getSalePrice())));
@ -844,7 +840,7 @@ public class EstimateService {
estimateResponse.setPwrGnrSim(pwrGnrSimResponse); estimateResponse.setPwrGnrSim(pwrGnrSimResponse);
if (true) { // PDF 다운로드 if ("PDF".equals(estimateRequest.getSchDownload())) { // PDF 다운로드
String[] arrSection = new String[5]; // TODO Section 갯수 넣기 String[] arrSection = new String[5]; // TODO Section 갯수 넣기
int iSection = 0; int iSection = 0;

View File

@ -163,6 +163,9 @@ public class EstimateRequest {
private String[] arrItemId; private String[] arrItemId;
// 다운로드 관련 조건 // 다운로드 관련 조건
@Schema(description = "검색 - 다운로드 구분")
private String schDownload;
@Schema(description = "검색 - 다운로드 정가 표시여부") @Schema(description = "검색 - 다운로드 정가 표시여부")
private String schUnitPriceFlg; private String schUnitPriceFlg;

View File

@ -609,11 +609,15 @@
, OBJECT_NO , OBJECT_NO
, PLAN_NO , PLAN_NO
, DISP_ORDER , DISP_ORDER
<if test='paDispOrder != null and paDispOrder != ""'>
, PA_DISP_ORDER
</if>
, ITEM_ID , ITEM_ID
, ITEM_NO , ITEM_NO
, ITEM_NAME , ITEM_NAME
, UNIT , UNIT
, AMOUNT , AMOUNT
, BOM_AMOUNT
, UNIT_PRICE , UNIT_PRICE
, SALE_PRICE , SALE_PRICE
<if test='specialNoteCd != null and specialNoteCd != ""'> <if test='specialNoteCd != null and specialNoteCd != ""'>
@ -631,11 +635,15 @@
, #{objectNo} , #{objectNo}
, #{planNo} , #{planNo}
, #{dispOrder} , #{dispOrder}
<if test='paDispOrder != null and paDispOrder != ""'>
, #{paDispOrder}
</if>
, #{itemId} , #{itemId}
, #{itemNo} , #{itemNo}
, #{itemName} , #{itemName}
, #{unit} , #{unit}
, #{amount} , #{amount}
, #{bomAmount}
, #{unitPrice} , #{unitPrice}
, #{salePrice} , #{salePrice}
<if test='specialNoteCd != null and specialNoteCd != ""'> <if test='specialNoteCd != null and specialNoteCd != ""'>