mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 06:29:20 +08:00
fix(ecom): 移除刷单记录的platform_order_no字段及前端相关代码
- ec_design.sql 移除 platform_order_no 列和索引 - BrushOrderPO/DTO/VO 移除 platformOrderNo 字段(保留原有注释) - BrushOrderServiceImpl 移除相关 setter 和查询过滤逻辑 - 前端类型定义和组件同步清理
This commit is contained in:
@@ -15,7 +15,6 @@ CREATE TABLE `ec_brush_order` (
|
||||
`product_spec_id` bigint UNSIGNED NULL DEFAULT NULL COMMENT '商品规格ID(可选)',
|
||||
`brush_amount` decimal(10, 2) NOT NULL DEFAULT 0.00 COMMENT '刷单金额',
|
||||
`brush_time` timestamp NOT NULL COMMENT '刷单时间',
|
||||
`platform_order_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '平台订单号(可选)',
|
||||
`quantity` int NULL DEFAULT 1 COMMENT '刷单数量',
|
||||
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
|
||||
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
@@ -28,7 +27,6 @@ CREATE TABLE `ec_brush_order` (
|
||||
INDEX `idx_product_id`(`product_id` ASC) USING BTREE,
|
||||
INDEX `idx_product_spec_id`(`product_spec_id` ASC) USING BTREE,
|
||||
INDEX `idx_brush_time`(`brush_time` ASC) USING BTREE,
|
||||
INDEX `idx_platform_order_no`(`platform_order_no` ASC) USING BTREE,
|
||||
INDEX `idx_company_shop_time`(`company_id` ASC, `shop_id` ASC, `brush_time` ASC) USING BTREE,
|
||||
INDEX `fk_ec_brush_order_creator`(`create_by` ASC) USING BTREE,
|
||||
INDEX `fk_ec_brush_order_updater`(`update_by` ASC) USING BTREE,
|
||||
|
||||
-5
@@ -25,11 +25,6 @@ public class BrushOrderFilterDTO {
|
||||
@Schema(description = "商品ID", example = "1")
|
||||
private Long productId;
|
||||
|
||||
/**
|
||||
* 平台订单号(模糊查询)
|
||||
*/
|
||||
@Schema(description = "平台订单号(模糊查询)", example = "TB2024")
|
||||
private String platformOrderNo;
|
||||
|
||||
/**
|
||||
* 刷单金额范围-最小值
|
||||
|
||||
-5
@@ -48,11 +48,6 @@ public class CreateBrushOrderDTO {
|
||||
@NotNull(message = "刷单时间不能为空")
|
||||
private LocalDateTime brushTime;
|
||||
|
||||
/**
|
||||
* 平台订单号(可选)
|
||||
*/
|
||||
@Schema(description = "平台订单号", example = "TB202401010001")
|
||||
private String platformOrderNo;
|
||||
|
||||
/**
|
||||
* 刷单数量
|
||||
|
||||
-5
@@ -48,11 +48,6 @@ public class UpdateBrushOrderDTO {
|
||||
@NotNull(message = "刷单时间不能为空")
|
||||
private LocalDateTime brushTime;
|
||||
|
||||
/**
|
||||
* 平台订单号(可选)
|
||||
*/
|
||||
@Schema(description = "平台订单号", example = "TB202401010001")
|
||||
private String platformOrderNo;
|
||||
|
||||
/**
|
||||
* 刷单数量
|
||||
|
||||
-5
@@ -57,11 +57,6 @@ public class BrushOrderPO {
|
||||
@TableField("brush_time")
|
||||
private LocalDateTime brushTime;
|
||||
|
||||
/**
|
||||
* 平台订单号(可选)
|
||||
*/
|
||||
@TableField("platform_order_no")
|
||||
private String platformOrderNo;
|
||||
|
||||
/**
|
||||
* 刷单数量
|
||||
|
||||
-5
@@ -73,11 +73,6 @@ public class BrushOrderVO {
|
||||
@Schema(description = "刷单时间", example = "2024-01-01T10:00:00")
|
||||
private LocalDateTime brushTime;
|
||||
|
||||
/**
|
||||
* 平台订单号
|
||||
*/
|
||||
@Schema(description = "平台订单号", example = "TB202401010001")
|
||||
private String platformOrderNo;
|
||||
|
||||
/**
|
||||
* 刷单数量
|
||||
|
||||
-5
@@ -90,7 +90,6 @@ public class BrushOrderServiceImpl extends ServiceImpl<BrushOrderMapper, BrushOr
|
||||
brushOrder.setProductSpecId(createBrushOrderDTO.getProductSpecId());
|
||||
brushOrder.setBrushAmount(createBrushOrderDTO.getBrushAmount());
|
||||
brushOrder.setBrushTime(createBrushOrderDTO.getBrushTime());
|
||||
brushOrder.setPlatformOrderNo(createBrushOrderDTO.getPlatformOrderNo());
|
||||
brushOrder.setQuantity(createBrushOrderDTO.getQuantity() != null ? createBrushOrderDTO.getQuantity() : 1);
|
||||
brushOrder.setRemark(createBrushOrderDTO.getRemark());
|
||||
brushOrder.setCreateBy(currentUserContext.getCurrentUserId());
|
||||
@@ -150,7 +149,6 @@ public class BrushOrderServiceImpl extends ServiceImpl<BrushOrderMapper, BrushOr
|
||||
existingBrushOrder.setProductSpecId(updateBrushOrderDTO.getProductSpecId());
|
||||
existingBrushOrder.setBrushAmount(updateBrushOrderDTO.getBrushAmount());
|
||||
existingBrushOrder.setBrushTime(updateBrushOrderDTO.getBrushTime());
|
||||
existingBrushOrder.setPlatformOrderNo(updateBrushOrderDTO.getPlatformOrderNo());
|
||||
if (updateBrushOrderDTO.getQuantity() != null) {
|
||||
existingBrushOrder.setQuantity(updateBrushOrderDTO.getQuantity());
|
||||
}
|
||||
@@ -212,9 +210,6 @@ public class BrushOrderServiceImpl extends ServiceImpl<BrushOrderMapper, BrushOr
|
||||
if (filter.getProductId() != null) {
|
||||
wrapper.eq(BrushOrderPO::getProductId, filter.getProductId());
|
||||
}
|
||||
if (filter.getPlatformOrderNo() != null && !filter.getPlatformOrderNo().trim().isEmpty()) {
|
||||
wrapper.like(BrushOrderPO::getPlatformOrderNo, filter.getPlatformOrderNo());
|
||||
}
|
||||
if (filter.getMinBrushAmount() != null) {
|
||||
wrapper.ge(BrushOrderPO::getBrushAmount, filter.getMinBrushAmount());
|
||||
}
|
||||
|
||||
@@ -15,8 +15,6 @@ export namespace BrushOrderDTO {
|
||||
brushAmount: number;
|
||||
/** 刷单时间 */
|
||||
brushTime: string;
|
||||
/** 平台订单号(可选) */
|
||||
platformOrderNo?: string;
|
||||
/** 刷单数量 */
|
||||
quantity?: number;
|
||||
/** 备注 */
|
||||
@@ -35,8 +33,6 @@ export namespace BrushOrderDTO {
|
||||
brushAmount: number;
|
||||
/** 刷单时间 */
|
||||
brushTime: string;
|
||||
/** 平台订单号(可选) */
|
||||
platformOrderNo?: string;
|
||||
/** 刷单数量 */
|
||||
quantity?: number;
|
||||
/** 备注 */
|
||||
|
||||
@@ -25,8 +25,6 @@ export namespace BrushOrderVO {
|
||||
brushAmount: number;
|
||||
/** 刷单时间 */
|
||||
brushTime: string;
|
||||
/** 平台订单号 */
|
||||
platformOrderNo?: string;
|
||||
/** 刷单数量 */
|
||||
quantity?: number;
|
||||
/** 备注 */
|
||||
|
||||
+1
-9
@@ -80,7 +80,6 @@ const formData = ref<BrushOrderDTO.Create>({
|
||||
productSpecId: undefined,
|
||||
brushAmount: undefined as any,
|
||||
brushTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
||||
platformOrderNo: undefined,
|
||||
quantity: 1,
|
||||
remark: undefined,
|
||||
});
|
||||
@@ -146,7 +145,6 @@ watch(
|
||||
brushTime: props.brushOrderData.brushTime
|
||||
? dayjs(props.brushOrderData.brushTime).format('YYYY-MM-DD HH:mm:ss')
|
||||
: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
||||
platformOrderNo: props.brushOrderData.platformOrderNo,
|
||||
quantity: props.brushOrderData.quantity || 1,
|
||||
remark: props.brushOrderData.remark,
|
||||
};
|
||||
@@ -285,7 +283,7 @@ const resetFormData = () => {
|
||||
productSpecId: undefined,
|
||||
brushAmount: undefined as any,
|
||||
brushTime: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
||||
platformOrderNo: undefined,
|
||||
|
||||
quantity: 1,
|
||||
remark: undefined,
|
||||
};
|
||||
@@ -439,12 +437,6 @@ onMounted(() => {
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item label="平台订单号" name="platformOrderNo">
|
||||
<Input
|
||||
v-model:value="formData.platformOrderNo"
|
||||
placeholder="请输入平台订单号(可选)"
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item label="刷单数量" name="quantity">
|
||||
<InputNumber
|
||||
|
||||
@@ -32,7 +32,6 @@ const currentBrushOrderData = ref<BrushOrderVO.Info | null>(null);
|
||||
|
||||
// 搜索表单
|
||||
const searchForm = ref({
|
||||
platformOrderNo: '',
|
||||
shopId: undefined as number | undefined,
|
||||
productId: undefined as number | undefined,
|
||||
minBrushAmount: undefined as number | undefined,
|
||||
@@ -52,12 +51,6 @@ const gridOptions: VxeGridProps<any> = {
|
||||
minWidth: 'auto',
|
||||
title: '序号',
|
||||
},
|
||||
{
|
||||
field: 'platformOrderNo',
|
||||
title: '平台订单号',
|
||||
minWidth: 'auto',
|
||||
showOverflow: 'tooltip' as const,
|
||||
},
|
||||
{
|
||||
field: 'shopName',
|
||||
title: '店铺名称',
|
||||
@@ -141,7 +134,6 @@ const gridOptions: VxeGridProps<any> = {
|
||||
page: page.currentPage,
|
||||
pageSize: page.pageSize,
|
||||
filters: {
|
||||
platformOrderNo: searchForm.value.platformOrderNo || undefined,
|
||||
shopId: searchForm.value.shopId,
|
||||
productId: searchForm.value.productId,
|
||||
minBrushAmount: searchForm.value.minBrushAmount,
|
||||
@@ -174,15 +166,6 @@ const gridOptions: VxeGridProps<any> = {
|
||||
const gridReloadRef = ref<(() => void) | null>(null);
|
||||
const formOptions = computed(() => ({
|
||||
schema: [
|
||||
{
|
||||
component: 'Input',
|
||||
componentProps: {
|
||||
placeholder: '请输入平台订单号(回车搜索)',
|
||||
onPressEnter: () => gridReloadRef.value?.(),
|
||||
},
|
||||
fieldName: 'platformOrderNo',
|
||||
label: '平台订单号',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
@@ -194,6 +177,18 @@ const formOptions = computed(() => ({
|
||||
fieldName: 'shopId',
|
||||
label: '店铺',
|
||||
},
|
||||
{
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
placeholder: '商品ID(可选)',
|
||||
min: 1,
|
||||
precision: 0,
|
||||
style: { width: '100%' },
|
||||
onPressEnter: () => gridReloadRef.value?.(),
|
||||
},
|
||||
fieldName: 'productId',
|
||||
label: '商品',
|
||||
},
|
||||
{
|
||||
component: 'InputNumber',
|
||||
componentProps: {
|
||||
|
||||
Reference in New Issue
Block a user