| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.domain.Depot; |
| | | import com.fzzy.igds.service.DepotService; |
| | | import com.fzzy.igds.service.PledgeContractService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 更新库存信息 |
| | | * 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) |
| | | public void deleteDepot(Depot data) { |
| | | Depot depot = new Depot(); |
| | | BeanUtils.copyProperties(data, depot); |
| | |
| | | */ |
| | | @DataProvider |
| | | public List<Depot> getAllCache() { |
| | | return depotService.getCacheDepotList(null); |
| | | return depotService.getCacheDepotList(null, ContextUtil.subDeptId(null)); |
| | | } |
| | | |
| | | /** |