|
@@ -126,10 +126,18 @@ public class RmsCapacityController extends BaseRESTfulController {
|
|
|
Integer apiId,
|
|
|
Integer pageNum,
|
|
|
Integer pageSize,
|
|
|
- String con) {
|
|
|
+ String con,
|
|
|
+ String carrierSSOId) {
|
|
|
+ int count = 0;
|
|
|
if (mapValue==null){
|
|
|
mapValue=new HashMap<>();
|
|
|
}
|
|
|
+ if(carrierSSOId != null){
|
|
|
+ if(!"null".equals(carrierSSOId)) {
|
|
|
+ mapValue.put("carrierSSOId", carrierSSOId);
|
|
|
+ count++;
|
|
|
+ }
|
|
|
+ }
|
|
|
//框计算
|
|
|
if (con != null) {
|
|
|
if (!"undefined".equals(con)) {
|
|
@@ -142,7 +150,7 @@ public class RmsCapacityController extends BaseRESTfulController {
|
|
|
//初始化过滤
|
|
|
List<Map<String, Object>> listTotal = null;
|
|
|
//如果有条件查询则跳过初始化,和创建索引
|
|
|
- if (mapValue.size() == 0) {
|
|
|
+ if (mapValue.size() == count) {
|
|
|
//将查询结果存入索引中
|
|
|
listTotal = rmsCapacityService.getCapacityList(null);
|
|
|
Map<String, Object> map = new HashMap<>();
|