발전시뮬레이션 수정

This commit is contained in:
DESKTOP-6ARNG1Q\dlsgk 2025-01-06 15:57:12 +09:00
parent 12182cd917
commit d3c57a6019
8 changed files with 27 additions and 22 deletions

View File

@ -93,12 +93,9 @@ public class StoreJobConfiguration implements JobExecutionListener {
createWriter( createWriter(
(items) -> { (items) -> {
try { try {
log.debug("Store batch processing {} items", items.size());
userService.setStoreBatch(items); userService.setStoreBatch(items);
log.debug("Successfully processed store batch");
} catch (Exception e) { } catch (Exception e) {
log.error("Error processing store batch: {}", e.getMessage(), e); log.error("Error processing store batch: {}", e.getMessage(), e);
throw new RuntimeException("Failed to process store batch", e);
} }
}, },
"store")); "store"));
@ -114,12 +111,9 @@ public class StoreJobConfiguration implements JobExecutionListener {
createWriter( createWriter(
(items) -> { (items) -> {
try { try {
log.debug("User batch processing {} items", items.size());
userService.setUserBatch(items); userService.setUserBatch(items);
log.debug("Successfully processed user batch");
} catch (Exception e) { } catch (Exception e) {
log.error("Error processing user batch: {}", e.getMessage(), e); log.error("Error processing user batch: {}", e.getMessage(), e);
throw new RuntimeException("Failed to process user batch", e);
} }
}, },
"user")); "user"));
@ -136,12 +130,9 @@ public class StoreJobConfiguration implements JobExecutionListener {
createWriter( createWriter(
(items) -> { (items) -> {
try { try {
log.debug("Favorite batch processing {} items", items.size());
storeFavService.setStoreFavoriteBatch(items); storeFavService.setStoreFavoriteBatch(items);
log.debug("Successfully processed favorite batch");
} catch (Exception e) { } catch (Exception e) {
log.error("Error processing favorite batch: {}", e.getMessage(), e); log.error("Error processing favorite batch: {}", e.getMessage(), e);
throw new RuntimeException("Failed to process favorite batch", e);
} }
}, },
"favorite")); "favorite"));

View File

