还差商品信息
parent
342647b13a
commit
013b02c652
|
@ -66,6 +66,8 @@ public class SysLoginService {
|
||||||
}
|
}
|
||||||
// 查询用户信息
|
// 查询用户信息
|
||||||
Result<LoginUser> userResult = remoteUserService.getUserInfo(username, SecurityConstants.INNER);
|
Result<LoginUser> userResult = remoteUserService.getUserInfo(username, SecurityConstants.INNER);
|
||||||
|
LoginUser data = userResult.getData();
|
||||||
|
System.out.println(data);
|
||||||
|
|
||||||
if (StringUtils.isNull(userResult) || StringUtils.isNull(userResult.getData())) {
|
if (StringUtils.isNull(userResult) || StringUtils.isNull(userResult.getData())) {
|
||||||
recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "登录用户不存在");
|
recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "登录用户不存在");
|
||||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
@ -23,3 +24,4 @@ spring:
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-configs:
|
shared-configs:
|
||||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
|
|
|
@ -6,6 +6,7 @@ package com.muyu.common.core.exception;
|
||||||
* @author muyu
|
* @author muyu
|
||||||
*/
|
*/
|
||||||
public final class ServiceException extends RuntimeException {
|
public final class ServiceException extends RuntimeException {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -88,6 +88,7 @@
|
||||||
<version>${swagger.fox.version}</version>
|
<version>${swagger.fox.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
@ -23,6 +24,7 @@ spring:
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-configs:
|
shared-configs:
|
||||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
sentinel:
|
sentinel:
|
||||||
# 取消控制台懒加载
|
# 取消控制台懒加载
|
||||||
eager: true
|
eager: true
|
||||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
@ -23,3 +24,4 @@ spring:
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-configs:
|
shared-configs:
|
||||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
@ -23,3 +24,4 @@ spring:
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-configs:
|
shared-configs:
|
||||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
@ -23,3 +24,4 @@ spring:
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-configs:
|
shared-configs:
|
||||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
|
|
|
@ -62,6 +62,11 @@ public class CategoryInfo extends TreeEntity {
|
||||||
@ApiModelProperty(name = "介绍", value = "介绍")
|
@ApiModelProperty(name = "介绍", value = "介绍")
|
||||||
private String introduction;
|
private String introduction;
|
||||||
|
|
||||||
|
|
||||||
|
@Excel(name = "父级id")
|
||||||
|
@ApiModelProperty(name = "父级id", value = "父级id")
|
||||||
|
private Long parentId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询构造器
|
* 查询构造器
|
||||||
*/
|
*/
|
||||||
|
@ -69,6 +74,7 @@ public class CategoryInfo extends TreeEntity {
|
||||||
return CategoryInfo.builder()
|
return CategoryInfo.builder()
|
||||||
.name(categoryInfoQueryReq.getName())
|
.name(categoryInfoQueryReq.getName())
|
||||||
.image(categoryInfoQueryReq.getImage())
|
.image(categoryInfoQueryReq.getImage())
|
||||||
|
.parentId(categoryInfoQueryReq.getParentId())
|
||||||
.start(categoryInfoQueryReq.getStart())
|
.start(categoryInfoQueryReq.getStart())
|
||||||
.introduction(categoryInfoQueryReq.getIntroduction())
|
.introduction(categoryInfoQueryReq.getIntroduction())
|
||||||
.build();
|
.build();
|
||||||
|
@ -98,6 +104,7 @@ public class CategoryInfo extends TreeEntity {
|
||||||
.name(categoryInfoEditReq.getName())
|
.name(categoryInfoEditReq.getName())
|
||||||
.image(categoryInfoEditReq.getImage())
|
.image(categoryInfoEditReq.getImage())
|
||||||
.start(categoryInfoEditReq.getStart())
|
.start(categoryInfoEditReq.getStart())
|
||||||
|
.parentId(categoryInfoEditReq.getParentId())
|
||||||
.introduction(categoryInfoEditReq.getIntroduction())
|
.introduction(categoryInfoEditReq.getIntroduction())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ public class CommentInfo extends BaseEntity {
|
||||||
/** 图片 */
|
/** 图片 */
|
||||||
@Excel(name = "图片")
|
@Excel(name = "图片")
|
||||||
@ApiModelProperty(name = "图片", value = "图片")
|
@ApiModelProperty(name = "图片", value = "图片")
|
||||||
private String images;
|
private String image;
|
||||||
|
|
||||||
/** 父类id */
|
/** 父类id */
|
||||||
@Excel(name = "父类id")
|
@Excel(name = "父类id")
|
||||||
|
@ -64,7 +64,7 @@ public class CommentInfo extends BaseEntity {
|
||||||
return CommentInfo.builder()
|
return CommentInfo.builder()
|
||||||
.projectId(commentInfoQueryReq.getProjectId())
|
.projectId(commentInfoQueryReq.getProjectId())
|
||||||
.comment(commentInfoQueryReq.getComment())
|
.comment(commentInfoQueryReq.getComment())
|
||||||
.images(commentInfoQueryReq.getImages())
|
.image(commentInfoQueryReq.getImages())
|
||||||
.parentId(commentInfoQueryReq.getParentId())
|
.parentId(commentInfoQueryReq.getParentId())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ public class CommentInfo extends BaseEntity {
|
||||||
return CommentInfo.builder()
|
return CommentInfo.builder()
|
||||||
.projectId(commentInfoSaveReq.getProjectId())
|
.projectId(commentInfoSaveReq.getProjectId())
|
||||||
.comment(commentInfoSaveReq.getComment())
|
.comment(commentInfoSaveReq.getComment())
|
||||||
.images(commentInfoSaveReq.getImages())
|
.image(commentInfoSaveReq.getImages())
|
||||||
.parentId(commentInfoSaveReq.getParentId())
|
.parentId(commentInfoSaveReq.getParentId())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ public class CommentInfo extends BaseEntity {
|
||||||
.id(id)
|
.id(id)
|
||||||
.projectId(commentInfoEditReq.getProjectId())
|
.projectId(commentInfoEditReq.getProjectId())
|
||||||
.comment(commentInfoEditReq.getComment())
|
.comment(commentInfoEditReq.getComment())
|
||||||
.images(commentInfoEditReq.getImages())
|
.image(commentInfoEditReq.getImages())
|
||||||
.parentId(commentInfoEditReq.getParentId())
|
.parentId(commentInfoEditReq.getParentId())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
package com.muyu.product.service;
|
package com.muyu.product.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
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;
|
||||||
|
import com.muyu.product.domain.AsCategoryAttribute;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 属性与组中间Service接口
|
* 属性与组中间Service接口
|
||||||
|
@ -17,6 +20,6 @@ public interface AsAttributeGroupService extends IService<AsAttributeGroup> {
|
||||||
* @param asAttributeGroup 属性与组中间
|
* @param asAttributeGroup 属性与组中间
|
||||||
* @return 属性与组中间集合
|
* @return 属性与组中间集合
|
||||||
*/
|
*/
|
||||||
public List<AsAttributeGroup> list(AsAttributeGroup asAttributeGroup);
|
public List<AsAttributeGroup> list(LambdaQueryWrapper<AsCategoryAttribute> asAttributeGroup);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.muyu.product.service.impl;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.muyu.common.core.utils.ObjUtils;
|
import com.muyu.common.core.utils.ObjUtils;
|
||||||
|
import com.muyu.product.domain.AsCategoryAttribute;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.muyu.product.mapper.AsAttributeGroupMapper;
|
import com.muyu.product.mapper.AsAttributeGroupMapper;
|
||||||
|
@ -28,20 +29,18 @@ public class AsAttributeGroupServiceImpl extends ServiceImpl<AsAttributeGroupMap
|
||||||
* @return 属性与组中间
|
* @return 属性与组中间
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<AsAttributeGroup> list(AsAttributeGroup asAttributeGroup) {
|
public List<AsAttributeGroup> list(LambdaQueryWrapper<AsCategoryAttribute> 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())){
|
//
|
||||||
queryWrapper.eq(AsAttributeGroup::getAttributeId, asAttributeGroup.getAttributeId());
|
// if (ObjUtils.notNull(asAttributeGroup.getAttributeId())){
|
||||||
}
|
// queryWrapper.eq(AsAttributeGroup::getAttributeId, asAttributeGroup.getAttributeId());
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return list(queryWrapper);
|
return list(queryWrapper);
|
||||||
|
|
|
@ -62,6 +62,8 @@ public class AttributeGroupServiceImpl extends ServiceImpl<AttributeGroupMapper,
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询属性组列表
|
* 查询属性组列表
|
||||||
*
|
*
|
||||||
|
|
|
@ -0,0 +1,99 @@
|
||||||
|
package com.muyu.product.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.muyu.product.domain.*;
|
||||||
|
import com.muyu.product.domain.model.CategoryInfoSaveModel;
|
||||||
|
import com.muyu.product.domain.resp.CategoryParentCommonElementResp;
|
||||||
|
import com.muyu.product.mapper.CategoryInfoMapper;
|
||||||
|
import com.muyu.product.service.*;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
public class CategoryInfoServiceImpl1 extends ServiceImpl<CategoryInfoMapper, CategoryInfo> implements CategoryInfoService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AsAttributeGroupService asAttributeGroupService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AsCategoryAttributeService asCategoryAttributeService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AsCategoryBrandService asCategoryBrandService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BrandInfoService brandInfoService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AttributeInfoService attributeInfoService;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CategoryInfo> list(CategoryInfo categoryInfo) {
|
||||||
|
//创建一个查询条件
|
||||||
|
LambdaQueryWrapper<CategoryInfo> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
if (Objects.nonNull(categoryInfo.getName())){
|
||||||
|
queryWrapper.like(CategoryInfo::getName,categoryInfo.getName());
|
||||||
|
}
|
||||||
|
if (Objects.nonNull(categoryInfo.getImage())){
|
||||||
|
queryWrapper.eq(CategoryInfo::getImage,categoryInfo.getImage());
|
||||||
|
}
|
||||||
|
if (Objects.nonNull(categoryInfo.getParentId())){
|
||||||
|
queryWrapper.eq(CategoryInfo::getParentId,categoryInfo.getParentId());
|
||||||
|
}
|
||||||
|
if (Objects.nonNull(categoryInfo.getStart())){
|
||||||
|
queryWrapper.eq(CategoryInfo::getStart,categoryInfo.getStart());
|
||||||
|
}
|
||||||
|
if (Objects.nonNull(categoryInfo.getIntroduction())){
|
||||||
|
queryWrapper.eq(CategoryInfo::getIntroduction,categoryInfo.getIntroduction());
|
||||||
|
}
|
||||||
|
|
||||||
|
return list(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public boolean save(CategoryInfoSaveModel categoryInfoSaveModel) {
|
||||||
|
//创建对象
|
||||||
|
CategoryInfo categoryInfo = CategoryInfo.saveModelBuild(categoryInfoSaveModel);
|
||||||
|
boolean save = this.save(categoryInfo);
|
||||||
|
Long categoryInfoId = categoryInfo.getId();
|
||||||
|
List<Long> attributeIdList = categoryInfoSaveModel.getAttributeIdList();
|
||||||
|
if (attributeIdList!=null&& !attributeIdList.isEmpty()){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<AttributeGroup> getAttributeGroup(Long categoryId) {
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<BrandInfo> getBrand(Long categoryId) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<AttributeInfo> getAttribute(Long categoryId) {
|
||||||
|
List<AttributeInfo> attributeInfos = new ArrayList<>();
|
||||||
|
LambdaQueryWrapper<AsCategoryAttribute> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
asAttributeGroupService.list(queryWrapper);
|
||||||
|
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CategoryParentCommonElementResp parentCommonElement(Long categoryId) {
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
|
@ -40,8 +40,8 @@ public class CommentInfoServiceImpl extends ServiceImpl<CommentInfoMapper, Comme
|
||||||
queryWrapper.eq(CommentInfo::getComment, commentInfo.getComment());
|
queryWrapper.eq(CommentInfo::getComment, commentInfo.getComment());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ObjUtils.notNull(commentInfo.getImages())){
|
if (ObjUtils.notNull(commentInfo.getImage())){
|
||||||
queryWrapper.eq(CommentInfo::getImages, commentInfo.getImages());
|
queryWrapper.eq(CommentInfo::getImage, commentInfo.getImage());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ObjUtils.notNull(commentInfo.getParentId())){
|
if (ObjUtils.notNull(commentInfo.getParentId())){
|
||||||
|
@ -49,9 +49,6 @@ public class CommentInfoServiceImpl extends ServiceImpl<CommentInfoMapper, Comme
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return list(queryWrapper);
|
return list(queryWrapper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,9 +15,11 @@ spring:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
|
|
|
@ -19,6 +19,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectCategoryInfoVo">
|
<sql id="selectCategoryInfoVo">
|
||||||
select id, name, image, parent_id, start, introduction, remark, create_by, create_time, update_by, update_time from category_info
|
select id, name, image, start,parent_id, start, introduction, remark, create_by, create_time, update_by, update_time from category_info
|
||||||
</sql>
|
</sql>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -8,7 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="projectId" column="project_id" />
|
<result property="projectId" column="project_id" />
|
||||||
<result property="comment" column="comment" />
|
<result property="comment" column="comment" />
|
||||||
<result property="images" column="images" />
|
<result property="image" column="images" />
|
||||||
<result property="parentId" column="parent_id" />
|
<result property="parentId" column="parent_id" />
|
||||||
<result property="remark" column="remark" />
|
<result property="remark" column="remark" />
|
||||||
<result property="createBy" column="create_by" />
|
<result property="createBy" column="create_by" />
|
||||||
|
|
|
@ -5,6 +5,7 @@ import com.muyu.common.security.annotation.EnableMyFeignClients;
|
||||||
import com.muyu.common.swagger.annotation.EnableCustomSwagger2;
|
import com.muyu.common.swagger.annotation.EnableCustomSwagger2;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统模块
|
* 系统模块
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class SysDictDataController extends BaseController {
|
||||||
|
|
||||||
@RequiresPermissions("system:dict:list")
|
@RequiresPermissions("system:dict:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public Result<TableDataInfo<SysDictData>> list (SysDictData dictData) {
|
public Result<TableDataInfo<SysDictData>> list (@RequestBody SysDictData dictData) {
|
||||||
startPage();
|
startPage();
|
||||||
List<SysDictData> list = dictDataService.selectDictDataList(dictData);
|
List<SysDictData> list = dictDataService.selectDictDataList(dictData);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
|
@ -45,7 +45,7 @@ public class SysDictDataController extends BaseController {
|
||||||
@Log(title = "字典数据", businessType = BusinessType.EXPORT)
|
@Log(title = "字典数据", businessType = BusinessType.EXPORT)
|
||||||
@RequiresPermissions("system:dict:export")
|
@RequiresPermissions("system:dict:export")
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export (HttpServletResponse response, SysDictData dictData) {
|
public void export (HttpServletResponse response,@RequestBody SysDictData dictData) {
|
||||||
List<SysDictData> list = dictDataService.selectDictDataList(dictData);
|
List<SysDictData> list = dictDataService.selectDictDataList(dictData);
|
||||||
ExcelUtil<SysDictData> util = new ExcelUtil<SysDictData>(SysDictData.class);
|
ExcelUtil<SysDictData> util = new ExcelUtil<SysDictData>(SysDictData.class);
|
||||||
util.exportExcel(response, list, "字典数据");
|
util.exportExcel(response, list, "字典数据");
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.muyu.system.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.muyu.common.system.domain.SysDictData;
|
import com.muyu.common.system.domain.SysDictData;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -11,6 +12,7 @@ import java.util.List;
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author muyu
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SysDictDataMapper extends BaseMapper<SysDictData> {
|
public interface SysDictDataMapper extends BaseMapper<SysDictData> {
|
||||||
/**
|
/**
|
||||||
* 根据条件分页查询字典数据
|
* 根据条件分页查询字典数据
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.muyu.system.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.muyu.common.system.domain.SysDictType;
|
import com.muyu.common.system.domain.SysDictType;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -10,6 +11,7 @@ import java.util.List;
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author muyu
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
|
public interface SysDictTypeMapper extends BaseMapper<SysDictType> {
|
||||||
/**
|
/**
|
||||||
* 根据条件分页查询字典类型
|
* 根据条件分页查询字典类型
|
||||||
|
|
|
@ -15,6 +15,7 @@ spring:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 115.159.67.205:8848
|
server-addr: 115.159.67.205:8848
|
||||||
|
@ -23,6 +24,7 @@ spring:
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-configs:
|
shared-configs:
|
||||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
com.muyu.system.mapper: DEBUG
|
com.muyu.system.mapper: DEBUG
|
||||||
|
|
|
@ -23,3 +23,4 @@ spring:
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-configs:
|
shared-configs:
|
||||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
|
namespace: e47d9b61-1cb9-48b7-97b3-2692bfaf34a3
|
||||||
|
|
Loading…
Reference in New Issue