|
|
|
|
/// id : "1433994980233314304"
|
|
|
|
|
/// createTime : "2021-09-04 11:27:00"
|
|
|
|
|
/// createUser : "1333246101196636160"
|
|
|
|
|
/// updateTime : "2021-10-08 15:51:01"
|
|
|
|
|
/// updateUser : "1333246101196636160"
|
|
|
|
|
/// supplierName : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
/// storeId : "1333246101343436800"
|
|
|
|
|
/// categoryId : "1300688133322440704"
|
|
|
|
|
/// groupId : "1426086173217914880"
|
|
|
|
|
/// shortName : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
/// productName : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̲<EFBFBD>"
|
|
|
|
|
/// sellDesc : ""
|
|
|
|
|
/// productCode : "PRO202109041127000000000000001"
|
|
|
|
|
/// weight : "0"
|
|
|
|
|
/// applyPrice : "0.00"
|
|
|
|
|
/// price : "5.00"
|
|
|
|
|
/// stock : -52
|
|
|
|
|
/// sellCount : 25
|
|
|
|
|
/// needLogistics : 1
|
|
|
|
|
/// oversold : 1
|
|
|
|
|
/// status : 1
|
|
|
|
|
/// posShow : true
|
|
|
|
|
/// productType : 0
|
|
|
|
|
/// productNumber : 0
|
|
|
|
|
/// setMeal : 1
|
|
|
|
|
/// attrStyle : 1
|
|
|
|
|
/// isDelete : 0
|
|
|
|
|
/// printerFlag : "DEFAULT"
|
|
|
|
|
/// materialId : null
|
|
|
|
|
/// imgs : ["https://pos.upload.gznl.top/1175/2021/09/b87e91a4-fe36-4268-803a-94e5bfaea3eb.webp"]
|
|
|
|
|
/// storeDTO : {"id":"1333246101343436800","storeName":"<EFBFBD><EFBFBD>Ͽ<EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD>)","nickName":"","logo":"https://pos.upload.gznl.top/1175/2021/07/ae873881-b3ab-4332-b863-f3055b200e07.webp","productCount":31,"soldNum":1518}
|
|
|
|
|
/// attrList : [{"productId":"1433994980233314304","attrName":"<EFBFBD>¶<EFBFBD>","sortOrder":null,"needImg":false,"isDelete":0,"attrCode":null,"id":"1433994980644356096","attrValueList":[{"id":"1434076666832879616","attrId":"1433994980644356096","attrValue":"ȥ<EFBFBD><EFBFBD>","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1433994980849876992","attrId":"1433994980644356096","attrValue":"<EFBFBD>ٱ<EFBFBD>","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1434076667034206208","attrId":"1433994980644356096","attrValue":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null}]},{"productId":"1433994980233314304","attrName":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","sortOrder":0,"needImg":false,"isDelete":0,"attrCode":null,"id":"1434076668170862592","attrValueList":[{"id":"1434076668615458816","attrId":"1434076668170862592","attrValue":"<EFBFBD>б<EFBFBD>","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1434076668376383488","attrId":"1434076668170862592","attrValue":"<EFBFBD><EFBFBD>","attrValueImg":"","sortOrder":0,"isDelete":0,"attrValueCode":null}]},{"productId":"1433994980233314304","attrName":"<EFBFBD><EFBFBD><EFBFBD>","sortOrder":0,"needImg":false,"isDelete":0,"attrCode":null,"id":"1434076667252310016","attrValueList":[{"id":"1434076667919204352","attrId":"1434076667252310016","attrValue":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1434076667696906240","attrId":"1434076667252310016","attrValue":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1434076667478802432","attrId":"1434076667252310016","attrValue":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","attrValueImg":"","sortOrder":0,"isDelete":0,"attrValueCode":null}]}]
|
|
|
|
|
/// productSkuVOList : [{"id":"1446382612795883520","createTime":"2021-09-04 16:51:38","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:38","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651376","skuNameStr":"ȥ<EFBFBD><EFBFBD> <EFBFBD>б<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382613043347456","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382613278228480","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382613479555072","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1434076667252310016","attrValueId":"1434076667919204352","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382613697658880","createTime":"2021-09-04 16:51:37","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:37","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651374","skuNameStr":"ȥ<EFBFBD><EFBFBD> <EFBFBD>б<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382613911568384","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382613697658880","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382614112894976","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382613697658880","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382614330998784","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382613697658880","attrId":"1434076667252310016","attrValueId":"1434076667696906240","sortOrder":null,"isDelete":0}],"setMealDTOList":null},{"id":"1446382614553296896","createTime":"2021-09-04 16:51:37","createUser":"1333246101196636160","updateTime":"2021-09-04 16:51:37","updateUser":"1333246101196636160","storeId":"1333246101343436800","skuCode":"P202109041651362","skuNameStr":"ȥ<EFBFBD><EFBFBD> <EFBFBD>б<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","productId":"1433994980233314304","skuPrice":"5.00","applyPrice":"0.00","vipPrice":null,"skuImg":null,"skuStock":-3,"sort":null,"setMeal":null,"weight":0.0,"volume":0.0,"isDelete":0,"material":null,"version":null,"skuAttrCodeDTOList":null,"skuAttrList":[{"id":"1446382614788177920","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382614553296896","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382615002087424","createTime":"2021-10-08 15:51:03","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:03","updateUser":"1333246101196636160","skuId":"1446382614553296896","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382615199219712","createTime":"2021-10-08 15:51:
|
|
|
|
|
/// shipAddress : "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>·<EFBFBD><EFBFBD>Ͽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̲<EFBFBD>"
|
|
|
|
|
/// buyCount : 3
|
|
|
|
|
/// promotionShowVOList : []
|
|
|
|
|
/// buyNum : 1
|
|
|
|
|
/// productPlatterInfos : null
|
|
|
|
|
/// markProductNone : null
|
|
|
|
|
/// namePinyin : null
|
|
|
|
|
/// nameInitials : null
|
|
|
|
|
|
|
|
|
|
class MiNiDetail {
|
|
|
|
|
String id;
|
|
|
|
|
String createTime;
|
|
|
|
|
String createUser;
|
|
|
|
|
String updateTime;
|
|
|
|
|
String updateUser;
|
|
|
|
|
String supplierName;
|
|
|
|
|
String storeId;
|
|
|
|
|
String categoryId;
|
|
|
|
|
String groupId;
|
|
|
|
|
String shortName;
|
|
|
|
|
String productName;
|
|
|
|
|
String sellDesc;
|
|
|
|
|
String productCode;
|
|
|
|
|
String weight;
|
|
|
|
|
String applyPrice;
|
|
|
|
|
String price;
|
|
|
|
|
int stock;
|
|
|
|
|
int sellCount;
|
|
|
|
|
int needLogistics;
|
|
|
|
|
int oversold;
|
|
|
|
|
int organic;
|
|
|
|
|
int status;
|
|
|
|
|
bool posShow;
|
|
|
|
|
int productType;
|
|
|
|
|
int productNumber;
|
|
|
|
|
int setMeal;
|
|
|
|
|
int attrStyle;
|
|
|
|
|
String detail;
|
|
|
|
|
int isDelete;
|
|
|
|
|
String printerFlag;
|
|
|
|
|
String thumbnailImg;
|
|
|
|
|
dynamic materialId;
|
|
|
|
|
List<String> imgs;
|
|
|
|
|
StoreDTOBean storeDTO;
|
|
|
|
|
List<AttrListBean> attrList;
|
|
|
|
|
List<ProductSkuVOListBean> productSkuVOList;
|
|
|
|
|
String shipAddress;
|
|
|
|
|
int buyCount;
|
|
|
|
|
List<dynamic> promotionShowVOList;
|
|
|
|
|
int buyNum;
|
|
|
|
|
dynamic productPlatterInfos;
|
|
|
|
|
dynamic markProductNone;
|
|
|
|
|
dynamic namePinyin;
|
|
|
|
|
dynamic nameInitials;
|
|
|
|
|
|
|
|
|
|
static MiNiDetail fromJson(Map<String, dynamic> map) {
|
|
|
|
|
if (map == null) return null;
|
|
|
|
|
MiNiDetail miNiDetailBean = MiNiDetail();
|
|
|
|
|
miNiDetailBean.id = map['id'];
|
|
|
|
|
miNiDetailBean.createTime = map['createTime'];
|
|
|
|
|
miNiDetailBean.createUser = map['createUser'];
|
|
|
|
|
miNiDetailBean.updateTime = map['updateTime'];
|
|
|
|
|
miNiDetailBean.updateUser = map['updateUser'];
|
|
|
|
|
miNiDetailBean.supplierName = map['supplierName'];
|
|
|
|
|
miNiDetailBean.storeId = map['storeId'];
|
|
|
|
|
miNiDetailBean.categoryId = map['categoryId'];
|
|
|
|
|
miNiDetailBean.groupId = map['groupId'];
|
|
|
|
|
miNiDetailBean.shortName = map['shortName'];
|
|
|
|
|
miNiDetailBean.productName = map['productName'];
|
|
|
|
|
miNiDetailBean.sellDesc = map['sellDesc'];
|
|
|
|
|
miNiDetailBean.productCode = map['productCode'];
|
|
|
|
|
miNiDetailBean.weight = map['weight'];
|
|
|
|
|
miNiDetailBean.applyPrice = map['applyPrice'];
|
|
|
|
|
miNiDetailBean.price = map['price'];
|
|
|
|
|
miNiDetailBean.stock = map['stock'];
|
|
|
|
|
miNiDetailBean.sellCount = map['sellCount'];
|
|
|
|
|
miNiDetailBean.needLogistics = map['needLogistics'];
|
|
|
|
|
miNiDetailBean.oversold = map['oversold'];
|
|
|
|
|
miNiDetailBean.organic = map['organic'];
|
|
|
|
|
miNiDetailBean.status = map['status'];
|
|
|
|
|
miNiDetailBean.posShow = map['posShow'];
|
|
|
|
|
miNiDetailBean.productType = map['productType'];
|
|
|
|
|
miNiDetailBean.productNumber = map['productNumber'];
|
|
|
|
|
miNiDetailBean.setMeal = map['setMeal'];
|
|
|
|
|
miNiDetailBean.attrStyle = map['attrStyle'];
|
|
|
|
|
miNiDetailBean.detail = map['detail'];
|
|
|
|
|
miNiDetailBean.isDelete = map['isDelete'];
|
|
|
|
|
miNiDetailBean.printerFlag = map['printerFlag'];
|
|
|
|
|
miNiDetailBean.thumbnailImg = map['thumbnailImg'];
|
|
|
|
|
miNiDetailBean.materialId = map['materialId'];
|
|
|
|
|
miNiDetailBean.imgs = []..addAll(
|
|
|
|
|
(map['imgs'] as List ?? []).map((o) => o.toString())
|
|
|
|
|
);
|
|
|
|
|
miNiDetailBean.storeDTO = StoreDTOBean.fromJson(map['storeDTO']);
|
|
|
|
|
miNiDetailBean.attrList = []..addAll(
|
|
|
|
|
(map['attrList'] as List ?? []).map((o) => AttrListBean.fromJson(o))
|
|
|
|
|
);
|
|
|
|
|
miNiDetailBean.productSkuVOList = []..addAll(
|
|
|
|
|
(map['productSkuVOList'] as List ?? []).map((o) => ProductSkuVOListBean.fromJson(o))
|
|
|
|
|
);
|
|
|
|
|
miNiDetailBean.shipAddress = map['shipAddress'];
|
|
|
|
|
miNiDetailBean.buyCount = map['buyCount'];
|
|
|
|
|
miNiDetailBean.promotionShowVOList = map['promotionShowVOList'];
|
|
|
|
|
miNiDetailBean.buyNum = map['buyNum'];
|
|
|
|
|
miNiDetailBean.productPlatterInfos = map['productPlatterInfos'];
|
|
|
|
|
miNiDetailBean.markProductNone = map['markProductNone'];
|
|
|
|
|
miNiDetailBean.namePinyin = map['namePinyin'];
|
|
|
|
|
miNiDetailBean.nameInitials = map['nameInitials'];
|
|
|
|
|
return miNiDetailBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map toJson() => {
|
|
|
|
|
"id": id,
|
|
|
|
|
"createTime": createTime,
|
|
|
|
|
"createUser": createUser,
|
|
|
|
|
"updateTime": updateTime,
|
|
|
|
|
"updateUser": updateUser,
|
|
|
|
|
"supplierName": supplierName,
|
|
|
|
|
"storeId": storeId,
|
|
|
|
|
"categoryId": categoryId,
|
|
|
|
|
"groupId": groupId,
|
|
|
|
|
"shortName": shortName,
|
|
|
|
|
"productName": productName,
|
|
|
|
|
"sellDesc": sellDesc,
|
|
|
|
|
"productCode": productCode,
|
|
|
|
|
"weight": weight,
|
|
|
|
|
"applyPrice": applyPrice,
|
|
|
|
|
"price": price,
|
|
|
|
|
"stock": stock,
|
|
|
|
|
"sellCount": sellCount,
|
|
|
|
|
"needLogistics": needLogistics,
|
|
|
|
|
"oversold": oversold,
|
|
|
|
|
"organic" : organic,
|
|
|
|
|
"status": status,
|
|
|
|
|
"posShow": posShow,
|
|
|
|
|
"productType": productType,
|
|
|
|
|
"productNumber": productNumber,
|
|
|
|
|
"setMeal": setMeal,
|
|
|
|
|
"attrStyle": attrStyle,
|
|
|
|
|
"detail" :detail,
|
|
|
|
|
"isDelete": isDelete,
|
|
|
|
|
"printerFlag": printerFlag,
|
|
|
|
|
"thumbnailImg": thumbnailImg,
|
|
|
|
|
"materialId": materialId,
|
|
|
|
|
"imgs": imgs,
|
|
|
|
|
"storeDTO": storeDTO,
|
|
|
|
|
"attrList": attrList,
|
|
|
|
|
"productSkuVOList": productSkuVOList,
|
|
|
|
|
"shipAddress": shipAddress,
|
|
|
|
|
"buyCount": buyCount,
|
|
|
|
|
"promotionShowVOList": promotionShowVOList,
|
|
|
|
|
"buyNum": buyNum,
|
|
|
|
|
"productPlatterInfos": productPlatterInfos,
|
|
|
|
|
"markProductNone": markProductNone,
|
|
|
|
|
"namePinyin": namePinyin,
|
|
|
|
|
"nameInitials": nameInitials,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// id : "1446382612795883520"
|
|
|
|
|
/// createTime : "2021-09-04 16:51:38"
|
|
|
|
|
/// createUser : "1333246101196636160"
|
|
|
|
|
/// updateTime : "2021-09-04 16:51:38"
|
|
|
|
|
/// updateUser : "1333246101196636160"
|
|
|
|
|
/// storeId : "1333246101343436800"
|
|
|
|
|
/// skuCode : "P202109041651376"
|
|
|
|
|
/// skuNameStr : "ȥ<EFBFBD><EFBFBD> <EFBFBD>б<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
/// productId : "1433994980233314304"
|
|
|
|
|
/// skuPrice : "5.00"
|
|
|
|
|
/// applyPrice : "0.00"
|
|
|
|
|
/// vipPrice : null
|
|
|
|
|
/// skuImg : null
|
|
|
|
|
/// skuStock : -3
|
|
|
|
|
/// sort : null
|
|
|
|
|
/// setMeal : null
|
|
|
|
|
/// weight : 0.0
|
|
|
|
|
/// volume : 0.0
|
|
|
|
|
/// isDelete : 0
|
|
|
|
|
/// material : null
|
|
|
|
|
/// version : null
|
|
|
|
|
/// skuAttrCodeDTOList : null
|
|
|
|
|
/// skuAttrList : [{"id":"1446382613043347456","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1433994980644356096","attrValueId":"1434076666832879616","sortOrder":null,"isDelete":0},{"id":"1446382613278228480","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1434076668170862592","attrValueId":"1434076668615458816","sortOrder":null,"isDelete":0},{"id":"1446382613479555072","createTime":"2021-10-08 15:51:02","createUser":"1333246101196636160","updateTime":"2021-10-08 15:51:02","updateUser":"1333246101196636160","skuId":"1446382612795883520","attrId":"1434076667252310016","attrValueId":"1434076667919204352","sortOrder":null,"isDelete":0}]
|
|
|
|
|
/// setMealDTOList : null
|
|
|
|
|
|
|
|
|
|
class ProductSkuVOListBean {
|
|
|
|
|
String id;
|
|
|
|
|
String createTime;
|
|
|
|
|
String createUser;
|
|
|
|
|
String updateTime;
|
|
|
|
|
String updateUser;
|
|
|
|
|
String storeId;
|
|
|
|
|
String skuCode;
|
|
|
|
|
String skuNameStr;
|
|
|
|
|
String productId;
|
|
|
|
|
String skuPrice;
|
|
|
|
|
String applyPrice;
|
|
|
|
|
dynamic vipPrice;
|
|
|
|
|
dynamic skuImg;
|
|
|
|
|
int skuStock;
|
|
|
|
|
dynamic sort;
|
|
|
|
|
dynamic setMeal;
|
|
|
|
|
double weight;
|
|
|
|
|
double volume;
|
|
|
|
|
int isDelete;
|
|
|
|
|
dynamic material;
|
|
|
|
|
dynamic version;
|
|
|
|
|
dynamic skuAttrCodeDTOList;
|
|
|
|
|
List<SkuAttrListBean> skuAttrList;
|
|
|
|
|
dynamic setMealDTOList;
|
|
|
|
|
|
|
|
|
|
static ProductSkuVOListBean fromJson(Map<String, dynamic> map) {
|
|
|
|
|
if (map == null) return null;
|
|
|
|
|
ProductSkuVOListBean productSkuVOListBean = ProductSkuVOListBean();
|
|
|
|
|
productSkuVOListBean.id = map['id'];
|
|
|
|
|
productSkuVOListBean.createTime = map['createTime'];
|
|
|
|
|
productSkuVOListBean.createUser = map['createUser'];
|
|
|
|
|
productSkuVOListBean.updateTime = map['updateTime'];
|
|
|
|
|
productSkuVOListBean.updateUser = map['updateUser'];
|
|
|
|
|
productSkuVOListBean.storeId = map['storeId'];
|
|
|
|
|
productSkuVOListBean.skuCode = map['skuCode'];
|
|
|
|
|
productSkuVOListBean.skuNameStr = map['skuNameStr'];
|
|
|
|
|
productSkuVOListBean.productId = map['productId'];
|
|
|
|
|
productSkuVOListBean.skuPrice = map['skuPrice'];
|
|
|
|
|
productSkuVOListBean.applyPrice = map['applyPrice'];
|
|
|
|
|
productSkuVOListBean.vipPrice = map['vipPrice'];
|
|
|
|
|
productSkuVOListBean.skuImg = map['skuImg'];
|
|
|
|
|
productSkuVOListBean.skuStock = map['skuStock'];
|
|
|
|
|
productSkuVOListBean.sort = map['sort'];
|
|
|
|
|
productSkuVOListBean.setMeal = map['setMeal'];
|
|
|
|
|
productSkuVOListBean.weight = map['weight'];
|
|
|
|
|
productSkuVOListBean.volume = map['volume'];
|
|
|
|
|
productSkuVOListBean.isDelete = map['isDelete'];
|
|
|
|
|
productSkuVOListBean.material = map['material'];
|
|
|
|
|
productSkuVOListBean.version = map['version'];
|
|
|
|
|
productSkuVOListBean.skuAttrCodeDTOList = map['skuAttrCodeDTOList'];
|
|
|
|
|
productSkuVOListBean.skuAttrList = []..addAll(
|
|
|
|
|
(map['skuAttrList'] as List ?? []).map((o) => SkuAttrListBean.fromJson(o))
|
|
|
|
|
);
|
|
|
|
|
productSkuVOListBean.setMealDTOList = map['setMealDTOList'];
|
|
|
|
|
return productSkuVOListBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map toJson() => {
|
|
|
|
|
"id": id,
|
|
|
|
|
"createTime": createTime,
|
|
|
|
|
"createUser": createUser,
|
|
|
|
|
"updateTime": updateTime,
|
|
|
|
|
"updateUser": updateUser,
|
|
|
|
|
"storeId": storeId,
|
|
|
|
|
"skuCode": skuCode,
|
|
|
|
|
"skuNameStr": skuNameStr,
|
|
|
|
|
"productId": productId,
|
|
|
|
|
"skuPrice": skuPrice,
|
|
|
|
|
"applyPrice": applyPrice,
|
|
|
|
|
"vipPrice": vipPrice,
|
|
|
|
|
"skuImg": skuImg,
|
|
|
|
|
"skuStock": skuStock,
|
|
|
|
|
"sort": sort,
|
|
|
|
|
"setMeal": setMeal,
|
|
|
|
|
"weight": weight,
|
|
|
|
|
"volume": volume,
|
|
|
|
|
"isDelete": isDelete,
|
|
|
|
|
"material": material,
|
|
|
|
|
"version": version,
|
|
|
|
|
"skuAttrCodeDTOList": skuAttrCodeDTOList,
|
|
|
|
|
"skuAttrList": skuAttrList,
|
|
|
|
|
"setMealDTOList": setMealDTOList,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// id : "1446382613043347456"
|
|
|
|
|
/// createTime : "2021-10-08 15:51:02"
|
|
|
|
|
/// createUser : "1333246101196636160"
|
|
|
|
|
/// updateTime : "2021-10-08 15:51:02"
|
|
|
|
|
/// updateUser : "1333246101196636160"
|
|
|
|
|
/// skuId : "1446382612795883520"
|
|
|
|
|
/// attrId : "1433994980644356096"
|
|
|
|
|
/// attrValueId : "1434076666832879616"
|
|
|
|
|
/// sortOrder : null
|
|
|
|
|
/// isDelete : 0
|
|
|
|
|
|
|
|
|
|
class SkuAttrListBean {
|
|
|
|
|
String id;
|
|
|
|
|
String createTime;
|
|
|
|
|
String createUser;
|
|
|
|
|
String updateTime;
|
|
|
|
|
String updateUser;
|
|
|
|
|
String skuId;
|
|
|
|
|
String attrId;
|
|
|
|
|
String attrValueId;
|
|
|
|
|
dynamic sortOrder;
|
|
|
|
|
int isDelete;
|
|
|
|
|
|
|
|
|
|
static SkuAttrListBean fromJson(Map<String, dynamic> map) {
|
|
|
|
|
if (map == null) return null;
|
|
|
|
|
SkuAttrListBean skuAttrListBean = SkuAttrListBean();
|
|
|
|
|
skuAttrListBean.id = map['id'];
|
|
|
|
|
skuAttrListBean.createTime = map['createTime'];
|
|
|
|
|
skuAttrListBean.createUser = map['createUser'];
|
|
|
|
|
skuAttrListBean.updateTime = map['updateTime'];
|
|
|
|
|
skuAttrListBean.updateUser = map['updateUser'];
|
|
|
|
|
skuAttrListBean.skuId = map['skuId'];
|
|
|
|
|
skuAttrListBean.attrId = map['attrId'];
|
|
|
|
|
skuAttrListBean.attrValueId = map['attrValueId'];
|
|
|
|
|
skuAttrListBean.sortOrder = map['sortOrder'];
|
|
|
|
|
skuAttrListBean.isDelete = map['isDelete'];
|
|
|
|
|
return skuAttrListBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map toJson() => {
|
|
|
|
|
"id": id,
|
|
|
|
|
"createTime": createTime,
|
|
|
|
|
"createUser": createUser,
|
|
|
|
|
"updateTime": updateTime,
|
|
|
|
|
"updateUser": updateUser,
|
|
|
|
|
"skuId": skuId,
|
|
|
|
|
"attrId": attrId,
|
|
|
|
|
"attrValueId": attrValueId,
|
|
|
|
|
"sortOrder": sortOrder,
|
|
|
|
|
"isDelete": isDelete,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// productId : "1433994980233314304"
|
|
|
|
|
/// attrName : "<EFBFBD>¶<EFBFBD>"
|
|
|
|
|
/// sortOrder : null
|
|
|
|
|
/// needImg : false
|
|
|
|
|
/// isDelete : 0
|
|
|
|
|
/// attrCode : null
|
|
|
|
|
/// id : "1433994980644356096"
|
|
|
|
|
/// attrValueList : [{"id":"1434076666832879616","attrId":"1433994980644356096","attrValue":"ȥ<EFBFBD><EFBFBD>","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1433994980849876992","attrId":"1433994980644356096","attrValue":"<EFBFBD>ٱ<EFBFBD>","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null},{"id":"1434076667034206208","attrId":"1433994980644356096","attrValue":"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","attrValueImg":"","sortOrder":null,"isDelete":0,"attrValueCode":null}]
|
|
|
|
|
|
|
|
|
|
class AttrListBean {
|
|
|
|
|
String productId;
|
|
|
|
|
String attrName;
|
|
|
|
|
dynamic sortOrder;
|
|
|
|
|
bool needImg;
|
|
|
|
|
int isDelete;
|
|
|
|
|
dynamic attrCode;
|
|
|
|
|
String id;
|
|
|
|
|
List<AttrValueListBean> attrValueList;
|
|
|
|
|
|
|
|
|
|
static AttrListBean fromJson(Map<String, dynamic> map) {
|
|
|
|
|
if (map == null) return null;
|
|
|
|
|
AttrListBean attrListBean = AttrListBean();
|
|
|
|
|
attrListBean.productId = map['productId'];
|
|
|
|
|
attrListBean.attrName = map['attrName'];
|
|
|
|
|
attrListBean.sortOrder = map['sortOrder'];
|
|
|
|
|
attrListBean.needImg = map['needImg'];
|
|
|
|
|
attrListBean.isDelete = map['isDelete'];
|
|
|
|
|
attrListBean.attrCode = map['attrCode'];
|
|
|
|
|
attrListBean.id = map['id'];
|
|
|
|
|
attrListBean.attrValueList = []..addAll(
|
|
|
|
|
(map['attrValueList'] as List ?? []).map((o) => AttrValueListBean.fromJson(o))
|
|
|
|
|
);
|
|
|
|
|
return attrListBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map toJson() => {
|
|
|
|
|
"productId": productId,
|
|
|
|
|
"attrName": attrName,
|
|
|
|
|
"sortOrder": sortOrder,
|
|
|
|
|
"needImg": needImg,
|
|
|
|
|
"isDelete": isDelete,
|
|
|
|
|
"attrCode": attrCode,
|
|
|
|
|
"id": id,
|
|
|
|
|
"attrValueList": attrValueList,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// id : "1434076666832879616"
|
|
|
|
|
/// attrId : "1433994980644356096"
|
|
|
|
|
/// attrValue : "ȥ<EFBFBD><EFBFBD>"
|
|
|
|
|
/// attrValueImg : ""
|
|
|
|
|
/// sortOrder : null
|
|
|
|
|
/// isDelete : 0
|
|
|
|
|
/// attrValueCode : null
|
|
|
|
|
|
|
|
|
|
class AttrValueListBean {
|
|
|
|
|
String id;
|
|
|
|
|
String attrId;
|
|
|
|
|
String attrValue;
|
|
|
|
|
String attrValueImg;
|
|
|
|
|
dynamic sortOrder;
|
|
|
|
|
int isDelete;
|
|
|
|
|
dynamic attrValueCode;
|
|
|
|
|
bool isSelected;
|
|
|
|
|
|
|
|
|
|
static AttrValueListBean fromJson(Map<String, dynamic> map) {
|
|
|
|
|
if (map == null) return null;
|
|
|
|
|
AttrValueListBean attrValueListBean = AttrValueListBean();
|
|
|
|
|
attrValueListBean.id = map['id'];
|
|
|
|
|
attrValueListBean.attrId = map['attrId'];
|
|
|
|
|
attrValueListBean.attrValue = map['attrValue'];
|
|
|
|
|
attrValueListBean.attrValueImg = map['attrValueImg'];
|
|
|
|
|
attrValueListBean.sortOrder = map['sortOrder'];
|
|
|
|
|
attrValueListBean.isDelete = map['isDelete'];
|
|
|
|
|
attrValueListBean.attrValueCode = map['attrValueCode'];
|
|
|
|
|
return attrValueListBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map toJson() => {
|
|
|
|
|
"id": id,
|
|
|
|
|
"attrId": attrId,
|
|
|
|
|
"attrValue": attrValue,
|
|
|
|
|
"attrValueImg": attrValueImg,
|
|
|
|
|
"sortOrder": sortOrder,
|
|
|
|
|
"isDelete": isDelete,
|
|
|
|
|
"attrValueCode": attrValueCode,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// id : "1333246101343436800"
|
|
|
|
|
/// storeName : "<EFBFBD><EFBFBD>Ͽ<EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD>)"
|
|
|
|
|
/// nickName : ""
|
|
|
|
|
/// logo : "https://pos.upload.gznl.top/1175/2021/07/ae873881-b3ab-4332-b863-f3055b200e07.png"
|
|
|
|
|
/// productCount : 31
|
|
|
|
|
/// soldNum : 1518
|
|
|
|
|
|
|
|
|
|
class StoreDTOBean {
|
|
|
|
|
String id;
|
|
|
|
|
String storeName;
|
|
|
|
|
String nickName;
|
|
|
|
|
String logo;
|
|
|
|
|
int productCount;
|
|
|
|
|
int soldNum;
|
|
|
|
|
|
|
|
|
|
static StoreDTOBean fromJson(Map<String, dynamic> map) {
|
|
|
|
|
if (map == null) return null;
|
|
|
|
|
StoreDTOBean storeDTOBean = StoreDTOBean();
|
|
|
|
|
storeDTOBean.id = map['id'];
|
|
|
|
|
storeDTOBean.storeName = map['storeName'];
|
|
|
|
|
storeDTOBean.nickName = map['nickName'];
|
|
|
|
|
storeDTOBean.logo = map['logo'];
|
|
|
|
|
storeDTOBean.productCount = map['productCount'];
|
|
|
|
|
storeDTOBean.soldNum = map['soldNum'];
|
|
|
|
|
return storeDTOBean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map toJson() => {
|
|
|
|
|
"id": id,
|
|
|
|
|
"storeName": storeName,
|
|
|
|
|
"nickName": nickName,
|
|
|
|
|
"logo": logo,
|
|
|
|
|
"productCount": productCount,
|
|
|
|
|
"soldNum": soldNum,
|
|
|
|
|
};
|
|
|
|
|
}
|