🎉 生成订单模块代码

This commit is contained in:
bunny 2025-07-05 19:15:31 +08:00
parent bfa8632c1b
commit 6701b0985e
81 changed files with 4791 additions and 16 deletions

View File

@ -18,6 +18,10 @@
</properties>
<dependencies>
<dependency>
<groupId>com.mall</groupId>
<artifactId>mall-common</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>

View File

@ -1,13 +0,0 @@
package com.mall;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}

View File

@ -0,0 +1,13 @@
package com.mall.order;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan(basePackages = {"com.mall.order", "com.mall.common"})
public class MallOrderApplication {
public static void main(String[] args) {
SpringApplication.run(MallOrderApplication.class, args);
}
}

View File

@ -0,0 +1,54 @@
package com.mall.order.config;
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import lombok.extern.slf4j.Slf4j;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableKnife4j
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.ANY)
@Slf4j
public class Knife4jConfig {
@Value("${server.port}")
private String port;
@Bean
public OpenAPI openAPI() {
String url = "http://localhost:" + port;
// 作者等信息
Contact contact = new Contact().name("Bunny").email("1319900154@qq.com").url(url);
// 使用协议
License license = new License().name("MIT").url("https://mit-license.org");
// 相关信息
Info info = new Info().title("Bunny-Admin")
.contact(contact).license(license)
.description("BunnyMall商城")
.summary("Bunny商城")
.termsOfService(url)
.version("v0.0.1");
return new OpenAPI().info(info).externalDocs(new ExternalDocumentation());
}
@Bean
public GroupedOpenApi all() {
return GroupedOpenApi.builder().group("全部请求接口").pathsToMatch("/api/**").build();
}
@Bean
public GroupedOpenApi order() {
return GroupedOpenApi.builder().group("订单请求接口").pathsToMatch("/api/order/**").build();
}
}

View File

@ -0,0 +1,70 @@
package com.mall.order.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.common.domain.vo.result.Result;
import com.mall.common.domain.vo.result.ResultCodeEnum;
import com.mall.order.domain.dto.MqMessageDto;
import com.mall.order.domain.entity.MqMessage;
import com.mall.order.domain.vo.MqMessageVo;
import com.mall.order.service.MqMessageService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 前端控制器
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Tag(name = "MqMessage", description = "MqMessage相关接口")
@RestController
@RequestMapping("/api/order/mq-message")
@RequiredArgsConstructor
public class MqMessageController {
private final MqMessageService mqMessageService;
@Operation(summary = "MqMessage分页查询", description = "MqMessage分页")
@GetMapping("{page}/{limit}")
public Result<PageResult<MqMessageVo>> getMqMessagePage(
@Parameter(name = "page", description = "当前页", required = true)
@PathVariable("page") Integer page,
@Parameter(name = "limit", description = "每页记录数", required = true)
@PathVariable("limit") Integer limit,
MqMessageDto dto) {
Page<MqMessage> pageParams = new Page<>(page, limit);
PageResult<MqMessageVo> pageResult = mqMessageService.getMqMessagePage(pageParams, dto);
return Result.success(pageResult);
}
@Operation(summary = "MqMessage添加", description = "MqMessage添加")
@PostMapping()
public Result<String> addMqMessage(@Valid @RequestBody MqMessageDto dto) {
mqMessageService.addMqMessage(dto);
return Result.success(ResultCodeEnum.ADD_SUCCESS);
}
@Operation(summary = "MqMessage更新", description = "MqMessage更新")
@PutMapping()
public Result<String> updateMqMessage(@Valid @RequestBody MqMessageDto dto) {
mqMessageService.updateMqMessage(dto);
return Result.success(ResultCodeEnum.UPDATE_SUCCESS);
}
@Operation(summary = "MqMessage删除", description = "MqMessage删除")
@DeleteMapping()
public Result<String> deleteMqMessage(@RequestBody List<Long> ids) {
mqMessageService.deleteMqMessage(ids);
return Result.success(ResultCodeEnum.DELETE_SUCCESS);
}
}

View File

@ -0,0 +1,69 @@
package com.mall.order.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.common.domain.vo.result.Result;
import com.mall.common.domain.vo.result.ResultCodeEnum;
import com.mall.order.domain.dto.OrderDto;
import com.mall.order.domain.entity.Order;
import com.mall.order.domain.vo.OrderVo;
import com.mall.order.service.OrderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 订单 前端控制器
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Tag(name = "订单", description = "订单相关接口")
@RestController
@RequestMapping("/api/order/order")
@RequiredArgsConstructor
public class OrderController {
private final OrderService orderService;
@Operation(summary = "分页查询订单", description = "分页订单")
@GetMapping("{page}/{limit}")
public Result<PageResult<OrderVo>> getOrderPage(
@Parameter(name = "page", description = "当前页", required = true)
@PathVariable("page") Integer page,
@Parameter(name = "limit", description = "每页记录数", required = true)
@PathVariable("limit") Integer limit,
OrderDto dto) {
Page<Order> pageParams = new Page<>(page, limit);
PageResult<OrderVo> pageResult = orderService.getOrderPage(pageParams, dto);
return Result.success(pageResult);
}
@Operation(summary = "添加订单", description = "添加订单")
@PostMapping()
public Result<String> addOrder(@Valid @RequestBody OrderDto dto) {
orderService.addOrder(dto);
return Result.success(ResultCodeEnum.ADD_SUCCESS);
}
@Operation(summary = "更新订单", description = "更新订单")
@PutMapping()
public Result<String> updateOrder(@Valid @RequestBody OrderDto dto) {
orderService.updateOrder(dto);
return Result.success(ResultCodeEnum.UPDATE_SUCCESS);
}
@Operation(summary = "删除订单", description = "删除订单")
@DeleteMapping()
public Result<String> deleteOrder(@RequestBody List<Long> ids) {
orderService.deleteOrder(ids);
return Result.success(ResultCodeEnum.DELETE_SUCCESS);
}
}

View File

@ -0,0 +1,69 @@
package com.mall.order.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.common.domain.vo.result.Result;
import com.mall.common.domain.vo.result.ResultCodeEnum;
import com.mall.order.domain.dto.OrderItemDto;
import com.mall.order.domain.entity.OrderItem;
import com.mall.order.domain.vo.OrderItemVo;
import com.mall.order.service.OrderItemService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 订单项信息 前端控制器
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Tag(name = "订单项信息", description = "订单项信息相关接口")
@RestController
@RequestMapping("/api/order/order-item")
@RequiredArgsConstructor
public class OrderItemController {
private final OrderItemService orderItemService;
@Operation(summary = "分页查询订单项信息", description = "分页订单项信息")
@GetMapping("{page}/{limit}")
public Result<PageResult<OrderItemVo>> getOrderItemPage(
@Parameter(name = "page", description = "当前页", required = true)
@PathVariable("page") Integer page,
@Parameter(name = "limit", description = "每页记录数", required = true)
@PathVariable("limit") Integer limit,
OrderItemDto dto) {
Page<OrderItem> pageParams = new Page<>(page, limit);
PageResult<OrderItemVo> pageResult = orderItemService.getOrderItemPage(pageParams, dto);
return Result.success(pageResult);
}
@Operation(summary = "添加订单项信息", description = "添加订单项信息")
@PostMapping()
public Result<String> addOrderItem(@Valid @RequestBody OrderItemDto dto) {
orderItemService.addOrderItem(dto);
return Result.success(ResultCodeEnum.ADD_SUCCESS);
}
@Operation(summary = "更新订单项信息", description = "更新订单项信息")
@PutMapping()
public Result<String> updateOrderItem(@Valid @RequestBody OrderItemDto dto) {
orderItemService.updateOrderItem(dto);
return Result.success(ResultCodeEnum.UPDATE_SUCCESS);
}
@Operation(summary = "删除订单项信息", description = "删除订单项信息")
@DeleteMapping()
public Result<String> deleteOrderItem(@RequestBody List<Long> ids) {
orderItemService.deleteOrderItem(ids);
return Result.success(ResultCodeEnum.DELETE_SUCCESS);
}
}

View File

@ -0,0 +1,70 @@
package com.mall.order.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.common.domain.vo.result.Result;
import com.mall.common.domain.vo.result.ResultCodeEnum;
import com.mall.order.domain.dto.OrderOperateHistoryDto;
import com.mall.order.domain.entity.OrderOperateHistory;
import com.mall.order.domain.vo.OrderOperateHistoryVo;
import com.mall.order.service.OrderOperateHistoryService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 订单操作历史记录 前端控制器
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Tag(name = "订单操作历史记录", description = "订单操作历史记录相关接口")
@RestController
@RequestMapping("/api/order/order-operate-history")
@RequiredArgsConstructor
public class OrderOperateHistoryController {
private final OrderOperateHistoryService orderOperateHistoryService;
@Operation(summary = "分页查询订单操作历史记录", description = "分页订单操作历史记录")
@GetMapping("{page}/{limit}")
public Result<PageResult<OrderOperateHistoryVo>> getOrderOperateHistoryPage(
@Parameter(name = "page", description = "当前页", required = true)
@PathVariable("page") Integer page,
@Parameter(name = "limit", description = "每页记录数", required = true)
@PathVariable("limit") Integer limit,
OrderOperateHistoryDto dto) {
Page<OrderOperateHistory> pageParams = new Page<>(page, limit);
PageResult<OrderOperateHistoryVo> pageResult = orderOperateHistoryService.getOrderOperateHistoryPage(pageParams, dto);
return Result.success(pageResult);
}
@Operation(summary = "添加订单操作历史记录", description = "添加订单操作历史记录")
@PostMapping()
public Result<String> addOrderOperateHistory(@Valid @RequestBody OrderOperateHistoryDto dto) {
orderOperateHistoryService.addOrderOperateHistory(dto);
return Result.success(ResultCodeEnum.ADD_SUCCESS);
}
@Operation(summary = "更新订单操作历史记录", description = "更新订单操作历史记录")
@PutMapping()
public Result<String> updateOrderOperateHistory(@Valid @RequestBody OrderOperateHistoryDto dto) {
orderOperateHistoryService.updateOrderOperateHistory(dto);
return Result.success(ResultCodeEnum.UPDATE_SUCCESS);
}
@Operation(summary = "删除订单操作历史记录", description = "删除订单操作历史记录")
@DeleteMapping()
public Result<String> deleteOrderOperateHistory(@RequestBody List<Long> ids) {
orderOperateHistoryService.deleteOrderOperateHistory(ids);
return Result.success(ResultCodeEnum.DELETE_SUCCESS);
}
}

View File

@ -0,0 +1,70 @@
package com.mall.order.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.common.domain.vo.result.Result;
import com.mall.common.domain.vo.result.ResultCodeEnum;
import com.mall.order.domain.dto.OrderReturnApplyDto;
import com.mall.order.domain.entity.OrderReturnApply;
import com.mall.order.domain.vo.OrderReturnApplyVo;
import com.mall.order.service.OrderReturnApplyService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 订单退货申请 前端控制器
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Tag(name = "订单退货申请", description = "订单退货申请相关接口")
@RestController
@RequestMapping("/api/order/order-return-apply")
@RequiredArgsConstructor
public class OrderReturnApplyController {
private final OrderReturnApplyService orderReturnApplyService;
@Operation(summary = "分页查询订单退货申请", description = "分页订单退货申请")
@GetMapping("{page}/{limit}")
public Result<PageResult<OrderReturnApplyVo>> getOrderReturnApplyPage(
@Parameter(name = "page", description = "当前页", required = true)
@PathVariable("page") Integer page,
@Parameter(name = "limit", description = "每页记录数", required = true)
@PathVariable("limit") Integer limit,
OrderReturnApplyDto dto) {
Page<OrderReturnApply> pageParams = new Page<>(page, limit);
PageResult<OrderReturnApplyVo> pageResult = orderReturnApplyService.getOrderReturnApplyPage(pageParams, dto);
return Result.success(pageResult);
}
@Operation(summary = "添加订单退货申请", description = "添加订单退货申请")
@PostMapping()
public Result<String> addOrderReturnApply(@Valid @RequestBody OrderReturnApplyDto dto) {
orderReturnApplyService.addOrderReturnApply(dto);
return Result.success(ResultCodeEnum.ADD_SUCCESS);
}
@Operation(summary = "更新订单退货申请", description = "更新订单退货申请")
@PutMapping()
public Result<String> updateOrderReturnApply(@Valid @RequestBody OrderReturnApplyDto dto) {
orderReturnApplyService.updateOrderReturnApply(dto);
return Result.success(ResultCodeEnum.UPDATE_SUCCESS);
}
@Operation(summary = "删除订单退货申请", description = "删除订单退货申请")
@DeleteMapping()
public Result<String> deleteOrderReturnApply(@RequestBody List<Long> ids) {
orderReturnApplyService.deleteOrderReturnApply(ids);
return Result.success(ResultCodeEnum.DELETE_SUCCESS);
}
}

View File

@ -0,0 +1,70 @@
package com.mall.order.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.common.domain.vo.result.Result;
import com.mall.common.domain.vo.result.ResultCodeEnum;
import com.mall.order.domain.dto.OrderReturnReasonDto;
import com.mall.order.domain.entity.OrderReturnReason;
import com.mall.order.domain.vo.OrderReturnReasonVo;
import com.mall.order.service.OrderReturnReasonService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 退货原因 前端控制器
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Tag(name = "退货原因", description = "退货原因相关接口")
@RestController
@RequestMapping("/api/order/order-return-reason")
@RequiredArgsConstructor
public class OrderReturnReasonController {
private final OrderReturnReasonService orderReturnReasonService;
@Operation(summary = "分页查询退货原因", description = "分页退货原因")
@GetMapping("{page}/{limit}")
public Result<PageResult<OrderReturnReasonVo>> getOrderReturnReasonPage(
@Parameter(name = "page", description = "当前页", required = true)
@PathVariable("page") Integer page,
@Parameter(name = "limit", description = "每页记录数", required = true)
@PathVariable("limit") Integer limit,
OrderReturnReasonDto dto) {
Page<OrderReturnReason> pageParams = new Page<>(page, limit);
PageResult<OrderReturnReasonVo> pageResult = orderReturnReasonService.getOrderReturnReasonPage(pageParams, dto);
return Result.success(pageResult);
}
@Operation(summary = "添加退货原因", description = "添加退货原因")
@PostMapping()
public Result<String> addOrderReturnReason(@Valid @RequestBody OrderReturnReasonDto dto) {
orderReturnReasonService.addOrderReturnReason(dto);
return Result.success(ResultCodeEnum.ADD_SUCCESS);
}
@Operation(summary = "更新退货原因", description = "更新退货原因")
@PutMapping()
public Result<String> updateOrderReturnReason(@Valid @RequestBody OrderReturnReasonDto dto) {
orderReturnReasonService.updateOrderReturnReason(dto);
return Result.success(ResultCodeEnum.UPDATE_SUCCESS);
}
@Operation(summary = "删除退货原因", description = "删除退货原因")
@DeleteMapping()
public Result<String> deleteOrderReturnReason(@RequestBody List<Long> ids) {
orderReturnReasonService.deleteOrderReturnReason(ids);
return Result.success(ResultCodeEnum.DELETE_SUCCESS);
}
}

View File

