Merge branch 'master' of https://gitea.zianxin.com/zax/biz-api-cloud-zax
This commit is contained in:
commit
f2ccd3050a
30 files changed
+2126
No files matched your search
+22
@@ -0,0 +1,22 @@
|
||||
package com.bsd.pjcloud.hard.api.dto.order.remote;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Schema(description = "AI喂数批量建订单结果")
|
||||
public class AiFeedOrderBatchResultDTO implements Serializable {
|
||||
|
||||
private List<Item> items = new ArrayList<>();
|
||||
|
||||
@Data
|
||||
public static class Item implements Serializable {
|
||||
private Integer seq;
|
||||
private Long orderId;
|
||||
private String error;
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
package com.bsd.pjcloud.hard.api.dto.order.remote;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Schema(description = "AI喂数创建订单")
|
||||
public class AiFeedOrderCreateDTO implements Serializable {
|
||||
|
||||
@Schema(description = "批次号,用于生成 orderNo")
|
||||
private String batchNo;
|
||||
|
||||
@Schema(description = "序号")
|
||||
private Integer seq;
|
||||
|
||||
/** RESERVE 预定 / OFFLINE 线下安卓(BELOW) */
|
||||
@Schema(description = "订单类型:RESERVE 或 OFFLINE(线下安卓机)")
|
||||
private String orderType;
|
||||
|
||||
private Long userId;
|
||||
|
||||
private Long userDeptId;
|
||||
|
||||
private Long merchantId;
|
||||
|
||||
private Long merchantDeptId;
|
||||
|
||||
private Long walletId;
|
||||
|
||||
/** 餐段 1早餐 2午餐 3晚餐;也可传中文 */
|
||||
private String meal;
|
||||
|
||||
/** yyyy-MM-dd,预定用餐日 */
|
||||
private String bizDate;
|
||||
|
||||
/** 分 */
|
||||
private Integer totalFen;
|
||||
|
||||
private String addressName;
|
||||
|
||||
private String productDesc;
|
||||
|
||||
private List<Item> items;
|
||||
|
||||
@Data
|
||||
public static class Item implements Serializable {
|
||||
private Long spuId;
|
||||
private Long menuId;
|
||||
private String name;
|
||||
private Integer qty;
|
||||
/** 分 */
|
||||
private Integer priceFen;
|
||||
private String picUrl;
|
||||
}
|
||||
}
|
||||
+16
@@ -67,4 +67,20 @@ public interface RemoteHardOrderService {
|
||||
R<List<com.bsd.pjcloud.hard.api.vo.order.DailyMenuNetSoldVO>> listDailyMenuNetSold(
|
||||
@RequestBody com.bsd.pjcloud.hard.api.dto.order.remote.DailyMenuNetSoldQueryDTO dto);
|
||||
|
||||
/** AI 喂数:精简写入演示订单,返回 orderId */
|
||||
@NoToken
|
||||
@PostMapping("/hard-order/inner/ai-feed-create")
|
||||
R<Long> aiFeedCreateOrder(@RequestBody com.bsd.pjcloud.hard.api.dto.order.remote.AiFeedOrderCreateDTO dto);
|
||||
|
||||
/** AI 喂数:批量写入演示订单 */
|
||||
@NoToken
|
||||
@PostMapping("/hard-order/inner/ai-feed-create-batch")
|
||||
R<com.bsd.pjcloud.hard.api.dto.order.remote.AiFeedOrderBatchResultDTO> aiFeedCreateOrdersBatch(
|
||||
@RequestBody java.util.List<com.bsd.pjcloud.hard.api.dto.order.remote.AiFeedOrderCreateDTO> dtos);
|
||||
|
||||
/** AI 喂数清理:软删 AIFEED- 订单 */
|
||||
@NoToken
|
||||
@PostMapping("/hard-order/inner/ai-feed-delete")
|
||||
R<Integer> aiFeedDeleteOrders(@RequestBody List<Long> orderIds);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user