This commit is contained in:
sungsu
2024-01-25 17:14:28 +09:00
parent 90dffc18fd
commit 236c022a54
12 changed files with 26 additions and 22 deletions

View File

@@ -116,7 +116,7 @@ public class ProductOutController {
// 삭제 // 삭제
@DeleteMapping("/delete") @PutMapping("/delete")
@ResponseBody @ResponseBody
public int delete(ProductOutDto dto) { public int delete(ProductOutDto dto) {
System.out.println("데이터 :: " + dto); System.out.println("데이터 :: " + dto);

View File

@@ -153,7 +153,7 @@ public class StockController {
// 삭제 // 삭제
@DeleteMapping("/delete") @PutMapping("/delete")
@ResponseBody @ResponseBody
public int delete(StockDto dto) { public int delete(StockDto dto) {
System.out.println("데이터 :: " + dto); System.out.println("데이터 :: " + dto);

View File

@@ -129,7 +129,7 @@ public class VendorController {
// 삭제 // 삭제
@DeleteMapping("/vendor/delete") @PutMapping("/vendor/delete")
@ResponseBody @ResponseBody
public int delete(String id) { public int delete(String id) {
int i = service.deleteVendor(id); int i = service.deleteVendor(id);

View File

@@ -143,7 +143,7 @@ public class WarehouseController {
// 삭제 // 삭제
@DeleteMapping("/warehouse/delete") @PutMapping("/warehouse/delete")
@ResponseBody @ResponseBody
public int delete(String id) { public int delete(String id) {
int i = service.deleteWarehouse(id); int i = service.deleteWarehouse(id);

View File

@@ -137,11 +137,11 @@
<!-- insert --> <!-- insert -->
<!-- delete --> <!-- delete -->
<delete id="outNow" parameterType="com.no1.wms.out.ProductOutDto"> <update id="outNow" parameterType="com.no1.wms.out.ProductOutDto">
delete update product_out
from product_out set activation = 0
where id = #{id} where id = #{id}
</delete> </update>
<!-- delete --> <!-- delete -->

View File

@@ -214,11 +214,11 @@
<!-- insert --> <!-- insert -->
<!-- delete --> <!-- delete -->
<delete id="deleteStock" parameterType="com.no1.wms.stock.StockDto"> <update id="deleteStock" parameterType="com.no1.wms.stock.StockDto">
delete update stock
from stock set activation = 0
where id = #{id} where id = #{id}
</delete> </update>
<!-- delete --> <!-- delete -->

View File

@@ -120,8 +120,10 @@
<!-- insert --> <!-- insert -->
<!-- delete --> <!-- delete -->
<delete id="deleteVendor" parameterType="String"> <update id="deleteVendor" parameterType="String">
delete from vendor where id = #{id} update vendor
</delete> set activation = 0
where id = #{id}
</update>
<!-- delete --> <!-- delete -->
</mapper> </mapper>

View File

@@ -99,8 +99,10 @@
<!-- insert --> <!-- insert -->
<!-- delete --> <!-- delete -->
<delete id="deleteWarehouse" parameterType="String"> <update id="deleteWarehouse" parameterType="String">
delete from warehouse where id = #{id} update warehouse
</delete> set activation = 0
where id = #{id}
</update>
<!-- delete --> <!-- delete -->
</mapper> </mapper>

View File

@@ -180,7 +180,7 @@
$.ajax({ $.ajax({
url: "/out/delete", url: "/out/delete",
type: "delete", type: "put",
data: { data: {
"id": id, "id": id,

View File

@@ -151,7 +151,7 @@
$.ajax({ $.ajax({
url: "/stock/delete", url: "/stock/delete",
type: "delete", type: "put",
data: { data: {
"id": id, "id": id,
"warehouseId": warehouse_id, "warehouseId": warehouse_id,

View File

@@ -142,7 +142,7 @@
var id = $("#id").val(); var id = $("#id").val();
$.ajax({ $.ajax({
url: "/vendor/delete", url: "/vendor/delete",
type: "delete", type: "put",
data: { data: {
"id": id "id": id
}, },

View File

@@ -189,7 +189,7 @@
var id = $("#id").val(); var id = $("#id").val();
$.ajax({ $.ajax({
url: "/warehouse/delete", url: "/warehouse/delete",
type: "delete", type: "put",
data: { data: {
"id": id "id": id
}, },