@ -999,6 +999,17 @@ public class EstimateService {
pwrGnrSimService.selectPwrGnrSimulation(pwrGnrSimRequest); pwrGnrSimService.selectPwrGnrSimulation(pwrGnrSimRequest);
pwrGnrSimResponse.setPwrGnrSimType(estimateRequest.getPwrGnrSimType()); pwrGnrSimResponse.setPwrGnrSimType(estimateRequest.getPwrGnrSimType());
// 발전시뮬레이션 타입에 따른 list 셋팅
if ("A".equals(estimateRequest.getPwrGnrSimType())) {
pwrGnrSimResponse.setFrcPwrGnrList(pwrGnrSimResponse.getHatsudenryouAll());
} else if ("B".equals(estimateRequest.getPwrGnrSimType())) {
pwrGnrSimResponse.setFrcPwrGnrList(pwrGnrSimResponse.getHatsudenryouAllSnow());
} else if ("C".equals(estimateRequest.getPwrGnrSimType())) {
pwrGnrSimResponse.setFrcPwrGnrList(pwrGnrSimResponse.getHatsudenryouPeakcutAll());
} else if ("D".equals(estimateRequest.getPwrGnrSimType())) {
pwrGnrSimResponse.setFrcPwrGnrList(pwrGnrSimResponse.getHatsudenryouPeakcutAllSnow());
}
if (pwrGnrSimResponse != null) { if (pwrGnrSimResponse != null) {
try { try {
// 발전시뮬레이션 안내사항 조회 // 발전시뮬레이션 안내사항 조회

View File

@ -1319,16 +1319,7 @@ public class PwrGnrSimService {
public static Document pwrGnrSimPdfHtml(Document doc, PwrGnrSimResponse data) public static Document pwrGnrSimPdfHtml(Document doc, PwrGnrSimResponse data)
throws IOException, QcastException { throws IOException, QcastException {
String[] pwrGnrSimList = new String[13]; String[] pwrGnrSimList = data.getFrcPwrGnrList();
if ("A".equals(data.getPwrGnrSimType())) {
pwrGnrSimList = data.getHatsudenryouAll();
} else if ("B".equals(data.getPwrGnrSimType())) {
pwrGnrSimList = data.getHatsudenryouAllSnow();
} else if ("C".equals(data.getPwrGnrSimType())) {
pwrGnrSimList = data.getHatsudenryouPeakcutAll();
} else if ("D".equals(data.getPwrGnrSimType())) {
pwrGnrSimList = data.getHatsudenryouPeakcutAllSnow();
}
Element elm; Element elm;
@ -1494,6 +1485,9 @@ public class PwrGnrSimService {
elm.append(sb.toString()); elm.append(sb.toString());
} }
elm = doc.getElementById("guideInfo");
elm.append(data.getGuideInfo());
return doc; return doc;
} }

View File

@ -9,6 +9,9 @@ public class PwrGnrSimResponse {
@Schema(description = "적재율") @Schema(description = "적재율")
private double sekisairitsu; private double sekisairitsu;
@Schema(description = "엑셀/PDF 다운로드시 LIST")
private String[] frcPwrGnrList;
@Schema(description = "적설 고려 없음 (피크 컷 없음 발전량) Type : A") @Schema(description = "적설 고려 없음 (피크 컷 없음 발전량) Type : A")
private String[] hatsudenryouAll; private String[] hatsudenryouAll;

View File

@ -61,6 +61,7 @@
AND C.ITEM_GROUP ='PC_' AND C.ITEM_GROUP ='PC_'
group by B.ITEM_ID, B.ITEM_NO, C.CNV_EFF , C.AMP ,B.SPECIFICATION group by B.ITEM_ID, B.ITEM_NO, C.CNV_EFF , C.AMP ,B.SPECIFICATION
ORDER BY B.SPECIFICATION ORDER BY B.SPECIFICATION
/* TODO :: 직렬,병렬 조건 추가필요 */
</select> </select>
@ -80,6 +81,10 @@
, C.CNV_EFF , C.CNV_EFF
, C.AMP , C.AMP
, B.SPECIFICATION , B.SPECIFICATION
, A.ROOF_SURFACE
, A.CLASS_TYPE
, A.AZIMUTH
, (CASE WHEN A.CLASS_TYPE = 0 THEN A.SLOPE ELSE A.ANGLE END) AS SLOPE_ANGLE
FROM T_ROOF_ESTIMATE A WITH (NOLOCK) FROM T_ROOF_ESTIMATE A WITH (NOLOCK)
INNER JOIN T_ROOF_ITEM_ESTIMATE B WITH (NOLOCK) INNER JOIN T_ROOF_ITEM_ESTIMATE B WITH (NOLOCK)
ON A.OBJECT_NO = B.OBJECT_NO ON A.OBJECT_NO = B.OBJECT_NO

View File

@ -215,7 +215,7 @@
) VALUES ( ) VALUES (
#{userId} #{userId}
, #{saleStoreId} , #{saleStoreId}
, #{userId} , SUBSTRING(#{userId},0,31)
, #{category} , #{category}
, #{name} , #{name}
, #{nameKana} , #{nameKana}

View File

@ -612,7 +612,8 @@
● Hanwha Japan 年間発電量シミュレーション案内事項 ● Hanwha Japan 年間発電量シミュレーション案内事項
</div> </div>
<div class="guide-box"> <div class="guide-box">
<div class="guide-content" id="guideInfo"></div> <pre class="guide-content" id="guideInfo">
</pre>
</div> </div>
</div> </div>
<div class="section4"> <div class="section4">

File diff suppressed because one or more lines are too long