修改积分参数命名规范
This commit is contained in:
parent
2246b498d9
commit
9ee5b4515a
@ -16,7 +16,7 @@ import java.util.List;
|
||||
public class GoodsParamsGroupVO implements Serializable {
|
||||
private static final long serialVersionUID = 1450550797436233753L;
|
||||
@ApiModelProperty("参数组关联的参数集合")
|
||||
private List<GoodsParamsDTOVO> params;
|
||||
private List<GoodsParamsVO> params;
|
||||
@ApiModelProperty("参数组名称")
|
||||
private String groupName;
|
||||
@ApiModelProperty("参数组id")
|
||||
|
@ -12,7 +12,7 @@ import lombok.Data;
|
||||
* @date 2020-02-26 23:24:13
|
||||
*/
|
||||
@Data
|
||||
public class GoodsParamsDTOVO extends GoodsParamsDTO {
|
||||
public class GoodsParamsVO extends GoodsParamsDTO {
|
||||
|
||||
private static final long serialVersionUID = -4904700751774005326L;
|
||||
@ApiModelProperty("1 输入项 2 选择项")
|
@ -9,7 +9,7 @@ import cn.lili.modules.goods.entity.dos.Category;
|
||||
import cn.lili.modules.goods.entity.dos.CategoryParameterGroup;
|
||||
import cn.lili.modules.goods.entity.vos.CategoryVO;
|
||||
import cn.lili.modules.goods.entity.vos.GoodsParamsGroupVO;
|
||||
import cn.lili.modules.goods.entity.vos.GoodsParamsDTOVO;
|
||||
import cn.lili.modules.goods.entity.vos.GoodsParamsVO;
|
||||
import cn.lili.modules.goods.mapper.CategoryMapper;
|
||||
import cn.lili.modules.goods.service.CategoryService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
@ -268,13 +268,13 @@ public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> i
|
||||
* @param paramList 参数列表
|
||||
* @return 拼装后的返回值
|
||||
*/
|
||||
private List<GoodsParamsGroupVO> convertParamList(List<CategoryParameterGroup> groupList, List<GoodsParamsDTOVO> paramList) {
|
||||
Map<String, List<GoodsParamsDTOVO>> map = new HashMap<>(16);
|
||||
for (GoodsParamsDTOVO param : paramList) {
|
||||
private List<GoodsParamsGroupVO> convertParamList(List<CategoryParameterGroup> groupList, List<GoodsParamsVO> paramList) {
|
||||
Map<String, List<GoodsParamsVO>> map = new HashMap<>(16);
|
||||
for (GoodsParamsVO param : paramList) {
|
||||
if (map.get(param.getGroupId()) != null) {
|
||||
map.get(param.getGroupId()).add(param);
|
||||
} else {
|
||||
List<GoodsParamsDTOVO> list = new ArrayList<>();
|
||||
List<GoodsParamsVO> list = new ArrayList<>();
|
||||
list.add(param);
|
||||
map.put(param.getGroupId(), list);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user