| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.fzzy.igds.constant.RedisConst; |
| | | import com.fzzy.igds.domain.Depot; |
| | | import com.fzzy.igds.domain.DepotStore; |
| | | import com.fzzy.igds.mapper.DepotMapper; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据库存表信息,更新仓库库存 |
| | | * @param data |
| | | */ |
| | | public void updateByDepotStore(DepotStore data) { |
| | | UpdateWrapper<Depot> updateWrapper = new UpdateWrapper<>(); |
| | | updateWrapper.eq("id", data.getDepotId()).set("storage_real", data.getStorageReal()); |
| | | |
| | | depotMapper.update(null, updateWrapper); |
| | | } |
| | | |
| | | /** |
| | | * 保存更新仓库信息 |
| | | * |
| | | * @param depot |