Merge pull request '복사 할때 T_CANVAS_POPUP_STATUS 내용도 복사' (#46) from feature/cha into dev

Reviewed-on: #46
This commit is contained in:
ysCha 2025-06-02 17:50:10 +09:00
commit 4b9758846f
4 changed files with 22 additions and 0 deletions

View File

@ -150,4 +150,6 @@ public interface EstimateMapper {
public int updateEstimateInit(EstimateRequest estimateRequest);
public int updateEstimateInfoInit(EstimateRequest estimateRequest);
public int insertCanvasPopupStatusCopy(EstimateCopyRequest estimateCopyRequest);
}

View File

@ -901,6 +901,7 @@ public class EstimateService {
estimateCopyRequest.setCopyPlanNo("1");
estimateMapper.insertEstimateCopy(estimateCopyRequest);
estimateMapper.insertEstimateInfoCopy(estimateCopyRequest);
estimateMapper.insertCanvasPopupStatusCopy(estimateCopyRequest);
// [5]. 견적서 아이템 복사
for (ItemRequest itemRequest : itemList) {

View File

@ -670,6 +670,7 @@ public class ObjectService {
estimateCopyRequest.setUserId(planRequest.getUserId());
estimateMapper.insertEstimateCopy(estimateCopyRequest);
estimateMapper.insertEstimateInfoCopy(estimateCopyRequest);
estimateMapper.insertCanvasPopupStatusCopy(estimateCopyRequest);
if (estimateResponse != null && !StringUtils.isEmpty(estimateResponse.getEstimateDate())) {
// [4]. 견적서 아이템 복사

View File

@ -1371,6 +1371,24 @@
AND PDE.PLAN_NO = #{planNo}
</insert>
<insert id="insertCanvasPopupStatusCopy" parameterType="com.interplug.qcast.biz.estimate.dto.EstimateCopyRequest">
INSERT INTO T_CANVAS_POPUP_STATUS
(
OBJECT_NO
, PLAN_NO
, POPUP_TYPE
, POPUP_STATUS
)
SELECT
#{copyObjectNo} AS OBJECT_NO
, #{copyPlanNo} AS PLAN_NO
, POPUP_TYPE
, POPUP_STATUS
FROM T_CANVAS_POPUP_STATUS O WITH (NOLOCK)
WHERE O.OBJECT_NO = #{objectNo}
AND PLAN_NO = #{planNo}
</insert>
<update id="updatePlanConfirmSync" parameterType="com.interplug.qcast.biz.estimate.dto.PlanSyncResponse">
/* sqlid : com.interplug.qcast.biz.estimate.updatePlanConfirmSync */
UPDATE T_PLAN