|
|
@ -540,11 +540,7 @@ public class PageController { |
|
|
@GetMapping("/selectPlaceByDepository") |
|
|
@GetMapping("/selectPlaceByDepository") |
|
|
// 库位树形菜单
|
|
|
// 库位树形菜单
|
|
|
public ModelAndView selectPlaceByDepository(Integer depositoryId, Integer mid, String placeCode, String unit) { |
|
|
public ModelAndView selectPlaceByDepository(Integer depositoryId, Integer mid, String placeCode, String unit) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ModelAndView mv = new ModelAndView(); |
|
|
ModelAndView mv = new ModelAndView(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MaterialAndPlace placeAndMaterialByMidAndPid = null; |
|
|
MaterialAndPlace placeAndMaterialByMidAndPid = null; |
|
|
if ("0000".equals(placeCode)) { |
|
|
if ("0000".equals(placeCode)) { |
|
|
// 如果要改变默认库位
|
|
|
// 如果要改变默认库位
|
|
|
@ -565,7 +561,7 @@ public class PageController { |
|
|
mv.addObject("placeId", place.getId()); |
|
|
mv.addObject("placeId", place.getId()); |
|
|
} |
|
|
} |
|
|
Inventory inventoryById = materialService.findInventoryById(mid); |
|
|
Inventory inventoryById = materialService.findInventoryById(mid); |
|
|
if ("-1".equals(unit)) { |
|
|
if (inventoryById.getUnit().equals(unit)) { |
|
|
// 如果转移的基础单位
|
|
|
// 如果转移的基础单位
|
|
|
mv.addObject("quantity", placeAndMaterialByMidAndPid.getQuantity()); |
|
|
mv.addObject("quantity", placeAndMaterialByMidAndPid.getQuantity()); |
|
|
} else { |
|
|
} else { |
|
|
|