@ -0,0 +1,70 @@
package com.mall.order.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.common.domain.vo.result.Result;
import com.mall.common.domain.vo.result.ResultCodeEnum;
import com.mall.order.domain.dto.OrderSettingDto;
import com.mall.order.domain.entity.OrderSetting;
import com.mall.order.domain.vo.OrderSettingVo;
import com.mall.order.service.OrderSettingService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 订单配置信息 前端控制器
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Tag(name = "订单配置信息", description = "订单配置信息相关接口")
@RestController
@RequestMapping("/api/order/order-setting")
@RequiredArgsConstructor
public class OrderSettingController {
private final OrderSettingService orderSettingService;
@Operation(summary = "分页查询订单配置信息", description = "分页订单配置信息")
@GetMapping("{page}/{limit}")
public Result<PageResult<OrderSettingVo>> getOrderSettingPage(
@Parameter(name = "page", description = "当前页", required = true)
@PathVariable("page") Integer page,
@Parameter(name = "limit", description = "每页记录数", required = true)
@PathVariable("limit") Integer limit,
OrderSettingDto dto) {
Page<OrderSetting> pageParams = new Page<>(page, limit);
PageResult<OrderSettingVo> pageResult = orderSettingService.getOrderSettingPage(pageParams, dto);
return Result.success(pageResult);
}
@Operation(summary = "添加订单配置信息", description = "添加订单配置信息")
@PostMapping()
public Result<String> addOrderSetting(@Valid @RequestBody OrderSettingDto dto) {
orderSettingService.addOrderSetting(dto);
return Result.success(ResultCodeEnum.ADD_SUCCESS);
}
@Operation(summary = "更新订单配置信息", description = "更新订单配置信息")
@PutMapping()
public Result<String> updateOrderSetting(@Valid @RequestBody OrderSettingDto dto) {
orderSettingService.updateOrderSetting(dto);
return Result.success(ResultCodeEnum.UPDATE_SUCCESS);
}
@Operation(summary = "删除订单配置信息", description = "删除订单配置信息")
@DeleteMapping()
public Result<String> deleteOrderSetting(@RequestBody List<Long> ids) {
orderSettingService.deleteOrderSetting(ids);
return Result.success(ResultCodeEnum.DELETE_SUCCESS);
}
}

View File

@ -0,0 +1,69 @@
package com.mall.order.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.common.domain.vo.result.Result;
import com.mall.common.domain.vo.result.ResultCodeEnum;
import com.mall.order.domain.dto.PaymentInfoDto;
import com.mall.order.domain.entity.PaymentInfo;
import com.mall.order.domain.vo.PaymentInfoVo;
import com.mall.order.service.PaymentInfoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 支付信息表 前端控制器
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Tag(name = "支付信息表", description = "支付信息表相关接口")
@RestController
@RequestMapping("/api/order/payment-info")
@RequiredArgsConstructor
public class PaymentInfoController {
private final PaymentInfoService paymentInfoService;
@Operation(summary = "分页查询支付信息表", description = "分页支付信息表")
@GetMapping("{page}/{limit}")
public Result<PageResult<PaymentInfoVo>> getPaymentInfoPage(
@Parameter(name = "page", description = "当前页", required = true)
@PathVariable("page") Integer page,
@Parameter(name = "limit", description = "每页记录数", required = true)
@PathVariable("limit") Integer limit,
PaymentInfoDto dto) {
Page<PaymentInfo> pageParams = new Page<>(page, limit);
PageResult<PaymentInfoVo> pageResult = paymentInfoService.getPaymentInfoPage(pageParams, dto);
return Result.success(pageResult);
}
@Operation(summary = "添加支付信息表", description = "添加支付信息表")
@PostMapping()
public Result<String> addPaymentInfo(@Valid @RequestBody PaymentInfoDto dto) {
paymentInfoService.addPaymentInfo(dto);
return Result.success(ResultCodeEnum.ADD_SUCCESS);
}
@Operation(summary = "更新支付信息表", description = "更新支付信息表")
@PutMapping()
public Result<String> updatePaymentInfo(@Valid @RequestBody PaymentInfoDto dto) {
paymentInfoService.updatePaymentInfo(dto);
return Result.success(ResultCodeEnum.UPDATE_SUCCESS);
}
@Operation(summary = "删除支付信息表", description = "删除支付信息表")
@DeleteMapping()
public Result<String> deletePaymentInfo(@RequestBody List<Long> ids) {
paymentInfoService.deletePaymentInfo(ids);
return Result.success(ResultCodeEnum.DELETE_SUCCESS);
}
}

View File

@ -0,0 +1,70 @@
package com.mall.order.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.common.domain.vo.result.Result;
import com.mall.common.domain.vo.result.ResultCodeEnum;
import com.mall.order.domain.dto.RefundInfoDto;
import com.mall.order.domain.entity.RefundInfo;
import com.mall.order.domain.vo.RefundInfoVo;
import com.mall.order.service.RefundInfoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 退款信息 前端控制器
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Tag(name = "退款信息", description = "退款信息相关接口")
@RestController
@RequestMapping("/api/order/refund-info")
@RequiredArgsConstructor
public class RefundInfoController {
private final RefundInfoService refundInfoService;
@Operation(summary = "分页查询退款信息", description = "分页退款信息")
@GetMapping("{page}/{limit}")
public Result<PageResult<RefundInfoVo>> getRefundInfoPage(
@Parameter(name = "page", description = "当前页", required = true)
@PathVariable("page") Integer page,
@Parameter(name = "limit", description = "每页记录数", required = true)
@PathVariable("limit") Integer limit,
RefundInfoDto dto) {
Page<RefundInfo> pageParams = new Page<>(page, limit);
PageResult<RefundInfoVo> pageResult = refundInfoService.getRefundInfoPage(pageParams, dto);
return Result.success(pageResult);
}
@Operation(summary = "添加退款信息", description = "添加退款信息")
@PostMapping()
public Result<String> addRefundInfo(@Valid @RequestBody RefundInfoDto dto) {
refundInfoService.addRefundInfo(dto);
return Result.success(ResultCodeEnum.ADD_SUCCESS);
}
@Operation(summary = "更新退款信息", description = "更新退款信息")
@PutMapping()
public Result<String> updateRefundInfo(@Valid @RequestBody RefundInfoDto dto) {
refundInfoService.updateRefundInfo(dto);
return Result.success(ResultCodeEnum.UPDATE_SUCCESS);
}
@Operation(summary = "删除退款信息", description = "删除退款信息")
@DeleteMapping()
public Result<String> deleteRefundInfo(@RequestBody List<Long> ids) {
refundInfoService.deleteRefundInfo(ids);
return Result.success(ResultCodeEnum.DELETE_SUCCESS);
}
}

View File

@ -0,0 +1,42 @@
package com.mall.order.domain.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "MqMessageDTO对象", title = "", description = "的DTO对象")
public class MqMessageDto {
@Schema(name = "messageId", title = "")
private String messageId;
@Schema(name = "content", title = "")
private String content;
@Schema(name = "toExchane", title = "")
private String toExchane;
@Schema(name = "routingKey", title = "")
private String routingKey;
@Schema(name = "classType", title = "")
private String classType;
@Schema(name = "messageStatus", title = "0-新建 1-已发送 2-错误抵达 3-已抵达")
private Integer messageStatus;
@Schema(name = "createTime", title = "")
private LocalDateTime createTime;
@Schema(name = "updateTime", title = "")
private LocalDateTime updateTime;
}

View File

@ -0,0 +1,145 @@
package com.mall.order.domain.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "OrderDTO对象", title = "订单", description = "订单的DTO对象")
public class OrderDto {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "memberId", title = "member_id")
private Long memberId;
@Schema(name = "orderSn", title = "订单号")
private String orderSn;
@Schema(name = "couponId", title = "使用的优惠券")
private Long couponId;
@Schema(name = "createTime", title = "create_time")
private LocalDateTime createTime;
@Schema(name = "memberUsername", title = "用户名")
private String memberUsername;
@Schema(name = "totalAmount", title = "订单总额")
private BigDecimal totalAmount;
@Schema(name = "payAmount", title = "应付总额")
private BigDecimal payAmount;
@Schema(name = "freightAmount", title = "运费金额")
private BigDecimal freightAmount;
@Schema(name = "promotionAmount", title = "促销优化金额(促销价、满减、阶梯价)")
private BigDecimal promotionAmount;
@Schema(name = "integrationAmount", title = "积分抵扣金额")
private BigDecimal integrationAmount;
@Schema(name = "couponAmount", title = "优惠券抵扣金额")
private BigDecimal couponAmount;
@Schema(name = "discountAmount", title = "后台调整订单使用的折扣金额")
private BigDecimal discountAmount;
@Schema(name = "payType", title = "支付方式【1->支付宝2->微信3->银联; 4->货到付款;】")
private Integer payType;
@Schema(name = "sourceType", title = "订单来源[0->PC订单1->app订单]")
private Integer sourceType;
@Schema(name = "status", title = "订单状态【0->待付款1->待发货2->已发货3->已完成4->已关闭5->无效订单】")
private Integer status;
@Schema(name = "deliveryCompany", title = "物流公司(配送方式)")
private String deliveryCompany;
@Schema(name = "deliverySn", title = "物流单号")
private String deliverySn;
@Schema(name = "autoConfirmDay", title = "自动确认时间(天)")
private Integer autoConfirmDay;
@Schema(name = "integration", title = "可以获得的积分")
private Integer integration;
@Schema(name = "growth", title = "可以获得的成长值")
private Integer growth;
@Schema(name = "billType", title = "发票类型[0->不开发票1->电子发票2->纸质发票]")
private Integer billType;
@Schema(name = "billHeader", title = "发票抬头")
private String billHeader;
@Schema(name = "billContent", title = "发票内容")
private String billContent;
@Schema(name = "billReceiverPhone", title = "收票人电话")
private String billReceiverPhone;
@Schema(name = "billReceiverEmail", title = "收票人邮箱")
private String billReceiverEmail;
@Schema(name = "receiverName", title = "收货人姓名")
private String receiverName;
@Schema(name = "receiverPhone", title = "收货人电话")
private String receiverPhone;
@Schema(name = "receiverPostCode", title = "收货人邮编")
private String receiverPostCode;
@Schema(name = "receiverProvince", title = "省份/直辖市")
private String receiverProvince;
@Schema(name = "receiverCity", title = "城市")
private String receiverCity;
@Schema(name = "receiverRegion", title = "")
private String receiverRegion;
@Schema(name = "receiverDetailAddress", title = "详细地址")
private String receiverDetailAddress;
@Schema(name = "note", title = "订单备注")
private String note;
@Schema(name = "confirmStatus", title = "确认收货状态[0->未确认1->已确认]")
private Integer confirmStatus;
@Schema(name = "deleteStatus", title = "删除状态【0->未删除1->已删除】")
private Integer deleteStatus;
@Schema(name = "useIntegration", title = "下单时使用的积分")
private Integer useIntegration;
@Schema(name = "paymentTime", title = "支付时间")
private LocalDateTime paymentTime;
@Schema(name = "deliveryTime", title = "发货时间")
private LocalDateTime deliveryTime;
@Schema(name = "receiveTime", title = "确认收货时间")
private LocalDateTime receiveTime;
@Schema(name = "commentTime", title = "评价时间")
private LocalDateTime commentTime;
@Schema(name = "modifyTime", title = "修改时间")
private LocalDateTime modifyTime;
}

View File

@ -0,0 +1,78 @@
package com.mall.order.domain.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "OrderItemDTO对象", title = "订单项信息", description = "订单项信息的DTO对象")
public class OrderItemDto {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "orderId", title = "order_id")
private Long orderId;
@Schema(name = "orderSn", title = "order_sn")
private String orderSn;
@Schema(name = "spuId", title = "spu_id")
private Long spuId;
@Schema(name = "spuName", title = "spu_name")
private String spuName;
@Schema(name = "spuPic", title = "spu_pic")
private String spuPic;
@Schema(name = "spuBrand", title = "品牌")
private String spuBrand;
@Schema(name = "categoryId", title = "商品分类id")
private Long categoryId;
@Schema(name = "skuId", title = "商品sku编号")
private Long skuId;
@Schema(name = "skuName", title = "商品sku名字")
private String skuName;
@Schema(name = "skuPic", title = "商品sku图片")
private String skuPic;
@Schema(name = "skuPrice", title = "商品sku价格")
private BigDecimal skuPrice;
@Schema(name = "skuQuantity", title = "商品购买的数量")
private Integer skuQuantity;
@Schema(name = "skuAttrsVals", title = "商品销售属性组合JSON")
private String skuAttrsVals;
@Schema(name = "promotionAmount", title = "商品促销分解金额")
private BigDecimal promotionAmount;
@Schema(name = "couponAmount", title = "优惠券优惠分解金额")
private BigDecimal couponAmount;
@Schema(name = "integrationAmount", title = "积分优惠分解金额")
private BigDecimal integrationAmount;
@Schema(name = "realAmount", title = "该商品经过优惠后的分解金额")
private BigDecimal realAmount;
@Schema(name = "giftIntegration", title = "赠送积分")
private Integer giftIntegration;
@Schema(name = "giftGrowth", title = "赠送成长值")
private Integer giftGrowth;
}

View File

@ -0,0 +1,36 @@
package com.mall.order.domain.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "OrderOperateHistoryDTO对象", title = "订单操作历史记录", description = "订单操作历史记录的DTO对象")
public class OrderOperateHistoryDto {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "orderId", title = "订单id")
private Long orderId;
@Schema(name = "operateMan", title = "操作人[用户;系统;后台管理员]")
private String operateMan;
@Schema(name = "createTime", title = "操作时间")
private LocalDateTime createTime;
@Schema(name = "orderStatus", title = "订单状态【0->待付款1->待发货2->已发货3->已完成4->已关闭5->无效订单】")
private Integer orderStatus;
@Schema(name = "note", title = "备注")
private String note;
}

View File

@ -0,0 +1,103 @@
package com.mall.order.domain.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "OrderReturnApplyDTO对象", title = "订单退货申请", description = "订单退货申请的DTO对象")
public class OrderReturnApplyDto {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "orderId", title = "order_id")
private Long orderId;
@Schema(name = "skuId", title = "退货商品id")
private Long skuId;
@Schema(name = "orderSn", title = "订单编号")
private String orderSn;
@Schema(name = "createTime", title = "申请时间")
private LocalDateTime createTime;
@Schema(name = "memberUsername", title = "会员用户名")
private String memberUsername;
@Schema(name = "returnAmount", title = "退款金额")
private BigDecimal returnAmount;
@Schema(name = "returnName", title = "退货人姓名")
private String returnName;
@Schema(name = "returnPhone", title = "退货人电话")
private String returnPhone;
@Schema(name = "status", title = "申请状态[0->待处理1->退货中2->已完成3->已拒绝]")
private Boolean status;
@Schema(name = "handleTime", title = "处理时间")
private LocalDateTime handleTime;
@Schema(name = "skuImg", title = "商品图片")
private String skuImg;
@Schema(name = "skuName", title = "商品名称")
private String skuName;
@Schema(name = "skuBrand", title = "商品品牌")
private String skuBrand;
@Schema(name = "skuAttrsVals", title = "商品销售属性(JSON)")
private String skuAttrsVals;
@Schema(name = "skuCount", title = "退货数量")
private Integer skuCount;
@Schema(name = "skuPrice", title = "商品单价")
private BigDecimal skuPrice;
@Schema(name = "skuRealPrice", title = "商品实际支付单价")
private BigDecimal skuRealPrice;
@Schema(name = "reason", title = "原因")
private String reason;
@Schema(name = "description述", title = "描述")
private String description述;
@Schema(name = "descPics", title = "凭证图片,以逗号隔开")
private String descPics;
@Schema(name = "handleNote", title = "处理备注")
private String handleNote;
@Schema(name = "handleMan", title = "处理人员")
private String handleMan;
@Schema(name = "receiveMan", title = "收货人")
private String receiveMan;
@Schema(name = "receiveTime", title = "收货时间")
private LocalDateTime receiveTime;
@Schema(name = "receiveNote", title = "收货备注")
private String receiveNote;
@Schema(name = "receivePhone", title = "收货电话")
private String receivePhone;
@Schema(name = "companyAddress", title = "公司收货地址")
private String companyAddress;
}

View File

