mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-05 19:53:26 +09:00
#update
This commit is contained in:
@@ -120,7 +120,7 @@ public class ProductOutController {
|
||||
@ResponseBody
|
||||
public int delete(ProductOutDto dto) {
|
||||
System.out.println("데이터 :: " + dto);
|
||||
int i = service.deleteOut(dto);
|
||||
int i = service.outNow(dto);
|
||||
|
||||
return i;
|
||||
}
|
||||
@@ -130,13 +130,10 @@ public class ProductOutController {
|
||||
@PutMapping("/outNow")
|
||||
@ResponseBody
|
||||
public boolean outNow(ProductOutDto dto) {
|
||||
int i = service.outNowUpdate(dto);
|
||||
if (i != 0) {
|
||||
service.updateWarehouseDeleteStock(dto);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
service.outNowUpdate(dto);
|
||||
service.updateWarehouseDeleteStock(dto);
|
||||
service.stockQuantityUpdate(dto);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ public interface ProductOutMapper {
|
||||
int updateWarehousePlus(ProductOutDto dto);
|
||||
|
||||
int updateWarehouseDeleteStock(ProductOutDto dto);
|
||||
|
||||
int stockQuantityUpdate(ProductOutDto dto);
|
||||
|
||||
int createOut(ProductOutDto dto);
|
||||
|
||||
|
||||
@@ -73,6 +73,11 @@ public class ProductOutService {
|
||||
return mapper.updateWarehouseDeleteStock(dto);
|
||||
}
|
||||
|
||||
public int stockQuantityUpdate(ProductOutDto dto){
|
||||
return mapper.stockQuantityUpdate(dto);
|
||||
}
|
||||
|
||||
|
||||
public int deleteOut(ProductOutDto dto) {
|
||||
return mapper.deleteOut(dto);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user