|
|
|
@ -96,6 +96,27 @@ public class ApiGoodsUtisl { |
|
|
|
String stclass=json.getString("transactionKind"); |
|
|
|
int istclass = "权属".equals(stclass)?1:2; |
|
|
|
goodsDetail.setTransactionClass(istclass); |
|
|
|
// 交易类型
|
|
|
|
String transactionType = json.getString("transactionType"); |
|
|
|
if(istclass==1){ |
|
|
|
goodsDetail.setIdentifier(json.getString("identifier")); |
|
|
|
goodsDetail.setIdentifiers(json.getString("identifiers")); |
|
|
|
goodsDetail.setGoodsOwnershipStr(json.getString("rights")); |
|
|
|
// 判断交易类型
|
|
|
|
int itranstype = "授权".equals(transactionType)?2:1; |
|
|
|
goodsDetail.setGoodsEntrust(itranstype); |
|
|
|
if(itranstype==2){ |
|
|
|
goodsDetail.setStock(-1); |
|
|
|
}else{ |
|
|
|
goodsDetail.setStock(1); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
goodsDetail.setIdentifier(json.getString("identifier")); |
|
|
|
goodsDetail.setClassification(json.getString("classification")); |
|
|
|
int irate = "租赁".equalsIgnoreCase(transactionType)?3:4; |
|
|
|
goodsDetail.setGoodsEntrust(irate); |
|
|
|
goodsDetail.setStock(1); |
|
|
|
} |
|
|
|
// 商品描述
|
|
|
|
goodsDetail.setContract(json.getString("description")); |
|
|
|
goodsDetail.setOtheridentifiers(json.getString("otherIdentifiers")); |
|
|
|
|