|
@@ -1609,10 +1609,10 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
if (personCharge == null || personCharge.isEmpty()) {
|
|
if (personCharge == null || personCharge.isEmpty()) {
|
|
personCharge = AuthSecurityUtils.getStaffById(AuthSecurityUtils.getCurrentUserId()).getStaffMobilePhone();
|
|
personCharge = AuthSecurityUtils.getStaffById(AuthSecurityUtils.getCurrentUserId()).getStaffMobilePhone();
|
|
}
|
|
}
|
|
-// List<WarehouseBaseInfo> listRedis = cacheComponent.getObjList(Const.SELF_WAREHOUSE+personCharge+compId,WarehouseBaseInfo.class);
|
|
|
|
-// if(listRedis != null && listRedis.size() > 0 ){
|
|
|
|
-// return listRedis;
|
|
|
|
-// }
|
|
|
|
|
|
+ List<WarehouseBaseInfo> listRedis = cacheComponent.getObjList(Const.SELF_WAREHOUSE+personCharge+compId,WarehouseBaseInfo.class);
|
|
|
|
+ if(listRedis != null && listRedis.size() > 0 ){
|
|
|
|
+ return listRedis;
|
|
|
|
+ }
|
|
Wrapper<WarehouseBaseInfo> warehouseBaseInfoWrapper = new EntityWrapper<>();
|
|
Wrapper<WarehouseBaseInfo> warehouseBaseInfoWrapper = new EntityWrapper<>();
|
|
warehouseBaseInfoWrapper.eq("comp_id", compId)
|
|
warehouseBaseInfoWrapper.eq("comp_id", compId)
|
|
.orderBy("warehouse_type", true).eq("delete_flag", "0");
|
|
.orderBy("warehouse_type", true).eq("delete_flag", "0");
|
|
@@ -1737,7 +1737,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
-// cacheComponent.putRaw(Const.SELF_WAREHOUSE+personCharge+compId,JSONObject.toJSONString(warehouseBaseInfoList),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.SELF_WAREHOUSE+personCharge+compId,JSONObject.toJSONString(warehouseBaseInfoList),60*60*24);
|
|
return warehouseBaseInfoList;
|
|
return warehouseBaseInfoList;
|
|
}
|
|
}
|
|
|
|
|