견적서 Plan 추가/삭제 API 수정
This commit is contained in:
parent
f851019ad5
commit
2b6aa2876f
@ -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);
|
||||
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user