refactor(shop): 重构 Shop 模块代码
- 更新了多个类的作者日期 -修正了 ShopDealerOrder 中的日期类型 - 删除了 ShopDealerOrderMapper.xml 文件 - 调整了 ShopExpress 相关代码 - 更新了多个服务类和参数类的作者日期 - 修改了 ShopGenerator 中的输出路径
This commit is contained in:
@@ -22,7 +22,7 @@ import java.util.List;
|
|||||||
* 分销商订单记录表控制器
|
* 分销商订单记录表控制器
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-08-11 23:51:41
|
* @since 2025-08-12 11:55:18
|
||||||
*/
|
*/
|
||||||
@Tag(name = "分销商订单记录表管理")
|
@Tag(name = "分销商订单记录表管理")
|
||||||
@RestController
|
@RestController
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import com.gxwebsoft.common.core.web.PageParam;
|
|||||||
import com.gxwebsoft.common.core.web.BatchParam;
|
import com.gxwebsoft.common.core.web.BatchParam;
|
||||||
import com.gxwebsoft.common.core.annotation.OperationLog;
|
import com.gxwebsoft.common.core.annotation.OperationLog;
|
||||||
import com.gxwebsoft.common.system.entity.User;
|
import com.gxwebsoft.common.system.entity.User;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ import java.util.List;
|
|||||||
* 物流公司控制器
|
* 物流公司控制器
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-05-01 10:04:21
|
* @since 2025-08-12 11:52:07
|
||||||
*/
|
*/
|
||||||
@Tag(name = "物流公司管理")
|
@Tag(name = "物流公司管理")
|
||||||
@RestController
|
@RestController
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -13,7 +15,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 分销商订单记录表
|
* 分销商订单记录表
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-08-11 23:51:41
|
* @since 2025-08-12 11:55:18
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
@@ -65,9 +67,9 @@ public class ShopDealerOrder implements Serializable {
|
|||||||
private Integer tenantId;
|
private Integer tenantId;
|
||||||
|
|
||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
private LocalDateTime createTime;
|
private Date createTime;
|
||||||
|
|
||||||
@Schema(description = "修改时间")
|
@Schema(description = "修改时间")
|
||||||
private LocalDateTime updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,12 +2,10 @@ package com.gxwebsoft.shop.entity;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import java.time.LocalDateTime;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -16,7 +14,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 物流公司
|
* 物流公司
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-05-01 10:04:21
|
* @since 2025-08-12 11:52:07
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
* 分销商订单记录表Mapper
|
* 分销商订单记录表Mapper
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-08-11 23:51:41
|
* @since 2025-08-12 11:55:18
|
||||||
*/
|
*/
|
||||||
public interface ShopDealerOrderMapper extends BaseMapper<ShopDealerOrder> {
|
public interface ShopDealerOrderMapper extends BaseMapper<ShopDealerOrder> {
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
* 物流公司Mapper
|
* 物流公司Mapper
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-05-01 10:04:21
|
* @since 2025-08-12 11:52:07
|
||||||
*/
|
*/
|
||||||
public interface ShopExpressMapper extends BaseMapper<ShopExpress> {
|
public interface ShopExpressMapper extends BaseMapper<ShopExpress> {
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 分销商订单记录表查询参数
|
* 分销商订单记录表查询参数
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-08-11 23:51:41
|
* @since 2025-08-12 11:55:18
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import com.gxwebsoft.common.core.annotation.QueryType;
|
|||||||
import com.gxwebsoft.common.core.web.BaseParam;
|
import com.gxwebsoft.common.core.web.BaseParam;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
@@ -14,7 +13,7 @@ import lombok.EqualsAndHashCode;
|
|||||||
* 物流公司查询参数
|
* 物流公司查询参数
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-05-01 10:04:21
|
* @since 2025-08-12 11:52:07
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import java.util.List;
|
|||||||
* 分销商订单记录表Service
|
* 分销商订单记录表Service
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-08-11 23:51:41
|
* @since 2025-08-12 11:55:18
|
||||||
*/
|
*/
|
||||||
public interface ShopDealerOrderService extends IService<ShopDealerOrder> {
|
public interface ShopDealerOrderService extends IService<ShopDealerOrder> {
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import java.util.List;
|
|||||||
* 物流公司Service
|
* 物流公司Service
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-05-01 10:04:21
|
* @since 2025-08-12 11:52:07
|
||||||
*/
|
*/
|
||||||
public interface ShopExpressService extends IService<ShopExpress> {
|
public interface ShopExpressService extends IService<ShopExpress> {
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import java.util.List;
|
|||||||
* 分销商订单记录表Service实现
|
* 分销商订单记录表Service实现
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-08-11 23:51:41
|
* @since 2025-08-12 11:55:18
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class ShopDealerOrderServiceImpl extends ServiceImpl<ShopDealerOrderMapper, ShopDealerOrder> implements ShopDealerOrderService {
|
public class ShopDealerOrderServiceImpl extends ServiceImpl<ShopDealerOrderMapper, ShopDealerOrder> implements ShopDealerOrderService {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import java.util.List;
|
|||||||
* 物流公司Service实现
|
* 物流公司Service实现
|
||||||
*
|
*
|
||||||
* @author 科技小王子
|
* @author 科技小王子
|
||||||
* @since 2025-05-01 10:04:21
|
* @since 2025-08-12 11:52:07
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class ShopExpressServiceImpl extends ServiceImpl<ShopExpressMapper, ShopExpress> implements ShopExpressService {
|
public class ShopExpressServiceImpl extends ServiceImpl<ShopExpressMapper, ShopExpress> implements ShopExpressService {
|
||||||
|
|||||||
@@ -24,12 +24,12 @@ public class ShopGenerator {
|
|||||||
// 输出位置
|
// 输出位置
|
||||||
private static final String OUTPUT_LOCATION = System.getProperty("user.dir");
|
private static final String OUTPUT_LOCATION = System.getProperty("user.dir");
|
||||||
//private static final String OUTPUT_LOCATION = "D:/codegen"; // 不想生成到项目中可以写磁盘路径
|
//private static final String OUTPUT_LOCATION = "D:/codegen"; // 不想生成到项目中可以写磁盘路径
|
||||||
// 输出目录
|
// JAVA输出目录
|
||||||
private static final String OUTPUT_DIR = "/src/main/java";
|
private static final String OUTPUT_DIR = "/src/main/java";
|
||||||
// Vue文件输出位置
|
// Vue文件输出位置
|
||||||
private static final String OUTPUT_LOCATION_VUE = "/Users/liangxin/Project/Html/web/mp-vue";
|
private static final String OUTPUT_LOCATION_VUE = "/Users/gxwebsoft/VUE/web/mp-vue";
|
||||||
// Vue文件输出目录
|
// UniApp文件输出目录
|
||||||
private static final String OUTPUT_LOCATION_UNIAPP = "/Users/liangxin/Project/Html/miniProgram/template-10550";
|
private static final String OUTPUT_LOCATION_UNIAPP = "/Users/gxwebsoft/VUE/template-10550";
|
||||||
// Vue文件输出目录
|
// Vue文件输出目录
|
||||||
private static final String OUTPUT_DIR_VUE = "/src";
|
private static final String OUTPUT_DIR_VUE = "/src";
|
||||||
// 作者名称
|
// 作者名称
|
||||||
@@ -91,7 +91,6 @@ public class ShopGenerator {
|
|||||||
// "shop_user_coupon",
|
// "shop_user_coupon",
|
||||||
// "shop_cart",
|
// "shop_cart",
|
||||||
// "shop_count",
|
// "shop_count",
|
||||||
// "shop_express",
|
|
||||||
// "shop_order_delivery",
|
// "shop_order_delivery",
|
||||||
// "shop_order_delivery_goods",
|
// "shop_order_delivery_goods",
|
||||||
// "shop_order_extract",
|
// "shop_order_extract",
|
||||||
@@ -99,8 +98,8 @@ public class ShopGenerator {
|
|||||||
// "shop_goods_income_config"
|
// "shop_goods_income_config"
|
||||||
// "shop_express",
|
// "shop_express",
|
||||||
// "shop_express_template",
|
// "shop_express_template",
|
||||||
// "shop_express_template_detail"
|
// "shop_express_template_detail",
|
||||||
"shop_gift"
|
// "shop_gift"
|
||||||
};
|
};
|
||||||
// 需要去除的表前缀
|
// 需要去除的表前缀
|
||||||
private static final String[] TABLE_PREFIX = new String[]{
|
private static final String[] TABLE_PREFIX = new String[]{
|
||||||
|
|||||||
Reference in New Issue
Block a user