|
|
@@ -521,19 +521,21 @@ public class B2BBusinessMainActivity extends BaseMVPActivity<WorkPlatPresenter>
|
|
|
for (int i = 0; i < contentArray.size(); i++) {
|
|
|
JSONObject contentObject = contentArray.getJSONObject(i);
|
|
|
if (contentObject != null) {
|
|
|
+ JSONObject quotationObject = contentObject.getJSONObject("quotation");
|
|
|
+
|
|
|
B2BBusinessListBean b2BBusinessListBean = new B2BBusinessListBean();
|
|
|
b2BBusinessListBean.setItemType(B2BBusinessListBean.COMPANY_BUSINESS_LIST);
|
|
|
|
|
|
int quoted = 0;
|
|
|
- if (!TextUtils.isEmpty(contentObject.getString("newId"))) {
|
|
|
- b2BBusinessListBean.setJsonData(contentObject.toString());
|
|
|
- quoted = 1;
|
|
|
- }
|
|
|
|
|
|
if (TextUtils.isEmpty(contentObject.getString("newId"))) {
|
|
|
b2BBusinessListBean.setId(JSONUtil.getText(contentObject, "itemId"));
|
|
|
} else {
|
|
|
b2BBusinessListBean.setId(JSONUtil.getText(contentObject, "newId"));
|
|
|
+ if (quotationObject != null) {
|
|
|
+ b2BBusinessListBean.setJsonData(quotationObject.toString());
|
|
|
+ }
|
|
|
+ quoted = 1;
|
|
|
}
|
|
|
|
|
|
long date = contentObject.getLongValue("date");
|
|
|
@@ -601,10 +603,6 @@ public class B2BBusinessMainActivity extends BaseMVPActivity<WorkPlatPresenter>
|
|
|
b2BBusinessListBean.setItemType(B2BBusinessListBean.PUBLIC_INQUIRY_LIST);
|
|
|
|
|
|
int quoted = JSONUtil.getInt(contentObject, "quoted");
|
|
|
- if (TextUtils.isEmpty(contentObject.getString("quoted"))) {
|
|
|
- b2BBusinessListBean.setJsonData(contentObject.toString());
|
|
|
- quoted = 1;
|
|
|
- }
|
|
|
|
|
|
if (TextUtils.isEmpty(contentObject.getString("quteId"))) {
|
|
|
b2BBusinessListBean.setId(JSONUtil.getText(contentObject, "id"));
|
|
|
@@ -617,7 +615,7 @@ public class B2BBusinessMainActivity extends BaseMVPActivity<WorkPlatPresenter>
|
|
|
b2BBusinessListBean.setBillDate(DateFormatUtil.long2Str(date, DateFormatUtil.YMD));
|
|
|
}
|
|
|
|
|
|
- String needquantity = JSONUtil.getText(contentObject, "needQty");
|
|
|
+ String needquantity = JSONUtil.getText(contentObject, "needquantity");
|
|
|
b2BBusinessListBean.setProductAmount(needquantity);
|
|
|
|
|
|
JSONObject inquiryObject = contentObject.getJSONObject("inquiry");
|