|
|
@@ -18,6 +18,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
|
|
import com.blankj.utilcode.util.ActivityUtils;
|
|
|
+import com.blankj.utilcode.util.SPUtils;
|
|
|
import com.blankj.utilcode.util.ToastUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
@@ -33,6 +34,7 @@ import cn.muchinfo.rma.global.database.DataBase;
|
|
|
import cn.muchinfo.rma.global.utils.TimeUtils;
|
|
|
import cn.muchinfo.rma.view.autoWidget.CustomHorizontalScrollView;
|
|
|
import cn.muchinfo.rma.view.autoWidget.utils.NumberUtils;
|
|
|
+import cn.muchinfo.rma.view.base.app.Constant;
|
|
|
import cn.muchinfo.rma.view.base.chart.ChartActivity;
|
|
|
import cn.muchinfo.rma.view.base.platinumtreasure.PlatinumTrasureDetailsActivity;
|
|
|
import cn.muchinfo.rma.view.base.platinumtreasure.adapter.QHjRightData;
|
|
|
@@ -137,11 +139,13 @@ public class ReferenceAdapter extends RecyclerView.Adapter<ReferenceAdapter.Item
|
|
|
// askData.setColorType(String.valueOf(quoteDayData.getColorByPresettleReturnInt()));
|
|
|
rightData.add(askData);
|
|
|
|
|
|
- // 卖量取卖一量
|
|
|
- QHjRightData askNumberData = new QHjRightData();
|
|
|
- askNumberData.setValue(String.valueOf(quoteDayData.getAskvolume()));
|
|
|
- askNumberData.setColorType("1");
|
|
|
- rightData.add(askNumberData);
|
|
|
+ if (!SPUtils.getInstance().getString(Constant.oem).equals("tjmd")) {
|
|
|
+ // 卖量取卖一量
|
|
|
+ QHjRightData askNumberData = new QHjRightData();
|
|
|
+ askNumberData.setValue(String.valueOf(quoteDayData.getAskvolume()));
|
|
|
+ askNumberData.setColorType("1");
|
|
|
+ rightData.add(askNumberData);
|
|
|
+ }
|
|
|
|
|
|
//买价取买一价
|
|
|
QHjRightData bidData = new QHjRightData();
|
|
|
@@ -154,11 +158,13 @@ public class ReferenceAdapter extends RecyclerView.Adapter<ReferenceAdapter.Item
|
|
|
// bidData.setColorType(String.valueOf(quoteDayData.getColorByPresettleReturnInt()));
|
|
|
rightData.add(bidData);
|
|
|
|
|
|
- //买量取买一量
|
|
|
- QHjRightData biNumberData = new QHjRightData();
|
|
|
- biNumberData.setValue(String.valueOf(quoteDayData.getBidvolume()));
|
|
|
- biNumberData.setColorType("1");
|
|
|
- rightData.add(biNumberData);
|
|
|
+ if (!SPUtils.getInstance().getString(Constant.oem).equals("tjmd")) {
|
|
|
+ //买量取买一量
|
|
|
+ QHjRightData biNumberData = new QHjRightData();
|
|
|
+ biNumberData.setValue(String.valueOf(quoteDayData.getBidvolume()));
|
|
|
+ biNumberData.setColorType("1");
|
|
|
+ rightData.add(biNumberData);
|
|
|
+ }
|
|
|
|
|
|
//最新价
|
|
|
QHjRightData newPriceData = new QHjRightData();
|
|
|
@@ -283,7 +289,7 @@ public class ReferenceAdapter extends RecyclerView.Adapter<ReferenceAdapter.Item
|
|
|
if (quoteDayData.getPrice() == 0.0){
|
|
|
amplitudeValue = "--";
|
|
|
}else {
|
|
|
- amplitudeValue = NumberUtils.roundNum(String.valueOf(((quoteDayData.getHighest() - quoteDayData.getLowest()) / quoteDayData.getPrice()) * 100),2) + "%";
|
|
|
+ amplitudeValue = NumberUtils.roundNum(String.valueOf(((quoteDayData.getHighest() - quoteDayData.getLowest()) / quoteDayData.getPresettle()) * 100),2) + "%";
|
|
|
}
|
|
|
amplitude.setValue(amplitudeValue);
|
|
|
amplitude.setColorType("1");
|
|
|
@@ -306,20 +312,32 @@ public class ReferenceAdapter extends RecyclerView.Adapter<ReferenceAdapter.Item
|
|
|
//金额
|
|
|
QHjRightData money = new QHjRightData();
|
|
|
money.setValue(NumberUtils.turnoverShort(String.valueOf(quoteDayData.getTotalturnover())));
|
|
|
+// money.setValue(NumberUtils.turnoverShort(String.valueOf(quoteDayData.getRealTotalTurnover(data.getDecimalplace()))));
|
|
|
money.setColorType("1");
|
|
|
|
|
|
- rightData.add(riseFallData);//涨跌
|
|
|
- rightData.add(appliesData);//涨跌幅
|
|
|
- rightData.add(openRightData);//今开
|
|
|
- rightData.add(yesCloseRightData);//昨收
|
|
|
- rightData.add(lowestRightData);//最低
|
|
|
- rightData.add(highRightData);//最高
|
|
|
- rightData.add(amplitude);//振幅
|
|
|
- rightData.add(allAmount);//总量
|
|
|
- rightData.add(nowquantity);//现量
|
|
|
- rightData.add(position);//持仓量
|
|
|
- rightData.add(growing);//日增
|
|
|
- rightData.add(money);//金额
|
|
|
+ if (!SPUtils.getInstance().getString(Constant.oem).equals("tjmd")) {
|
|
|
+ rightData.add(riseFallData);//涨跌
|
|
|
+ rightData.add(appliesData);//涨跌幅
|
|
|
+ rightData.add(openRightData);//今开
|
|
|
+ rightData.add(yesCloseRightData);//昨收
|
|
|
+ rightData.add(lowestRightData);//最低
|
|
|
+ rightData.add(highRightData);//最高
|
|
|
+ rightData.add(amplitude);//振幅
|
|
|
+ rightData.add(allAmount);//总量
|
|
|
+ rightData.add(nowquantity);//现量
|
|
|
+ rightData.add(position);//持仓量
|
|
|
+ rightData.add(growing);//日增
|
|
|
+ rightData.add(money);//金额
|
|
|
+ } else {
|
|
|
+ rightData.add(riseFallData);//涨跌
|
|
|
+ rightData.add(appliesData);//涨跌幅
|
|
|
+ rightData.add(openRightData);//今开
|
|
|
+ rightData.add(yesCloseRightData);//昨收
|
|
|
+ rightData.add(lowestRightData);//最低
|
|
|
+ rightData.add(highRightData);//最高
|
|
|
+ rightData.add(amplitude);//振幅
|
|
|
+ rightData.add(money);//金额
|
|
|
+ }
|
|
|
}
|
|
|
ContractTradePositionData positionData = null;
|
|
|
List<ContractTradePositionData> positionDataList = GlobalDataCollection.Companion.getInstance().getContractTradePositionDataArrayList();
|