|
@@ -18,7 +18,9 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -46,20 +48,23 @@ public class CostManagementInfoServiceImpl extends ServiceImpl<CostManagementInf
|
|
|
if(compId == null){
|
|
|
compId = AuthSecurityUtils.getCurrentUserInfo().getCompId();
|
|
|
}
|
|
|
- Wrapper<CostManagementInfo> costManagementInfoWrapper = new EntityWrapper<>();
|
|
|
- costManagementInfoWrapper.eq("warehouse_type", costManagementInfo.getWarehouseType())
|
|
|
- .eq("comp_id", compId);
|
|
|
- if (costManagementInfo.getWarehouseId()!=null&&!costManagementInfo.getWarehouseId().isEmpty()){
|
|
|
- costManagementInfoWrapper.eq("warehouse_id", costManagementInfo.getWarehouseId());
|
|
|
- }
|
|
|
- if (costManagementInfo.getWarehouseName()!=null&&!costManagementInfo.getWarehouseName().isEmpty()){
|
|
|
- costManagementInfoWrapper.like("warehouse_name", "%" + costManagementInfo.getWarehouseName() + "%");
|
|
|
- }
|
|
|
-
|
|
|
- costManagementInfoWrapper.gt("storage", 0);
|
|
|
- costManagementInfoWrapper.orderBy("warehouse_name",false);
|
|
|
-
|
|
|
- List<CostManagementInfo> costManagementInfoList = this.selectList(costManagementInfoWrapper);
|
|
|
+// Wrapper<CostManagementInfo> costManagementInfoWrapper = new EntityWrapper<>();
|
|
|
+// costManagementInfoWrapper.eq("warehouse_type", costManagementInfo.getWarehouseType())
|
|
|
+// .eq("comp_id", compId);
|
|
|
+// if (costManagementInfo.getWarehouseId()!=null&&!costManagementInfo.getWarehouseId().isEmpty()){
|
|
|
+// costManagementInfoWrapper.eq("warehouse_id", costManagementInfo.getWarehouseId());
|
|
|
+// }
|
|
|
+// if (costManagementInfo.getWarehouseName()!=null&&!costManagementInfo.getWarehouseName().isEmpty()){
|
|
|
+// costManagementInfoWrapper.like("warehouse_name", "%" + costManagementInfo.getWarehouseName() + "%");
|
|
|
+// }
|
|
|
+//
|
|
|
+// costManagementInfoWrapper.gt("storage", 0);
|
|
|
+// costManagementInfoWrapper.orderBy("warehouse_name",false);
|
|
|
+//
|
|
|
+// List<CostManagementInfo> costManagementInfoList = this.selectList(costManagementInfoWrapper);
|
|
|
+ Map<String, Object> pageView = new HashMap<>();
|
|
|
+ pageView.put("compId",compId);
|
|
|
+ List<CostManagementInfo> costManagementInfoList = baseMapper.getListByCondition(pageView);
|
|
|
return costManagementInfoList;
|
|
|
}
|
|
|
|