修复代码生成器

This commit is contained in:
2025-08-09 15:51:45 +08:00
parent a036e65247
commit a7b7589b2a
14 changed files with 101 additions and 44 deletions

View File

@@ -22,7 +22,7 @@ import java.util.List;
* 优惠券控制器
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:01
*/
@Tag(name = "优惠券管理")
@RestController

View File

@@ -22,7 +22,7 @@ import java.util.List;
* 用户优惠券控制器
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:01
*/
@Tag(name = "用户优惠券管理")
@RestController

View File

@@ -15,7 +15,7 @@ import lombok.EqualsAndHashCode;
* 优惠券
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:00
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@@ -14,7 +14,7 @@ import lombok.EqualsAndHashCode;
* 用户优惠券
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:01
*/
@Data
@EqualsAndHashCode(callSuper = false)
@@ -22,38 +22,6 @@ import lombok.EqualsAndHashCode;
public class ShopUserCoupon implements Serializable {
private static final long serialVersionUID = 1L;
// 优惠券类型常量
/** 满减券 */
public static final Integer TYPE_REDUCE = 10;
/** 折扣券 */
public static final Integer TYPE_DISCOUNT = 20;
/** 免费券 */
public static final Integer TYPE_FREE = 30;
// 适用范围常量
/** 全部商品 */
public static final Integer APPLY_ALL = 10;
/** 指定商品 */
public static final Integer APPLY_GOODS = 20;
/** 指定分类 */
public static final Integer APPLY_CATEGORY = 30;
// 使用状态常量
/** 未使用 */
public static final Integer STATUS_UNUSED = 0;
/** 已使用 */
public static final Integer STATUS_USED = 1;
/** 已过期 */
public static final Integer STATUS_EXPIRED = 2;
// 获取方式常量
/** 主动领取 */
public static final Integer OBTAIN_ACTIVE = 10;
/** 系统发放 */
public static final Integer OBTAIN_SYSTEM = 20;
/** 活动赠送 */
public static final Integer OBTAIN_ACTIVITY = 30;
@Schema(description = "id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;

View File

@@ -12,7 +12,7 @@ import java.util.List;
* 优惠券Mapper
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:00
*/
public interface ShopCouponMapper extends BaseMapper<ShopCoupon> {

View File

@@ -12,7 +12,7 @@ import java.util.List;
* 用户优惠券Mapper
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:01
*/
public interface ShopUserCouponMapper extends BaseMapper<ShopUserCoupon> {

View File

@@ -13,7 +13,7 @@ import lombok.EqualsAndHashCode;
* 优惠券查询参数
*
* @author 科技小王子
* @since 2025-08-09 15:29:57
* @since 2025-08-09 15:48:00
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@@ -13,7 +13,7 @@ import lombok.EqualsAndHashCode;
* 用户优惠券查询参数
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:01
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@@ -11,7 +11,7 @@ import java.util.List;
* 优惠券Service
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:00
*/
public interface ShopCouponService extends IService<ShopCoupon> {

View File

@@ -11,7 +11,7 @@ import java.util.List;
* 用户优惠券Service
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:01
*/
public interface ShopUserCouponService extends IService<ShopUserCoupon> {

View File

@@ -15,7 +15,7 @@ import java.util.List;
* 优惠券Service实现
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:00
*/
@Service
public class ShopCouponServiceImpl extends ServiceImpl<ShopCouponMapper, ShopCoupon> implements ShopCouponService {

View File

@@ -15,7 +15,7 @@ import java.util.List;
* 用户优惠券Service实现
*
* @author 科技小王子
* @since 2025-08-09 15:29:58
* @since 2025-08-09 15:48:01
*/
@Service
public class ShopUserCouponServiceImpl extends ServiceImpl<ShopUserCouponMapper, ShopUserCoupon> implements ShopUserCouponService {

View File

@@ -59,6 +59,7 @@
ColumnItem
} from 'ele-admin-pro/es/ele-pro-table/types';
import Search from './components/search.vue';
import {getPageTitle} from '@/utils/common';
import ${entity}Edit from './components/${table.entityPath}Edit.vue';
import { page${entity}, remove${entity}, removeBatch${entity} } from '@/api/${package.ModuleName}/${table.entityPath}';
import type { ${entity}, ${entity}Param } from '@/api/${package.ModuleName}/${table.entityPath}/model';