@ -0,0 +1,33 @@
package com.mall.order.domain.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "OrderReturnReasonDTO对象", title = "退货原因", description = "退货原因的DTO对象")
public class OrderReturnReasonDto {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "name", title = "退货原因名")
private String name;
@Schema(name = "sort", title = "排序")
private Integer sort;
@Schema(name = "status", title = "启用状态")
private Boolean status;
@Schema(name = "createTime", title = "create_time")
private LocalDateTime createTime;
}

View File

@ -0,0 +1,37 @@
package com.mall.order.domain.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "OrderSettingDTO对象", title = "订单配置信息", description = "订单配置信息的DTO对象")
public class OrderSettingDto {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "flashOrderOvertime", title = "秒杀订单超时关闭时间(分)")
private Integer flashOrderOvertime;
@Schema(name = "normalOrderOvertime", title = "正常订单超时时间(分)")
private Integer normalOrderOvertime;
@Schema(name = "confirmOvertime", title = "发货后自动确认收货时间(天)")
private Integer confirmOvertime;
@Schema(name = "finishOvertime", title = "自动完成交易时间,不能申请退货(天)")
private Integer finishOvertime;
@Schema(name = "commentOvertime", title = "订单完成后自动好评时间(天)")
private Integer commentOvertime;
@Schema(name = "memberLevel", title = "会员等级【0-不限会员等级,全部通用;其他-对应的其他会员等级】")
private Integer memberLevel;
}

View File

@ -0,0 +1,52 @@
package com.mall.order.domain.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "PaymentInfoDTO对象", title = "支付信息表", description = "支付信息表的DTO对象")
public class PaymentInfoDto {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "orderSn", title = "订单号(对外业务号)")
private String orderSn;
@Schema(name = "orderId", title = "订单id")
private Long orderId;
@Schema(name = "alipayTradeNo", title = "支付宝交易流水号")
private String alipayTradeNo;
@Schema(name = "totalAmount", title = "支付总金额")
private BigDecimal totalAmount;
@Schema(name = "subject", title = "交易内容")
private String subject;
@Schema(name = "paymentStatus", title = "支付状态")
private String paymentStatus;
@Schema(name = "createTime", title = "创建时间")
private LocalDateTime createTime;
@Schema(name = "confirmTime", title = "确认时间")
private LocalDateTime confirmTime;
@Schema(name = "callbackContent", title = "回调内容")
private String callbackContent;
@Schema(name = "callbackTime", title = "回调时间")
private LocalDateTime callbackTime;
}

View File

@ -0,0 +1,39 @@
package com.mall.order.domain.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "RefundInfoDTO对象", title = "退款信息", description = "退款信息的DTO对象")
public class RefundInfoDto {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "orderReturnId", title = "退款的订单")
private Long orderReturnId;
@Schema(name = "refund", title = "退款金额")
private BigDecimal refund;
@Schema(name = "refundSn", title = "退款交易流水号")
private String refundSn;
@Schema(name = "refundStatus", title = "退款状态")
private Boolean refundStatus;
@Schema(name = "refundChannel", title = "退款渠道[1-支付宝2-微信3-银联4-汇款]")
private Integer refundChannel;
@Schema(name = "refundContent", title = "")
private String refundContent;
}

View File

@ -0,0 +1,61 @@
package com.mall.order.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
@Getter
@Setter
@Accessors(chain = true)
@TableName("mq_message")
@Schema(name = "MqMessage对象", title = "", description = "的实体类对象")
public class MqMessage {
@Schema(name = "messageId", title = "")
@TableId(type = IdType.ASSIGN_ID)
private String messageId;
@Schema(name = "content", title = "")
private String content;
@Schema(name = "toExchane", title = "")
private String toExchane;
@Schema(name = "routingKey", title = "")
private String routingKey;
@Schema(name = "classType", title = "")
private String classType;
@Schema(name = "messageStatus", title = "0-新建 1-已发送 2-错误抵达 3-已抵达")
private Integer messageStatus;
@Schema(name = "createTime", title = "")
private LocalDateTime createTime;
@Schema(name = "updateTime", title = "")
private LocalDateTime updateTime;
}

View File

@ -0,0 +1,232 @@
package com.mall.order.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Getter
@Setter
@Accessors(chain = true)
@TableName("oms_order")
@Schema(name = "Order对象", title = "订单", description = "订单的实体类对象")
public class Order {
@Schema(name = "id", title = "id")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
@Schema(name = "memberId", title = "member_id")
private Long memberId;
@Schema(name = "orderSn", title = "订单号")
private String orderSn;
@Schema(name = "couponId", title = "使用的优惠券")
private Long couponId;
@Schema(name = "createTime", title = "create_time")
private LocalDateTime createTime;
@Schema(name = "memberUsername", title = "用户名")
private String memberUsername;
@Schema(name = "totalAmount", title = "订单总额")
private BigDecimal totalAmount;
@Schema(name = "payAmount", title = "应付总额")
private BigDecimal payAmount;
@Schema(name = "freightAmount", title = "运费金额")
private BigDecimal freightAmount;
@Schema(name = "promotionAmount", title = "促销优化金额(促销价、满减、阶梯价)")
private BigDecimal promotionAmount;
@Schema(name = "integrationAmount", title = "积分抵扣金额")
private BigDecimal integrationAmount;
@Schema(name = "couponAmount", title = "优惠券抵扣金额")
private BigDecimal couponAmount;
@Schema(name = "discountAmount", title = "后台调整订单使用的折扣金额")
private BigDecimal discountAmount;
@Schema(name = "payType", title = "支付方式【1->支付宝2->微信3->银联; 4->货到付款;】")
private Integer payType;
@Schema(name = "sourceType", title = "订单来源[0->PC订单1->app订单]")
private Integer sourceType;
@Schema(name = "status", title = "订单状态【0->待付款1->待发货2->已发货3->已完成4->已关闭5->无效订单】")
private Integer status;
@Schema(name = "deliveryCompany", title = "物流公司(配送方式)")
private String deliveryCompany;
@Schema(name = "deliverySn", title = "物流单号")
private String deliverySn;
@Schema(name = "autoConfirmDay", title = "自动确认时间(天)")
private Integer autoConfirmDay;
@Schema(name = "integration", title = "可以获得的积分")
private Integer integration;
@Schema(name = "growth", title = "可以获得的成长值")
private Integer growth;
@Schema(name = "billType", title = "发票类型[0->不开发票1->电子发票2->纸质发票]")
private Integer billType;
@Schema(name = "billHeader", title = "发票抬头")
private String billHeader;
@Schema(name = "billContent", title = "发票内容")
private String billContent;
@Schema(name = "billReceiverPhone", title = "收票人电话")
private String billReceiverPhone;
@Schema(name = "billReceiverEmail", title = "收票人邮箱")
private String billReceiverEmail;
@Schema(name = "receiverName", title = "收货人姓名")
private String receiverName;
@Schema(name = "receiverPhone", title = "收货人电话")
private String receiverPhone;
@Schema(name = "receiverPostCode", title = "收货人邮编")
private String receiverPostCode;
@Schema(name = "receiverProvince", title = "省份/直辖市")
private String receiverProvince;
@Schema(name = "receiverCity", title = "城市")
private String receiverCity;
@Schema(name = "receiverRegion", title = "")
private String receiverRegion;
@Schema(name = "receiverDetailAddress", title = "详细地址")
private String receiverDetailAddress;
@Schema(name = "note", title = "订单备注")
private String note;
@Schema(name = "confirmStatus", title = "确认收货状态[0->未确认1->已确认]")
private Integer confirmStatus;
@Schema(name = "deleteStatus", title = "删除状态【0->未删除1->已删除】")
private Integer deleteStatus;
@Schema(name = "useIntegration", title = "下单时使用的积分")
private Integer useIntegration;
@Schema(name = "paymentTime", title = "支付时间")
private LocalDateTime paymentTime;
@Schema(name = "deliveryTime", title = "发货时间")
private LocalDateTime deliveryTime;
@Schema(name = "receiveTime", title = "确认收货时间")
private LocalDateTime receiveTime;
@Schema(name = "commentTime", title = "评价时间")
private LocalDateTime commentTime;
@Schema(name = "modifyTime", title = "修改时间")
private LocalDateTime modifyTime;
}

View File

@ -0,0 +1,81 @@
package com.mall.order.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
@Getter
@Setter
@Accessors(chain = true)
@TableName("oms_order_item")
@Schema(name = "OrderItem对象", title = "订单项信息", description = "订单项信息的实体类对象")
public class OrderItem {
@Schema(name = "id", title = "id")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
@Schema(name = "orderId", title = "order_id")
private Long orderId;
@Schema(name = "orderSn", title = "order_sn")
private String orderSn;
@Schema(name = "spuId", title = "spu_id")
private Long spuId;
@Schema(name = "spuName", title = "spu_name")
private String spuName;
@Schema(name = "spuPic", title = "spu_pic")
private String spuPic;
@Schema(name = "spuBrand", title = "品牌")
private String spuBrand;
@Schema(name = "categoryId", title = "商品分类id")
private Long categoryId;
@Schema(name = "skuId", title = "商品sku编号")
private Long skuId;
@Schema(name = "skuName", title = "商品sku名字")
private String skuName;
@Schema(name = "skuPic", title = "商品sku图片")
private String skuPic;
@Schema(name = "skuPrice", title = "商品sku价格")
private BigDecimal skuPrice;
@Schema(name = "skuQuantity", title = "商品购买的数量")
private Integer skuQuantity;
@Schema(name = "skuAttrsVals", title = "商品销售属性组合JSON")
private String skuAttrsVals;
@Schema(name = "promotionAmount", title = "商品促销分解金额")
private BigDecimal promotionAmount;
@Schema(name = "couponAmount", title = "优惠券优惠分解金额")
private BigDecimal couponAmount;
@Schema(name = "integrationAmount", title = "积分优惠分解金额")
private BigDecimal integrationAmount;
@Schema(name = "realAmount", title = "该商品经过优惠后的分解金额")
private BigDecimal realAmount;
@Schema(name = "giftIntegration", title = "赠送积分")
private Integer giftIntegration;
@Schema(name = "giftGrowth", title = "赠送成长值")
private Integer giftGrowth;
}

View File

@ -0,0 +1,39 @@
package com.mall.order.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
@Getter
@Setter
@Accessors(chain = true)
@TableName("oms_order_operate_history")
@Schema(name = "OrderOperateHistory对象", title = "订单操作历史记录", description = "订单操作历史记录的实体类对象")
public class OrderOperateHistory {
@Schema(name = "id", title = "id")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
@Schema(name = "orderId", title = "订单id")
private Long orderId;
@Schema(name = "operateMan", title = "操作人[用户;系统;后台管理员]")
private String operateMan;
@Schema(name = "createTime", title = "操作时间")
private LocalDateTime createTime;
@Schema(name = "orderStatus", title = "订单状态【0->待付款1->待发货2->已发货3->已完成4->已关闭5->无效订单】")
private Integer orderStatus;
@Schema(name = "note", title = "备注")
private String note;
}

View File

@ -0,0 +1,106 @@
package com.mall.order.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Getter
@Setter
@Accessors(chain = true)
@TableName("oms_order_return_apply")
@Schema(name = "OrderReturnApply对象", title = "订单退货申请", description = "订单退货申请的实体类对象")
public class OrderReturnApply {
@Schema(name = "id", title = "id")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
@Schema(name = "orderId", title = "order_id")
private Long orderId;
@Schema(name = "skuId", title = "退货商品id")
private Long skuId;
@Schema(name = "orderSn", title = "订单编号")
private String orderSn;
@Schema(name = "createTime", title = "申请时间")
private LocalDateTime createTime;
@Schema(name = "memberUsername", title = "会员用户名")
private String memberUsername;
@Schema(name = "returnAmount", title = "退款金额")
private BigDecimal returnAmount;
@Schema(name = "returnName", title = "退货人姓名")
private String returnName;
@Schema(name = "returnPhone", title = "退货人电话")
private String returnPhone;
@Schema(name = "status", title = "申请状态[0->待处理1->退货中2->已完成3->已拒绝]")
private Boolean status;
@Schema(name = "handleTime", title = "处理时间")
private LocalDateTime handleTime;
@Schema(name = "skuImg", title = "商品图片")
private String skuImg;
@Schema(name = "skuName", title = "商品名称")
private String skuName;
@Schema(name = "skuBrand", title = "商品品牌")
private String skuBrand;
@Schema(name = "skuAttrsVals", title = "商品销售属性(JSON)")
private String skuAttrsVals;
@Schema(name = "skuCount", title = "退货数量")
private Integer skuCount;
@Schema(name = "skuPrice", title = "商品单价")
private BigDecimal skuPrice;
@Schema(name = "skuRealPrice", title = "商品实际支付单价")
private BigDecimal skuRealPrice;
@Schema(name = "reason", title = "原因")
private String reason;
@Schema(name = "description述", title = "描述")
private String description述;
@Schema(name = "descPics", title = "凭证图片,以逗号隔开")
private String descPics;
@Schema(name = "handleNote", title = "处理备注")
private String handleNote;
@Schema(name = "handleMan", title = "处理人员")
private String handleMan;
@Schema(name = "receiveMan", title = "收货人")
private String receiveMan;
@Schema(name = "receiveTime", title = "收货时间")
private LocalDateTime receiveTime;
@Schema(name = "receiveNote", title = "收货备注")
private String receiveNote;
@Schema(name = "receivePhone", title = "收货电话")
private String receivePhone;
@Schema(name = "companyAddress", title = "公司收货地址")
private String companyAddress;
}

View File

@ -0,0 +1,36 @@
package com.mall.order.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
@Getter
@Setter
@Accessors(chain = true)
@TableName("oms_order_return_reason")
@Schema(name = "OrderReturnReason对象", title = "退货原因", description = "退货原因的实体类对象")
public class OrderReturnReason {
@Schema(name = "id", title = "id")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
@Schema(name = "name", title = "退货原因名")
private String name;
@Schema(name = "sort", title = "排序")
private Integer sort;
@Schema(name = "status", title = "启用状态")
private Boolean status;
@Schema(name = "createTime", title = "create_time")
private LocalDateTime createTime;
}

View File

@ -0,0 +1,40 @@
package com.mall.order.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
@Getter
@Setter
@Accessors(chain = true)
@TableName("oms_order_setting")
@Schema(name = "OrderSetting对象", title = "订单配置信息", description = "订单配置信息的实体类对象")
public class OrderSetting {
@Schema(name = "id", title = "id")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
@Schema(name = "flashOrderOvertime", title = "秒杀订单超时关闭时间(分)")
private Integer flashOrderOvertime;
@Schema(name = "normalOrderOvertime", title = "正常订单超时时间(分)")
private Integer normalOrderOvertime;
@Schema(name = "confirmOvertime", title = "发货后自动确认收货时间(天)")
private Integer confirmOvertime;
@Schema(name = "finishOvertime", title = "自动完成交易时间,不能申请退货(天)")
private Integer finishOvertime;
@Schema(name = "commentOvertime", title = "订单完成后自动好评时间(天)")
private Integer commentOvertime;
@Schema(name = "memberLevel", title = "会员等级【0-不限会员等级,全部通用;其他-对应的其他会员等级】")
private Integer memberLevel;
}

View File

@ -0,0 +1,55 @@
package com.mall.order.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Getter
@Setter
@Accessors(chain = true)
@TableName("oms_payment_info")
@Schema(name = "PaymentInfo对象", title = "支付信息表", description = "支付信息表的实体类对象")
public class PaymentInfo {
@Schema(name = "id", title = "id")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
@Schema(name = "orderSn", title = "订单号(对外业务号)")
private String orderSn;
@Schema(name = "orderId", title = "订单id")
private Long orderId;
@Schema(name = "alipayTradeNo", title = "支付宝交易流水号")
private String alipayTradeNo;
@Schema(name = "totalAmount", title = "支付总金额")
private BigDecimal totalAmount;
@Schema(name = "subject", title = "交易内容")
private String subject;
@Schema(name = "paymentStatus", title = "支付状态")
private String paymentStatus;
@Schema(name = "createTime", title = "创建时间")
private LocalDateTime createTime;
@Schema(name = "confirmTime", title = "确认时间")
private LocalDateTime confirmTime;
@Schema(name = "callbackContent", title = "回调内容")
private String callbackContent;
@Schema(name = "callbackTime", title = "回调时间")
private LocalDateTime callbackTime;
}

