|
@@ -20,6 +20,7 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -42,17 +43,15 @@ public class CostManagementInfoServiceImpl extends ServiceImpl<CostManagementInf
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public Page<CostManagementInfo> selectCostManagementInfo(CostManagementInfo costManagementInfo) {
|
|
|
+ public List<CostManagementInfo> selectCostManagementInfo(CostManagementInfo costManagementInfo) {
|
|
|
Wrapper<CostManagementInfo> costManagementInfoWrapper = new EntityWrapper<>();
|
|
|
costManagementInfoWrapper.eq("warehouse_type", costManagementInfo.getWarehouseType());
|
|
|
costManagementInfoWrapper.orderBy("warehouse_name");
|
|
|
if (costManagementInfo.getWarehouseId()!=null&&!costManagementInfo.getWarehouseId().isEmpty()){
|
|
|
costManagementInfoWrapper.eq("warehouse_id", costManagementInfo.getWarehouseId());
|
|
|
}
|
|
|
- Page<CostManagementInfo> costManagementInfoPage = this.selectPage(costManagementInfo.getQueryPage(), costManagementInfoWrapper);
|
|
|
- int count = this.selectCount(costManagementInfoWrapper);
|
|
|
- costManagementInfoPage.setSize(count);
|
|
|
- return costManagementInfoPage;
|
|
|
+ List<CostManagementInfo> costManagementInfoList = this.selectList(costManagementInfoWrapper);
|
|
|
+ return costManagementInfoList;
|
|
|
}
|
|
|
|
|
|
|