Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
08abda6f
Commit
08abda6f
authored
Nov 12, 2021
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用代码
parent
6a7c4904
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
388 additions
and
388 deletions
+388
-388
order-application-service/src/main/java/cn/freemud/entities/dto/CreateOrderInfoDto.java
+18
-18
order-application-service/src/main/java/cn/freemud/entities/dto/order/CreateOrderDemoDto.java
+108
-108
order-application-service/src/main/java/cn/freemud/entities/dto/order/CreateOrderDto.java
+124
-124
order-application-service/src/main/java/cn/freemud/entities/dto/order/CreateOrderProductDemoDto.java
+73
-73
order-application-service/src/main/java/cn/freemud/entities/dto/order/OrderAccountDto.java
+38
-38
order-application-service/src/main/java/cn/freemud/entities/dto/order/RefundQueryRequestDto.java
+27
-27
No files found.
order-application-service/src/main/java/cn/freemud/entities/dto/CreateOrderInfoDto.java
View file @
08abda6f
package
cn
.
freemud
.
entities
.
dto
;
import
cn.freemud.entities.dto.order.CreateOrderDto
;
import
lombok.Data
;
@Data
public
class
CreateOrderInfoDto
{
private
CreateOrderDto
createOrderDto
;
private
StoreResponseDto
storeResponseDto
;
private
StoreDeliveryInfoDto
storeDeliveryInfoDto
;
private
UserDeliveryInfoDto
userDeliveryInfoDto
;
}
//
package cn.freemud.entities.dto;
//
//
import cn.freemud.entities.dto.order.CreateOrderDto;
//
import lombok.Data;
//
//
@Data
//
public class CreateOrderInfoDto {
//
//
private CreateOrderDto createOrderDto;
//
//
private StoreResponseDto storeResponseDto;
//
//
private StoreDeliveryInfoDto storeDeliveryInfoDto;
//
//
private UserDeliveryInfoDto userDeliveryInfoDto;
//
//
//
}
order-application-service/src/main/java/cn/freemud/entities/dto/order/CreateOrderDemoDto.java
View file @
08abda6f
package
cn
.
freemud
.
entities
.
dto
.
order
;
import
cn.freemud.entities.dto.CreateOrderAccountDto
;
import
cn.freemud.entities.dto.CreateOrderProductDto
;
import
cn.freemud.entities.dto.CreateOrderRequestDto
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.List
;
@Data
public
class
CreateOrderDemoDto
{
/**
* 商户ID 必填
*/
private
String
companyId
;
/**
* 门店ID
*/
private
String
shopId
;
/**
* 门店名称
*/
private
String
shopName
;
/**
* 用户ID
*/
private
String
userId
;
/**
* 用户名称
*/
private
String
userName
;
/**
* 用户电话
*/
private
String
phone
;
/**
* 收货地址 非必填
*/
private
String
address
;
/**
* 收货地址经度 非必填
*/
private
String
longitude
;
/**
* 收获地址维度 非必填
*/
private
String
latitude
;
/**
* 订单类型 1 外卖 2.预订单 3.商城 4 自提
*/
private
Integer
type
;
/**
* 订单状态
*/
private
Integer
status
;
/**
* 支付类型
*/
private
Integer
payType
;
/**
* 订单来源
*/
private
String
source
;
/**
* 订单来源名称
*/
private
String
sourceName
;
/**
* 期望送达时间
*/
private
Long
gmtExpect
;
/**
* 订单备注
*/
private
String
remark
;
/**
* 实付金额
*/
private
Long
amount
;
/**
* 商品列表
*/
List
<
CreateOrderProductDto
>
products
;
/**
* 其他结算列表
*/
List
<
CreateOrderAccountDto
>
accounts
;
private
CreateOrderRequestDto
.
DeliveryTypeInfo
addInfo
;
@Data
@NoArgsConstructor
public
static
class
DeliveryTypeInfo
{
/**
* 订单类型,自配送self,第三方配送third
*/
private
String
deliveryType
;
public
DeliveryTypeInfo
(
String
deliveryType
)
{
this
.
deliveryType
=
deliveryType
;
}
}
}
//
package cn.freemud.entities.dto.order;
//
//
import cn.freemud.entities.dto.CreateOrderAccountDto;
//
import cn.freemud.entities.dto.CreateOrderProductDto;
//
import cn.freemud.entities.dto.CreateOrderRequestDto;
//
import lombok.Data;
//
import lombok.NoArgsConstructor;
//
//
import java.util.List;
//
//
@Data
//
public class CreateOrderDemoDto {
//
//
/**
//
* 商户ID 必填
//
*/
//
private String companyId;
//
/**
//
* 门店ID
//
*/
//
private String shopId;
//
/**
//
* 门店名称
//
*/
//
private String shopName;
//
/**
//
* 用户ID
//
*/
//
private String userId;
//
/**
//
* 用户名称
//
*/
//
private String userName;
//
/**
//
* 用户电话
//
*/
//
private String phone;
//
/**
//
* 收货地址 非必填
//
*/
//
private String address;
//
/**
//
* 收货地址经度 非必填
//
*/
//
private String longitude;
//
/**
//
* 收获地址维度 非必填
//
*/
//
private String latitude;
//
/**
//
* 订单类型 1 外卖 2.预订单 3.商城 4 自提
//
*/
//
private Integer type;
//
/**
//
* 订单状态
//
*/
//
private Integer status;
//
/**
//
* 支付类型
//
*/
//
private Integer payType;
//
/**
//
* 订单来源
//
*/
//
private String source;
//
/**
//
* 订单来源名称
//
*/
//
private String sourceName;
//
/**
//
* 期望送达时间
//
*/
//
private Long gmtExpect;
//
//
/**
//
* 订单备注
//
*/
//
private String remark;
//
//
/**
//
* 实付金额
//
*/
//
private Long amount;
//
//
/**
//
* 商品列表
//
*/
//
List<CreateOrderProductDto> products;
//
/**
//
* 其他结算列表
//
*/
//
List<CreateOrderAccountDto> accounts;
//
//
private CreateOrderRequestDto.DeliveryTypeInfo addInfo;
//
//
@Data
//
@NoArgsConstructor
//
public static class DeliveryTypeInfo{
//
/**
//
* 订单类型,自配送self,第三方配送third
//
*/
//
private String deliveryType;
//
//
public DeliveryTypeInfo(String deliveryType) {
//
this.deliveryType = deliveryType;
//
}
//
}
//
}
order-application-service/src/main/java/cn/freemud/entities/dto/order/CreateOrderDto.java
View file @
08abda6f
package
cn
.
freemud
.
entities
.
dto
.
order
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.List
;
@Data
@Builder
public
class
CreateOrderDto
{
/**
* 商户ID 必填
*/
private
String
companyId
;
/**
* 门店ID
*/
private
String
shopId
;
/**
* 门店名称
*/
private
String
shopName
;
/**
* 用户ID
*/
private
String
userId
;
/**
* 用户名称
*/
private
String
userName
;
/**
* 用户电话
*/
private
String
phone
;
/**
* 收货地址 非必填
*/
private
String
address
;
/**
* 收货地址经度 非必填
*/
private
String
longitude
;
/**
* 收获地址维度 非必填
*/
private
String
latitude
;
/**
* 订单类型 1 外卖 2.预订单 3.商城 4 自提
*/
private
Integer
oldOrderType
;
/**
* 订单状态
*/
private
Integer
status
;
/**
* 支付类型
*/
private
Integer
oldPayType
;
/**
* 订单来源
*/
private
String
source
;
/**
* 订单来源名称
*/
private
String
sourceName
;
/**
* 期望送达时间
*/
private
Long
gmtExpect
;
/**
* 订单备注
*/
private
String
remark
;
/**
* 实付金额
*/
private
Long
amount
;
/**
* 吧台桌号
*/
private
String
barCounter
;
/**
* form_id 用于金额是0的情况 现在只支持商品券,前端参数
*/
private
String
formId
;
private
Integer
orderClient
;
/**
* 商品列表
*/
List
<
CreateOrderProductDto
>
products
;
/**
* 其他结算列表
*/
List
<
CreateOrderAccountDto
>
accounts
;
private
DeliveryTypeInfo
addInfo
;
public
Boolean
needPay
()
{
return
amount
>
0
;
}
@Data
@NoArgsConstructor
public
static
class
DeliveryTypeInfo
{
/**
* 订单类型,自配送self,第三方配送third
*/
private
String
deliveryType
;
public
DeliveryTypeInfo
(
String
deliveryType
)
{
this
.
deliveryType
=
deliveryType
;
}
}
}
//
package cn.freemud.entities.dto.order;
//
//
import lombok.Builder;
//
import lombok.Data;
//
import lombok.NoArgsConstructor;
//
//
import java.util.List;
//
//
@Data
//
@Builder
//
public class CreateOrderDto {
//
//
/**
//
* 商户ID 必填
//
*/
//
private String companyId;
//
/**
//
* 门店ID
//
*/
//
private String shopId;
//
/**
//
* 门店名称
//
*/
//
private String shopName;
//
/**
//
* 用户ID
//
*/
//
private String userId;
//
/**
//
* 用户名称
//
*/
//
private String userName;
//
/**
//
* 用户电话
//
*/
//
private String phone;
//
/**
//
* 收货地址 非必填
//
*/
//
private String address;
//
/**
//
* 收货地址经度 非必填
//
*/
//
private String longitude;
//
/**
//
* 收获地址维度 非必填
//
*/
//
private String latitude;
//
/**
//
* 订单类型 1 外卖 2.预订单 3.商城 4 自提
//
*/
//
private Integer oldOrderType;
//
/**
//
* 订单状态
//
*/
//
private Integer status;
//
/**
//
* 支付类型
//
*/
//
private Integer oldPayType;
//
/**
//
* 订单来源
//
*/
//
private String source;
//
/**
//
* 订单来源名称
//
*/
//
private String sourceName;
//
/**
//
* 期望送达时间
//
*/
//
private Long gmtExpect;
//
//
/**
//
* 订单备注
//
*/
//
private String remark;
//
//
/**
//
* 实付金额
//
*/
//
private Long amount;
//
//
/**
//
* 吧台桌号
//
*/
//
private String barCounter;
//
//
/**
//
* form_id 用于金额是0的情况 现在只支持商品券,前端参数
//
*/
//
private String formId;
//
//
private Integer orderClient;
//
//
/**
//
* 商品列表
//
*/
//
List<CreateOrderProductDto> products;
//
/**
//
* 其他结算列表
//
*/
//
List<CreateOrderAccountDto> accounts;
//
//
//
private DeliveryTypeInfo addInfo;
//
//
public Boolean needPay() {
//
return amount > 0;
//
}
//
//
@Data
//
@NoArgsConstructor
//
public static class DeliveryTypeInfo{
//
/**
//
* 订单类型,自配送self,第三方配送third
//
*/
//
private String deliveryType;
//
//
public DeliveryTypeInfo(String deliveryType) {
//
this.deliveryType = deliveryType;
//
}
//
}
//
}
order-application-service/src/main/java/cn/freemud/entities/dto/order/CreateOrderProductDemoDto.java
View file @
08abda6f
package
cn
.
freemud
.
entities
.
dto
.
order
;
import
cn.freemud.entities.dto.activity.ShareDiscountActivityDto
;
import
lombok.Data
;
@Data
public
class
CreateOrderProductDemoDto
{
/**
* 商品
*/
private
String
productId
;
/**
* 商品名称
*/
private
String
productName
;
/**
* 商品数量
*/
private
Integer
number
;
/**
* 商品规格
*/
private
String
specification
;
/**
* 商品规格名称
*/
private
String
specificationName
;
/**
* 商品价格 单价分
*/
private
Long
price
;
/**
* 实际销售价
*/
private
Long
salePrice
;
/**
* 商品图片
*/
private
String
picture
;
/**
* 排序
*/
private
Integer
sequence
;
/**
* 商户序号
*/
private
Integer
opid
;
/**
* 属性 温|半糖|甜
*/
private
String
addInfo
;
/**
* 是否包含商品券
*/
private
Boolean
hasProductCoupon
=
false
;
/**
* 均摊详情
*/
ShareDiscountActivityDto
.
ApportionGood
apportionGood
;
/**
* 商品所属菜单分类id
*/
private
String
categoryId
;
/**
* 商品所属菜单分类名称
*/
private
String
categoryName
;
}
//
package cn.freemud.entities.dto.order;
//
//
import cn.freemud.entities.dto.activity.ShareDiscountActivityDto;
//
import lombok.Data;
//
//
@Data
//
public class CreateOrderProductDemoDto {
//
//
/**
//
* 商品
//
*/
//
private String productId;
//
/**
//
* 商品名称
//
*/
//
private String productName;
//
/**
//
* 商品数量
//
*/
//
private Integer number;
//
/**
//
* 商品规格
//
*/
//
private String specification;
//
/**
//
* 商品规格名称
//
*/
//
private String specificationName;
//
//
/**
//
* 商品价格 单价分
//
*/
//
private Long price;
//
/**
//
* 实际销售价
//
*/
//
private Long salePrice;
//
/**
//
* 商品图片
//
*/
//
private String picture;
//
/**
//
* 排序
//
*/
//
private Integer sequence;
//
/**
//
* 商户序号
//
*/
//
private Integer opid;
//
/**
//
* 属性 温|半糖|甜
//
*/
//
private String addInfo;
//
/**
//
* 是否包含商品券
//
*/
//
private Boolean hasProductCoupon = false;
//
/**
//
* 均摊详情
//
*/
//
ShareDiscountActivityDto.ApportionGood apportionGood;
//
//
/**
//
* 商品所属菜单分类id
//
*/
//
private String categoryId;
//
/**
//
* 商品所属菜单分类名称
//
*/
//
private String categoryName;
//
//
//
}
order-application-service/src/main/java/cn/freemud/entities/dto/order/OrderAccountDto.java
View file @
08abda6f
package
cn
.
freemud
.
entities
.
dto
.
order
;
import
lombok.Data
;
/**
* 订单结算明细 包含所有其他优惠信息
*/
@Data
public
class
OrderAccountDto
{
/**
* 订单id
*/
private
String
orderId
;
/**
* 活动id
*/
private
String
accountId
;
/**
* 活动名称
*/
private
String
name
;
/**
* 活动类型 ActivityTypeEnum
*/
private
Integer
type
;
/**
* 结算价格 包装费,配送费为正数 ,优惠券,限时特价,满减为负数
*/
private
Long
price
;
/**
* 排序
*/
private
Integer
sequence
;
/**
* 自定义字段
*/
private
String
addInfo
;
}
//
package cn.freemud.entities.dto.order;
//
//
import lombok.Data;
//
/
//
**
//
* 订单结算明细 包含所有其他优惠信息
//
*/
//
@Data
//
public class OrderAccountDto {
//
/**
//
* 订单id
//
*/
//
private String orderId;
//
/**
//
* 活动id
//
*/
//
private String accountId;
//
/**
//
* 活动名称
//
*/
//
private String name;
//
/**
//
* 活动类型 ActivityTypeEnum
//
*/
//
private Integer type;
//
/**
//
* 结算价格 包装费,配送费为正数 ,优惠券,限时特价,满减为负数
//
*/
//
private Long price;
//
/**
//
* 排序
//
*/
//
private Integer sequence;
//
/**
//
* 自定义字段
//
*/
//
private String addInfo;
//
}
order-application-service/src/main/java/cn/freemud/entities/dto/order/RefundQueryRequestDto.java
View file @
08abda6f
package
cn
.
freemud
.
entities
.
dto
.
order
;
import
lombok.Data
;
/**
* All rights Reserved, Designed By www.freemud.cn
*
* @version V1.0
* @Title: FacePayRequestDto
* @Package cn.freemud.entities.dto.order
* @Description:
* @author: ping1.wu
* @date: 2019/12/25 19:28
* @Copyright: 2019 www.freemud.cn Inc. All rights reserved.
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
*/
@Data
public
class
RefundQueryRequestDto
{
private
String
partnerId
;
private
String
storeId
;
private
String
frontTransId
;
private
String
stationId
;
private
String
operatorId
;
private
String
transId
;
private
String
clientCode
;
}
//
package cn.freemud.entities.dto.order;
//
//
import lombok.Data;
//
/
//
**
//
* All rights Reserved, Designed By www.freemud.cn
//
*
//
* @version V1.0
//
* @Title: FacePayRequestDto
//
* @Package cn.freemud.entities.dto.order
//
* @Description:
//
* @author: ping1.wu
//
* @date: 2019/12/25 19:28
//
* @Copyright: 2019 www.freemud.cn Inc. All rights reserved.
//
* 注意:本内容仅限于上海非码科技内部传阅,禁止外泄以及用于其他的商业目
//
*/
//
@Data
//
public class RefundQueryRequestDto {
//
//
private String partnerId;
//
private String storeId;
//
private String frontTransId;
//
private String stationId;
//
private String operatorId;
//
private String transId;
//
private String clientCode;
//
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment