属性属性组

master
Jiang Peng 2024-03-03 09:56:44 +08:00
parent 7310116a85
commit 02c5be6c3d
27 changed files with 66 additions and 106 deletions

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置
@ -28,12 +28,12 @@ spring:
eager: true eager: true
transport: transport:
# 控制台地址 # 控制台地址
dashboard: 127.0.0.1:8718 dashboard: 101.34.248.9:8718
# nacos配置持久化 # nacos配置持久化
datasource: datasource:
ds1: ds1:
nacos: nacos:
server-addr: 127.0.0.1:8848 server-addr: 101.34.248.9:8848
dataId: sentinel-muyu-gateway dataId: sentinel-muyu-gateway
groupId: DEFAULT_GROUP groupId: DEFAULT_GROUP
data-type: json data-type: json

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -44,7 +44,7 @@ public class BrandInfo extends BaseEntity {
*/ */
@Excel(name = "品牌名称") @Excel(name = "品牌名称")
@ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true) @ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true)
private String nam; private String name;
/** /**
* LOGO * LOGO
@ -72,7 +72,7 @@ public class BrandInfo extends BaseEntity {
*/ */
public static BrandInfo queryBuild(BrandInfoQueryReq brandInfoQueryReq) { public static BrandInfo queryBuild(BrandInfoQueryReq brandInfoQueryReq) {
return BrandInfo.builder() return BrandInfo.builder()
.nam(brandInfoQueryReq.getNam()) .name(brandInfoQueryReq.getName())
.logo(brandInfoQueryReq.getLogo()) .logo(brandInfoQueryReq.getLogo())
.start(brandInfoQueryReq.getStart()) .start(brandInfoQueryReq.getStart())
.introduction(brandInfoQueryReq.getIntroduction()) .introduction(brandInfoQueryReq.getIntroduction())
@ -84,7 +84,7 @@ public class BrandInfo extends BaseEntity {
*/ */
public static BrandInfo saveBuild(BrandInfoSaveReq brandInfoSaveReq) { public static BrandInfo saveBuild(BrandInfoSaveReq brandInfoSaveReq) {
return BrandInfo.builder() return BrandInfo.builder()
.nam(brandInfoSaveReq.getNam()) .name(brandInfoSaveReq.getName())
.logo(brandInfoSaveReq.getLogo()) .logo(brandInfoSaveReq.getLogo())
.start(brandInfoSaveReq.getStart()) .start(brandInfoSaveReq.getStart())
.introduction(brandInfoSaveReq.getIntroduction()) .introduction(brandInfoSaveReq.getIntroduction())
@ -98,7 +98,7 @@ public class BrandInfo extends BaseEntity {
public static BrandInfo editBuild(Long id, BrandInfoEditReq brandInfoEditReq) { public static BrandInfo editBuild(Long id, BrandInfoEditReq brandInfoEditReq) {
return BrandInfo.builder() return BrandInfo.builder()
.id(id) .id(id)
.nam(brandInfoEditReq.getNam()) .name(brandInfoEditReq.getName())
.logo(brandInfoEditReq.getLogo()) .logo(brandInfoEditReq.getLogo())
.start(brandInfoEditReq.getStart()) .start(brandInfoEditReq.getStart())
.introduction(brandInfoEditReq.getIntroduction()) .introduction(brandInfoEditReq.getIntroduction())

View File

@ -50,7 +50,7 @@ public class ProjectInfo extends BaseEntity {
/** 主类型 */ /** 主类型 */
@Excel(name = "主类型") @Excel(name = "主类型")
@ApiModelProperty(name = "主类型", value = "主类型") @ApiModelProperty(name = "主类型", value = "主类型")
private String mianType; private String mainType;
/** 父类型 */ /** 父类型 */
@Excel(name = "父类型") @Excel(name = "父类型")
@ -94,7 +94,7 @@ public class ProjectInfo extends BaseEntity {
return ProjectInfo.builder() return ProjectInfo.builder()
.name(projectInfoQueryReq.getName()) .name(projectInfoQueryReq.getName())
.introduction(projectInfoQueryReq.getIntroduction()) .introduction(projectInfoQueryReq.getIntroduction())
.mianType(projectInfoQueryReq.getMianType()) .mainType(projectInfoQueryReq.getMainType())
.parentType(projectInfoQueryReq.getParentType()) .parentType(projectInfoQueryReq.getParentType())
.type(projectInfoQueryReq.getType()) .type(projectInfoQueryReq.getType())
.image(projectInfoQueryReq.getImage()) .image(projectInfoQueryReq.getImage())
@ -112,7 +112,7 @@ public class ProjectInfo extends BaseEntity {
return ProjectInfo.builder() return ProjectInfo.builder()
.name(projectInfoSaveReq.getName()) .name(projectInfoSaveReq.getName())
.introduction(projectInfoSaveReq.getIntroduction()) .introduction(projectInfoSaveReq.getIntroduction())
.mianType(projectInfoSaveReq.getMianType()) .mainType(projectInfoSaveReq.getMainType())
.parentType(projectInfoSaveReq.getParentType()) .parentType(projectInfoSaveReq.getParentType())
.type(projectInfoSaveReq.getType()) .type(projectInfoSaveReq.getType())
.image(projectInfoSaveReq.getImage()) .image(projectInfoSaveReq.getImage())
@ -131,7 +131,7 @@ public class ProjectInfo extends BaseEntity {
.id(id) .id(id)
.name(projectInfoEditReq.getName()) .name(projectInfoEditReq.getName())
.introduction(projectInfoEditReq.getIntroduction()) .introduction(projectInfoEditReq.getIntroduction())
.mianType(projectInfoEditReq.getMianType()) .mainType(projectInfoEditReq.getMainType())
.parentType(projectInfoEditReq.getParentType()) .parentType(projectInfoEditReq.getParentType())
.type(projectInfoEditReq.getType()) .type(projectInfoEditReq.getType())
.image(projectInfoEditReq.getImage()) .image(projectInfoEditReq.getImage())

View File

@ -25,7 +25,7 @@ public class BrandInfoEditReq extends BaseEntity {
/** 品牌名称 */ /** 品牌名称 */
@ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true) @ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true)
private String nam; private String name;
/** LOGO */ /** LOGO */
@ApiModelProperty(name = "LOGO", value = "LOGO", required = true) @ApiModelProperty(name = "LOGO", value = "LOGO", required = true)

View File

@ -25,7 +25,7 @@ public class BrandInfoQueryReq extends BaseEntity {
/** 品牌名称 */ /** 品牌名称 */
@ApiModelProperty(name = "品牌名称", value = "品牌名称") @ApiModelProperty(name = "品牌名称", value = "品牌名称")
private String nam; private String name;
/** LOGO */ /** LOGO */
@ApiModelProperty(name = "LOGO", value = "LOGO") @ApiModelProperty(name = "LOGO", value = "LOGO")

View File

@ -31,7 +31,7 @@ public class BrandInfoSaveReq extends BaseEntity {
/** 品牌名称 */ /** 品牌名称 */
@ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true) @ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true)
private String nam; private String name;
/** LOGO */ /** LOGO */

View File

@ -33,7 +33,7 @@ public class ProjectInfoEditReq extends BaseEntity {
/** 主类型 */ /** 主类型 */
@ApiModelProperty(name = "主类型", value = "主类型") @ApiModelProperty(name = "主类型", value = "主类型")
private String mianType; private String mainType;
/** 父类型 */ /** 父类型 */
@ApiModelProperty(name = "父类型", value = "父类型") @ApiModelProperty(name = "父类型", value = "父类型")

View File

@ -33,7 +33,7 @@ public class ProjectInfoQueryReq extends BaseEntity {
/** 主类型 */ /** 主类型 */
@ApiModelProperty(name = "主类型", value = "主类型") @ApiModelProperty(name = "主类型", value = "主类型")
private String mianType; private String mainType;
/** 父类型 */ /** 父类型 */
@ApiModelProperty(name = "父类型", value = "父类型") @ApiModelProperty(name = "父类型", value = "父类型")

View File

@ -41,7 +41,7 @@ public class ProjectInfoSaveReq extends BaseEntity {
/** 主类型 */ /** 主类型 */
@ApiModelProperty(name = "主类型", value = "主类型") @ApiModelProperty(name = "主类型", value = "主类型")
private String mianType; private String mainType;
/** 父类型 */ /** 父类型 */

View File

@ -94,13 +94,14 @@ public class AttributeInfoController extends BaseController {
* *
*/ */
@RequiresPermissions("product:attribute:edit") @RequiresPermissions("product:attribute:edit")
@Log(title = "商品属性", businessType = BusinessType.UPDATE) @Log(title = "商品属性",businessType = BusinessType.UPDATE)
@PutMapping("/{id}") @PutMapping("/{id}")
@ApiOperation("修改商品属性") @ApiOperation("修改商品属性")
public Result<String> edit(@PathVariable Long id, @RequestBody AttributeInfoEditReq attributeInfoEditReq) { public Result<String> edit(@PathVariable Long id, @RequestBody AttributeInfoEditReq attributeInfoEditReq) {
return toAjax(attributeInfoService.updateById(AttributeInfo.editBuild(id,attributeInfoEditReq))); return toAjax(attributeInfoService.updateById(AttributeInfo.editBuild(id,attributeInfoEditReq)));
} }
/** /**
* *
*/ */

View File

@ -14,6 +14,7 @@ import org.apache.ibatis.annotations.Param;
*/ */
@Mapper @Mapper
public interface AsAttributeGroupMapper extends BaseMapper<AsAttributeGroup> { public interface AsAttributeGroupMapper extends BaseMapper<AsAttributeGroup> {
void deleteAsAttributeGroup(@Param("attributeIds") List<Long> attributeIds); void deleteAsAttributeGroup(@Param("attributeIds") List<Long> attributeIds);
} }

View File

@ -4,21 +4,10 @@ import java.util.List;
import com.muyu.product.domain.AsAttributeGroup; import com.muyu.product.domain.AsAttributeGroup;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author DongZeLiang
* @date 2024-02-27
*/
public interface AsAttributeGroupService extends IService<AsAttributeGroup> { public interface AsAttributeGroupService extends IService<AsAttributeGroup> {
/** /**
* *
*
* @param asAttributeGroup
* @return
*/ */
public List<AsAttributeGroup> list(AsAttributeGroup asAttributeGroup); public List<AsAttributeGroup> list(AsAttributeGroup asAttributeGroup);
void deleteAsAttributeGroup(List<Long> attributeId); void deleteAsAttributeGroup(List<Long> attributeId);
} }

View File

@ -20,25 +20,16 @@ public interface AttributeGroupService extends IService<AttributeGroup> {
/** /**
* *
* @param attributeGroup
* @return
*/ */
public TableDataInfo<AttributeGroupPageResp> page(AttributeGroup attributeGroup); public TableDataInfo<AttributeGroupPageResp> page(AttributeGroup attributeGroup);
/** /**
* *
*
* @param attributeGroup
* @return
*/ */
public List<AttributeGroup> list(AttributeGroup attributeGroup); public List<AttributeGroup> list(AttributeGroup attributeGroup);
/**
*
* @param attributeGroupSaveModel
* @return
*/
public Boolean save(AttributeGroupSaveModel attributeGroupSaveModel); public Boolean save(AttributeGroupSaveModel attributeGroupSaveModel);
void updateAsAttributeGrop(AttributeGroupEditReq attributeGroupEditReq,Long groupId); void updateAsAttributeGrop(AttributeGroupEditReq attributeGroupEditReq,Long groupId);
} }

View File

@ -11,18 +11,14 @@ import com.baomidou.mybatisplus.extension.service.IService;
* @date 2024-02-27 * @date 2024-02-27
*/ */
public interface AttributeInfoService extends IService<AttributeInfo> { public interface AttributeInfoService extends IService<AttributeInfo> {
/** /**
* *
*
* @param attributeInfo
* @return
*/ */
public List<AttributeInfo> list(AttributeInfo attributeInfo); public List<AttributeInfo> list(AttributeInfo attributeInfo);
/** /**
* groupId * groupId
* @param groupId Id
* @return
*/ */
public List<AttributeInfo> attributeListByGroupId(Long groupId); public List<AttributeInfo> attributeListByGroupId(Long groupId);
} }

View File

@ -20,7 +20,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
*/ */
@Slf4j @Slf4j
@Service @Service
public class AsAttributeGroupServiceImpl extends ServiceImpl<AsAttributeGroupMapper, AsAttributeGroup> implements AsAttributeGroupService { public class AsAttributeGroupServiceImpl extends ServiceImpl<AsAttributeGroupMapper, AsAttributeGroup> implements AsAttributeGroupService
{
@Autowired @Autowired
private AsAttributeGroupMapper asAttributeGroupMapper; private AsAttributeGroupMapper asAttributeGroupMapper;
@ -34,20 +35,12 @@ public class AsAttributeGroupServiceImpl extends ServiceImpl<AsAttributeGroupMap
@Override @Override
public List<AsAttributeGroup> list(AsAttributeGroup asAttributeGroup) { public List<AsAttributeGroup> list(AsAttributeGroup asAttributeGroup) {
LambdaQueryWrapper<AsAttributeGroup> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AsAttributeGroup> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(asAttributeGroup.getGroupId())){ if (ObjUtils.notNull(asAttributeGroup.getGroupId())){
queryWrapper.eq(AsAttributeGroup::getGroupId, asAttributeGroup.getGroupId()); queryWrapper.eq(AsAttributeGroup::getGroupId, asAttributeGroup.getGroupId());
} }
if (ObjUtils.notNull(asAttributeGroup.getAttributeId())){ if (ObjUtils.notNull(asAttributeGroup.getAttributeId())){
queryWrapper.eq(AsAttributeGroup::getAttributeId, asAttributeGroup.getAttributeId()); queryWrapper.eq(AsAttributeGroup::getAttributeId, asAttributeGroup.getAttributeId());
} }
return list(queryWrapper); return list(queryWrapper);
} }

View File

@ -68,27 +68,23 @@ public class AttributeGroupServiceImpl extends ServiceImpl<AttributeGroupMapper,
} }
/** /**
* *
*
* @param attributeGroup
*
* @return
*/ */
@Override @Override
public List<AttributeGroup> list (AttributeGroup attributeGroup) { public List<AttributeGroup> list(AttributeGroup attributeGroup) {
LambdaQueryWrapper<AttributeGroup> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AttributeGroup> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(attributeGroup.getName())) { if(ObjUtils.notNull(attributeGroup.getName())){
queryWrapper.like(AttributeGroup::getName, attributeGroup.getName()); queryWrapper.like(AttributeGroup::getName,attributeGroup.getName());
} }
if (ObjUtils.notNull(attributeGroup.getStates())) { if(ObjUtils.notNull(attributeGroup.getStates())){
queryWrapper.eq(AttributeGroup::getStates, attributeGroup.getStates()); queryWrapper.eq(AttributeGroup::getStates,attributeGroup.getStates());
} }
return list(queryWrapper); return list(queryWrapper);
} }
/** /**
* *
* *

View File

@ -2,6 +2,7 @@ package com.muyu.product.service.impl;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.Stream;
import com.muyu.common.core.exception.ServiceException; import com.muyu.common.core.exception.ServiceException;
import com.muyu.common.core.utils.ObjUtils; import com.muyu.common.core.utils.ObjUtils;
@ -26,26 +27,20 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
@Service @Service
public class AttributeInfoServiceImpl extends ServiceImpl<AttributeInfoMapper, AttributeInfo> implements AttributeInfoService { public class AttributeInfoServiceImpl extends ServiceImpl<AttributeInfoMapper, AttributeInfo> implements AttributeInfoService {
// @Autowired
// private AsAttributeGroupService asAttributeGroupService;
@Autowired @Autowired
private AsAttributeGroupService asAttributeGroupService; private AsAttributeGroupService asAttributeGroupService;
/**
*
*
* @param attributeInfo
* @return
*/
@Override @Override
public List<AttributeInfo> list(AttributeInfo attributeInfo) { public List<AttributeInfo> list(AttributeInfo attributeInfo) {
LambdaQueryWrapper<AttributeInfo> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AttributeInfo> queryWrapper = new LambdaQueryWrapper<>();
if(ObjUtils.notNull(attributeInfo.getName())){
queryWrapper.like(AttributeInfo::getName,attributeInfo.getName());
if (ObjUtils.notNull(attributeInfo.getName())){
queryWrapper.like(AttributeInfo::getName, attributeInfo.getName());
} }
if(ObjUtils.notNull(attributeInfo.getCode())){
if (ObjUtils.notNull(attributeInfo.getCode())){ queryWrapper.like(AttributeInfo::getCode,attributeInfo.getCode());
queryWrapper.like(AttributeInfo::getCode, attributeInfo.getCode());
} }
return list(queryWrapper); return list(queryWrapper);
@ -53,27 +48,25 @@ public class AttributeInfoServiceImpl extends ServiceImpl<AttributeInfoMapper, A
/** /**
* groupId * groupId
*
* @param groupId Id
*
* @return
*/ */
@Override @Override
public List<AttributeInfo> attributeListByGroupId (Long groupId) { public List<AttributeInfo> attributeListByGroupId(Long groupId) {
if (groupId == null){ if(groupId == null){
throw new ServiceException("查询商品属性组属性组ID不可为空"); throw new ServiceException("查询商品属性组属性组ID不可为空");
} }
LambdaQueryWrapper<AsAttributeGroup> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AsAttributeGroup> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(AsAttributeGroup::getGroupId, groupId); queryWrapper.eq(AsAttributeGroup::getGroupId,groupId);
List<Long> longs = asAttributeGroupService.list(queryWrapper).stream() List<Long> longs = asAttributeGroupService.list(queryWrapper).stream()
.map(AsAttributeGroup::getAttributeId) .map(AsAttributeGroup::getAttributeId)
.toList(); .toList();
System.out.println("====="+longs.toString()); System.out.println("===="+longs.toString());
List<Long> longs1 = new ArrayList<>(); List<Long> longs1 = new ArrayList<>();
return this.listByIds( return this.listByIds(
asAttributeGroupService.list(queryWrapper).stream() asAttributeGroupService.list(queryWrapper).stream()
.map(AsAttributeGroup::getAttributeId) .map(AsAttributeGroup::getAttributeId)
.toList() .toList()
); );
} }
} }

View File

@ -34,8 +34,8 @@ public class BrandInfoServiceImpl extends ServiceImpl<BrandInfoMapper, BrandInfo
LambdaQueryWrapper<BrandInfo> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<BrandInfo> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(brandInfo.getNam())){ if (ObjUtils.notNull(brandInfo.getName())){
queryWrapper.eq(BrandInfo::getNam, brandInfo.getNam()); queryWrapper.eq(BrandInfo::getName, brandInfo.getName());
} }
if (ObjUtils.notNull(brandInfo.getLogo())){ if (ObjUtils.notNull(brandInfo.getLogo())){

View File

@ -40,8 +40,8 @@ public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, Proje
queryWrapper.eq(ProjectInfo::getIntroduction, projectInfo.getIntroduction()); queryWrapper.eq(ProjectInfo::getIntroduction, projectInfo.getIntroduction());
} }
if (ObjUtils.notNull(projectInfo.getMianType())){ if (ObjUtils.notNull(projectInfo.getMainType())){
queryWrapper.eq(ProjectInfo::getMianType, projectInfo.getMianType()); queryWrapper.eq(ProjectInfo::getMainType, projectInfo.getMainType());
} }
if (ObjUtils.notNull(projectInfo.getParentType())){ if (ObjUtils.notNull(projectInfo.getParentType())){

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 43.142.44.217 server-addr: 101.34.248.9
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -6,7 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="com.muyu.product.domain.BrandInfo" id="BrandInfoResult"> <resultMap type="com.muyu.product.domain.BrandInfo" id="BrandInfoResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="nam" column="nam" /> <result property="name" column="name" />
<result property="logo" column="logo" /> <result property="logo" column="logo" />
<result property="start" column="start" /> <result property="start" column="start" />
<result property="introduction" column="introduction" /> <result property="introduction" column="introduction" />
@ -18,6 +18,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectBrandInfoVo"> <sql id="selectBrandInfoVo">
select id, nam, logo, start, introduction, remark, create_by, create_time, update_by, update_time from brand_info select id, name, logo, start, introduction, remark, create_by, create_time, update_by, update_time from brand_info
</sql> </sql>
</mapper> </mapper>

View File

@ -8,7 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="id" column="id" /> <result property="id" column="id" />
<result property="name" column="name" /> <result property="name" column="name" />
<result property="introduction" column="introduction" /> <result property="introduction" column="introduction" />
<result property="mianType" column="mian_type" /> <result property="mainType" column="main_type" />
<result property="parentType" column="parent_type" /> <result property="parentType" column="parent_type" />
<result property="type" column="type" /> <result property="type" column="type" />
<result property="image" column="image" /> <result property="image" column="image" />

View File

@ -14,10 +14,10 @@ spring:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 43.142.44.217:8848 server-addr: 101.34.248.9:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置