Commit 81b733fd by 林冲

feat(livecode): 优化4S店配置接口及删除逻辑

- StoreConfigRemote.delete接口改用IdRequest入参
- StoreConfigRequest移除createdBy/updatedBy的@NotBlank校验(由ThreadLocalCache获取)
- StoreConfigPageRequest改为按店铺名称和定价师名称模糊搜索
1 parent 5c83e1ec
......@@ -3,6 +3,7 @@ package com.gsc4cloud.gsc.vpc.api.feign.web.livecode;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gsc4cloud.gsc.common.core.util.R;
import com.gsc4cloud.gsc.vpc.api.dto.entitydto.livecode.StoreConfigDTO;
import com.gsc4cloud.gsc.vpc.api.req.IdRequest;
import com.gsc4cloud.gsc.vpc.api.req.PageRequest;
import com.gsc4cloud.gsc.vpc.api.req.web.livecode.StoreConfigPageRequest;
import com.gsc4cloud.gsc.vpc.api.req.web.livecode.StoreConfigRequest;
......@@ -40,5 +41,5 @@ public interface StoreConfigRemote {
* 删除4S店配置
*/
@PostMapping("/storeConfig/delete")
R<Boolean> delete(@RequestBody StoreConfigRequest request);
R<Boolean> delete(@RequestBody IdRequest request);
}
......@@ -23,20 +23,14 @@ public class StoreConfigPageRequest implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键ID
* 4S店名称(模糊搜索)
*/
@Schema(description = "主键ID")
private Long id;
@Schema(description = "4S店名称(模糊搜索)")
private String storeName;
/**
* 4S店ID
* 定价师名称(模糊搜索)
*/
@Schema(description = "4S店ID")
private Integer storeId;
/**
* 搜索关键字(模糊搜索4s店名称、定价师名称)
*/
@Schema(description = "搜索关键字(模糊搜索4s店名称、定价师名称)")
private String searchKeyword;
@Schema(description = "定价师名称(模糊搜索)")
private String pricingSpecialistName;
}
......@@ -65,12 +65,10 @@ public class StoreConfigRequest implements Serializable {
/**
* 新增操作人
*/
@NotBlank(message = "新增操作人不能为空", groups = {AddGroup.class})
private String createdBy;
/**
* 更新操作人
*/
@NotBlank(message = "更新操作人不能为空", groups = {UpdateGroup.class})
private String updatedBy;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!