견적서 Plan 추가/삭제 API 수정

This commit is contained in:
LAPTOP-L3VE7KK2\USER 2025-01-13 17:58:04 +09:00
parent f851019ad5
commit 2b6aa2876f
2 changed files with 10 additions and 5 deletions

View File

@ -112,9 +112,10 @@ public class ObjectController {
@Operation(description = "물건정보의 플랜정보를 삭제한다.")
@DeleteMapping("/plan/{objectNo}/{planNo}")
@ResponseStatus(HttpStatus.NO_CONTENT)
public void deletePlan(@PathVariable String objectNo, @PathVariable String planNo)
public void deletePlan(
@PathVariable String objectNo, @PathVariable String planNo, PlanRequest planRequest)
throws Exception {
PlanRequest planRequest = new PlanRequest();
planRequest.setObjectNo(objectNo);
planRequest.setPlanNo(planNo);

View File

@ -740,12 +740,16 @@
)
</insert>
<delete id="deletePlan" parameterType="com.interplug.qcast.biz.object.dto.PlanRequest">
<update id="deletePlan" parameterType="com.interplug.qcast.biz.object.dto.PlanRequest">
/* sqlid : com.interplug.qcast.biz.object.deletePlan */
DELETE FROM T_PLAN
UPDATE T_PLAN
SET
DEL_FLG = '1'
, LAST_EDIT_DATETIME = GETDATE()
, LAST_EDIT_USER = #{userId}
WHERE OBJECT_NO = #{objectNo}
AND PLAN_NO = #{planNo}
</delete>
</update>
<update id="updateObjectNoChange" parameterType="com.interplug.qcast.biz.object.dto.ObjectRequest">
/* sqlid : com.interplug.qcast.biz.object.updateObjectChange */