View File

@ -0,0 +1,42 @@
package com.mall.order.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
@Getter
@Setter
@Accessors(chain = true)
@TableName("oms_refund_info")
@Schema(name = "RefundInfo对象", title = "退款信息", description = "退款信息的实体类对象")
public class RefundInfo {
@Schema(name = "id", title = "id")
@TableId(type = IdType.ASSIGN_ID)
private Long id;
@Schema(name = "orderReturnId", title = "退款的订单")
private Long orderReturnId;
@Schema(name = "refund", title = "退款金额")
private BigDecimal refund;
@Schema(name = "refundSn", title = "退款交易流水号")
private String refundSn;
@Schema(name = "refundStatus", title = "退款状态")
private Boolean refundStatus;
@Schema(name = "refundChannel", title = "退款渠道[1-支付宝2-微信3-银联4-汇款]")
private Integer refundChannel;
@Schema(name = "refundContent", title = "")
private String refundContent;
}

View File

@ -0,0 +1,40 @@
package com.mall.order.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "MqMessageVO对象", title = "", description = "的VO对象")
public class MqMessageVo {
@Schema(name = "messageId", title = "")
private String messageId;
@Schema(name = "content", title = "")
private String content;
@Schema(name = "toExchane", title = "")
private String toExchane;
@Schema(name = "routingKey", title = "")
private String routingKey;
@Schema(name = "classType", title = "")
private String classType;
@Schema(name = "messageStatus", title = "0-新建 1-已发送 2-错误抵达 3-已抵达")
private Integer messageStatus;
@Schema(name = "createTime", title = "")
private LocalDateTime createTime;
@Schema(name = "updateTime", title = "")
private LocalDateTime updateTime;
}

View File

@ -0,0 +1,77 @@
package com.mall.order.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "OrderItemVO对象", title = "订单项信息", description = "订单项信息的VO对象")
public class OrderItemVo {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "orderId", title = "order_id")
private Long orderId;
@Schema(name = "orderSn", title = "order_sn")
private String orderSn;
@Schema(name = "spuId", title = "spu_id")
private Long spuId;
@Schema(name = "spuName", title = "spu_name")
private String spuName;
@Schema(name = "spuPic", title = "spu_pic")
private String spuPic;
@Schema(name = "spuBrand", title = "品牌")
private String spuBrand;
@Schema(name = "categoryId", title = "商品分类id")
private Long categoryId;
@Schema(name = "skuId", title = "商品sku编号")
private Long skuId;
@Schema(name = "skuName", title = "商品sku名字")
private String skuName;
@Schema(name = "skuPic", title = "商品sku图片")
private String skuPic;
@Schema(name = "skuPrice", title = "商品sku价格")
private BigDecimal skuPrice;
@Schema(name = "skuQuantity", title = "商品购买的数量")
private Integer skuQuantity;
@Schema(name = "skuAttrsVals", title = "商品销售属性组合JSON")
private String skuAttrsVals;
@Schema(name = "promotionAmount", title = "商品促销分解金额")
private BigDecimal promotionAmount;
@Schema(name = "couponAmount", title = "优惠券优惠分解金额")
private BigDecimal couponAmount;
@Schema(name = "integrationAmount", title = "积分优惠分解金额")
private BigDecimal integrationAmount;
@Schema(name = "realAmount", title = "该商品经过优惠后的分解金额")
private BigDecimal realAmount;
@Schema(name = "giftIntegration", title = "赠送积分")
private Integer giftIntegration;
@Schema(name = "giftGrowth", title = "赠送成长值")
private Integer giftGrowth;
}

View File

@ -0,0 +1,35 @@
package com.mall.order.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "OrderOperateHistoryVO对象", title = "订单操作历史记录", description = "订单操作历史记录的VO对象")
public class OrderOperateHistoryVo {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "orderId", title = "订单id")
private Long orderId;
@Schema(name = "operateMan", title = "操作人[用户;系统;后台管理员]")
private String operateMan;
@Schema(name = "createTime", title = "操作时间")
private LocalDateTime createTime;
@Schema(name = "orderStatus", title = "订单状态【0->待付款1->待发货2->已发货3->已完成4->已关闭5->无效订单】")
private Integer orderStatus;
@Schema(name = "note", title = "备注")
private String note;
}

View File

@ -0,0 +1,102 @@
package com.mall.order.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "OrderReturnApplyVO对象", title = "订单退货申请", description = "订单退货申请的VO对象")
public class OrderReturnApplyVo {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "orderId", title = "order_id")
private Long orderId;
@Schema(name = "skuId", title = "退货商品id")
private Long skuId;
@Schema(name = "orderSn", title = "订单编号")
private String orderSn;
@Schema(name = "createTime", title = "申请时间")
private LocalDateTime createTime;
@Schema(name = "memberUsername", title = "会员用户名")
private String memberUsername;
@Schema(name = "returnAmount", title = "退款金额")
private BigDecimal returnAmount;
@Schema(name = "returnName", title = "退货人姓名")
private String returnName;
@Schema(name = "returnPhone", title = "退货人电话")
private String returnPhone;
@Schema(name = "status", title = "申请状态[0->待处理1->退货中2->已完成3->已拒绝]")
private Boolean status;
@Schema(name = "handleTime", title = "处理时间")
private LocalDateTime handleTime;
@Schema(name = "skuImg", title = "商品图片")
private String skuImg;
@Schema(name = "skuName", title = "商品名称")
private String skuName;
@Schema(name = "skuBrand", title = "商品品牌")
private String skuBrand;
@Schema(name = "skuAttrsVals", title = "商品销售属性(JSON)")
private String skuAttrsVals;
@Schema(name = "skuCount", title = "退货数量")
private Integer skuCount;
@Schema(name = "skuPrice", title = "商品单价")
private BigDecimal skuPrice;
@Schema(name = "skuRealPrice", title = "商品实际支付单价")
private BigDecimal skuRealPrice;
@Schema(name = "reason", title = "原因")
private String reason;
@Schema(name = "description述", title = "描述")
private String description述;
@Schema(name = "descPics", title = "凭证图片,以逗号隔开")
private String descPics;
@Schema(name = "handleNote", title = "处理备注")
private String handleNote;
@Schema(name = "handleMan", title = "处理人员")
private String handleMan;
@Schema(name = "receiveMan", title = "收货人")
private String receiveMan;
@Schema(name = "receiveTime", title = "收货时间")
private LocalDateTime receiveTime;
@Schema(name = "receiveNote", title = "收货备注")
private String receiveNote;
@Schema(name = "receivePhone", title = "收货电话")
private String receivePhone;
@Schema(name = "companyAddress", title = "公司收货地址")
private String companyAddress;
}

View File

@ -0,0 +1,32 @@
package com.mall.order.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "OrderReturnReasonVO对象", title = "退货原因", description = "退货原因的VO对象")
public class OrderReturnReasonVo {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "name", title = "退货原因名")
private String name;
@Schema(name = "sort", title = "排序")
private Integer sort;
@Schema(name = "status", title = "启用状态")
private Boolean status;
@Schema(name = "createTime", title = "create_time")
private LocalDateTime createTime;
}

View File

@ -0,0 +1,36 @@
package com.mall.order.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "OrderSettingVO对象", title = "订单配置信息", description = "订单配置信息的VO对象")
public class OrderSettingVo {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "flashOrderOvertime", title = "秒杀订单超时关闭时间(分)")
private Integer flashOrderOvertime;
@Schema(name = "normalOrderOvertime", title = "正常订单超时时间(分)")
private Integer normalOrderOvertime;
@Schema(name = "confirmOvertime", title = "发货后自动确认收货时间(天)")
private Integer confirmOvertime;
@Schema(name = "finishOvertime", title = "自动完成交易时间,不能申请退货(天)")
private Integer finishOvertime;
@Schema(name = "commentOvertime", title = "订单完成后自动好评时间(天)")
private Integer commentOvertime;
@Schema(name = "memberLevel", title = "会员等级【0-不限会员等级,全部通用;其他-对应的其他会员等级】")
private Integer memberLevel;
}

View File

@ -0,0 +1,144 @@
package com.mall.order.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "OrderVO对象", title = "订单", description = "订单的VO对象")
public class OrderVo {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "memberId", title = "member_id")
private Long memberId;
@Schema(name = "orderSn", title = "订单号")
private String orderSn;
@Schema(name = "couponId", title = "使用的优惠券")
private Long couponId;
@Schema(name = "createTime", title = "create_time")
private LocalDateTime createTime;
@Schema(name = "memberUsername", title = "用户名")
private String memberUsername;
@Schema(name = "totalAmount", title = "订单总额")
private BigDecimal totalAmount;
@Schema(name = "payAmount", title = "应付总额")
private BigDecimal payAmount;
@Schema(name = "freightAmount", title = "运费金额")
private BigDecimal freightAmount;
@Schema(name = "promotionAmount", title = "促销优化金额(促销价、满减、阶梯价)")
private BigDecimal promotionAmount;
@Schema(name = "integrationAmount", title = "积分抵扣金额")
private BigDecimal integrationAmount;
@Schema(name = "couponAmount", title = "优惠券抵扣金额")
private BigDecimal couponAmount;
@Schema(name = "discountAmount", title = "后台调整订单使用的折扣金额")
private BigDecimal discountAmount;
@Schema(name = "payType", title = "支付方式【1->支付宝2->微信3->银联; 4->货到付款;】")
private Integer payType;
@Schema(name = "sourceType", title = "订单来源[0->PC订单1->app订单]")
private Integer sourceType;
@Schema(name = "status", title = "订单状态【0->待付款1->待发货2->已发货3->已完成4->已关闭5->无效订单】")
private Integer status;
@Schema(name = "deliveryCompany", title = "物流公司(配送方式)")
private String deliveryCompany;
@Schema(name = "deliverySn", title = "物流单号")
private String deliverySn;
@Schema(name = "autoConfirmDay", title = "自动确认时间(天)")
private Integer autoConfirmDay;
@Schema(name = "integration", title = "可以获得的积分")
private Integer integration;
@Schema(name = "growth", title = "可以获得的成长值")
private Integer growth;
@Schema(name = "billType", title = "发票类型[0->不开发票1->电子发票2->纸质发票]")
private Integer billType;
@Schema(name = "billHeader", title = "发票抬头")
private String billHeader;
@Schema(name = "billContent", title = "发票内容")
private String billContent;
@Schema(name = "billReceiverPhone", title = "收票人电话")
private String billReceiverPhone;
@Schema(name = "billReceiverEmail", title = "收票人邮箱")
private String billReceiverEmail;
@Schema(name = "receiverName", title = "收货人姓名")
private String receiverName;
@Schema(name = "receiverPhone", title = "收货人电话")
private String receiverPhone;
@Schema(name = "receiverPostCode", title = "收货人邮编")
private String receiverPostCode;
@Schema(name = "receiverProvince", title = "省份/直辖市")
private String receiverProvince;
@Schema(name = "receiverCity", title = "城市")
private String receiverCity;
@Schema(name = "receiverRegion", title = "")
private String receiverRegion;
@Schema(name = "receiverDetailAddress", title = "详细地址")
private String receiverDetailAddress;
@Schema(name = "note", title = "订单备注")
private String note;
@Schema(name = "confirmStatus", title = "确认收货状态[0->未确认1->已确认]")
private Integer confirmStatus;
@Schema(name = "deleteStatus", title = "删除状态【0->未删除1->已删除】")
private Integer deleteStatus;
@Schema(name = "useIntegration", title = "下单时使用的积分")
private Integer useIntegration;
@Schema(name = "paymentTime", title = "支付时间")
private LocalDateTime paymentTime;
@Schema(name = "deliveryTime", title = "发货时间")
private LocalDateTime deliveryTime;
@Schema(name = "receiveTime", title = "确认收货时间")
private LocalDateTime receiveTime;
@Schema(name = "commentTime", title = "评价时间")
private LocalDateTime commentTime;
@Schema(name = "modifyTime", title = "修改时间")
private LocalDateTime modifyTime;
}

View File

@ -0,0 +1,51 @@
package com.mall.order.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "PaymentInfoVO对象", title = "支付信息表", description = "支付信息表的VO对象")
public class PaymentInfoVo {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "orderSn", title = "订单号(对外业务号)")
private String orderSn;
@Schema(name = "orderId", title = "订单id")
private Long orderId;
@Schema(name = "alipayTradeNo", title = "支付宝交易流水号")
private String alipayTradeNo;
@Schema(name = "totalAmount", title = "支付总金额")
private BigDecimal totalAmount;
@Schema(name = "subject", title = "交易内容")
private String subject;
@Schema(name = "paymentStatus", title = "支付状态")
private String paymentStatus;
@Schema(name = "createTime", title = "创建时间")
private LocalDateTime createTime;
@Schema(name = "confirmTime", title = "确认时间")
private LocalDateTime confirmTime;
@Schema(name = "callbackContent", title = "回调内容")
private String callbackContent;
@Schema(name = "callbackTime", title = "回调时间")
private LocalDateTime callbackTime;
}

View File

@ -0,0 +1,38 @@
package com.mall.order.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "RefundInfoVO对象", title = "退款信息", description = "退款信息的VO对象")
public class RefundInfoVo {
@Schema(name = "id", title = "id")
private Long id;
@Schema(name = "orderReturnId", title = "退款的订单")
private Long orderReturnId;
@Schema(name = "refund", title = "退款金额")
private BigDecimal refund;
@Schema(name = "refundSn", title = "退款交易流水号")
private String refundSn;
@Schema(name = "refundStatus", title = "退款状态")
private Boolean refundStatus;
@Schema(name = "refundChannel", title = "退款渠道[1-支付宝2-微信3-银联4-汇款]")
private Integer refundChannel;
@Schema(name = "refundContent", title = "")
private String refundContent;
}

View File

@ -0,0 +1,32 @@
package com.mall.order.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.order.domain.dto.MqMessageDto;
import com.mall.order.domain.entity.MqMessage;
import com.mall.order.domain.vo.MqMessageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* Mapper 接口
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Mapper
public interface MqMessageMapper extends BaseMapper<MqMessage> {
/**
* * 分页查询内容
*
* @param pageParams 分页参数
* @param dto 查询表单
* @return 分页结果
*/
IPage<MqMessageVo> selectListByPage(@Param("page") Page<MqMessage> pageParams, @Param("dto") MqMessageDto dto);
}

View File

@ -0,0 +1,32 @@
package com.mall.order.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.order.domain.dto.OrderItemDto;
import com.mall.order.domain.entity.OrderItem;
import com.mall.order.domain.vo.OrderItemVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* 订单项信息 Mapper 接口
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Mapper
public interface OrderItemMapper extends BaseMapper<OrderItem> {
/**
* * 分页查询订单项信息内容
*
* @param pageParams 订单项信息分页参数
* @param dto 订单项信息查询表单
* @return 订单项信息分页结果
*/
IPage<OrderItemVo> selectListByPage(@Param("page") Page<OrderItem> pageParams, @Param("dto") OrderItemDto dto);
}

View File

@ -0,0 +1,32 @@
package com.mall.order.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.order.domain.dto.OrderDto;
import com.mall.order.domain.entity.Order;
import com.mall.order.domain.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* 订单 Mapper 接口
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Mapper
public interface OrderMapper extends BaseMapper<Order> {
/**
* * 分页查询订单内容
*
* @param pageParams 订单分页参数
* @param dto 订单查询表单
* @return 订单分页结果
*/
IPage<OrderVo> selectListByPage(@Param("page") Page<Order> pageParams, @Param("dto") OrderDto dto);
}

