|
|
|
@ -629,12 +629,12 @@ public class BasicdataGoodsShelfServiceImpl extends BaseServiceImpl<BasicdataGoo
|
|
|
|
|
return R.fail("有货物,无法删除"); |
|
|
|
|
} |
|
|
|
|
//禁用对应下面的货位
|
|
|
|
|
basicdataGoodsAllocationService.update(new UpdateWrapper<BasicdataGoodsAllocationEntity>().lambda() |
|
|
|
|
.set(BasicdataGoodsAllocationEntity::getEnableStatus,1) |
|
|
|
|
.in(BasicdataGoodsAllocationEntity::getGoodsShelfId,ids) |
|
|
|
|
boolean update = basicdataGoodsAllocationService.update(new UpdateWrapper<BasicdataGoodsAllocationEntity>().lambda() |
|
|
|
|
.set(BasicdataGoodsAllocationEntity::getEnableStatus, 2) |
|
|
|
|
.in(BasicdataGoodsAllocationEntity::getGoodsShelfId, ids) |
|
|
|
|
); |
|
|
|
|
return R.status(this.update(new UpdateWrapper<BasicdataGoodsShelfEntity>().lambda() |
|
|
|
|
.set(BasicdataGoodsShelfEntity::getEnableStatus,1) |
|
|
|
|
.set(BasicdataGoodsShelfEntity::getEnableStatus,2) |
|
|
|
|
.in(BasicdataGoodsShelfEntity::getId,ids) |
|
|
|
|
)); |
|
|
|
|
} |
|
|
|
@ -643,11 +643,11 @@ public class BasicdataGoodsShelfServiceImpl extends BaseServiceImpl<BasicdataGoo
|
|
|
|
|
public R enableGoodsArea(List<Long> ids) { |
|
|
|
|
//启用对应下面的货位
|
|
|
|
|
basicdataGoodsAllocationService.update(new UpdateWrapper<BasicdataGoodsAllocationEntity>().lambda() |
|
|
|
|
.set(BasicdataGoodsAllocationEntity::getEnableStatus,2) |
|
|
|
|
.set(BasicdataGoodsAllocationEntity::getEnableStatus,1) |
|
|
|
|
.in(BasicdataGoodsAllocationEntity::getGoodsShelfId,ids) |
|
|
|
|
); |
|
|
|
|
return R.status(this.update(new UpdateWrapper<BasicdataGoodsShelfEntity>().lambda() |
|
|
|
|
.set(BasicdataGoodsShelfEntity::getEnableStatus,2) |
|
|
|
|
.set(BasicdataGoodsShelfEntity::getEnableStatus,1) |
|
|
|
|
.in(BasicdataGoodsShelfEntity::getId,ids) |
|
|
|
|
)); |
|
|
|
|
} |
|
|
|
|