StoreGroupOrderEntity.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. <?php
  2. namespace app\entity\data\store;
  3. use app\entity\data\DataEntity;
  4. class StoreGroupOrderEntity extends DataEntity
  5. {
  6. public $groupOrderId = 0; // 订单ID
  7. public $groupOrderSn = ''; // 订单号
  8. public $uid = 0; // 用户ID
  9. public $totalPostage = 0.00; // 邮费
  10. public $totalPrice = 0.00; // 订单总额
  11. public $totalNum = 0; // 商品数
  12. public $couponPrice = 0.00; // 优惠金额
  13. public $realName = ''; // 联系人
  14. public $userPhone = ''; // 联系电话
  15. public $userAddress = ''; // 收货地址
  16. public $payPrice = 0.00; // 支付金额
  17. public $payPostage = 0.00; // 支付邮费
  18. public $cost = 0.00; // 成本价
  19. public $giveCouponIds = ''; // 赠送优惠券
  20. public $paid = 0; // 是否支付
  21. public $payTime = null; // 支付时间
  22. public $payType = 0; // 支付方式
  23. public $createTime = null; // 创建时间
  24. public $isRemind = 0; // 是否提醒
  25. public $isDel = 0; // 是否删除
  26. public $rand = ''; // 订单号随机数
  27. public $split = null; // 分账状态
  28. public $serialNumber = ''; // 首信易交易流水号
  29. public $testOrder = 0; // 是否为测试订单
  30. public $hfPayId = ''; // 汇付订单id
  31. public $payWx = null; // 微信支付渠道后台设置
  32. public $fzonePaytype = ''; // 组合支付
  33. /**
  34. * @return int
  35. */
  36. public function getGroupOrderId(): int
  37. {
  38. return $this->groupOrderId;
  39. }
  40. /**
  41. * @param int $groupOrderId
  42. * @return StoreGroupOrderEntity
  43. */
  44. public function setGroupOrderId(int $groupOrderId): StoreGroupOrderEntity
  45. {
  46. $this->groupOrderId = $groupOrderId;
  47. return $this;
  48. }
  49. /**
  50. * @return string
  51. */
  52. public function getGroupOrderSn(): string
  53. {
  54. return $this->groupOrderSn;
  55. }
  56. /**
  57. * @param string $groupOrderSn
  58. * @return StoreGroupOrderEntity
  59. */
  60. public function setGroupOrderSn(string $groupOrderSn): StoreGroupOrderEntity
  61. {
  62. $this->groupOrderSn = $groupOrderSn;
  63. return $this;
  64. }
  65. /**
  66. * @return int
  67. */
  68. public function getUid(): int
  69. {
  70. return $this->uid;
  71. }
  72. /**
  73. * @param int $uid
  74. * @return StoreGroupOrderEntity
  75. */
  76. public function setUid(int $uid): StoreGroupOrderEntity
  77. {
  78. $this->uid = $uid;
  79. return $this;
  80. }
  81. /**
  82. * @return float
  83. */
  84. public function getTotalPostage(): float
  85. {
  86. return $this->totalPostage;
  87. }
  88. /**
  89. * @param float $totalPostage
  90. * @return StoreGroupOrderEntity
  91. */
  92. public function setTotalPostage(float $totalPostage): StoreGroupOrderEntity
  93. {
  94. $this->totalPostage = $totalPostage;
  95. return $this;
  96. }
  97. /**
  98. * @return float
  99. */
  100. public function getTotalPrice(): float
  101. {
  102. return $this->totalPrice;
  103. }
  104. /**
  105. * @param float $totalPrice
  106. * @return StoreGroupOrderEntity
  107. */
  108. public function setTotalPrice(float $totalPrice): StoreGroupOrderEntity
  109. {
  110. $this->totalPrice = $totalPrice;
  111. return $this;
  112. }
  113. /**
  114. * @return int
  115. */
  116. public function getTotalNum(): int
  117. {
  118. return $this->totalNum;
  119. }
  120. /**
  121. * @param int $totalNum
  122. * @return StoreGroupOrderEntity
  123. */
  124. public function setTotalNum(int $totalNum): StoreGroupOrderEntity
  125. {
  126. $this->totalNum = $totalNum;
  127. return $this;
  128. }
  129. /**
  130. * @return float
  131. */
  132. public function getCouponPrice(): float
  133. {
  134. return $this->couponPrice;
  135. }
  136. /**
  137. * @param float $couponPrice
  138. * @return StoreGroupOrderEntity
  139. */
  140. public function setCouponPrice(float $couponPrice): StoreGroupOrderEntity
  141. {
  142. $this->couponPrice = $couponPrice;
  143. return $this;
  144. }
  145. /**
  146. * @return string
  147. */
  148. public function getRealName(): string
  149. {
  150. return $this->realName;
  151. }
  152. /**
  153. * @param string $realName
  154. * @return StoreGroupOrderEntity
  155. */
  156. public function setRealName(string $realName): StoreGroupOrderEntity
  157. {
  158. $this->realName = $realName;
  159. return $this;
  160. }
  161. /**
  162. * @return string
  163. */
  164. public function getUserPhone(): string
  165. {
  166. return $this->userPhone;
  167. }
  168. /**
  169. * @param string $userPhone
  170. * @return StoreGroupOrderEntity
  171. */
  172. public function setUserPhone(string $userPhone): StoreGroupOrderEntity
  173. {
  174. $this->userPhone = $userPhone;
  175. return $this;
  176. }
  177. /**
  178. * @return string
  179. */
  180. public function getUserAddress(): string
  181. {
  182. return $this->userAddress;
  183. }
  184. /**
  185. * @param string $userAddress
  186. * @return StoreGroupOrderEntity
  187. */
  188. public function setUserAddress(string $userAddress): StoreGroupOrderEntity
  189. {
  190. $this->userAddress = $userAddress;
  191. return $this;
  192. }
  193. /**
  194. * @return float
  195. */
  196. public function getPayPrice(): float
  197. {
  198. return $this->payPrice;
  199. }
  200. /**
  201. * @param float $payPrice
  202. * @return StoreGroupOrderEntity
  203. */
  204. public function setPayPrice(float $payPrice): StoreGroupOrderEntity
  205. {
  206. $this->payPrice = $payPrice;
  207. return $this;
  208. }
  209. /**
  210. * @return float
  211. */
  212. public function getPayPostage(): float
  213. {
  214. return $this->payPostage;
  215. }
  216. /**
  217. * @param float $payPostage
  218. * @return StoreGroupOrderEntity
  219. */
  220. public function setPayPostage(float $payPostage): StoreGroupOrderEntity
  221. {
  222. $this->payPostage = $payPostage;
  223. return $this;
  224. }
  225. /**
  226. * @return float
  227. */
  228. public function getCost(): float
  229. {
  230. return $this->cost;
  231. }
  232. /**
  233. * @param float $cost
  234. * @return StoreGroupOrderEntity
  235. */
  236. public function setCost(float $cost): StoreGroupOrderEntity
  237. {
  238. $this->cost = $cost;
  239. return $this;
  240. }
  241. /**
  242. * @return string
  243. */
  244. public function getGiveCouponIds(): string
  245. {
  246. return $this->giveCouponIds;
  247. }
  248. /**
  249. * @param string $giveCouponIds
  250. * @return StoreGroupOrderEntity
  251. */
  252. public function setGiveCouponIds(string $giveCouponIds): StoreGroupOrderEntity
  253. {
  254. $this->giveCouponIds = $giveCouponIds;
  255. return $this;
  256. }
  257. /**
  258. * @return int
  259. */
  260. public function getPaid(): int
  261. {
  262. return $this->paid;
  263. }
  264. /**
  265. * @param int $paid
  266. * @return StoreGroupOrderEntity
  267. */
  268. public function setPaid(int $paid): StoreGroupOrderEntity
  269. {
  270. $this->paid = $paid;
  271. return $this;
  272. }
  273. /**
  274. * @return mixed
  275. */
  276. public function getPayTime()
  277. {
  278. return $this->payTime;
  279. }
  280. /**
  281. * @param mixed $payTime
  282. * @return StoreGroupOrderEntity
  283. */
  284. public function setPayTime($payTime): StoreGroupOrderEntity
  285. {
  286. $this->payTime = $payTime;
  287. return $this;
  288. }
  289. /**
  290. * @return int
  291. */
  292. public function getPayType(): int
  293. {
  294. return $this->payType;
  295. }
  296. /**
  297. * @param int $payType
  298. * @return StoreGroupOrderEntity
  299. */
  300. public function setPayType(int $payType): StoreGroupOrderEntity
  301. {
  302. $this->payType = $payType;
  303. return $this;
  304. }
  305. /**
  306. * @return mixed
  307. */
  308. public function getCreateTime()
  309. {
  310. return $this->createTime;
  311. }
  312. /**
  313. * @param mixed $createTime
  314. * @return StoreGroupOrderEntity
  315. */
  316. public function setCreateTime($createTime): StoreGroupOrderEntity
  317. {
  318. $this->createTime = $createTime;
  319. return $this;
  320. }
  321. /**
  322. * @return int
  323. */
  324. public function getIsRemind(): int
  325. {
  326. return $this->isRemind;
  327. }
  328. /**
  329. * @param int $isRemind
  330. * @return StoreGroupOrderEntity
  331. */
  332. public function setIsRemind(int $isRemind): StoreGroupOrderEntity
  333. {
  334. $this->isRemind = $isRemind;
  335. return $this;
  336. }
  337. /**
  338. * @return int
  339. */
  340. public function getIsDel(): int
  341. {
  342. return $this->isDel;
  343. }
  344. /**
  345. * @param int $isDel
  346. * @return StoreGroupOrderEntity
  347. */
  348. public function setIsDel(int $isDel): StoreGroupOrderEntity
  349. {
  350. $this->isDel = $isDel;
  351. return $this;
  352. }
  353. /**
  354. * @return string
  355. */
  356. public function getRand(): string
  357. {
  358. return $this->rand;
  359. }
  360. /**
  361. * @param string $rand
  362. * @return StoreGroupOrderEntity
  363. */
  364. public function setRand(string $rand): StoreGroupOrderEntity
  365. {
  366. $this->rand = $rand;
  367. return $this;
  368. }
  369. /**
  370. * @return mixed
  371. */
  372. public function getSplit()
  373. {
  374. return $this->split;
  375. }
  376. /**
  377. * @param mixed $split
  378. * @return StoreGroupOrderEntity
  379. */
  380. public function setSplit($split)
  381. {
  382. $this->split = $split;
  383. return $this;
  384. }
  385. /**
  386. * @return string
  387. */
  388. public function getSerialNumber(): string
  389. {
  390. return $this->serialNumber;
  391. }
  392. /**
  393. * @param string $serialNumber
  394. * @return StoreGroupOrderEntity
  395. */
  396. public function setSerialNumber(string $serialNumber): StoreGroupOrderEntity
  397. {
  398. $this->serialNumber = $serialNumber;
  399. return $this;
  400. }
  401. /**
  402. * @return int
  403. */
  404. public function getTestOrder(): int
  405. {
  406. return $this->testOrder;
  407. }
  408. /**
  409. * @param int $testOrder
  410. * @return StoreGroupOrderEntity
  411. */
  412. public function setTestOrder(int $testOrder): StoreGroupOrderEntity
  413. {
  414. $this->testOrder = $testOrder;
  415. return $this;
  416. }
  417. /**
  418. * @return string
  419. */
  420. public function getHfPayId(): string
  421. {
  422. return $this->hfPayId;
  423. }
  424. /**
  425. * @param string $hfPayId
  426. * @return StoreGroupOrderEntity
  427. */
  428. public function setHfPayId(string $hfPayId): StoreGroupOrderEntity
  429. {
  430. $this->hfPayId = $hfPayId;
  431. return $this;
  432. }
  433. /**
  434. * @return mixed
  435. */
  436. public function getPayWx()
  437. {
  438. return $this->payWx;
  439. }
  440. /**
  441. * @param mixed $payWx
  442. * @return StoreGroupOrderEntity
  443. */
  444. public function setPayWx($payWx): StoreGroupOrderEntity
  445. {
  446. $this->payWx = $payWx;
  447. return $this;
  448. }
  449. /**
  450. * @return string
  451. */
  452. public function getFzonePaytype(): string
  453. {
  454. return $this->fzonePaytype;
  455. }
  456. /**
  457. * @param mixed $fzonePaytype
  458. * @return StoreGroupOrderEntity
  459. */
  460. public function setFzonePaytype($fzonePaytype): StoreGroupOrderEntity
  461. {
  462. if (!is_string($fzonePaytype)) {
  463. $fzonePaytypePre = $fzonePaytype;
  464. $fzonePaytype = '';
  465. if (is_array($fzonePaytypePre)) {
  466. $fzonePaytype = json_encode($fzonePaytypePre);
  467. }
  468. unset($fzonePaytypePre);
  469. }
  470. $this->fzonePaytype = $fzonePaytype;
  471. return $this;
  472. }
  473. }