View File

@ -0,0 +1,32 @@
package com.mall.order.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.order.domain.dto.OrderOperateHistoryDto;
import com.mall.order.domain.entity.OrderOperateHistory;
import com.mall.order.domain.vo.OrderOperateHistoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* 订单操作历史记录 Mapper 接口
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Mapper
public interface OrderOperateHistoryMapper extends BaseMapper<OrderOperateHistory> {
/**
* * 分页查询订单操作历史记录内容
*
* @param pageParams 订单操作历史记录分页参数
* @param dto 订单操作历史记录查询表单
* @return 订单操作历史记录分页结果
*/
IPage<OrderOperateHistoryVo> selectListByPage(@Param("page") Page<OrderOperateHistory> pageParams, @Param("dto") OrderOperateHistoryDto dto);
}

View File

@ -0,0 +1,32 @@
package com.mall.order.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.order.domain.dto.OrderReturnApplyDto;
import com.mall.order.domain.entity.OrderReturnApply;
import com.mall.order.domain.vo.OrderReturnApplyVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* 订单退货申请 Mapper 接口
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Mapper
public interface OrderReturnApplyMapper extends BaseMapper<OrderReturnApply> {
/**
* * 分页查询订单退货申请内容
*
* @param pageParams 订单退货申请分页参数
* @param dto 订单退货申请查询表单
* @return 订单退货申请分页结果
*/
IPage<OrderReturnApplyVo> selectListByPage(@Param("page") Page<OrderReturnApply> pageParams, @Param("dto") OrderReturnApplyDto dto);
}

View File

@ -0,0 +1,32 @@
package com.mall.order.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.order.domain.dto.OrderReturnReasonDto;
import com.mall.order.domain.entity.OrderReturnReason;
import com.mall.order.domain.vo.OrderReturnReasonVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* 退货原因 Mapper 接口
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Mapper
public interface OrderReturnReasonMapper extends BaseMapper<OrderReturnReason> {
/**
* * 分页查询退货原因内容
*
* @param pageParams 退货原因分页参数
* @param dto 退货原因查询表单
* @return 退货原因分页结果
*/
IPage<OrderReturnReasonVo> selectListByPage(@Param("page") Page<OrderReturnReason> pageParams, @Param("dto") OrderReturnReasonDto dto);
}

View File

@ -0,0 +1,32 @@
package com.mall.order.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.order.domain.dto.OrderSettingDto;
import com.mall.order.domain.entity.OrderSetting;
import com.mall.order.domain.vo.OrderSettingVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* 订单配置信息 Mapper 接口
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Mapper
public interface OrderSettingMapper extends BaseMapper<OrderSetting> {
/**
* * 分页查询订单配置信息内容
*
* @param pageParams 订单配置信息分页参数
* @param dto 订单配置信息查询表单
* @return 订单配置信息分页结果
*/
IPage<OrderSettingVo> selectListByPage(@Param("page") Page<OrderSetting> pageParams, @Param("dto") OrderSettingDto dto);
}

View File

@ -0,0 +1,32 @@
package com.mall.order.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.order.domain.dto.PaymentInfoDto;
import com.mall.order.domain.entity.PaymentInfo;
import com.mall.order.domain.vo.PaymentInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* 支付信息表 Mapper 接口
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Mapper
public interface PaymentInfoMapper extends BaseMapper<PaymentInfo> {
/**
* * 分页查询支付信息表内容
*
* @param pageParams 支付信息表分页参数
* @param dto 支付信息表查询表单
* @return 支付信息表分页结果
*/
IPage<PaymentInfoVo> selectListByPage(@Param("page") Page<PaymentInfo> pageParams, @Param("dto") PaymentInfoDto dto);
}

View File

@ -0,0 +1,32 @@
package com.mall.order.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.order.domain.dto.RefundInfoDto;
import com.mall.order.domain.entity.RefundInfo;
import com.mall.order.domain.vo.RefundInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* 退款信息 Mapper 接口
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Mapper
public interface RefundInfoMapper extends BaseMapper<RefundInfo> {
/**
* * 分页查询退款信息内容
*
* @param pageParams 退款信息分页参数
* @param dto 退款信息查询表单
* @return 退款信息分页结果
*/
IPage<RefundInfoVo> selectListByPage(@Param("page") Page<RefundInfo> pageParams, @Param("dto") RefundInfoDto dto);
}

View File

@ -0,0 +1,49 @@
package com.mall.order.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.MqMessageDto;
import com.mall.order.domain.entity.MqMessage;
import com.mall.order.domain.vo.MqMessageVo;
import java.util.List;
/**
* <p>
* 服务类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
public interface MqMessageService extends IService<MqMessage> {
/**
* 分页查询
*
* @return {@link MqMessageVo}
*/
PageResult<MqMessageVo> getMqMessagePage(Page<MqMessage> pageParams, MqMessageDto dto);
/**
* 添加
*
* @param dto {@link MqMessageDto} 添加表单
*/
void addMqMessage(MqMessageDto dto);
/**
* 更新
*
* @param dto {@link MqMessageDto} 更新表单
*/
void updateMqMessage(MqMessageDto dto);
/**
* 删除|批量删除类型
*
* @param ids 删除id列表
*/
void deleteMqMessage(List<Long> ids);
}

View File

@ -0,0 +1,49 @@
package com.mall.order.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderItemDto;
import com.mall.order.domain.entity.OrderItem;
import com.mall.order.domain.vo.OrderItemVo;
import java.util.List;
/**
* <p>
* 订单项信息 服务类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
public interface OrderItemService extends IService<OrderItem> {
/**
* 分页查询订单项信息
*
* @return {@link OrderItemVo}
*/
PageResult<OrderItemVo> getOrderItemPage(Page<OrderItem> pageParams, OrderItemDto dto);
/**
* 添加订单项信息
*
* @param dto {@link OrderItemDto} 添加表单
*/
void addOrderItem(OrderItemDto dto);
/**
* 更新订单项信息
*
* @param dto {@link OrderItemDto} 更新表单
*/
void updateOrderItem(OrderItemDto dto);
/**
* 删除|批量删除订单项信息类型
*
* @param ids 删除id列表
*/
void deleteOrderItem(List<Long> ids);
}

View File

@ -0,0 +1,49 @@
package com.mall.order.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderOperateHistoryDto;
import com.mall.order.domain.entity.OrderOperateHistory;
import com.mall.order.domain.vo.OrderOperateHistoryVo;
import java.util.List;
/**
* <p>
* 订单操作历史记录 服务类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
public interface OrderOperateHistoryService extends IService<OrderOperateHistory> {
/**
* 分页查询订单操作历史记录
*
* @return {@link OrderOperateHistoryVo}
*/
PageResult<OrderOperateHistoryVo> getOrderOperateHistoryPage(Page<OrderOperateHistory> pageParams, OrderOperateHistoryDto dto);
/**
* 添加订单操作历史记录
*
* @param dto {@link OrderOperateHistoryDto} 添加表单
*/
void addOrderOperateHistory(OrderOperateHistoryDto dto);
/**
* 更新订单操作历史记录
*
* @param dto {@link OrderOperateHistoryDto} 更新表单
*/
void updateOrderOperateHistory(OrderOperateHistoryDto dto);
/**
* 删除|批量删除订单操作历史记录类型
*
* @param ids 删除id列表
*/
void deleteOrderOperateHistory(List<Long> ids);
}

View File

@ -0,0 +1,50 @@
package com.mall.order.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderReturnApplyDto;
import com.mall.order.domain.entity.OrderReturnApply;
import com.mall.order.domain.vo.OrderReturnApplyVo;
import java.util.List;
/**
* <p>
* 订单退货申请 服务类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
public interface OrderReturnApplyService extends IService<OrderReturnApply> {
/**
* 分页查询订单退货申请
*
* @return {@link OrderReturnApplyVo}
*/
PageResult<OrderReturnApplyVo> getOrderReturnApplyPage(Page<OrderReturnApply> pageParams, OrderReturnApplyDto dto);
/**
* 添加订单退货申请
*
* @param dto {@link OrderReturnApplyDto} 添加表单
*/
void addOrderReturnApply(OrderReturnApplyDto dto);
/**
* 更新订单退货申请
*
* @param dto {@link OrderReturnApplyDto} 更新表单
*/
void updateOrderReturnApply(OrderReturnApplyDto dto);
/**
* 删除|批量删除订单退货申请类型
*
* @param ids 删除id列表
*/
void deleteOrderReturnApply(List<Long> ids);
}

View File

@ -0,0 +1,50 @@
package com.mall.order.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderReturnReasonDto;
import com.mall.order.domain.entity.OrderReturnReason;
import com.mall.order.domain.vo.OrderReturnReasonVo;
import java.util.List;
/**
* <p>
* 退货原因 服务类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
public interface OrderReturnReasonService extends IService<OrderReturnReason> {
/**
* 分页查询退货原因
*
* @return {@link OrderReturnReasonVo}
*/
PageResult<OrderReturnReasonVo> getOrderReturnReasonPage(Page<OrderReturnReason> pageParams, OrderReturnReasonDto dto);
/**
* 添加退货原因
*
* @param dto {@link OrderReturnReasonDto} 添加表单
*/
void addOrderReturnReason(OrderReturnReasonDto dto);
/**
* 更新退货原因
*
* @param dto {@link OrderReturnReasonDto} 更新表单
*/
void updateOrderReturnReason(OrderReturnReasonDto dto);
/**
* 删除|批量删除退货原因类型
*
* @param ids 删除id列表
*/
void deleteOrderReturnReason(List<Long> ids);
}

View File

@ -0,0 +1,49 @@
package com.mall.order.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderDto;
import com.mall.order.domain.entity.Order;
import com.mall.order.domain.vo.OrderVo;
import java.util.List;
/**
* <p>
* 订单 服务类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
public interface OrderService extends IService<Order> {
/**
* 分页查询订单
*
* @return {@link OrderVo}
*/
PageResult<OrderVo> getOrderPage(Page<Order> pageParams, OrderDto dto);
/**
* 添加订单
*
* @param dto {@link OrderDto} 添加表单
*/
void addOrder(OrderDto dto);
/**
* 更新订单
*
* @param dto {@link OrderDto} 更新表单
*/
void updateOrder(OrderDto dto);
/**
* 删除|批量删除订单类型
*
* @param ids 删除id列表
*/
void deleteOrder(List<Long> ids);
}

View File

@ -0,0 +1,50 @@
package com.mall.order.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderSettingDto;
import com.mall.order.domain.entity.OrderSetting;
import com.mall.order.domain.vo.OrderSettingVo;
import java.util.List;
/**
* <p>
* 订单配置信息 服务类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
public interface OrderSettingService extends IService<OrderSetting> {
/**
* 分页查询订单配置信息
*
* @return {@link OrderSettingVo}
*/
PageResult<OrderSettingVo> getOrderSettingPage(Page<OrderSetting> pageParams, OrderSettingDto dto);
/**
* 添加订单配置信息
*
* @param dto {@link OrderSettingDto} 添加表单
*/
void addOrderSetting(OrderSettingDto dto);
/**
* 更新订单配置信息
*
* @param dto {@link OrderSettingDto} 更新表单
*/
void updateOrderSetting(OrderSettingDto dto);
/**
* 删除|批量删除订单配置信息类型
*
* @param ids 删除id列表
*/
void deleteOrderSetting(List<Long> ids);
}

View File

@ -0,0 +1,50 @@
package com.mall.order.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.PaymentInfoDto;
import com.mall.order.domain.entity.PaymentInfo;
import com.mall.order.domain.vo.PaymentInfoVo;
import java.util.List;
/**
* <p>
* 支付信息表 服务类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
public interface PaymentInfoService extends IService<PaymentInfo> {
/**
* 分页查询支付信息表
*
* @return {@link PaymentInfoVo}
*/
PageResult<PaymentInfoVo> getPaymentInfoPage(Page<PaymentInfo> pageParams, PaymentInfoDto dto);
/**
* 添加支付信息表
*
* @param dto {@link PaymentInfoDto} 添加表单
*/
void addPaymentInfo(PaymentInfoDto dto);
/**
* 更新支付信息表
*
* @param dto {@link PaymentInfoDto} 更新表单
*/
void updatePaymentInfo(PaymentInfoDto dto);
/**
* 删除|批量删除支付信息表类型
*
* @param ids 删除id列表
*/
void deletePaymentInfo(List<Long> ids);
}

View File

@ -0,0 +1,50 @@
package com.mall.order.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.RefundInfoDto;
import com.mall.order.domain.entity.RefundInfo;
import com.mall.order.domain.vo.RefundInfoVo;
import java.util.List;
/**
* <p>
* 退款信息 服务类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
public interface RefundInfoService extends IService<RefundInfo> {
/**
* 分页查询退款信息
*
* @return {@link RefundInfoVo}
*/
PageResult<RefundInfoVo> getRefundInfoPage(Page<RefundInfo> pageParams, RefundInfoDto dto);
/**
* 添加退款信息
*
* @param dto {@link RefundInfoDto} 添加表单
*/
void addRefundInfo(RefundInfoDto dto);
/**
* 更新退款信息
*
* @param dto {@link RefundInfoDto} 更新表单
*/
void updateRefundInfo(RefundInfoDto dto);
/**
* 删除|批量删除退款信息类型
*
* @param ids 删除id列表
*/
void deleteRefundInfo(List<Long> ids);
}

View File

@ -0,0 +1,82 @@
package com.mall.order.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.MqMessageDto;
import com.mall.order.domain.entity.MqMessage;
import com.mall.order.domain.vo.MqMessageVo;
import com.mall.order.mapper.MqMessageMapper;
import com.mall.order.service.MqMessageService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
* 服务实现类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Service
@Transactional
public class MqMessageServiceImpl extends ServiceImpl<MqMessageMapper, MqMessage> implements MqMessageService {
/**
* * 服务实现类
*
* @param pageParams 分页查询page对象
* @param dto 分页查询对象
* @return 查询分页返回对象
*/
@Override
public PageResult<MqMessageVo> getMqMessagePage(Page<MqMessage> pageParams, MqMessageDto dto) {
IPage<MqMessageVo> page = baseMapper.selectListByPage(pageParams, dto);
return PageResult.<MqMessageVo>builder()
.list(page.getRecords())
.pageNo(page.getCurrent())
.pageSize(page.getSize())
.total(page.getTotal())
.build();
}
/**
* 添加
*
* @param dto 添加
*/
@Override
public void addMqMessage(MqMessageDto dto) {
MqMessage mqMessage = new MqMessage();
BeanUtils.copyProperties(dto, mqMessage);
save(mqMessage);
}
/**
* 更新
*
* @param dto 更新
*/
@Override
public void updateMqMessage(MqMessageDto dto) {
MqMessage mqMessage = new MqMessage();
BeanUtils.copyProperties(dto, mqMessage);
updateById(mqMessage);
}
/**
* 删除|批量删除
*
* @param ids 删除id列表
*/
@Override
public void deleteMqMessage(List<Long> ids) {
removeByIds(ids);
}
}

View File

