config(application): 重命名测试配置文件并调整端口
- 将 application-test.yml 重命名为 application-cms.yml - 将服务器端口从 9300 修改为 9100 - 在 ShopDealerReferee 实体类中为 source 和 scene 字段添加 @TableField(exist = false) 注解 - 移除 ShopDealerUserController 中 save 方法的权限验证注解和操作日志注解
This commit is contained in:
@@ -59,8 +59,6 @@ public class ShopDealerUserController extends BaseController {
|
||||
return success(shopDealerUserService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('shop:shopDealerUser:save')")
|
||||
@OperationLog
|
||||
@Operation(summary = "添加分销商用户记录表")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody ShopDealerUser shopDealerUser) {
|
||||
|
||||
@@ -68,9 +68,12 @@ public class ShopDealerReferee implements Serializable {
|
||||
private Integer level;
|
||||
|
||||
@Schema(description = "来源(如 goods_share)")
|
||||
// NOTE: 表 shop_dealer_referee 若未新增该字段,需要 exist=false,避免 MyBatis-Plus 自动生成SQL时报 Unknown column。
|
||||
@TableField(exist = false)
|
||||
private String source;
|
||||
|
||||
@Schema(description = "场景参数(用于溯源统计,如 inviter=<inviter>&source=goods_share&t=<t>)")
|
||||
@TableField(exist = false)
|
||||
private String scene;
|
||||
|
||||
@Schema(description = "商城ID")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# 服务器配置
|
||||
server:
|
||||
port: 9300
|
||||
port: 9100
|
||||
|
||||
# 数据源配置
|
||||
spring:
|
||||
Reference in New Issue
Block a user