mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-04 12:13:24 +09:00
#수정
This commit is contained in:
@@ -116,7 +116,7 @@ public class ProductOutController {
|
||||
|
||||
|
||||
// 삭제
|
||||
@DeleteMapping("/delete")
|
||||
@PutMapping("/delete")
|
||||
@ResponseBody
|
||||
public int delete(ProductOutDto dto) {
|
||||
System.out.println("데이터 :: " + dto);
|
||||
|
||||
@@ -153,7 +153,7 @@ public class StockController {
|
||||
|
||||
|
||||
// 삭제
|
||||
@DeleteMapping("/delete")
|
||||
@PutMapping("/delete")
|
||||
@ResponseBody
|
||||
public int delete(StockDto dto) {
|
||||
System.out.println("데이터 :: " + dto);
|
||||
|
||||
@@ -129,7 +129,7 @@ public class VendorController {
|
||||
|
||||
|
||||
// 삭제
|
||||
@DeleteMapping("/vendor/delete")
|
||||
@PutMapping("/vendor/delete")
|
||||
@ResponseBody
|
||||
public int delete(String id) {
|
||||
int i = service.deleteVendor(id);
|
||||
|
||||
@@ -143,7 +143,7 @@ public class WarehouseController {
|
||||
|
||||
|
||||
// 삭제
|
||||
@DeleteMapping("/warehouse/delete")
|
||||
@PutMapping("/warehouse/delete")
|
||||
@ResponseBody
|
||||
public int delete(String id) {
|
||||
int i = service.deleteWarehouse(id);
|
||||
|
||||
@@ -137,11 +137,11 @@
|
||||
<!-- insert -->
|
||||
|
||||
<!-- delete -->
|
||||
<delete id="outNow" parameterType="com.no1.wms.out.ProductOutDto">
|
||||
delete
|
||||
from product_out
|
||||
<update id="outNow" parameterType="com.no1.wms.out.ProductOutDto">
|
||||
update product_out
|
||||
set activation = 0
|
||||
where id = #{id}
|
||||
</delete>
|
||||
</update>
|
||||
<!-- delete -->
|
||||
|
||||
|
||||
|
||||
@@ -214,11 +214,11 @@
|
||||
<!-- insert -->
|
||||
|
||||
<!-- delete -->
|
||||
<delete id="deleteStock" parameterType="com.no1.wms.stock.StockDto">
|
||||
delete
|
||||
from stock
|
||||
<update id="deleteStock" parameterType="com.no1.wms.stock.StockDto">
|
||||
update stock
|
||||
set activation = 0
|
||||
where id = #{id}
|
||||
</delete>
|
||||
</update>
|
||||
<!-- delete -->
|
||||
|
||||
|
||||
|
||||
@@ -120,8 +120,10 @@
|
||||
<!-- insert -->
|
||||
|
||||
<!-- delete -->
|
||||
<delete id="deleteVendor" parameterType="String">
|
||||
delete from vendor where id = #{id}
|
||||
</delete>
|
||||
<update id="deleteVendor" parameterType="String">
|
||||
update vendor
|
||||
set activation = 0
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- delete -->
|
||||
</mapper>
|
||||
@@ -99,8 +99,10 @@
|
||||
<!-- insert -->
|
||||
|
||||
<!-- delete -->
|
||||
<delete id="deleteWarehouse" parameterType="String">
|
||||
delete from warehouse where id = #{id}
|
||||
</delete>
|
||||
<update id="deleteWarehouse" parameterType="String">
|
||||
update warehouse
|
||||
set activation = 0
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- delete -->
|
||||
</mapper>
|
||||
@@ -180,7 +180,7 @@
|
||||
|
||||
$.ajax({
|
||||
url: "/out/delete",
|
||||
type: "delete",
|
||||
type: "put",
|
||||
data: {
|
||||
"id": id,
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
|
||||
$.ajax({
|
||||
url: "/stock/delete",
|
||||
type: "delete",
|
||||
type: "put",
|
||||
data: {
|
||||
"id": id,
|
||||
"warehouseId": warehouse_id,
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
var id = $("#id").val();
|
||||
$.ajax({
|
||||
url: "/vendor/delete",
|
||||
type: "delete",
|
||||
type: "put",
|
||||
data: {
|
||||
"id": id
|
||||
},
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
var id = $("#id").val();
|
||||
$.ajax({
|
||||
url: "/warehouse/delete",
|
||||
type: "delete",
|
||||
type: "put",
|
||||
data: {
|
||||
"id": id
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user