ITradeService.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the dreamlu.net developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: Chill 庄骞 (smallchill@163.com)
  16. */
  17. package org.springblade.modules.api.service;
  18. import org.springblade.modules.finance.entity.OrderGrant;
  19. import org.springblade.modules.finance.entity.PlatformAuthorization;
  20. import org.springblade.modules.shopping.entity.Consign;
  21. import org.springblade.modules.system.entity.UserApp;
  22. import java.util.List;
  23. /**
  24. * 商品规格值表 服务类
  25. *
  26. * @author BladeX
  27. * @since 2022-02-13
  28. */
  29. public interface ITradeService {
  30. /**
  31. * 用户仓单收款
  32. * 1、向用户打款
  33. * 2、修改寄售订单金额
  34. * @param consign 用户信息
  35. */
  36. void transfer(Consign consign);
  37. /**
  38. * 用户仓单收款
  39. * 1、向用户打款
  40. * 2、修改寄售订单金额
  41. * @param user 用户
  42. * @param transAmount 金额
  43. * @param orderConsignId 寄售(进货)Id
  44. */
  45. void transfer(UserApp user, String transAmount, Long orderConsignId, Consign consign);
  46. /**
  47. * 寄售用户
  48. * 平台收取用户订单
  49. * @param consignId 用户ID
  50. * @return List
  51. */
  52. boolean platformReceipt(Long consignId);
  53. /**
  54. * 预授解冻
  55. * 1.查询用户已预约的预授订单 状态为1的数据
  56. * 2.用户解冻
  57. */
  58. void orderGrant(List<OrderGrant> list);
  59. /**
  60. * 预授解冻
  61. * 1.查询用户已预约的预授订单 状态为1的数据
  62. * 2.用户解冻
  63. */
  64. void platFormUnfreeze(List<PlatformAuthorization> list);
  65. /**
  66. * 解冻用户预授权金额
  67. * @param authNo 授权号
  68. * @param amount 金额
  69. * @return boolean
  70. */
  71. boolean payUnfreeze(String authNo, Double amount);
  72. }