@ -0,0 +1,82 @@
package com.mall.order.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderItemDto;
import com.mall.order.domain.entity.OrderItem;
import com.mall.order.domain.vo.OrderItemVo;
import com.mall.order.mapper.OrderItemMapper;
import com.mall.order.service.OrderItemService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
* 订单项信息 服务实现类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Service
@Transactional
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem> implements OrderItemService {
/**
* * 订单项信息 服务实现类
*
* @param pageParams 订单项信息分页查询page对象
* @param dto 订单项信息分页查询对象
* @return 查询分页订单项信息返回对象
*/
@Override
public PageResult<OrderItemVo> getOrderItemPage(Page<OrderItem> pageParams, OrderItemDto dto) {
IPage<OrderItemVo> page = baseMapper.selectListByPage(pageParams, dto);
return PageResult.<OrderItemVo>builder()
.list(page.getRecords())
.pageNo(page.getCurrent())
.pageSize(page.getSize())
.total(page.getTotal())
.build();
}
/**
* 添加订单项信息
*
* @param dto 订单项信息添加
*/
@Override
public void addOrderItem(OrderItemDto dto) {
OrderItem orderItem = new OrderItem();
BeanUtils.copyProperties(dto, orderItem);
save(orderItem);
}
/**
* 更新订单项信息
*
* @param dto 订单项信息更新
*/
@Override
public void updateOrderItem(OrderItemDto dto) {
OrderItem orderItem = new OrderItem();
BeanUtils.copyProperties(dto, orderItem);
updateById(orderItem);
}
/**
* 删除|批量删除订单项信息
*
* @param ids 删除id列表
*/
@Override
public void deleteOrderItem(List<Long> ids) {
removeByIds(ids);
}
}

View File

@ -0,0 +1,83 @@
package com.mall.order.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderOperateHistoryDto;
import com.mall.order.domain.entity.OrderOperateHistory;
import com.mall.order.domain.vo.OrderOperateHistoryVo;
import com.mall.order.mapper.OrderOperateHistoryMapper;
import com.mall.order.service.OrderOperateHistoryService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
* 订单操作历史记录 服务实现类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Service
@Transactional
public class OrderOperateHistoryServiceImpl extends ServiceImpl<OrderOperateHistoryMapper, OrderOperateHistory> implements OrderOperateHistoryService {
/**
* * 订单操作历史记录 服务实现类
*
* @param pageParams 订单操作历史记录分页查询page对象
* @param dto 订单操作历史记录分页查询对象
* @return 查询分页订单操作历史记录返回对象
*/
@Override
public PageResult<OrderOperateHistoryVo> getOrderOperateHistoryPage(Page<OrderOperateHistory> pageParams, OrderOperateHistoryDto dto) {
IPage<OrderOperateHistoryVo> page = baseMapper.selectListByPage(pageParams, dto);
return PageResult.<OrderOperateHistoryVo>builder()
.list(page.getRecords())
.pageNo(page.getCurrent())
.pageSize(page.getSize())
.total(page.getTotal())
.build();
}
/**
* 添加订单操作历史记录
*
* @param dto 订单操作历史记录添加
*/
@Override
public void addOrderOperateHistory(OrderOperateHistoryDto dto) {
OrderOperateHistory orderOperateHistory = new OrderOperateHistory();
BeanUtils.copyProperties(dto, orderOperateHistory);
save(orderOperateHistory);
}
/**
* 更新订单操作历史记录
*
* @param dto 订单操作历史记录更新
*/
@Override
public void updateOrderOperateHistory(OrderOperateHistoryDto dto) {
OrderOperateHistory orderOperateHistory = new OrderOperateHistory();
BeanUtils.copyProperties(dto, orderOperateHistory);
updateById(orderOperateHistory);
}
/**
* 删除|批量删除订单操作历史记录
*
* @param ids 删除id列表
*/
@Override
public void deleteOrderOperateHistory(List<Long> ids) {
removeByIds(ids);
}
}

View File

@ -0,0 +1,83 @@
package com.mall.order.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderReturnApplyDto;
import com.mall.order.domain.entity.OrderReturnApply;
import com.mall.order.domain.vo.OrderReturnApplyVo;
import com.mall.order.mapper.OrderReturnApplyMapper;
import com.mall.order.service.OrderReturnApplyService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
* 订单退货申请 服务实现类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Service
@Transactional
public class OrderReturnApplyServiceImpl extends ServiceImpl<OrderReturnApplyMapper, OrderReturnApply> implements OrderReturnApplyService {
/**
* * 订单退货申请 服务实现类
*
* @param pageParams 订单退货申请分页查询page对象
* @param dto 订单退货申请分页查询对象
* @return 查询分页订单退货申请返回对象
*/
@Override
public PageResult<OrderReturnApplyVo> getOrderReturnApplyPage(Page<OrderReturnApply> pageParams, OrderReturnApplyDto dto) {
IPage<OrderReturnApplyVo> page = baseMapper.selectListByPage(pageParams, dto);
return PageResult.<OrderReturnApplyVo>builder()
.list(page.getRecords())
.pageNo(page.getCurrent())
.pageSize(page.getSize())
.total(page.getTotal())
.build();
}
/**
* 添加订单退货申请
*
* @param dto 订单退货申请添加
*/
@Override
public void addOrderReturnApply(OrderReturnApplyDto dto) {
OrderReturnApply orderReturnApply = new OrderReturnApply();
BeanUtils.copyProperties(dto, orderReturnApply);
save(orderReturnApply);
}
/**
* 更新订单退货申请
*
* @param dto 订单退货申请更新
*/
@Override
public void updateOrderReturnApply(OrderReturnApplyDto dto) {
OrderReturnApply orderReturnApply = new OrderReturnApply();
BeanUtils.copyProperties(dto, orderReturnApply);
updateById(orderReturnApply);
}
/**
* 删除|批量删除订单退货申请
*
* @param ids 删除id列表
*/
@Override
public void deleteOrderReturnApply(List<Long> ids) {
removeByIds(ids);
}
}

View File

@ -0,0 +1,83 @@
package com.mall.order.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderReturnReasonDto;
import com.mall.order.domain.entity.OrderReturnReason;
import com.mall.order.domain.vo.OrderReturnReasonVo;
import com.mall.order.mapper.OrderReturnReasonMapper;
import com.mall.order.service.OrderReturnReasonService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
* 退货原因 服务实现类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Service
@Transactional
public class OrderReturnReasonServiceImpl extends ServiceImpl<OrderReturnReasonMapper, OrderReturnReason> implements OrderReturnReasonService {
/**
* * 退货原因 服务实现类
*
* @param pageParams 退货原因分页查询page对象
* @param dto 退货原因分页查询对象
* @return 查询分页退货原因返回对象
*/
@Override
public PageResult<OrderReturnReasonVo> getOrderReturnReasonPage(Page<OrderReturnReason> pageParams, OrderReturnReasonDto dto) {
IPage<OrderReturnReasonVo> page = baseMapper.selectListByPage(pageParams, dto);
return PageResult.<OrderReturnReasonVo>builder()
.list(page.getRecords())
.pageNo(page.getCurrent())
.pageSize(page.getSize())
.total(page.getTotal())
.build();
}
/**
* 添加退货原因
*
* @param dto 退货原因添加
*/
@Override
public void addOrderReturnReason(OrderReturnReasonDto dto) {
OrderReturnReason orderReturnReason = new OrderReturnReason();
BeanUtils.copyProperties(dto, orderReturnReason);
save(orderReturnReason);
}
/**
* 更新退货原因
*
* @param dto 退货原因更新
*/
@Override
public void updateOrderReturnReason(OrderReturnReasonDto dto) {
OrderReturnReason orderReturnReason = new OrderReturnReason();
BeanUtils.copyProperties(dto, orderReturnReason);
updateById(orderReturnReason);
}
/**
* 删除|批量删除退货原因
*
* @param ids 删除id列表
*/
@Override
public void deleteOrderReturnReason(List<Long> ids) {
removeByIds(ids);
}
}

View File

@ -0,0 +1,83 @@
package com.mall.order.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderDto;
import com.mall.order.domain.entity.Order;
import com.mall.order.domain.vo.OrderVo;
import com.mall.order.mapper.OrderMapper;
import com.mall.order.service.OrderService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
* 订单 服务实现类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Service
@Transactional
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
/**
* * 订单 服务实现类
*
* @param pageParams 订单分页查询page对象
* @param dto 订单分页查询对象
* @return 查询分页订单返回对象
*/
@Override
public PageResult<OrderVo> getOrderPage(Page<Order> pageParams, OrderDto dto) {
IPage<OrderVo> page = baseMapper.selectListByPage(pageParams, dto);
return PageResult.<OrderVo>builder()
.list(page.getRecords())
.pageNo(page.getCurrent())
.pageSize(page.getSize())
.total(page.getTotal())
.build();
}
/**
* 添加订单
*
* @param dto 订单添加
*/
@Override
public void addOrder(OrderDto dto) {
Order order = new Order();
BeanUtils.copyProperties(dto, order);
save(order);
}
/**
* 更新订单
*
* @param dto 订单更新
*/
@Override
public void updateOrder(OrderDto dto) {
Order order = new Order();
BeanUtils.copyProperties(dto, order);
updateById(order);
}
/**
* 删除|批量删除订单
*
* @param ids 删除id列表
*/
@Override
public void deleteOrder(List<Long> ids) {
removeByIds(ids);
}
}

View File

@ -0,0 +1,82 @@
package com.mall.order.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.OrderSettingDto;
import com.mall.order.domain.entity.OrderSetting;
import com.mall.order.domain.vo.OrderSettingVo;
import com.mall.order.mapper.OrderSettingMapper;
import com.mall.order.service.OrderSettingService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
* 订单配置信息 服务实现类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Service
@Transactional
public class OrderSettingServiceImpl extends ServiceImpl<OrderSettingMapper, OrderSetting> implements OrderSettingService {
/**
* * 订单配置信息 服务实现类
*
* @param pageParams 订单配置信息分页查询page对象
* @param dto 订单配置信息分页查询对象
* @return 查询分页订单配置信息返回对象
*/
@Override
public PageResult<OrderSettingVo> getOrderSettingPage(Page<OrderSetting> pageParams, OrderSettingDto dto) {
IPage<OrderSettingVo> page = baseMapper.selectListByPage(pageParams, dto);
return PageResult.<OrderSettingVo>builder()
.list(page.getRecords())
.pageNo(page.getCurrent())
.pageSize(page.getSize())
.total(page.getTotal())
.build();
}
/**
* 添加订单配置信息
*
* @param dto 订单配置信息添加
*/
@Override
public void addOrderSetting(OrderSettingDto dto) {
OrderSetting orderSetting = new OrderSetting();
BeanUtils.copyProperties(dto, orderSetting);
save(orderSetting);
}
/**
* 更新订单配置信息
*
* @param dto 订单配置信息更新
*/
@Override
public void updateOrderSetting(OrderSettingDto dto) {
OrderSetting orderSetting = new OrderSetting();
BeanUtils.copyProperties(dto, orderSetting);
updateById(orderSetting);
}
/**
* 删除|批量删除订单配置信息
*
* @param ids 删除id列表
*/
@Override
public void deleteOrderSetting(List<Long> ids) {
removeByIds(ids);
}
}

View File

@ -0,0 +1,83 @@
package com.mall.order.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.PaymentInfoDto;
import com.mall.order.domain.entity.PaymentInfo;
import com.mall.order.domain.vo.PaymentInfoVo;
import com.mall.order.mapper.PaymentInfoMapper;
import com.mall.order.service.PaymentInfoService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
* 支付信息表 服务实现类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Service
@Transactional
public class PaymentInfoServiceImpl extends ServiceImpl<PaymentInfoMapper, PaymentInfo> implements PaymentInfoService {
/**
* * 支付信息表 服务实现类
*
* @param pageParams 支付信息表分页查询page对象
* @param dto 支付信息表分页查询对象
* @return 查询分页支付信息表返回对象
*/
@Override
public PageResult<PaymentInfoVo> getPaymentInfoPage(Page<PaymentInfo> pageParams, PaymentInfoDto dto) {
IPage<PaymentInfoVo> page = baseMapper.selectListByPage(pageParams, dto);
return PageResult.<PaymentInfoVo>builder()
.list(page.getRecords())
.pageNo(page.getCurrent())
.pageSize(page.getSize())
.total(page.getTotal())
.build();
}
/**
* 添加支付信息表
*
* @param dto 支付信息表添加
*/
@Override
public void addPaymentInfo(PaymentInfoDto dto) {
PaymentInfo paymentInfo = new PaymentInfo();
BeanUtils.copyProperties(dto, paymentInfo);
save(paymentInfo);
}
/**
* 更新支付信息表
*
* @param dto 支付信息表更新
*/
@Override
public void updatePaymentInfo(PaymentInfoDto dto) {
PaymentInfo paymentInfo = new PaymentInfo();
BeanUtils.copyProperties(dto, paymentInfo);
updateById(paymentInfo);
}
/**
* 删除|批量删除支付信息表
*
* @param ids 删除id列表
*/
@Override
public void deletePaymentInfo(List<Long> ids) {
removeByIds(ids);
}
}

View File

@ -0,0 +1,83 @@
package com.mall.order.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.common.domain.vo.result.PageResult;
import com.mall.order.domain.dto.RefundInfoDto;
import com.mall.order.domain.entity.RefundInfo;
import com.mall.order.domain.vo.RefundInfoVo;
import com.mall.order.mapper.RefundInfoMapper;
import com.mall.order.service.RefundInfoService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* <p>
* 退款信息 服务实现类
* </p>
*
* @author Bunny
* @since 2025-07-05 18:54:06
*/
@Service
@Transactional
public class RefundInfoServiceImpl extends ServiceImpl<RefundInfoMapper, RefundInfo> implements RefundInfoService {
/**
* * 退款信息 服务实现类
*
* @param pageParams 退款信息分页查询page对象
* @param dto 退款信息分页查询对象
* @return 查询分页退款信息返回对象
*/
@Override
public PageResult<RefundInfoVo> getRefundInfoPage(Page<RefundInfo> pageParams, RefundInfoDto dto) {
IPage<RefundInfoVo> page = baseMapper.selectListByPage(pageParams, dto);
return PageResult.<RefundInfoVo>builder()
.list(page.getRecords())
.pageNo(page.getCurrent())
.pageSize(page.getSize())
.total(page.getTotal())
.build();
}
/**
* 添加退款信息
*
* @param dto 退款信息添加
*/
@Override
public void addRefundInfo(RefundInfoDto dto) {
RefundInfo refundInfo = new RefundInfo();
BeanUtils.copyProperties(dto, refundInfo);
save(refundInfo);
}
/**
* 更新退款信息
*
* @param dto 退款信息更新
*/
@Override
public void updateRefundInfo(RefundInfoDto dto) {
RefundInfo refundInfo = new RefundInfo();
BeanUtils.copyProperties(dto, refundInfo);
updateById(refundInfo);
}
/**
* 删除|批量删除退款信息
*
* @param ids 删除id列表
*/
@Override
public void deleteRefundInfo(List<Long> ids) {
removeByIds(ids);
}
}

View File

@ -0,0 +1,7 @@
datasource:
master:
host: rm-bp12z6hlv46vi6g8mro.mysql.rds.aliyuncs.com
port: 3306
database: gulimall_oms
username: gulimall
password: "0212Gulimall"

View File

