CargoBaseModel.java 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. package com.fxy.bean.realm;
  2. import android.os.Parcel;
  3. import android.os.Parcelable;
  4. import io.realm.RealmObject;
  5. /**
  6. * 项目名称:FingerStorage
  7. * 类描述:货物基础数据表(缓存本地数据库)
  8. * 创建人:admin
  9. * 创建时间:2018/4/27 17:19
  10. * 修改人:COMP-021-2006
  11. * 修改时间:2018/4/27 17:19
  12. * 修改备注:
  13. */
  14. public class CargoBaseModel extends RealmObject implements Parcelable {
  15. /**
  16. * 商品id
  17. */
  18. private String id;
  19. /**
  20. * 产品编码
  21. */
  22. private String goodsCode;
  23. /**
  24. * 商品名称
  25. */
  26. private String goodsName;
  27. /**
  28. * 单位(米/支、码/支)
  29. */
  30. private String unit;
  31. /**
  32. * 规格
  33. */
  34. private String specification;
  35. /**
  36. * 重量
  37. */
  38. private String weight;
  39. /**
  40. * 商品抬头
  41. */
  42. private String goodsNameTitle;
  43. /**
  44. * 商品品牌
  45. */
  46. private String goodsBrandCode;
  47. /**
  48. * 商品图片
  49. */
  50. private String goodsPic;
  51. /**
  52. * 商品简介
  53. */
  54. private String goodsInfo;
  55. /**
  56. * 品牌名称
  57. */
  58. private String brandName;
  59. /**
  60. * 品牌英文名称
  61. */
  62. private String brandNameEn;
  63. /**
  64. * 产地
  65. */
  66. private String origin;
  67. /**
  68. * 长度
  69. */
  70. private String goodsLength;
  71. /**
  72. * 宽度
  73. */
  74. private String goodsWidth;
  75. /**
  76. * 高度
  77. */
  78. private String goodsHeight;
  79. /**
  80. * 保质期
  81. */
  82. private String shelfLife;
  83. /**
  84. * 温度类型
  85. */
  86. private String temperatureType;
  87. /**
  88. * 温度起
  89. */
  90. private String temperatureStart;
  91. /**
  92. * 温度至
  93. */
  94. private String temperatureEnd;
  95. /**
  96. * 湿度类型
  97. */
  98. private String humidityType;
  99. /**
  100. * 湿度起
  101. */
  102. private String humidityStart;
  103. /**
  104. * 湿度至
  105. */
  106. private String humidityEnd;
  107. @Override
  108. public String toString() {
  109. return "CargoBaseModel{" +
  110. "id='" + id + '\'' +
  111. ", goodsCode='" + goodsCode + '\'' +
  112. ", goodsName='" + goodsName + '\'' +
  113. ", unit='" + unit + '\'' +
  114. ", specification='" + specification + '\'' +
  115. ", weight='" + weight + '\'' +
  116. ", goodsNameTitle='" + goodsNameTitle + '\'' +
  117. ", goodsBrandCode='" + goodsBrandCode + '\'' +
  118. ", goodsPic='" + goodsPic + '\'' +
  119. ", goodsInfo='" + goodsInfo + '\'' +
  120. ", brandName='" + brandName + '\'' +
  121. ", brandNameEn='" + brandNameEn + '\'' +
  122. ", origin='" + origin + '\'' +
  123. ", goodsLength='" + goodsLength + '\'' +
  124. ", goodsWidth='" + goodsWidth + '\'' +
  125. ", goodsHeight='" + goodsHeight + '\'' +
  126. ", shelfLife='" + shelfLife + '\'' +
  127. ", temperatureType='" + temperatureType + '\'' +
  128. ", temperatureStart='" + temperatureStart + '\'' +
  129. ", temperatureEnd='" + temperatureEnd + '\'' +
  130. ", humidityType='" + humidityType + '\'' +
  131. ", humidityStart='" + humidityStart + '\'' +
  132. ", humidityEnd='" + humidityEnd + '\'' +
  133. '}';
  134. }
  135. public CargoBaseModel() {
  136. }
  137. public String getId() {
  138. return id;
  139. }
  140. public void setId(String id) {
  141. this.id = id;
  142. }
  143. public String getGoodsCode() {
  144. return goodsCode;
  145. }
  146. public void setGoodsCode(String goodsCode) {
  147. this.goodsCode = goodsCode;
  148. }
  149. public String getGoodsName() {
  150. return goodsName;
  151. }
  152. public void setGoodsName(String goodsName) {
  153. this.goodsName = goodsName;
  154. }
  155. public String getUnit() {
  156. return unit;
  157. }
  158. public void setUnit(String unit) {
  159. this.unit = unit;
  160. }
  161. public String getSpecification() {
  162. return specification;
  163. }
  164. public void setSpecification(String specification) {
  165. this.specification = specification;
  166. }
  167. public String getWeight() {
  168. return weight;
  169. }
  170. public void setWeight(String weight) {
  171. this.weight = weight;
  172. }
  173. public String getGoodsNameTitle() {
  174. return goodsNameTitle;
  175. }
  176. public void setGoodsNameTitle(String goodsNameTitle) {
  177. this.goodsNameTitle = goodsNameTitle;
  178. }
  179. public String getGoodsBrandCode() {
  180. return goodsBrandCode;
  181. }
  182. public void setGoodsBrandCode(String goodsBrandCode) {
  183. this.goodsBrandCode = goodsBrandCode;
  184. }
  185. public String getGoodsPic() {
  186. return goodsPic;
  187. }
  188. public void setGoodsPic(String goodsPic) {
  189. this.goodsPic = goodsPic;
  190. }
  191. public String getGoodsInfo() {
  192. return goodsInfo;
  193. }
  194. public void setGoodsInfo(String goodsInfo) {
  195. this.goodsInfo = goodsInfo;
  196. }
  197. public String getBrandName() {
  198. return brandName;
  199. }
  200. public void setBrandName(String brandName) {
  201. this.brandName = brandName;
  202. }
  203. public String getBrandNameEn() {
  204. return brandNameEn;
  205. }
  206. public void setBrandNameEn(String brandNameEn) {
  207. this.brandNameEn = brandNameEn;
  208. }
  209. public String getOrigin() {
  210. return origin;
  211. }
  212. public void setOrigin(String origin) {
  213. this.origin = origin;
  214. }
  215. public String getGoodsLength() {
  216. return goodsLength;
  217. }
  218. public void setGoodsLength(String goodsLength) {
  219. this.goodsLength = goodsLength;
  220. }
  221. public String getGoodsWidth() {
  222. return goodsWidth;
  223. }
  224. public void setGoodsWidth(String goodsWidth) {
  225. this.goodsWidth = goodsWidth;
  226. }
  227. public String getGoodsHeight() {
  228. return goodsHeight;
  229. }
  230. public void setGoodsHeight(String goodsHeight) {
  231. this.goodsHeight = goodsHeight;
  232. }
  233. public String getShelfLife() {
  234. return shelfLife;
  235. }
  236. public void setShelfLife(String shelfLife) {
  237. this.shelfLife = shelfLife;
  238. }
  239. public String getTemperatureType() {
  240. return temperatureType;
  241. }
  242. public void setTemperatureType(String temperatureType) {
  243. this.temperatureType = temperatureType;
  244. }
  245. public String getTemperatureStart() {
  246. return temperatureStart;
  247. }
  248. public void setTemperatureStart(String temperatureStart) {
  249. this.temperatureStart = temperatureStart;
  250. }
  251. public String getTemperatureEnd() {
  252. return temperatureEnd;
  253. }
  254. public void setTemperatureEnd(String temperatureEnd) {
  255. this.temperatureEnd = temperatureEnd;
  256. }
  257. public String getHumidityType() {
  258. return humidityType;
  259. }
  260. public void setHumidityType(String humidityType) {
  261. this.humidityType = humidityType;
  262. }
  263. public String getHumidityStart() {
  264. return humidityStart;
  265. }
  266. public void setHumidityStart(String humidityStart) {
  267. this.humidityStart = humidityStart;
  268. }
  269. public String getHumidityEnd() {
  270. return humidityEnd;
  271. }
  272. public void setHumidityEnd(String humidityEnd) {
  273. this.humidityEnd = humidityEnd;
  274. }
  275. @Override
  276. public int describeContents() {
  277. return 0;
  278. }
  279. @Override
  280. public void writeToParcel(Parcel dest, int flags) {
  281. dest.writeString(this.id);
  282. dest.writeString(this.goodsCode);
  283. dest.writeString(this.goodsName);
  284. dest.writeString(this.unit);
  285. dest.writeString(this.specification);
  286. dest.writeString(this.weight);
  287. dest.writeString(this.goodsNameTitle);
  288. dest.writeString(this.goodsBrandCode);
  289. dest.writeString(this.goodsPic);
  290. dest.writeString(this.goodsInfo);
  291. dest.writeString(this.brandName);
  292. dest.writeString(this.brandNameEn);
  293. dest.writeString(this.origin);
  294. dest.writeString(this.goodsLength);
  295. dest.writeString(this.goodsWidth);
  296. dest.writeString(this.goodsHeight);
  297. dest.writeString(this.shelfLife);
  298. dest.writeString(this.temperatureType);
  299. dest.writeString(this.temperatureStart);
  300. dest.writeString(this.temperatureEnd);
  301. dest.writeString(this.humidityType);
  302. dest.writeString(this.humidityStart);
  303. dest.writeString(this.humidityEnd);
  304. }
  305. protected CargoBaseModel(Parcel in) {
  306. this.id = in.readString();
  307. this.goodsCode = in.readString();
  308. this.goodsName = in.readString();
  309. this.unit = in.readString();
  310. this.specification = in.readString();
  311. this.weight = in.readString();
  312. this.goodsNameTitle = in.readString();
  313. this.goodsBrandCode = in.readString();
  314. this.goodsPic = in.readString();
  315. this.goodsInfo = in.readString();
  316. this.brandName = in.readString();
  317. this.brandNameEn = in.readString();
  318. this.origin = in.readString();
  319. this.goodsLength = in.readString();
  320. this.goodsWidth = in.readString();
  321. this.goodsHeight = in.readString();
  322. this.shelfLife = in.readString();
  323. this.temperatureType = in.readString();
  324. this.temperatureStart = in.readString();
  325. this.temperatureEnd = in.readString();
  326. this.humidityType = in.readString();
  327. this.humidityStart = in.readString();
  328. this.humidityEnd = in.readString();
  329. }
  330. public static final Creator<CargoBaseModel> CREATOR = new Creator<CargoBaseModel>() {
  331. @Override
  332. public CargoBaseModel createFromParcel(Parcel source) {
  333. return new CargoBaseModel(source);
  334. }
  335. @Override
  336. public CargoBaseModel[] newArray(int size) {
  337. return new CargoBaseModel[size];
  338. }
  339. };
  340. }