|
@@ -53,7 +53,18 @@ public class BaseServiceImpl {
|
|
|
*/
|
|
|
@Transactional
|
|
|
public void updateStorageStatus(int status,String locationCode){
|
|
|
- storageLocationDao.updateByLocationCode(status,locationCode);
|
|
|
+ LambdaQueryWrapper<WStorageLocationManagement> wrapper = Wrappers.lambdaQuery(WStorageLocationManagement.class).eq(WStorageLocationManagement::getLocationCode,locationCode);
|
|
|
+ WStorageLocationManagement wStorageLocationManagement = storageLocationDao.selectOne(wrapper);
|
|
|
+ //大库位 把大库位和所有小库位都设置为预占用
|
|
|
+ if(wStorageLocationManagement.getPalletType() == 1){
|
|
|
+ storageLocationDao.updateByLocationCode(status,locationCode);
|
|
|
+ storageLocationDao.updateByParentId(status,wStorageLocationManagement.getId());
|
|
|
+ }else{
|
|
|
+ //小库位 把大库位和所小库位都设置为预占用
|
|
|
+ storageLocationDao.updateByLocationCode(status,locationCode);
|
|
|
+ storageLocationDao.updateStatusById(status,locationCode);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|