| | |
| | | } |
| | | |
| | | /** |
| | | * depotPR#getDepotByUserType |
| | | * |
| | | * @return |
| | | */ |
| | | |
| | | @DataProvider |
| | | public List<Depot> getDepotByUserType(String parentId) { |
| | | if (StringUtils.isNotEmpty(parentId)) { |
| | | return depotService.getDepotByUserType(parentId); |
| | | } |
| | | return depotService.getDepotByUserType(null); |
| | | } |
| | | /** |
| | | * depotPR#saveOrUpdate |
| | | * |
| | | * @param data |
| | |
| | | } |
| | | |
| | | /** |
| | | * 更新库存信息 |
| | | * depotPR#saveOrUpdate2 |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @DataResolver |
| | | @Transactional |
| | | @Log(title = "库存管理", businessType = BusinessType.UPDATE,bizType = BizTypeEnum.SYS) |
| | | public String saveOrUpdate2(Depot data) { |
| | | |
| | | Depot depot = new Depot(); |
| | | BeanUtils.copyProperties(data, depot); |
| | | depotService.updateStorageReal(depot); |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * depotPR#deleteDepot |
| | | * |
| | | * @param data |
| | | */ |
| | | @Expose |
| | | @Transactional |
| | | @Log(title = "库区管理", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SYS) |
| | | @Log(title = "仓库管理", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SYS) |
| | | public void deleteDepot(Depot data) { |
| | | Depot depot = new Depot(); |
| | | BeanUtils.copyProperties(data, depot); |