@ -0,0 +1,36 @@
server:
port: 8002
spring:
profiles:
active: dev
application:
name: service-order
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${datasource.master.host}:${datasource.master.port}/${datasource.master.database}?serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf-8&allowPublicKeyRetrieval=true
username: ${datasource.master.username}
password: ${datasource.master.password}
hikari:
maximum-pool-size: 20
connection-timeout: 30000
jackson:
date-format: yyyy-MM-dd HH:mm:ss
mybatis-plus:
mapper-locations: classpath:/mapper/*.xml
global-config:
db-config:
id-type: auto
logic-delete-value: 1
logic-not-delete-value: 0
logging:
file:
path: "logs/${spring.application.name}"
level:
com.mall.product: debug
root: info

View File

@ -0,0 +1,13 @@
,-----. ,--. ,--. ,--.,--.
| |) /_ ,--.,--.,--,--, ,--,--, ,--. ,--. | `.' | ,--,--.| || |
| .-. \| || || \| \ \ ' / | |'.'| |' ,-. || || |
| '--' /' '' '| || || || | \ ' | | | |\ '-' || || |
`------' `----' `--''--'`--''--'.-' / `--' `--' `--`--'`--'`--'
`---'
Service Name${spring.application.name}
SpringBoot Version: ${spring-boot.version}${spring-boot.formatted-version}
Spring Active${spring.profiles.active}

View File

@ -0,0 +1,55 @@
<?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="com.mall.order.mapper.MqMessageMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mall.order.domain.entity.MqMessage">
<id column="message_id" property="messageId"/>
<id column="content" property="content"/>
<id column="to_exchane" property="toExchane"/>
<id column="routing_key" property="routingKey"/>
<id column="class_type" property="classType"/>
<id column="message_status" property="messageStatus"/>
<id column="create_time" property="createTime"/>
<id column="update_time" property="updateTime"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
message_id,content,to_exchane,routing_key,class_type,message_status,create_time,update_time
</sql>
<!-- 分页查询内容 -->
<select id="selectListByPage" resultType="com.mall.order.domain.vo.MqMessageVo">
select
<include refid="Base_Column_List"/>
from mq_message
<where>
<if test="dto.messageId != null and dto.messageId != ''">
and message_id like CONCAT('%',#{dto.messageId},'%')
</if>
<if test="dto.content != null and dto.content != ''">
and content like CONCAT('%',#{dto.content},'%')
</if>
<if test="dto.toExchane != null and dto.toExchane != ''">
and to_exchane like CONCAT('%',#{dto.toExchane},'%')
</if>
<if test="dto.routingKey != null and dto.routingKey != ''">
and routing_key like CONCAT('%',#{dto.routingKey},'%')
</if>
<if test="dto.classType != null and dto.classType != ''">
and class_type like CONCAT('%',#{dto.classType},'%')
</if>
<if test="dto.messageStatus != null and dto.messageStatus != ''">
and message_status like CONCAT('%',#{dto.messageStatus},'%')
</if>
<if test="dto.createTime != null and dto.createTime != ''">
and create_time like CONCAT('%',#{dto.createTime},'%')
</if>
<if test="dto.updateTime != null and dto.updateTime != ''">
and update_time like CONCAT('%',#{dto.updateTime},'%')
</if>
</where>
</select>
</mapper>

View File

@ -0,0 +1,103 @@
<?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="com.mall.order.mapper.OrderItemMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mall.order.domain.entity.OrderItem">
<id column="id" property="id"/>
<id column="order_id" property="orderId"/>
<id column="order_sn" property="orderSn"/>
<id column="spu_id" property="spuId"/>
<id column="spu_name" property="spuName"/>
<id column="spu_pic" property="spuPic"/>
<id column="spu_brand" property="spuBrand"/>
<id column="category_id" property="categoryId"/>
<id column="sku_id" property="skuId"/>
<id column="sku_name" property="skuName"/>
<id column="sku_pic" property="skuPic"/>
<id column="sku_price" property="skuPrice"/>
<id column="sku_quantity" property="skuQuantity"/>
<id column="sku_attrs_vals" property="skuAttrsVals"/>
<id column="promotion_amount" property="promotionAmount"/>
<id column="coupon_amount" property="couponAmount"/>
<id column="integration_amount" property="integrationAmount"/>
<id column="real_amount" property="realAmount"/>
<id column="gift_integration" property="giftIntegration"/>
<id column="gift_growth" property="giftGrowth"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id,order_id,order_sn,spu_id,spu_name,spu_pic,spu_brand,category_id,sku_id,sku_name,sku_pic,sku_price,sku_quantity,sku_attrs_vals,promotion_amount,coupon_amount,integration_amount,real_amount,gift_integration,gift_growth
</sql>
<!-- 分页查询订单项信息内容 -->
<select id="selectListByPage" resultType="com.mall.order.domain.vo.OrderItemVo">
select
<include refid="Base_Column_List"/>
from oms_order_item
<where>
<if test="dto.id != null and dto.id != ''">
and id like CONCAT('%',#{dto.id},'%')
</if>
<if test="dto.orderId != null and dto.orderId != ''">
and order_id like CONCAT('%',#{dto.orderId},'%')
</if>
<if test="dto.orderSn != null and dto.orderSn != ''">
and order_sn like CONCAT('%',#{dto.orderSn},'%')
</if>
<if test="dto.spuId != null and dto.spuId != ''">
and spu_id like CONCAT('%',#{dto.spuId},'%')
</if>
<if test="dto.spuName != null and dto.spuName != ''">
and spu_name like CONCAT('%',#{dto.spuName},'%')
</if>
<if test="dto.spuPic != null and dto.spuPic != ''">
and spu_pic like CONCAT('%',#{dto.spuPic},'%')
</if>
<if test="dto.spuBrand != null and dto.spuBrand != ''">
and spu_brand like CONCAT('%',#{dto.spuBrand},'%')
</if>
<if test="dto.categoryId != null and dto.categoryId != ''">
and category_id like CONCAT('%',#{dto.categoryId},'%')
</if>
<if test="dto.skuId != null and dto.skuId != ''">
and sku_id like CONCAT('%',#{dto.skuId},'%')
</if>
<if test="dto.skuName != null and dto.skuName != ''">
and sku_name like CONCAT('%',#{dto.skuName},'%')
</if>
<if test="dto.skuPic != null and dto.skuPic != ''">
and sku_pic like CONCAT('%',#{dto.skuPic},'%')
</if>
<if test="dto.skuPrice != null and dto.skuPrice != ''">
and sku_price like CONCAT('%',#{dto.skuPrice},'%')
</if>
<if test="dto.skuQuantity != null and dto.skuQuantity != ''">
and sku_quantity like CONCAT('%',#{dto.skuQuantity},'%')
</if>
<if test="dto.skuAttrsVals != null and dto.skuAttrsVals != ''">
and sku_attrs_vals like CONCAT('%',#{dto.skuAttrsVals},'%')
</if>
<if test="dto.promotionAmount != null and dto.promotionAmount != ''">
and promotion_amount like CONCAT('%',#{dto.promotionAmount},'%')
</if>
<if test="dto.couponAmount != null and dto.couponAmount != ''">
and coupon_amount like CONCAT('%',#{dto.couponAmount},'%')
</if>
<if test="dto.integrationAmount != null and dto.integrationAmount != ''">
and integration_amount like CONCAT('%',#{dto.integrationAmount},'%')
</if>
<if test="dto.realAmount != null and dto.realAmount != ''">
and real_amount like CONCAT('%',#{dto.realAmount},'%')
</if>
<if test="dto.giftIntegration != null and dto.giftIntegration != ''">
and gift_integration like CONCAT('%',#{dto.giftIntegration},'%')
</if>
<if test="dto.giftGrowth != null and dto.giftGrowth != ''">
and gift_growth like CONCAT('%',#{dto.giftGrowth},'%')
</if>
</where>
</select>
</mapper>

View File

@ -0,0 +1,191 @@
<?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="com.mall.order.mapper.OrderMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mall.order.domain.entity.Order">
<id column="id" property="id"/>
<id column="member_id" property="memberId"/>
<id column="order_sn" property="orderSn"/>
<id column="coupon_id" property="couponId"/>
<id column="create_time" property="createTime"/>
<id column="member_username" property="memberUsername"/>
<id column="total_amount" property="totalAmount"/>
<id column="pay_amount" property="payAmount"/>
<id column="freight_amount" property="freightAmount"/>
<id column="promotion_amount" property="promotionAmount"/>
<id column="integration_amount" property="integrationAmount"/>
<id column="coupon_amount" property="couponAmount"/>
<id column="discount_amount" property="discountAmount"/>
<id column="pay_type" property="payType"/>
<id column="source_type" property="sourceType"/>
<id column="status" property="status"/>
<id column="delivery_company" property="deliveryCompany"/>
<id column="delivery_sn" property="deliverySn"/>
<id column="auto_confirm_day" property="autoConfirmDay"/>
<id column="integration" property="integration"/>
<id column="growth" property="growth"/>
<id column="bill_type" property="billType"/>
<id column="bill_header" property="billHeader"/>
<id column="bill_content" property="billContent"/>
<id column="bill_receiver_phone" property="billReceiverPhone"/>
<id column="bill_receiver_email" property="billReceiverEmail"/>
<id column="receiver_name" property="receiverName"/>
<id column="receiver_phone" property="receiverPhone"/>
<id column="receiver_post_code" property="receiverPostCode"/>
<id column="receiver_province" property="receiverProvince"/>
<id column="receiver_city" property="receiverCity"/>
<id column="receiver_region" property="receiverRegion"/>
<id column="receiver_detail_address" property="receiverDetailAddress"/>
<id column="note" property="note"/>
<id column="confirm_status" property="confirmStatus"/>
<id column="delete_status" property="deleteStatus"/>
<id column="use_integration" property="useIntegration"/>
<id column="payment_time" property="paymentTime"/>
<id column="delivery_time" property="deliveryTime"/>
<id column="receive_time" property="receiveTime"/>
<id column="comment_time" property="commentTime"/>
<id column="modify_time" property="modifyTime"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id,member_id,order_sn,coupon_id,create_time,member_username,total_amount,pay_amount,freight_amount,promotion_amount,integration_amount,coupon_amount,discount_amount,pay_type,source_type,status,delivery_company,delivery_sn,auto_confirm_day,integration,growth,bill_type,bill_header,bill_content,bill_receiver_phone,bill_receiver_email,receiver_name,receiver_phone,receiver_post_code,receiver_province,receiver_city,receiver_region,receiver_detail_address,note,confirm_status,delete_status,use_integration,payment_time,delivery_time,receive_time,comment_time,modify_time
</sql>
<!-- 分页查询订单内容 -->
<select id="selectListByPage" resultType="com.mall.order.domain.vo.OrderVo">
select
<include refid="Base_Column_List"/>
from oms_order
<where>
<if test="dto.id != null and dto.id != ''">
and id like CONCAT('%',#{dto.id},'%')
</if>
<if test="dto.memberId != null and dto.memberId != ''">
and member_id like CONCAT('%',#{dto.memberId},'%')
</if>
<if test="dto.orderSn != null and dto.orderSn != ''">
and order_sn like CONCAT('%',#{dto.orderSn},'%')
</if>
<if test="dto.couponId != null and dto.couponId != ''">
and coupon_id like CONCAT('%',#{dto.couponId},'%')
</if>
<if test="dto.createTime != null and dto.createTime != ''">
and create_time like CONCAT('%',#{dto.createTime},'%')
</if>
<if test="dto.memberUsername != null and dto.memberUsername != ''">
and member_username like CONCAT('%',#{dto.memberUsername},'%')
</if>
<if test="dto.totalAmount != null and dto.totalAmount != ''">
and total_amount like CONCAT('%',#{dto.totalAmount},'%')
</if>
<if test="dto.payAmount != null and dto.payAmount != ''">
and pay_amount like CONCAT('%',#{dto.payAmount},'%')
</if>
<if test="dto.freightAmount != null and dto.freightAmount != ''">
and freight_amount like CONCAT('%',#{dto.freightAmount},'%')
</if>
<if test="dto.promotionAmount != null and dto.promotionAmount != ''">
and promotion_amount like CONCAT('%',#{dto.promotionAmount},'%')
</if>
<if test="dto.integrationAmount != null and dto.integrationAmount != ''">
and integration_amount like CONCAT('%',#{dto.integrationAmount},'%')
</if>
<if test="dto.couponAmount != null and dto.couponAmount != ''">
and coupon_amount like CONCAT('%',#{dto.couponAmount},'%')
</if>
<if test="dto.discountAmount != null and dto.discountAmount != ''">
and discount_amount like CONCAT('%',#{dto.discountAmount},'%')
</if>
<if test="dto.payType != null and dto.payType != ''">
and pay_type like CONCAT('%',#{dto.payType},'%')
</if>
<if test="dto.sourceType != null and dto.sourceType != ''">
and source_type like CONCAT('%',#{dto.sourceType},'%')
</if>
<if test="dto.status != null and dto.status != ''">
and status like CONCAT('%',#{dto.status},'%')
</if>
<if test="dto.deliveryCompany != null and dto.deliveryCompany != ''">
and delivery_company like CONCAT('%',#{dto.deliveryCompany},'%')
</if>
<if test="dto.deliverySn != null and dto.deliverySn != ''">
and delivery_sn like CONCAT('%',#{dto.deliverySn},'%')
</if>
<if test="dto.autoConfirmDay != null and dto.autoConfirmDay != ''">
and auto_confirm_day like CONCAT('%',#{dto.autoConfirmDay},'%')
</if>
<if test="dto.integration != null and dto.integration != ''">
and integration like CONCAT('%',#{dto.integration},'%')
</if>
<if test="dto.growth != null and dto.growth != ''">
and growth like CONCAT('%',#{dto.growth},'%')
</if>
<if test="dto.billType != null and dto.billType != ''">
and bill_type like CONCAT('%',#{dto.billType},'%')
</if>
<if test="dto.billHeader != null and dto.billHeader != ''">
and bill_header like CONCAT('%',#{dto.billHeader},'%')
</if>
<if test="dto.billContent != null and dto.billContent != ''">
and bill_content like CONCAT('%',#{dto.billContent},'%')
</if>
<if test="dto.billReceiverPhone != null and dto.billReceiverPhone != ''">
and bill_receiver_phone like CONCAT('%',#{dto.billReceiverPhone},'%')
</if>
<if test="dto.billReceiverEmail != null and dto.billReceiverEmail != ''">
and bill_receiver_email like CONCAT('%',#{dto.billReceiverEmail},'%')
</if>
<if test="dto.receiverName != null and dto.receiverName != ''">
and receiver_name like CONCAT('%',#{dto.receiverName},'%')
</if>
<if test="dto.receiverPhone != null and dto.receiverPhone != ''">
and receiver_phone like CONCAT('%',#{dto.receiverPhone},'%')
</if>
<if test="dto.receiverPostCode != null and dto.receiverPostCode != ''">
and receiver_post_code like CONCAT('%',#{dto.receiverPostCode},'%')
</if>
<if test="dto.receiverProvince != null and dto.receiverProvince != ''">
and receiver_province like CONCAT('%',#{dto.receiverProvince},'%')
</if>
<if test="dto.receiverCity != null and dto.receiverCity != ''">
and receiver_city like CONCAT('%',#{dto.receiverCity},'%')
</if>
<if test="dto.receiverRegion != null and dto.receiverRegion != ''">
and receiver_region like CONCAT('%',#{dto.receiverRegion},'%')
</if>
<if test="dto.receiverDetailAddress != null and dto.receiverDetailAddress != ''">
and receiver_detail_address like CONCAT('%',#{dto.receiverDetailAddress},'%')
</if>
<if test="dto.note != null and dto.note != ''">
and note like CONCAT('%',#{dto.note},'%')
</if>
<if test="dto.confirmStatus != null and dto.confirmStatus != ''">
and confirm_status like CONCAT('%',#{dto.confirmStatus},'%')
</if>
<if test="dto.deleteStatus != null and dto.deleteStatus != ''">
and delete_status like CONCAT('%',#{dto.deleteStatus},'%')
</if>
<if test="dto.useIntegration != null and dto.useIntegration != ''">
and use_integration like CONCAT('%',#{dto.useIntegration},'%')
</if>
<if test="dto.paymentTime != null and dto.paymentTime != ''">
and payment_time like CONCAT('%',#{dto.paymentTime},'%')
</if>
<if test="dto.deliveryTime != null and dto.deliveryTime != ''">
and delivery_time like CONCAT('%',#{dto.deliveryTime},'%')
</if>
<if test="dto.receiveTime != null and dto.receiveTime != ''">
and receive_time like CONCAT('%',#{dto.receiveTime},'%')
</if>
<if test="dto.commentTime != null and dto.commentTime != ''">
and comment_time like CONCAT('%',#{dto.commentTime},'%')
</if>
<if test="dto.modifyTime != null and dto.modifyTime != ''">
and modify_time like CONCAT('%',#{dto.modifyTime},'%')
</if>
</where>
</select>
</mapper>

View File

@ -0,0 +1,47 @@
<?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="com.mall.order.mapper.OrderOperateHistoryMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mall.order.domain.entity.OrderOperateHistory">
<id column="id" property="id"/>
<id column="order_id" property="orderId"/>
<id column="operate_man" property="operateMan"/>
<id column="create_time" property="createTime"/>
<id column="order_status" property="orderStatus"/>
<id column="note" property="note"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id,order_id,operate_man,create_time,order_status,note
</sql>
<!-- 分页查询订单操作历史记录内容 -->
<select id="selectListByPage" resultType="com.mall.order.domain.vo.OrderOperateHistoryVo">
select
<include refid="Base_Column_List"/>
from oms_order_operate_history
<where>
<if test="dto.id != null and dto.id != ''">
and id like CONCAT('%',#{dto.id},'%')
</if>
<if test="dto.orderId != null and dto.orderId != ''">
and order_id like CONCAT('%',#{dto.orderId},'%')
</if>
<if test="dto.operateMan != null and dto.operateMan != ''">
and operate_man like CONCAT('%',#{dto.operateMan},'%')
</if>
<if test="dto.createTime != null and dto.createTime != ''">
and create_time like CONCAT('%',#{dto.createTime},'%')
</if>
<if test="dto.orderStatus != null and dto.orderStatus != ''">
and order_status like CONCAT('%',#{dto.orderStatus},'%')
</if>
<if test="dto.note != null and dto.note != ''">
and note like CONCAT('%',#{dto.note},'%')
</if>
</where>
</select>
</mapper>

View File

@ -0,0 +1,135 @@
<?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="com.mall.order.mapper.OrderReturnApplyMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mall.order.domain.entity.OrderReturnApply">
<id column="id" property="id"/>
<id column="order_id" property="orderId"/>
<id column="sku_id" property="skuId"/>
<id column="order_sn" property="orderSn"/>
<id column="create_time" property="createTime"/>
<id column="member_username" property="memberUsername"/>
<id column="return_amount" property="returnAmount"/>
<id column="return_name" property="returnName"/>
<id column="return_phone" property="returnPhone"/>
<id column="status" property="status"/>
<id column="handle_time" property="handleTime"/>
<id column="sku_img" property="skuImg"/>
<id column="sku_name" property="skuName"/>
<id column="sku_brand" property="skuBrand"/>
<id column="sku_attrs_vals" property="skuAttrsVals"/>
<id column="sku_count" property="skuCount"/>
<id column="sku_price" property="skuPrice"/>
<id column="sku_real_price" property="skuRealPrice"/>
<id column="reason" property="reason"/>
<id column="description述" property="description述"/>
<id column="desc_pics" property="descPics"/>
<id column="handle_note" property="handleNote"/>
<id column="handle_man" property="handleMan"/>
<id column="receive_man" property="receiveMan"/>
<id column="receive_time" property="receiveTime"/>
<id column="receive_note" property="receiveNote"/>
<id column="receive_phone" property="receivePhone"/>
<id column="company_address" property="companyAddress"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id,order_id,sku_id,order_sn,create_time,member_username,return_amount,return_name,return_phone,status,handle_time,sku_img,sku_name,sku_brand,sku_attrs_vals,sku_count,sku_price,sku_real_price,reason,description述,desc_pics,handle_note,handle_man,receive_man,receive_time,receive_note,receive_phone,company_address
</sql>
<!-- 分页查询订单退货申请内容 -->
<select id="selectListByPage" resultType="com.mall.order.domain.vo.OrderReturnApplyVo">
select
<include refid="Base_Column_List"/>
from oms_order_return_apply
<where>
<if test="dto.id != null and dto.id != ''">
and id like CONCAT('%',#{dto.id},'%')
</if>
<if test="dto.orderId != null and dto.orderId != ''">
and order_id like CONCAT('%',#{dto.orderId},'%')
</if>
<if test="dto.skuId != null and dto.skuId != ''">
and sku_id like CONCAT('%',#{dto.skuId},'%')
</if>
<if test="dto.orderSn != null and dto.orderSn != ''">
and order_sn like CONCAT('%',#{dto.orderSn},'%')
</if>
<if test="dto.createTime != null and dto.createTime != ''">
and create_time like CONCAT('%',#{dto.createTime},'%')
</if>
<if test="dto.memberUsername != null and dto.memberUsername != ''">
and member_username like CONCAT('%',#{dto.memberUsername},'%')
</if>
<if test="dto.returnAmount != null and dto.returnAmount != ''">
and return_amount like CONCAT('%',#{dto.returnAmount},'%')
</if>
<if test="dto.returnName != null and dto.returnName != ''">
and return_name like CONCAT('%',#{dto.returnName},'%')
</if>
<if test="dto.returnPhone != null and dto.returnPhone != ''">
and return_phone like CONCAT('%',#{dto.returnPhone},'%')
</if>
<if test="dto.status != null and dto.status != ''">
and status like CONCAT('%',#{dto.status},'%')
</if>
<if test="dto.handleTime != null and dto.handleTime != ''">
and handle_time like CONCAT('%',#{dto.handleTime},'%')
</if>
<if test="dto.skuImg != null and dto.skuImg != ''">
and sku_img like CONCAT('%',#{dto.skuImg},'%')
</if>
<if test="dto.skuName != null and dto.skuName != ''">
and sku_name like CONCAT('%',#{dto.skuName},'%')
</if>
<if test="dto.skuBrand != null and dto.skuBrand != ''">
and sku_brand like CONCAT('%',#{dto.skuBrand},'%')
</if>
<if test="dto.skuAttrsVals != null and dto.skuAttrsVals != ''">
and sku_attrs_vals like CONCAT('%',#{dto.skuAttrsVals},'%')
</if>
<if test="dto.skuCount != null and dto.skuCount != ''">
and sku_count like CONCAT('%',#{dto.skuCount},'%')
</if>
<if test="dto.skuPrice != null and dto.skuPrice != ''">
and sku_price like CONCAT('%',#{dto.skuPrice},'%')
</if>
<if test="dto.skuRealPrice != null and dto.skuRealPrice != ''">
and sku_real_price like CONCAT('%',#{dto.skuRealPrice},'%')
</if>
<if test="dto.reason != null and dto.reason != ''">
and reason like CONCAT('%',#{dto.reason},'%')
</if>
<if test="dto.description述 != null and dto.description述 != ''">
and description述 like CONCAT('%',#{dto.description述},'%')
</if>
<if test="dto.descPics != null and dto.descPics != ''">
and desc_pics like CONCAT('%',#{dto.descPics},'%')
</if>
<if test="dto.handleNote != null and dto.handleNote != ''">
and handle_note like CONCAT('%',#{dto.handleNote},'%')
</if>
<if test="dto.handleMan != null and dto.handleMan != ''">
and handle_man like CONCAT('%',#{dto.handleMan},'%')
</if>
<if test="dto.receiveMan != null and dto.receiveMan != ''">
and receive_man like CONCAT('%',#{dto.receiveMan},'%')
</if>
<if test="dto.receiveTime != null and dto.receiveTime != ''">
and receive_time like CONCAT('%',#{dto.receiveTime},'%')
</if>
<if test="dto.receiveNote != null and dto.receiveNote != ''">
and receive_note like CONCAT('%',#{dto.receiveNote},'%')
</if>
<if test="dto.receivePhone != null and dto.receivePhone != ''">
and receive_phone like CONCAT('%',#{dto.receivePhone},'%')
</if>
<if test="dto.companyAddress != null and dto.companyAddress != ''">
and company_address like CONCAT('%',#{dto.companyAddress},'%')
</if>
</where>
</select>
</mapper>

View File

@ -0,0 +1,43 @@
<?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="com.mall.order.mapper.OrderReturnReasonMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mall.order.domain.entity.OrderReturnReason">
<id column="id" property="id"/>
<id column="name" property="name"/>
<id column="sort" property="sort"/>
<id column="status" property="status"/>
<id column="create_time" property="createTime"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id,name,sort,status,create_time
</sql>
<!-- 分页查询退货原因内容 -->
<select id="selectListByPage" resultType="com.mall.order.domain.vo.OrderReturnReasonVo">
select
<include refid="Base_Column_List"/>
from oms_order_return_reason
<where>
<if test="dto.id != null and dto.id != ''">
and id like CONCAT('%',#{dto.id},'%')
</if>
<if test="dto.name != null and dto.name != ''">
and name like CONCAT('%',#{dto.name},'%')
</if>
<if test="dto.sort != null and dto.sort != ''">
and sort like CONCAT('%',#{dto.sort},'%')
</if>
<if test="dto.status != null and dto.status != ''">
and status like CONCAT('%',#{dto.status},'%')
</if>
<if test="dto.createTime != null and dto.createTime != ''">
and create_time like CONCAT('%',#{dto.createTime},'%')
</if>
</where>
</select>
</mapper>

View File

@ -0,0 +1,51 @@
<?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="com.mall.order.mapper.OrderSettingMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mall.order.domain.entity.OrderSetting">
<id column="id" property="id"/>
<id column="flash_order_overtime" property="flashOrderOvertime"/>
<id column="normal_order_overtime" property="normalOrderOvertime"/>
<id column="confirm_overtime" property="confirmOvertime"/>
<id column="finish_overtime" property="finishOvertime"/>
<id column="comment_overtime" property="commentOvertime"/>
<id column="member_level" property="memberLevel"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id,flash_order_overtime,normal_order_overtime,confirm_overtime,finish_overtime,comment_overtime,member_level
</sql>
<!-- 分页查询订单配置信息内容 -->
<select id="selectListByPage" resultType="com.mall.order.domain.vo.OrderSettingVo">
select
<include refid="Base_Column_List"/>
from oms_order_setting
<where>
<if test="dto.id != null and dto.id != ''">
and id like CONCAT('%',#{dto.id},'%')
</if>
<if test="dto.flashOrderOvertime != null and dto.flashOrderOvertime != ''">
and flash_order_overtime like CONCAT('%',#{dto.flashOrderOvertime},'%')
</if>
<if test="dto.normalOrderOvertime != null and dto.normalOrderOvertime != ''">
and normal_order_overtime like CONCAT('%',#{dto.normalOrderOvertime},'%')
</if>
<if test="dto.confirmOvertime != null and dto.confirmOvertime != ''">
and confirm_overtime like CONCAT('%',#{dto.confirmOvertime},'%')
</if>
<if test="dto.finishOvertime != null and dto.finishOvertime != ''">
and finish_overtime like CONCAT('%',#{dto.finishOvertime},'%')
</if>
<if test="dto.commentOvertime != null and dto.commentOvertime != ''">
and comment_overtime like CONCAT('%',#{dto.commentOvertime},'%')
</if>
<if test="dto.memberLevel != null and dto.memberLevel != ''">
and member_level like CONCAT('%',#{dto.memberLevel},'%')
</if>
</where>
</select>
</mapper>

View File

@ -0,0 +1,67 @@
<?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="com.mall.order.mapper.PaymentInfoMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mall.order.domain.entity.PaymentInfo">
<id column="id" property="id"/>
<id column="order_sn" property="orderSn"/>
<id column="order_id" property="orderId"/>
<id column="alipay_trade_no" property="alipayTradeNo"/>
<id column="total_amount" property="totalAmount"/>
<id column="subject" property="subject"/>
<id column="payment_status" property="paymentStatus"/>
<id column="create_time" property="createTime"/>
<id column="confirm_time" property="confirmTime"/>
<id column="callback_content" property="callbackContent"/>
<id column="callback_time" property="callbackTime"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id,order_sn,order_id,alipay_trade_no,total_amount,subject,payment_status,create_time,confirm_time,callback_content,callback_time
</sql>
<!-- 分页查询支付信息表内容 -->
<select id="selectListByPage" resultType="com.mall.order.domain.vo.PaymentInfoVo">
select
<include refid="Base_Column_List"/>
from oms_payment_info
<where>
<if test="dto.id != null and dto.id != ''">
and id like CONCAT('%',#{dto.id},'%')
</if>
<if test="dto.orderSn != null and dto.orderSn != ''">
and order_sn like CONCAT('%',#{dto.orderSn},'%')
</if>
<if test="dto.orderId != null and dto.orderId != ''">
and order_id like CONCAT('%',#{dto.orderId},'%')
</if>
<if test="dto.alipayTradeNo != null and dto.alipayTradeNo != ''">
and alipay_trade_no like CONCAT('%',#{dto.alipayTradeNo},'%')
</if>
<if test="dto.totalAmount != null and dto.totalAmount != ''">
and total_amount like CONCAT('%',#{dto.totalAmount},'%')
</if>
<if test="dto.subject != null and dto.subject != ''">
and subject like CONCAT('%',#{dto.subject},'%')
</if>
<if test="dto.paymentStatus != null and dto.paymentStatus != ''">
and payment_status like CONCAT('%',#{dto.paymentStatus},'%')
</if>
<if test="dto.createTime != null and dto.createTime != ''">
and create_time like CONCAT('%',#{dto.createTime},'%')
</if>
<if test="dto.confirmTime != null and dto.confirmTime != ''">
and confirm_time like CONCAT('%',#{dto.confirmTime},'%')
</if>
<if test="dto.callbackContent != null and dto.callbackContent != ''">
and callback_content like CONCAT('%',#{dto.callbackContent},'%')
</if>
<if test="dto.callbackTime != null and dto.callbackTime != ''">
and callback_time like CONCAT('%',#{dto.callbackTime},'%')
</if>
</where>
</select>
</mapper>

View File

@ -0,0 +1,51 @@
<?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="com.mall.order.mapper.RefundInfoMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mall.order.domain.entity.RefundInfo">
<id column="id" property="id"/>
<id column="order_return_id" property="orderReturnId"/>
<id column="refund" property="refund"/>
<id column="refund_sn" property="refundSn"/>
<id column="refund_status" property="refundStatus"/>
<id column="refund_channel" property="refundChannel"/>
<id column="refund_content" property="refundContent"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id,order_return_id,refund,refund_sn,refund_status,refund_channel,refund_content
</sql>
<!-- 分页查询退款信息内容 -->
<select id="selectListByPage" resultType="com.mall.order.domain.vo.RefundInfoVo">
select
<include refid="Base_Column_List"/>
from oms_refund_info
<where>
<if test="dto.id != null and dto.id != ''">
and id like CONCAT('%',#{dto.id},'%')
</if>
<if test="dto.orderReturnId != null and dto.orderReturnId != ''">
and order_return_id like CONCAT('%',#{dto.orderReturnId},'%')
</if>
<if test="dto.refund != null and dto.refund != ''">
and refund like CONCAT('%',#{dto.refund},'%')
</if>
<if test="dto.refundSn != null and dto.refundSn != ''">
and refund_sn like CONCAT('%',#{dto.refundSn},'%')
</if>
<if test="dto.refundStatus != null and dto.refundStatus != ''">
and refund_status like CONCAT('%',#{dto.refundStatus},'%')
</if>
<if test="dto.refundChannel != null and dto.refundChannel != ''">
and refund_channel like CONCAT('%',#{dto.refundChannel},'%')
</if>
<if test="dto.refundContent != null and dto.refundContent != ''">
and refund_content like CONCAT('%',#{dto.refundContent},'%')
</if>
</where>
</select>
</mapper>

View File

@ -5,7 +5,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan(basePackages = {"com.mall.common", "com.mall.product"})
@ComponentScan(basePackages = {"com.mall.product", "com.mall.common",})
public class MallProductApplication {
public static void main(String[] args) {
SpringApplication.run(MallProductApplication.class, args);

View File

@ -1,4 +1,4 @@
package com.mall.common.config;
package com.mall.product.config;
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import io.swagger.v3.oas.models.ExternalDocumentation;
@ -50,4 +50,5 @@ public class Knife4jConfig {
public GroupedOpenApi product() {
return GroupedOpenApi.builder().group("商品请求接口").pathsToMatch("/api/product/**").build();
}
}