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

View File

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

View File

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