Commit 08abda6f by ping.wu

删除无用代码

parent 6a7c4904
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;
//
//
//}
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;
// }
// }
//}
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;
// }
// }
//}
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;
//
//
//}
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;
//}
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;
//}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment