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