feat:
1. add order
This commit is contained in:
10
doc/sql/menu/order.menu.sql
Normal file
10
doc/sql/menu/order.menu.sql
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)
|
||||||
|
VALUES ('1975642522214125570', '1123598815738675201', 'order', '自助终端订单表', 'menu', '/kiosk/order', NULL, 1, 1, 0, 1, NULL, 0);
|
||||||
|
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)
|
||||||
|
VALUES ('1975642522214125571', '1975642522214125570', 'order_add', '新增', 'add', '/kiosk/order/add', 'plus', 1, 2, 1, 1, NULL, 0);
|
||||||
|
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)
|
||||||
|
VALUES ('1975642522214125572', '1975642522214125570', 'order_edit', '修改', 'edit', '/kiosk/order/edit', 'form', 2, 2, 2, 1, NULL, 0);
|
||||||
|
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)
|
||||||
|
VALUES ('1975642522214125573', '1975642522214125570', 'order_delete', '删除', 'delete', '/api/kiosk/order/remove', 'delete', 3, 2, 3, 1, NULL, 0);
|
||||||
|
INSERT INTO blade_menu(id, parent_id, code, name, alias, path, source, sort, category, action, is_open, remark, is_deleted)
|
||||||
|
VALUES ('1975642522214125574', '1975642522214125570', 'order_view', '查看', 'view', '/kiosk/order/view', 'file-text', 4, 2, 2, 1, NULL, 0);
|
||||||
@@ -0,0 +1,134 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.controller;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
import org.springblade.core.mp.support.Condition;
|
||||||
|
import org.springblade.core.mp.support.Query;
|
||||||
|
import org.springblade.core.tool.api.R;
|
||||||
|
import org.springblade.core.tool.utils.Func;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderEntity;
|
||||||
|
import org.springblade.modules.kiosk.pojo.vo.OrderVO;
|
||||||
|
import org.springblade.modules.kiosk.wrapper.OrderWrapper;
|
||||||
|
import org.springblade.modules.kiosk.service.IOrderService;
|
||||||
|
import org.springblade.core.boot.ctrl.BladeController;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 控制器
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@AllArgsConstructor
|
||||||
|
@RequestMapping("blade-order/order")
|
||||||
|
@Tag(name = "自助终端订单表", description = "自助终端订单表接口")
|
||||||
|
public class OrderController extends BladeController {
|
||||||
|
|
||||||
|
private final IOrderService orderService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 详情
|
||||||
|
*/
|
||||||
|
@GetMapping("/detail")
|
||||||
|
@ApiOperationSupport(order = 1)
|
||||||
|
@Operation(summary = "详情", description = "传入order")
|
||||||
|
public R<OrderVO> detail(OrderEntity order) {
|
||||||
|
OrderEntity detail = orderService.getOne(Condition.getQueryWrapper(order));
|
||||||
|
return R.data(OrderWrapper.build().entityVO(detail));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 分页
|
||||||
|
*/
|
||||||
|
@GetMapping("/list")
|
||||||
|
@ApiOperationSupport(order = 2)
|
||||||
|
@Operation(summary = "分页", description = "传入order")
|
||||||
|
public R<IPage<OrderVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> order, Query query) {
|
||||||
|
IPage<OrderEntity> pages = orderService.page(Condition.getPage(query), Condition.getQueryWrapper(order, OrderEntity.class));
|
||||||
|
return R.data(OrderWrapper.build().pageVO(pages));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 自定义分页
|
||||||
|
*/
|
||||||
|
@GetMapping("/page")
|
||||||
|
@ApiOperationSupport(order = 3)
|
||||||
|
@Operation(summary = "分页", description = "传入order")
|
||||||
|
public R<IPage<OrderVO>> page(OrderVO order, Query query) {
|
||||||
|
IPage<OrderVO> pages = orderService.selectOrderPage(Condition.getPage(query), order);
|
||||||
|
return R.data(pages);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 新增
|
||||||
|
*/
|
||||||
|
@PostMapping("/save")
|
||||||
|
@ApiOperationSupport(order = 4)
|
||||||
|
@Operation(summary = "新增", description = "传入order")
|
||||||
|
public R save(@Valid @RequestBody OrderEntity order) {
|
||||||
|
return R.status(orderService.save(order));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 修改
|
||||||
|
*/
|
||||||
|
@PostMapping("/update")
|
||||||
|
@ApiOperationSupport(order = 5)
|
||||||
|
@Operation(summary = "修改", description = "传入order")
|
||||||
|
public R update(@Valid @RequestBody OrderEntity order) {
|
||||||
|
return R.status(orderService.updateById(order));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 新增或修改
|
||||||
|
*/
|
||||||
|
@PostMapping("/submit")
|
||||||
|
@ApiOperationSupport(order = 6)
|
||||||
|
@Operation(summary = "新增或修改", description = "传入order")
|
||||||
|
public R submit(@Valid @RequestBody OrderEntity order) {
|
||||||
|
return R.status(orderService.saveOrUpdate(order));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 删除
|
||||||
|
*/
|
||||||
|
@PostMapping("/remove")
|
||||||
|
@ApiOperationSupport(order = 7)
|
||||||
|
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||||
|
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||||
|
return R.status(orderService.deleteLogic(Func.toLongList(ids)));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,135 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.controller;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
import org.springblade.core.mp.support.Condition;
|
||||||
|
import org.springblade.core.mp.support.Query;
|
||||||
|
import org.springblade.core.tool.api.R;
|
||||||
|
import org.springblade.core.tool.utils.Func;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderDetailEntity;
|
||||||
|
import org.springblade.modules.kiosk.pojo.vo.OrderDetailVO;
|
||||||
|
import org.springblade.modules.kiosk.wrapper.OrderDetailWrapper;
|
||||||
|
import org.springblade.modules.kiosk.service.IOrderDetailService;
|
||||||
|
import org.springblade.core.boot.ctrl.BladeController;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 控制器
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@AllArgsConstructor
|
||||||
|
@RequestMapping("blade-order/orderDetail")
|
||||||
|
@Tag(name = "自助终端订单表", description = "自助终端订单表接口")
|
||||||
|
public class OrderDetailController extends BladeController {
|
||||||
|
|
||||||
|
private final IOrderDetailService orderDetailService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 详情
|
||||||
|
*/
|
||||||
|
@GetMapping("/detail")
|
||||||
|
@ApiOperationSupport(order = 1)
|
||||||
|
@Operation(summary = "详情", description = "传入orderDetail")
|
||||||
|
public R<OrderDetailVO> detail(OrderDetailEntity orderDetail) {
|
||||||
|
OrderDetailEntity detail = orderDetailService.getOne(Condition.getQueryWrapper(orderDetail));
|
||||||
|
return R.data(OrderDetailWrapper.build().entityVO(detail));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 分页
|
||||||
|
*/
|
||||||
|
@GetMapping("/list")
|
||||||
|
@ApiOperationSupport(order = 2)
|
||||||
|
@Operation(summary = "分页", description = "传入orderDetail")
|
||||||
|
public R<IPage<OrderDetailVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> orderDetail, Query query) {
|
||||||
|
IPage<OrderDetailEntity> pages = orderDetailService.page(Condition.getPage(query), Condition.getQueryWrapper(orderDetail, OrderDetailEntity.class));
|
||||||
|
return R.data(OrderDetailWrapper.build().pageVO(pages));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 自定义分页
|
||||||
|
*/
|
||||||
|
@GetMapping("/page")
|
||||||
|
@ApiOperationSupport(order = 3)
|
||||||
|
@Operation(summary = "分页", description = "传入orderDetail")
|
||||||
|
public R<IPage<OrderDetailVO>> page(OrderDetailVO orderDetail, Query query) {
|
||||||
|
IPage<OrderDetailVO> pages = orderDetailService.selectOrderDetailPage(Condition.getPage(query), orderDetail);
|
||||||
|
return R.data(pages);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 新增
|
||||||
|
*/
|
||||||
|
@PostMapping("/save")
|
||||||
|
@ApiOperationSupport(order = 4)
|
||||||
|
@Operation(summary = "新增", description = "传入orderDetail")
|
||||||
|
public R save(@Valid @RequestBody OrderDetailEntity orderDetail) {
|
||||||
|
return R.status(orderDetailService.save(orderDetail));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 修改
|
||||||
|
*/
|
||||||
|
@PostMapping("/update")
|
||||||
|
@ApiOperationSupport(order = 5)
|
||||||
|
@Operation(summary = "修改", description = "传入orderDetail")
|
||||||
|
public R update(@Valid @RequestBody OrderDetailEntity orderDetail) {
|
||||||
|
return R.status(orderDetailService.updateById(orderDetail));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 新增或修改
|
||||||
|
*/
|
||||||
|
@PostMapping("/submit")
|
||||||
|
@ApiOperationSupport(order = 6)
|
||||||
|
@Operation(summary = "新增或修改", description = "传入orderDetail")
|
||||||
|
public R submit(@Valid @RequestBody OrderDetailEntity orderDetail) {
|
||||||
|
return R.status(orderDetailService.saveOrUpdate(orderDetail));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 删除
|
||||||
|
*/
|
||||||
|
@PostMapping("/remove")
|
||||||
|
@ApiOperationSupport(order = 7)
|
||||||
|
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||||
|
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||||
|
return R.status(orderDetailService.deleteLogic(Func.toLongList(ids)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.mapper;
|
||||||
|
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderDetailEntity;
|
||||||
|
import org.springblade.modules.kiosk.pojo.vo.OrderDetailVO;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 Mapper 接口
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
public interface OrderDetailMapper extends BaseMapper<OrderDetailEntity> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自定义分页
|
||||||
|
*
|
||||||
|
* @param page 分页参数
|
||||||
|
* @param orderDetail 查询参数
|
||||||
|
* @return List<OrderDetailVO>
|
||||||
|
*/
|
||||||
|
List<OrderDetailVO> selectOrderDetailPage(IPage page, OrderDetailVO orderDetail);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="org.springblade.modules.kiosk.mapper.OrderDetailMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="orderDetailResultMap" type="org.springblade.modules.kiosk.pojo.entity.OrderDetailEntity">
|
||||||
|
<result column="id" property="id"/>
|
||||||
|
<result column="tenant_id" property="tenantId"/>
|
||||||
|
<result column="order_id" property="orderId"/>
|
||||||
|
<result column="category_id" property="categoryId"/>
|
||||||
|
<result column="category_type" property="categoryType"/>
|
||||||
|
<result column="material" property="material"/>
|
||||||
|
<result column="size" property="size"/>
|
||||||
|
<result column="shape" property="shape"/>
|
||||||
|
<result column="snapshot_link" property="snapshotLink"/>
|
||||||
|
<result column="total_amount" property="totalAmount"/>
|
||||||
|
<result column="create_user" property="createUser"/>
|
||||||
|
<result column="create_dept" property="createDept"/>
|
||||||
|
<result column="create_time" property="createTime"/>
|
||||||
|
<result column="update_user" property="updateUser"/>
|
||||||
|
<result column="update_time" property="updateTime"/>
|
||||||
|
<result column="status" property="status"/>
|
||||||
|
<result column="is_deleted" property="isDeleted"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectOrderDetailPage" resultMap="orderDetailResultMap">
|
||||||
|
select * from kiosk_order_detail where is_deleted = 0
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.mapper;
|
||||||
|
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderEntity;
|
||||||
|
import org.springblade.modules.kiosk.pojo.vo.OrderVO;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 Mapper 接口
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
public interface OrderMapper extends BaseMapper<OrderEntity> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自定义分页
|
||||||
|
*
|
||||||
|
* @param page 分页参数
|
||||||
|
* @param order 查询参数
|
||||||
|
* @return List<OrderVO>
|
||||||
|
*/
|
||||||
|
List<OrderVO> selectOrderPage(IPage page, OrderVO order);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="org.springblade.modules.kiosk.mapper.OrderMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="orderResultMap" type="org.springblade.modules.kiosk.pojo.entity.OrderEntity">
|
||||||
|
<result column="id" property="id"/>
|
||||||
|
<result column="tenant_id" property="tenantId"/>
|
||||||
|
<result column="serial_number" property="serialNumber"/>
|
||||||
|
<result column="user_phone" property="userPhone"/>
|
||||||
|
<result column="user_email" property="userEmail"/>
|
||||||
|
<result column="total_amount" property="totalAmount"/>
|
||||||
|
<result column="create_user" property="createUser"/>
|
||||||
|
<result column="create_dept" property="createDept"/>
|
||||||
|
<result column="create_time" property="createTime"/>
|
||||||
|
<result column="update_user" property="updateUser"/>
|
||||||
|
<result column="update_time" property="updateTime"/>
|
||||||
|
<result column="status" property="status"/>
|
||||||
|
<result column="is_deleted" property="isDeleted"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectOrderPage" resultMap="orderResultMap">
|
||||||
|
select * from kiosk_order where is_deleted = 0
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.pojo.dto;
|
||||||
|
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 数据传输对象实体类
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class OrderDTO extends OrderEntity {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.pojo.dto;
|
||||||
|
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderDetailEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 数据传输对象实体类
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class OrderDetailDTO extends OrderDetailEntity {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.pojo.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.springblade.core.tenant.mp.TenantEntity;
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 实体类
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("kiosk_order_detail")
|
||||||
|
@Schema(description = "OrderDetail对象")
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class OrderDetailEntity extends TenantEntity {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* oid
|
||||||
|
*/
|
||||||
|
@Schema(description = "oid")
|
||||||
|
private Long orderId;
|
||||||
|
/**
|
||||||
|
* cid
|
||||||
|
*/
|
||||||
|
@Schema(description = "cid")
|
||||||
|
private Long categoryId;
|
||||||
|
/**
|
||||||
|
* 产品类型 1:单张 2:组合
|
||||||
|
*/
|
||||||
|
@Schema(description = "产品类型 1:单张 2:组合")
|
||||||
|
private Integer categoryType;
|
||||||
|
/**
|
||||||
|
* 材质
|
||||||
|
*/
|
||||||
|
@Schema(description = "材质")
|
||||||
|
private String material;
|
||||||
|
/**
|
||||||
|
* 尺寸
|
||||||
|
*/
|
||||||
|
@Schema(description = "尺寸")
|
||||||
|
private String size;
|
||||||
|
/**
|
||||||
|
* 形状
|
||||||
|
*/
|
||||||
|
@Schema(description = "形状")
|
||||||
|
private String shape;
|
||||||
|
/**
|
||||||
|
* 快照地址
|
||||||
|
*/
|
||||||
|
@Schema(description = "快照地址")
|
||||||
|
private String snapshotLink;
|
||||||
|
/**
|
||||||
|
* 总金额
|
||||||
|
*/
|
||||||
|
@Schema(description = "总金额")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.pojo.entity;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.springblade.core.tenant.mp.TenantEntity;
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 实体类
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("kiosk_order")
|
||||||
|
@Schema(description = "Order对象")
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class OrderEntity extends TenantEntity {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单编号
|
||||||
|
*/
|
||||||
|
@Schema(description = "订单编号")
|
||||||
|
private String serialNumber;
|
||||||
|
/**
|
||||||
|
* 用户电话
|
||||||
|
*/
|
||||||
|
@Schema(description = "用户电话")
|
||||||
|
private String userPhone;
|
||||||
|
/**
|
||||||
|
* 用户邮箱
|
||||||
|
*/
|
||||||
|
@Schema(description = "用户邮箱")
|
||||||
|
private String userEmail;
|
||||||
|
/**
|
||||||
|
* 总金额
|
||||||
|
*/
|
||||||
|
@Schema(description = "总金额")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.pojo.vo;
|
||||||
|
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderDetailEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 视图实体类
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class OrderDetailVO extends OrderDetailEntity {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.pojo.vo;
|
||||||
|
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 视图实体类
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class OrderVO extends OrderEntity {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.service;
|
||||||
|
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderDetailEntity;
|
||||||
|
import org.springblade.modules.kiosk.pojo.vo.OrderDetailVO;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import org.springblade.core.mp.base.BaseService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 服务类
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
public interface IOrderDetailService extends BaseService<OrderDetailEntity> {
|
||||||
|
/**
|
||||||
|
* 自定义分页
|
||||||
|
*
|
||||||
|
* @param page 分页参数
|
||||||
|
* @param orderDetail 查询参数
|
||||||
|
* @return IPage<OrderDetailVO>
|
||||||
|
*/
|
||||||
|
IPage<OrderDetailVO> selectOrderDetailPage(IPage<OrderDetailVO> page, OrderDetailVO orderDetail);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.service;
|
||||||
|
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderEntity;
|
||||||
|
import org.springblade.modules.kiosk.pojo.vo.OrderVO;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import org.springblade.core.mp.base.BaseService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 服务类
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
public interface IOrderService extends BaseService<OrderEntity> {
|
||||||
|
/**
|
||||||
|
* 自定义分页
|
||||||
|
*
|
||||||
|
* @param page 分页参数
|
||||||
|
* @param order 查询参数
|
||||||
|
* @return IPage<OrderVO>
|
||||||
|
*/
|
||||||
|
IPage<OrderVO> selectOrderPage(IPage<OrderVO> page, OrderVO order);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.service.impl;
|
||||||
|
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderDetailEntity;
|
||||||
|
import org.springblade.modules.kiosk.pojo.vo.OrderDetailVO;
|
||||||
|
import org.springblade.modules.kiosk.mapper.OrderDetailMapper;
|
||||||
|
import org.springblade.modules.kiosk.service.IOrderDetailService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 服务实现类
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class OrderDetailServiceImpl extends BaseServiceImpl<OrderDetailMapper, OrderDetailEntity> implements IOrderDetailService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IPage<OrderDetailVO> selectOrderDetailPage(IPage<OrderDetailVO> page, OrderDetailVO orderDetail) {
|
||||||
|
return page.setRecords(baseMapper.selectOrderDetailPage(page, orderDetail));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.service.impl;
|
||||||
|
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderEntity;
|
||||||
|
import org.springblade.modules.kiosk.pojo.vo.OrderVO;
|
||||||
|
import org.springblade.modules.kiosk.mapper.OrderMapper;
|
||||||
|
import org.springblade.modules.kiosk.service.IOrderService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 服务实现类
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class OrderServiceImpl extends BaseServiceImpl<OrderMapper, OrderEntity> implements IOrderService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IPage<OrderVO> selectOrderPage(IPage<OrderVO> page, OrderVO order) {
|
||||||
|
return page.setRecords(baseMapper.selectOrderPage(page, order));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -27,14 +27,11 @@ package org.springblade.modules.kiosk.service.impl;
|
|||||||
|
|
||||||
import org.springblade.modules.kiosk.pojo.entity.StickersAttachmentREntity;
|
import org.springblade.modules.kiosk.pojo.entity.StickersAttachmentREntity;
|
||||||
import org.springblade.modules.kiosk.pojo.vo.StickersAttachmentRVO;
|
import org.springblade.modules.kiosk.pojo.vo.StickersAttachmentRVO;
|
||||||
import org.springblade.modules.kiosk.excel.StickersAttachmentRExcel;
|
|
||||||
import org.springblade.modules.kiosk.mapper.StickersAttachmentRMapper;
|
import org.springblade.modules.kiosk.mapper.StickersAttachmentRMapper;
|
||||||
import org.springblade.modules.kiosk.service.IStickersAttachmentRService;
|
import org.springblade.modules.kiosk.service.IStickersAttachmentRService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 自助终端贴纸附件关联表 服务实现类
|
* 自助终端贴纸附件关联表 服务实现类
|
||||||
@@ -50,14 +47,4 @@ public class StickersAttachmentRServiceImpl extends ServiceImpl<StickersAttachme
|
|||||||
return page.setRecords(baseMapper.selectStickersAttachmentRPage(page, stickersAttachmentR));
|
return page.setRecords(baseMapper.selectStickersAttachmentRPage(page, stickersAttachmentR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<StickersAttachmentRExcel> exportStickersAttachmentR(Wrapper<StickersAttachmentREntity> queryWrapper) {
|
|
||||||
List<StickersAttachmentRExcel> stickersAttachmentRList = baseMapper.exportStickersAttachmentR(queryWrapper);
|
|
||||||
//stickersAttachmentRList.forEach(stickersAttachmentR -> {
|
|
||||||
// stickersAttachmentR.setTypeName(DictCache.getValue(DictEnum.YES_NO, StickersAttachmentR.getType()));
|
|
||||||
//});
|
|
||||||
return stickersAttachmentRList;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,14 +27,11 @@ package org.springblade.modules.kiosk.service.impl;
|
|||||||
|
|
||||||
import org.springblade.modules.kiosk.pojo.entity.TextAttachmentREntity;
|
import org.springblade.modules.kiosk.pojo.entity.TextAttachmentREntity;
|
||||||
import org.springblade.modules.kiosk.pojo.vo.TextAttachmentRVO;
|
import org.springblade.modules.kiosk.pojo.vo.TextAttachmentRVO;
|
||||||
import org.springblade.modules.kiosk.excel.TextAttachmentRExcel;
|
|
||||||
import org.springblade.modules.kiosk.mapper.TextAttachmentRMapper;
|
import org.springblade.modules.kiosk.mapper.TextAttachmentRMapper;
|
||||||
import org.springblade.modules.kiosk.service.ITextAttachmentRService;
|
import org.springblade.modules.kiosk.service.ITextAttachmentRService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 自助终端文字附件关联表 服务实现类
|
* 自助终端文字附件关联表 服务实现类
|
||||||
@@ -51,13 +48,4 @@ public class TextAttachmentRServiceImpl extends ServiceImpl<TextAttachmentRMappe
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<TextAttachmentRExcel> exportTextAttachmentR(Wrapper<TextAttachmentREntity> queryWrapper) {
|
|
||||||
List<TextAttachmentRExcel> textAttachmentRList = baseMapper.exportTextAttachmentR(queryWrapper);
|
|
||||||
//textAttachmentRList.forEach(textAttachmentR -> {
|
|
||||||
// textAttachmentR.setTypeName(DictCache.getValue(DictEnum.YES_NO, TextAttachmentR.getType()));
|
|
||||||
//});
|
|
||||||
return textAttachmentRList;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.wrapper;
|
||||||
|
|
||||||
|
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||||
|
import org.springblade.core.tool.utils.BeanUtil;
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderDetailEntity;
|
||||||
|
import org.springblade.modules.kiosk.pojo.vo.OrderDetailVO;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 包装类,返回视图层所需的字段
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
public class OrderDetailWrapper extends BaseEntityWrapper<OrderDetailEntity, OrderDetailVO> {
|
||||||
|
|
||||||
|
public static OrderDetailWrapper build() {
|
||||||
|
return new OrderDetailWrapper();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OrderDetailVO entityVO(OrderDetailEntity orderDetail) {
|
||||||
|
OrderDetailVO orderDetailVO = Objects.requireNonNull(BeanUtil.copyProperties(orderDetail, OrderDetailVO.class));
|
||||||
|
|
||||||
|
//User createUser = UserCache.getUser(orderDetail.getCreateUser());
|
||||||
|
//User updateUser = UserCache.getUser(orderDetail.getUpdateUser());
|
||||||
|
//orderDetailVO.setCreateUserName(createUser.getName());
|
||||||
|
//orderDetailVO.setUpdateUserName(updateUser.getName());
|
||||||
|
|
||||||
|
return orderDetailVO;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
/**
|
||||||
|
* BladeX Commercial License Agreement
|
||||||
|
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||||
|
* <p>
|
||||||
|
* Use of this software is governed by the Commercial License Agreement
|
||||||
|
* obtained after purchasing a license from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 1. This software is for development use only under a valid license
|
||||||
|
* from BladeX.
|
||||||
|
* <p>
|
||||||
|
* 2. Redistribution of this software's source code to any third party
|
||||||
|
* without a commercial license is strictly prohibited.
|
||||||
|
* <p>
|
||||||
|
* 3. Licensees may copyright their own code but cannot use segments
|
||||||
|
* from this software for such purposes. Copyright of this software
|
||||||
|
* remains with BladeX.
|
||||||
|
* <p>
|
||||||
|
* Using this software signifies agreement to this License, and the software
|
||||||
|
* must not be used for illegal purposes.
|
||||||
|
* <p>
|
||||||
|
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||||
|
* not liable for any claims arising from secondary or illegal development.
|
||||||
|
* <p>
|
||||||
|
* Author: Chill Zhuang (bladejava@qq.com)
|
||||||
|
*/
|
||||||
|
package org.springblade.modules.kiosk.wrapper;
|
||||||
|
|
||||||
|
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||||
|
import org.springblade.core.tool.utils.BeanUtil;
|
||||||
|
import org.springblade.modules.kiosk.pojo.entity.OrderEntity;
|
||||||
|
import org.springblade.modules.kiosk.pojo.vo.OrderVO;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自助终端订单表 包装类,返回视图层所需的字段
|
||||||
|
*
|
||||||
|
* @author Ray
|
||||||
|
* @since 2025-10-08
|
||||||
|
*/
|
||||||
|
public class OrderWrapper extends BaseEntityWrapper<OrderEntity, OrderVO> {
|
||||||
|
|
||||||
|
public static OrderWrapper build() {
|
||||||
|
return new OrderWrapper();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OrderVO entityVO(OrderEntity order) {
|
||||||
|
OrderVO orderVO = Objects.requireNonNull(BeanUtil.copyProperties(order, OrderVO.class));
|
||||||
|
|
||||||
|
//User createUser = UserCache.getUser(order.getCreateUser());
|
||||||
|
//User updateUser = UserCache.getUser(order.getUpdateUser());
|
||||||
|
//orderVO.setCreateUserName(createUser.getName());
|
||||||
|
//orderVO.setUpdateUserName(updateUser.getName());
|
||||||
|
|
||||||
|
return orderVO;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user