| | |
| | | import com.fzzy.igds.domain.Depot; |
| | | import com.fzzy.igds.service.DepotService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<Depot> getData(){ |
| | | public List<Depot> getData(String parentId){ |
| | | if(StringUtils.isNotEmpty(parentId)){ |
| | | return depotService.getData(null,parentId,false); |
| | | } |
| | | return depotService.getData(null, ContextUtil.subDeptId(null) ,false); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * depotPR#getDataByCompanyId |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<Depot> getDataByCompanyId(){ |
| | | return depotService.getData(null, null ,false); |
| | | } |
| | | |
| | | /** |
| | | * depotPR#getDepot 获取仓库信息 |
| | | * |
| | | * @param depotId |