BondedStockMerchantOrder.java 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. package com.emato.ccnet.wx.dto.ccnetdto;
  2. import com.emato.ccnet.wx.dao.entity.ccnet.CusWaybill;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import java.io.Serializable;
  5. import java.math.BigDecimal;
  6. import java.util.Date;
  7. import java.util.List;
  8. /**
  9. * 保税备货
  10. * @author zengjunlin
  11. * @version 1.0
  12. * 2017-10-26 11:03
  13. */
  14. public class BondedStockMerchantOrder implements Serializable {
  15. private static final long serialVersionUID = 3577514804854115706L;
  16. //商户编号
  17. private String merchId;
  18. //商户名称
  19. private String merchName;
  20. // 第三方商户代码
  21. private String thirdPartyMerchCode;
  22. //第三方商户名称
  23. private String thirdPartyMerchName;
  24. //商户订单编号
  25. private String merchOrderId;
  26. //订购人证件类型
  27. private String buyerIdType;
  28. //订购人证件号码
  29. private String buyerIdCode;
  30. //订购人姓名
  31. private String buyerName;
  32. //订购人电话
  33. private String buyerTel;
  34. //支付人证件类型
  35. private String payerIdType;
  36. //支付人证件号码
  37. private String payerIdCode;
  38. //支付人姓名
  39. private String payerName;
  40. //支付人电话
  41. private String payerMob;
  42. //收件人证件类型
  43. private String consigneeIdType;
  44. //收件人证件号码
  45. private String consigneeIdCode;
  46. //收件人姓名
  47. private String consigneeName;
  48. //收件人手机
  49. private String consigneeMob;
  50. //收件人电话
  51. private String consigneeTel;
  52. //收件人国家代码
  53. private String consigneeCountryCode;
  54. //收件人省区划代码
  55. private String consigneeProvinceCode;
  56. //收件人省名
  57. private String consigneeProvince;
  58. //收件人市区划代码
  59. private String consigneeCityCode;
  60. //收件人市名
  61. private String consigneeCity;
  62. //收件人区县区划代码
  63. private String consigneeDistrictCode;
  64. //收件人区县
  65. private String consigneeDistrict;
  66. //收件人地址
  67. private String consigneeAddress;
  68. //收件人邮政编码
  69. private String consigneeZipCode;
  70. //支付企业海关登记号
  71. private String payEntCusCode;
  72. //支付单号
  73. private String payNo;
  74. //实际支付金额
  75. private BigDecimal acturalPaid;
  76. //支付时间
  77. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  78. private Date payTime;
  79. //快递类型
  80. private String exprType;
  81. //快递公司编号
  82. private String exprCompId;
  83. //订购人下单时间
  84. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  85. private Date buyerBillTime;
  86. //申报用物流费
  87. private BigDecimal declExprFee;
  88. //申报用行邮税
  89. private BigDecimal declPostTax;
  90. //商户字段
  91. private String extraTag;
  92. //备注
  93. private String remark;
  94. //平台编码
  95. private String platSn;
  96. // 门店编号
  97. private String shopId;
  98. //海关支付推送成功
  99. private String cusPaymentSucceeded;
  100. // 海关订单推送成功
  101. private String cusOrderSucceeded;
  102. // 支付成功
  103. private String paySucceeded;
  104. // 订购人支付人核验
  105. private String buyerPayerCheck;
  106. // 快递协议类型
  107. private String exprAgreementType;
  108. // 运输方式
  109. private String transMode;
  110. //商品详情
  111. private List<BondedStockMerchantOrderItem> item;
  112. public BondedStockMerchantOrder(){}
  113. public BondedStockMerchantOrder(CusWaybill cusWaybill){
  114. this.merchId = cusWaybill.getMerchSn();
  115. this.merchOrderId = cusWaybill.getMerchOrderId();
  116. this.thirdPartyMerchCode = cusWaybill.getThirdPartyMerchCode();
  117. this.thirdPartyMerchName = cusWaybill.getThirdPartyMerchName();
  118. this.buyerIdType = cusWaybill.getBuyerIdType();
  119. this.buyerIdCode = cusWaybill.getBuyerIdCode() == null?cusWaybill.getConsigneeIdCode():cusWaybill.getBuyerIdCode();
  120. this.buyerName = cusWaybill.getBuyerName();
  121. this.buyerTel = cusWaybill.getBuyerTel();
  122. this.consigneeIdType = cusWaybill.getConsigneeIdType();
  123. this.consigneeIdCode = cusWaybill.getConsigneeIdCode();
  124. this.consigneeName = cusWaybill.getConsigneeName();
  125. this.consigneeMob = cusWaybill.getConsigneeMob();
  126. this.consigneeTel = cusWaybill.getConsigneeTel();
  127. this.consigneeCountryCode = cusWaybill.getConsigneeCountryCode();
  128. this.consigneeProvinceCode = cusWaybill.getConsigneeProvinceCode();
  129. this.consigneeProvince = cusWaybill.getConsigneeProvince();
  130. this.consigneeCityCode = cusWaybill.getConsigneeCityCode();
  131. this.consigneeCity = cusWaybill.getConsigneeCity();
  132. this.consigneeDistrictCode = cusWaybill.getConsigneeDistrictCode();
  133. this.consigneeDistrict = cusWaybill.getConsigneeDistrict();
  134. this.consigneeAddress = cusWaybill.getConsigneeAddress();
  135. this.consigneeZipCode = cusWaybill.getConsigneeZipCode();
  136. this.payerIdType = cusWaybill.getPayerIdType();
  137. this.payerIdCode = cusWaybill.getPayerIdCode();
  138. this.payerName = cusWaybill.getPayerName();
  139. this.payerMob = cusWaybill.getPayerMob();
  140. this.payEntCusCode = cusWaybill.getPayEntCusCode();
  141. this.payNo = cusWaybill.getPayNo();
  142. this.acturalPaid = cusWaybill.getActuralPaid();
  143. this.payTime = cusWaybill.getPayTime();
  144. this.buyerBillTime = cusWaybill.getBuyerBillTime()==null?new Date():cusWaybill.getBuyerBillTime();
  145. this.extraTag = cusWaybill.getCusWaybillSn();
  146. this.exprType = cusWaybill.getExprType();
  147. this.exprCompId = cusWaybill.getExprCompId();
  148. this.declExprFee = BigDecimal.valueOf(0);
  149. this.declPostTax = BigDecimal.valueOf(0);
  150. this.shopId = cusWaybill.getShopId();
  151. this.cusPaymentSucceeded = "0";
  152. this.cusOrderSucceeded = "0";
  153. this.paySucceeded = "0";
  154. System.out.println(cusWaybill.getExField());
  155. this.buyerPayerCheck = cusWaybill.getBuyerPayCheck();
  156. this.exprAgreementType = "00";
  157. this.transMode = "20";
  158. }
  159. public String getMerchId() {
  160. return merchId;
  161. }
  162. public void setMerchId(String merchId) {
  163. this.merchId = merchId;
  164. }
  165. public String getMerchOrderId() {
  166. return merchOrderId;
  167. }
  168. public void setMerchOrderId(String merchOrderId) {
  169. this.merchOrderId = merchOrderId;
  170. }
  171. public String getBuyerIdType() {
  172. return buyerIdType;
  173. }
  174. public void setBuyerIdType(String buyerIdType) {
  175. this.buyerIdType = buyerIdType;
  176. }
  177. public String getBuyerIdCode() {
  178. return buyerIdCode;
  179. }
  180. public void setBuyerIdCode(String buyerIdCode) {
  181. this.buyerIdCode = buyerIdCode;
  182. }
  183. public String getBuyerName() {
  184. return buyerName;
  185. }
  186. public void setBuyerName(String buyerName) {
  187. this.buyerName = buyerName;
  188. }
  189. public String getBuyerTel() {
  190. return buyerTel;
  191. }
  192. public void setBuyerTel(String buyerTel) {
  193. this.buyerTel = buyerTel;
  194. }
  195. public String getPayerIdType() {
  196. return payerIdType;
  197. }
  198. public void setPayerIdType(String payerIdType) {
  199. this.payerIdType = payerIdType;
  200. }
  201. public String getPayerIdCode() {
  202. return payerIdCode;
  203. }
  204. public void setPayerIdCode(String payerIdCode) {
  205. this.payerIdCode = payerIdCode;
  206. }
  207. public String getPayerName() {
  208. return payerName;
  209. }
  210. public void setPayerName(String payerName) {
  211. this.payerName = payerName;
  212. }
  213. public String getPayerMob() {
  214. return payerMob;
  215. }
  216. public void setPayerMob(String payerMob) {
  217. this.payerMob = payerMob;
  218. }
  219. public String getConsigneeIdType() {
  220. return consigneeIdType;
  221. }
  222. public void setConsigneeIdType(String consigneeIdType) {
  223. this.consigneeIdType = consigneeIdType;
  224. }
  225. public String getConsigneeIdCode() {
  226. return consigneeIdCode;
  227. }
  228. public void setConsigneeIdCode(String consigneeIdCode) {
  229. this.consigneeIdCode = consigneeIdCode;
  230. }
  231. public String getConsigneeName() {
  232. return consigneeName;
  233. }
  234. public void setConsigneeName(String consigneeName) {
  235. this.consigneeName = consigneeName;
  236. }
  237. public String getConsigneeMob() {
  238. return consigneeMob;
  239. }
  240. public void setConsigneeMob(String consigneeMob) {
  241. this.consigneeMob = consigneeMob;
  242. }
  243. public String getConsigneeTel() {
  244. return consigneeTel;
  245. }
  246. public void setConsigneeTel(String consigneeTel) {
  247. this.consigneeTel = consigneeTel;
  248. }
  249. public String getConsigneeCountryCode() {
  250. return consigneeCountryCode;
  251. }
  252. public void setConsigneeCountryCode(String consigneeCountryCode) {
  253. this.consigneeCountryCode = consigneeCountryCode;
  254. }
  255. public String getConsigneeProvinceCode() {
  256. return consigneeProvinceCode;
  257. }
  258. public void setConsigneeProvinceCode(String consigneeProvinceCode) {
  259. this.consigneeProvinceCode = consigneeProvinceCode;
  260. }
  261. public String getConsigneeProvince() {
  262. return consigneeProvince;
  263. }
  264. public void setConsigneeProvince(String consigneeProvince) {
  265. this.consigneeProvince = consigneeProvince;
  266. }
  267. public String getConsigneeCityCode() {
  268. return consigneeCityCode;
  269. }
  270. public void setConsigneeCityCode(String consigneeCityCode) {
  271. this.consigneeCityCode = consigneeCityCode;
  272. }
  273. public String getConsigneeCity() {
  274. return consigneeCity;
  275. }
  276. public void setConsigneeCity(String consigneeCity) {
  277. this.consigneeCity = consigneeCity;
  278. }
  279. public String getConsigneeDistrictCode() {
  280. return consigneeDistrictCode;
  281. }
  282. public void setConsigneeDistrictCode(String consigneeDistrictCode) {
  283. this.consigneeDistrictCode = consigneeDistrictCode;
  284. }
  285. public String getConsigneeDistrict() {
  286. return consigneeDistrict;
  287. }
  288. public void setConsigneeDistrict(String consigneeDistrict) {
  289. this.consigneeDistrict = consigneeDistrict;
  290. }
  291. public String getConsigneeAddress() {
  292. return consigneeAddress;
  293. }
  294. public void setConsigneeAddress(String consigneeAddress) {
  295. this.consigneeAddress = consigneeAddress;
  296. }
  297. public String getConsigneeZipCode() {
  298. return consigneeZipCode;
  299. }
  300. public void setConsigneeZipCode(String consigneeZipCode) {
  301. this.consigneeZipCode = consigneeZipCode;
  302. }
  303. public String getPayEntCusCode() {
  304. return payEntCusCode;
  305. }
  306. public void setPayEntCusCode(String payEntCusCode) {
  307. this.payEntCusCode = payEntCusCode;
  308. }
  309. public String getPayNo() {
  310. return payNo;
  311. }
  312. public void setPayNo(String payNo) {
  313. this.payNo = payNo;
  314. }
  315. public BigDecimal getActuralPaid() {
  316. return acturalPaid;
  317. }
  318. public void setActuralPaid(BigDecimal acturalPaid) {
  319. this.acturalPaid = acturalPaid;
  320. }
  321. public Date getPayTime() {
  322. return payTime;
  323. }
  324. public void setPayTime(Date payTime) {
  325. this.payTime = payTime;
  326. }
  327. public String getExprType() {
  328. return exprType;
  329. }
  330. public void setExprType(String exprType) {
  331. this.exprType = exprType;
  332. }
  333. public String getExprCompId() {
  334. return exprCompId;
  335. }
  336. public void setExprCompId(String exprCompId) {
  337. this.exprCompId = exprCompId;
  338. }
  339. public Date getBuyerBillTime() {
  340. return buyerBillTime;
  341. }
  342. public void setBuyerBillTime(Date buyerBillTime) {
  343. this.buyerBillTime = buyerBillTime;
  344. }
  345. public BigDecimal getDeclExprFee() {
  346. return declExprFee;
  347. }
  348. public void setDeclExprFee(BigDecimal declExprFee) {
  349. this.declExprFee = declExprFee;
  350. }
  351. public BigDecimal getDeclPostTax() {
  352. return declPostTax;
  353. }
  354. public void setDeclPostTax(BigDecimal declPostTax) {
  355. this.declPostTax = declPostTax;
  356. }
  357. public String getExtraTag() {
  358. return extraTag;
  359. }
  360. public void setExtraTag(String extraTag) {
  361. this.extraTag = extraTag;
  362. }
  363. public String getRemark() {
  364. return remark;
  365. }
  366. public void setRemark(String remark) {
  367. this.remark = remark;
  368. }
  369. public List<BondedStockMerchantOrderItem> getItem() {
  370. return item;
  371. }
  372. public void setItem(List<BondedStockMerchantOrderItem> item) {
  373. this.item = item;
  374. }
  375. public String getPlatSn() {
  376. return platSn;
  377. }
  378. public void setPlatSn(String platSn) {
  379. this.platSn = platSn;
  380. }
  381. public String getMerchName() {
  382. return merchName;
  383. }
  384. public void setMerchName(String merchName) {
  385. this.merchName = merchName;
  386. }
  387. public String getThirdPartyMerchCode() {
  388. return thirdPartyMerchCode;
  389. }
  390. public void setThirdPartyMerchCode(String thirdPartyMerchCode) {
  391. this.thirdPartyMerchCode = thirdPartyMerchCode;
  392. }
  393. public String getThirdPartyMerchName() {
  394. return thirdPartyMerchName;
  395. }
  396. public void setThirdPartyMerchName(String thirdPartyMerchName) {
  397. this.thirdPartyMerchName = thirdPartyMerchName;
  398. }
  399. public String getShopId() {
  400. return shopId;
  401. }
  402. public void setShopId(String shopId) {
  403. this.shopId = shopId;
  404. }
  405. public String getCusPaymentSucceeded() {
  406. return cusPaymentSucceeded;
  407. }
  408. public void setCusPaymentSucceeded(String cusPaymentSucceeded) {
  409. this.cusPaymentSucceeded = cusPaymentSucceeded;
  410. }
  411. public String getCusOrderSucceeded() {
  412. return cusOrderSucceeded;
  413. }
  414. public void setCusOrderSucceeded(String cusOrderSucceeded) {
  415. this.cusOrderSucceeded = cusOrderSucceeded;
  416. }
  417. public String getPaySucceeded() {
  418. return paySucceeded;
  419. }
  420. public void setPaySucceeded(String paySucceeded) {
  421. this.paySucceeded = paySucceeded;
  422. }
  423. public String getBuyerPayerCheck() {
  424. return buyerPayerCheck;
  425. }
  426. public void setBuyerPayerCheck(String buyerPayerCheck) {
  427. this.buyerPayerCheck = buyerPayerCheck;
  428. }
  429. public String getExprAgreementType() {
  430. return exprAgreementType;
  431. }
  432. public void setExprAgreementType(String exprAgreementType) {
  433. this.exprAgreementType = exprAgreementType;
  434. }
  435. public String getTransMode() {
  436. return transMode;
  437. }
  438. public void setTransMode(String transMode) {
  439. this.transMode = transMode;
  440. }
  441. }