Compare commits
10 Commits
aa1b9f7979
...
c2c12ef52f
Author | SHA1 | Date |
---|---|---|
|
c2c12ef52f | |
|
98f6dbdf97 | |
|
21d527c274 | |
|
a49f146c7c | |
|
75fd16e774 | |
|
d397faa918 | |
|
6bd5d2be95 | |
|
4df1bd25ac | |
|
f39563d4b8 | |
|
d57a082384 |
|
@ -14,10 +14,11 @@ spring:
|
|||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
namespace: b8ace5a6-28a3-4126-b109-9b6623c58dc0
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
@ -136,6 +136,11 @@
|
|||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -58,7 +58,7 @@ public class IpUtils {
|
|||
ip = request.getRemoteAddr();
|
||||
}
|
||||
|
||||
return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : getMultistageReverseProxyIp(ip);
|
||||
return "0:0:0:0:0:0:0:1".equals(ip) ? "115.159.211.196" : getMultistageReverseProxyIp(ip);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,7 +70,7 @@ public class IpUtils {
|
|||
*/
|
||||
public static boolean internalIp (String ip) {
|
||||
byte[] addr = textToNumericFormatV4(ip);
|
||||
return internalIp(addr) || "127.0.0.1".equals(ip);
|
||||
return internalIp(addr) || "115.159.211.196".equals(ip);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -197,7 +197,7 @@ public class IpUtils {
|
|||
return InetAddress.getLocalHost().getHostAddress();
|
||||
} catch (UnknownHostException e) {
|
||||
}
|
||||
return "127.0.0.1";
|
||||
return "115.159.211.196";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,115 @@
|
|||
package com.muyu.common.system.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.web.domain.TreeEntity;
|
||||
import com.muyu.common.system.domain.req.SysDistrictEditReq;
|
||||
import com.muyu.common.system.domain.req.SysDistrictQueryReq;
|
||||
import com.muyu.common.system.domain.req.SysDistrictSaveReq;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
|
||||
/**
|
||||
* 地域地区对象 sys_district
|
||||
*
|
||||
* @author DongZeLiang
|
||||
* @date 2024-04-11
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("sys_district")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "SysDistrict", description = "地域地区")
|
||||
public class SysDistrict extends TreeEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
@ApiModelProperty(name = "ID", value = "ID")
|
||||
private Long id;
|
||||
|
||||
/** 名称 */
|
||||
@Excel(name = "名称")
|
||||
@ApiModelProperty(name = "名称", value = "名称")
|
||||
private String name;
|
||||
|
||||
|
||||
/** 编码 */
|
||||
@Excel(name = "编码")
|
||||
@ApiModelProperty(name = "编码", value = "编码")
|
||||
private String code;
|
||||
|
||||
/** 级别 */
|
||||
@Excel(name = "级别")
|
||||
@ApiModelProperty(name = "级别", value = "级别")
|
||||
private String level;
|
||||
|
||||
/** 级别编码 */
|
||||
@ApiModelProperty(name = "级别编码", value = "级别编码")
|
||||
private String codeLevel;
|
||||
|
||||
/** 区域编码 */
|
||||
@Excel(name = "区域编码")
|
||||
@ApiModelProperty(name = "区域编码", value = "区域编码")
|
||||
private String areaCode;
|
||||
|
||||
/** 中心经纬度 */
|
||||
@Excel(name = "中心经纬度")
|
||||
@ApiModelProperty(name = "中心经纬度", value = "中心经纬度")
|
||||
private String center;
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
public static SysDistrict queryBuild( SysDistrictQueryReq sysDistrictQueryReq){
|
||||
return SysDistrict.builder()
|
||||
.parentId(sysDistrictQueryReq.getParentId())
|
||||
.name(sysDistrictQueryReq.getName())
|
||||
.code(sysDistrictQueryReq.getCode())
|
||||
.level(sysDistrictQueryReq.getLevel())
|
||||
.areaCode(sysDistrictQueryReq.getAreaCode())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static SysDistrict saveBuild(SysDistrictSaveReq sysDistrictSaveReq){
|
||||
return SysDistrict.builder()
|
||||
.parentId(sysDistrictSaveReq.getParentId())
|
||||
.name(sysDistrictSaveReq.getName())
|
||||
.code(sysDistrictSaveReq.getCode())
|
||||
.level(sysDistrictSaveReq.getLevel())
|
||||
.codeLevel(sysDistrictSaveReq.getCodeLevel())
|
||||
.areaCode(sysDistrictSaveReq.getAreaCode())
|
||||
.center(sysDistrictSaveReq.getCenter())
|
||||
.build();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改构造器
|
||||
*/
|
||||
public static SysDistrict editBuild(Long id, SysDistrictEditReq sysDistrictEditReq){
|
||||
return SysDistrict.builder()
|
||||
.id(id)
|
||||
.parentId(sysDistrictEditReq.getParentId())
|
||||
.name(sysDistrictEditReq.getName())
|
||||
.code(sysDistrictEditReq.getCode())
|
||||
.level(sysDistrictEditReq.getLevel())
|
||||
.codeLevel(sysDistrictEditReq.getCodeLevel())
|
||||
.areaCode(sysDistrictEditReq.getAreaCode())
|
||||
.center(sysDistrictEditReq.getCenter())
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
package com.muyu.common.system.domain.req;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 地域地区对象 sys_district
|
||||
*
|
||||
* @author DongZeLiang
|
||||
* @date 2024-04-11
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "SysDistrictEditReq", description = "地域地区")
|
||||
public class SysDistrictEditReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 父级 */
|
||||
@ApiModelProperty(name = "父级", value = "父级")
|
||||
private Long parentId;
|
||||
|
||||
/** 名称 */
|
||||
@ApiModelProperty(name = "名称", value = "名称")
|
||||
private String name;
|
||||
|
||||
/** 编码 */
|
||||
@ApiModelProperty(name = "编码", value = "编码")
|
||||
private String code;
|
||||
|
||||
/** 级别 */
|
||||
@ApiModelProperty(name = "级别", value = "级别")
|
||||
private String level;
|
||||
|
||||
/** 级别编码 */
|
||||
@ApiModelProperty(name = "级别编码", value = "级别编码")
|
||||
private String codeLevel;
|
||||
|
||||
/** 区域编码 */
|
||||
@ApiModelProperty(name = "区域编码", value = "区域编码")
|
||||
private String areaCode;
|
||||
|
||||
/** 中心经纬度 */
|
||||
@ApiModelProperty(name = "中心经纬度", value = "中心经纬度")
|
||||
private String center;
|
||||
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
package com.muyu.common.system.domain.req;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 地域地区对象 sys_district
|
||||
*
|
||||
* @author DongZeLiang
|
||||
* @date 2024-04-11
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "SysDistrictQueryReq", description = "地域地区")
|
||||
public class SysDistrictQueryReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 父级 */
|
||||
@ApiModelProperty(name = "父级", value = "父级")
|
||||
private Long parentId;
|
||||
|
||||
/** 名称 */
|
||||
@ApiModelProperty(name = "名称", value = "名称")
|
||||
private String name;
|
||||
|
||||
/** 编码 */
|
||||
@ApiModelProperty(name = "编码", value = "编码")
|
||||
private String code;
|
||||
|
||||
/** 级别 */
|
||||
@ApiModelProperty(name = "级别", value = "级别")
|
||||
private String level;
|
||||
|
||||
/** 区域编码 */
|
||||
@ApiModelProperty(name = "区域编码", value = "区域编码")
|
||||
private String areaCode;
|
||||
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
package com.muyu.common.system.domain.req;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import io.swagger.annotations.*;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 地域地区对象 sys_district
|
||||
*
|
||||
* @author DongZeLiang
|
||||
* @date 2024-04-11
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value = "SysDistrictSaveReq", description = "地域地区")
|
||||
public class SysDistrictSaveReq extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
||||
@ApiModelProperty(name = "ID", value = "ID")
|
||||
private Long id;
|
||||
|
||||
/** 父级 */
|
||||
|
||||
@ApiModelProperty(name = "父级", value = "父级")
|
||||
private Long parentId;
|
||||
|
||||
/** 名称 */
|
||||
|
||||
@ApiModelProperty(name = "名称", value = "名称")
|
||||
private String name;
|
||||
|
||||
/** 编码 */
|
||||
|
||||
@ApiModelProperty(name = "编码", value = "编码")
|
||||
private String code;
|
||||
|
||||
/** 级别 */
|
||||
|
||||
@ApiModelProperty(name = "级别", value = "级别")
|
||||
private String level;
|
||||
|
||||
/** 级别编码 */
|
||||
|
||||
@ApiModelProperty(name = "级别编码", value = "级别编码")
|
||||
private String codeLevel;
|
||||
|
||||
/** 区域编码 */
|
||||
|
||||
@ApiModelProperty(name = "区域编码", value = "区域编码")
|
||||
private String areaCode;
|
||||
|
||||
/** 中心经纬度 */
|
||||
|
||||
@ApiModelProperty(name = "中心经纬度", value = "中心经纬度")
|
||||
private String center;
|
||||
|
||||
}
|
|
@ -14,10 +14,11 @@ spring:
|
|||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
namespace: b8ace5a6-28a3-4126-b109-9b6623c58dc0
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
@ -28,12 +29,12 @@ spring:
|
|||
eager: true
|
||||
transport:
|
||||
# 控制台地址
|
||||
dashboard: 127.0.0.1:8718
|
||||
dashboard: 115.159.211.196:8718
|
||||
# nacos配置持久化
|
||||
datasource:
|
||||
ds1:
|
||||
nacos:
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
dataId: sentinel-muyu-gateway
|
||||
groupId: DEFAULT_GROUP
|
||||
data-type: json
|
||||
|
|
|
@ -14,10 +14,11 @@ spring:
|
|||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
namespace: b8ace5a6-28a3-4126-b109-9b6623c58dc0
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
@ -14,10 +14,11 @@ spring:
|
|||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
namespace: b8ace5a6-28a3-4126-b109-9b6623c58dc0
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
@ -14,10 +14,11 @@ spring:
|
|||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
namespace: b8ace5a6-28a3-4126-b109-9b6623c58dc0
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
@ -14,10 +14,11 @@ spring:
|
|||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
namespace: b8ace5a6-28a3-4126-b109-9b6623c58dc0
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
@ -30,5 +30,5 @@ public class CartInfoEditNumReq {
|
|||
/**
|
||||
* 数量
|
||||
*/
|
||||
private String num;
|
||||
private Long num;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
package com.muyu.shop.cart.domain.req;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: 删除
|
||||
* @Date 2024/4/9 上午11:52
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class RemoveCartProjectReq {
|
||||
|
||||
/**
|
||||
* 购物车ID
|
||||
*/
|
||||
private Long cartInfoId;
|
||||
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 商品SKU
|
||||
*/
|
||||
private String projectSku;
|
||||
}
|
|
@ -7,14 +7,7 @@ import com.muyu.shop.cart.domain.req.*;
|
|||
import com.muyu.shop.cart.domain.resp.CartDetailResp;
|
||||
import io.swagger.annotations.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
|
@ -119,7 +112,7 @@ public class CartInfoController extends BaseController {
|
|||
* @return
|
||||
*/
|
||||
@PostMapping("/num")
|
||||
public Result<String> CartInfoEditNum(@RequestBody CartInfoEditNumReq cartInfoEditNumReq){
|
||||
public Result<String> cartInfoEditNum(@RequestBody CartInfoEditNumReq cartInfoEditNumReq){
|
||||
cartInfoService.CartInfoEditNum(cartInfoEditNumReq);
|
||||
return Result.success();
|
||||
}
|
||||
|
@ -132,7 +125,18 @@ public class CartInfoController extends BaseController {
|
|||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除购物车")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
|
||||
public Result<String> remove(@PathVariable List<Long> ids) {
|
||||
public Result<String> removeByIds(@PathVariable List<Long> ids) {
|
||||
return toAjax(cartInfoService.removeBatchByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除购物车
|
||||
*/
|
||||
@RequiresPermissions("shopCart:Info:remove")
|
||||
@DeleteMapping("/remove")
|
||||
@ApiOperation("删除购物车")
|
||||
public Result<String> remove(@RequestBody List<RemoveCartProjectReq> removeCartProjectReqList) {
|
||||
cartInfoService.removeByRemoveCartProjectList(removeCartProjectReqList);
|
||||
return Result.success();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ import com.muyu.shop.cart.domain.CartInfo;
|
|||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.shop.cart.domain.req.CartInfoEditNumReq;
|
||||
import com.muyu.shop.cart.domain.req.CartInfoIsSelectedUpdReq;
|
||||
import com.muyu.shop.cart.domain.req.RemoveCartProjectReq;
|
||||
import com.muyu.shop.cart.domain.resp.CartDetailResp;
|
||||
|
||||
/**
|
||||
|
@ -43,4 +44,10 @@ public interface CartInfoService extends IService<CartInfo> {
|
|||
|
||||
void CartInfoEditNum (CartInfoEditNumReq cartInfoEditNumReq);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param removeCartProjectReqList
|
||||
* @return
|
||||
*/
|
||||
void removeByRemoveCartProjectList (List<RemoveCartProjectReq> removeCartProjectReqList);
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@ import com.muyu.shop.cart.domain.model.SkuRuleModel;
|
|||
import com.muyu.shop.cart.domain.model.StatisticsCartModel;
|
||||
import com.muyu.shop.cart.domain.req.CartInfoEditNumReq;
|
||||
import com.muyu.shop.cart.domain.req.CartInfoIsSelectedUpdReq;
|
||||
import com.muyu.shop.cart.domain.req.RemoveCartProjectReq;
|
||||
import com.muyu.shop.cart.domain.resp.CartDetailResp;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -256,7 +257,43 @@ public class CartInfoServiceImpl extends ServiceImpl<CartInfoMapper, CartInfo>
|
|||
|
||||
@Override
|
||||
public void CartInfoEditNum (CartInfoEditNumReq cartInfoEditNumReq) {
|
||||
LambdaUpdateWrapper<CartInfo> updateWrapper = new LambdaUpdateWrapper<>();
|
||||
updateWrapper.set(CartInfo::getIsSelected, cartInfoEditNumReq.getNum());
|
||||
updateWrapper.eq(CartInfo::getProjectId, cartInfoEditNumReq.getProjectId());
|
||||
updateWrapper.eq(CartInfo::getProjectSku, cartInfoEditNumReq.getProjectSku());
|
||||
this.update(updateWrapper);
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
CartHashKey cartHashKey = CartHashKey.builder()
|
||||
.projectId(cartInfoEditNumReq.getProjectId())
|
||||
.projectSku(cartInfoEditNumReq.getProjectSku())
|
||||
.build();
|
||||
CartInfo cartInfo = this.cartCache.get(userId, cartHashKey);
|
||||
cartInfo.setNum(cartInfoEditNumReq.getNum());
|
||||
this.cartCache.put(userId, cartHashKey, cartInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param removeCartProjectReqList
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void removeByRemoveCartProjectList (List<RemoveCartProjectReq> removeCartProjectReqList) {
|
||||
this.removeByIds(
|
||||
removeCartProjectReqList.stream()
|
||||
.map(RemoveCartProjectReq::getCartInfoId)
|
||||
.toList()
|
||||
);
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
removeCartProjectReqList.stream()
|
||||
.map(removeCartProjectReq -> CartHashKey.builder()
|
||||
.projectId(removeCartProjectReq.getProjectId())
|
||||
.projectSku(removeCartProjectReq.getProjectSku())
|
||||
.build()
|
||||
).forEach(hk -> this.cartCache.remove(userId, hk));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -16,10 +16,11 @@ spring:
|
|||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
namespace: b8ace5a6-28a3-4126-b109-9b6623c58dc0
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
@ -78,6 +78,11 @@
|
|||
<artifactId>muyu-common-swagger</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.dtflys.forest</groupId>
|
||||
<artifactId>forest-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -0,0 +1,110 @@
|
|||
package com.muyu.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.muyu.common.system.domain.SysDistrict;
|
||||
import com.muyu.common.system.domain.req.SysDistrictEditReq;
|
||||
import com.muyu.common.system.domain.req.SysDistrictQueryReq;
|
||||
import com.muyu.common.system.domain.req.SysDistrictSaveReq;
|
||||
import io.swagger.annotations.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.system.service.SysDistrictService;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 地域地区Controller
|
||||
*
|
||||
* @author DongZeLiang
|
||||
* @date 2024-04-11
|
||||
*/
|
||||
@Api(tags = "地域地区")
|
||||
@RestController
|
||||
@RequestMapping("/district")
|
||||
public class SysDistrictController extends BaseController {
|
||||
@Autowired
|
||||
private SysDistrictService sysDistrictService;
|
||||
|
||||
/**
|
||||
* 查询地域地区列表
|
||||
*/
|
||||
@ApiOperation("获取地域地区列表")
|
||||
@RequiresPermissions("system:district:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<SysDistrict>> list(SysDistrictQueryReq sysDistrictQueryReq) {
|
||||
List<SysDistrict> list = sysDistrictService.list(SysDistrict.queryBuild(sysDistrictQueryReq));
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出地域地区列表
|
||||
*/
|
||||
@ApiOperation("导出地域地区列表")
|
||||
@RequiresPermissions("system:district:export")
|
||||
@Log(title = "地域地区", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SysDistrict sysDistrict) {
|
||||
List<SysDistrict> list = sysDistrictService.list(sysDistrict);
|
||||
ExcelUtil<SysDistrict> util = new ExcelUtil<SysDistrict>(SysDistrict.class);
|
||||
util.exportExcel(response, list, "地域地区数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取地域地区详细信息
|
||||
*/
|
||||
@ApiOperation("获取地域地区详细信息")
|
||||
@RequiresPermissions("system:district:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
|
||||
public Result<SysDistrict> getInfo(@PathVariable("id") Long id) {
|
||||
return Result.success(sysDistrictService.getById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增地域地区
|
||||
*/
|
||||
@RequiresPermissions("system:district:add")
|
||||
@Log(title = "地域地区", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
@ApiOperation("新增地域地区")
|
||||
public Result<String> add(@RequestBody SysDistrictSaveReq sysDistrictSaveReq) {
|
||||
return toAjax(sysDistrictService.save(SysDistrict.saveBuild(sysDistrictSaveReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改地域地区
|
||||
*/
|
||||
@RequiresPermissions("system:district:edit")
|
||||
@Log(title = "地域地区", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/{id}")
|
||||
@ApiOperation("修改地域地区")
|
||||
public Result<String> edit(@PathVariable Long id, @RequestBody SysDistrictEditReq sysDistrictEditReq) {
|
||||
return toAjax(sysDistrictService.updateById(SysDistrict.editBuild(id,sysDistrictEditReq)));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除地域地区
|
||||
*/
|
||||
@RequiresPermissions("system:district:remove")
|
||||
@Log(title = "地域地区", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
@ApiOperation("删除地域地区")
|
||||
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
|
||||
public Result<String> remove(@PathVariable List<Long> ids) {
|
||||
return toAjax(sysDistrictService.removeBatchByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
package com.muyu.system.forest.gaode.api;
|
||||
|
||||
import com.dtflys.forest.annotation.BaseRequest;
|
||||
import com.dtflys.forest.annotation.Get;
|
||||
import com.dtflys.forest.annotation.Var;
|
||||
import com.muyu.system.forest.gaode.api.resp.DistrictResult;
|
||||
import com.muyu.system.forest.gaode.interceptor.GaoDeInterceptor;
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: 高德地图接口
|
||||
* @Date 2024/4/11 上午10:49
|
||||
*/
|
||||
@BaseRequest(
|
||||
baseURL = "https://restapi.amap.com",
|
||||
interceptor = GaoDeInterceptor.class,
|
||||
timeout = 5000,
|
||||
connectTimeout = 5000,
|
||||
readTimeout = 5000
|
||||
)
|
||||
public interface GaoDeBaseApi {
|
||||
|
||||
@Get("/v3/config/district?keywords={keywords}&subdistrict={subDistrict}")
|
||||
DistrictResult district(@Var("keywords") String keywords, @Var("subDistrict") String subDistrict);
|
||||
|
||||
@Get("/v3/weather/weatherInfo?city={city}")
|
||||
String weather(@Var("city") String city);
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package com.muyu.system.forest.gaode.api.resp;
|
||||
|
||||
import com.alibaba.fastjson2.annotation.JSONField;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class District {
|
||||
|
||||
/** 名称 */
|
||||
private String name;
|
||||
|
||||
/** 编码 */
|
||||
@JSONField(name = "citycode")
|
||||
private String code;
|
||||
|
||||
/** 级别 */
|
||||
private String level;
|
||||
|
||||
/** 区域编码 */
|
||||
@JSONField(name = "adcode")
|
||||
private String areaCode;
|
||||
|
||||
/** 中心经纬度 */
|
||||
private String center;
|
||||
|
||||
/** 父id */
|
||||
private Integer parentId;
|
||||
|
||||
/**
|
||||
* 子
|
||||
*/
|
||||
private List<District> districts;
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
package com.muyu.system.forest.gaode.api.resp;
|
||||
|
||||
import com.alibaba.fastjson2.annotation.JSONField;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: 行政区接口返回结果集
|
||||
* @Date 2024/4/11 下午2:31
|
||||
*/
|
||||
@Data
|
||||
public class DistrictResult {
|
||||
|
||||
/**
|
||||
* 返回结果状态值
|
||||
* 值为0或1,0表示失败;1表示成功
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 返回状态说明
|
||||
* 返回状态说明,status为0时,info返回错误原因,否则返回“OK”。
|
||||
*/
|
||||
private String info;
|
||||
|
||||
/**
|
||||
* 状态码
|
||||
* 返回状态说明,10000代表正确,详情参阅info状态表
|
||||
*/
|
||||
@JSONField(name = "infocode")
|
||||
private String infoCode;
|
||||
|
||||
/**
|
||||
* 行政区列表
|
||||
*/
|
||||
private List<District> districts;
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
package com.muyu.system.forest.gaode.confg;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: 高德配置
|
||||
* @Date 2024/4/11 上午11:30
|
||||
*/
|
||||
@Data
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "gaode")
|
||||
public class GaoDeConfig {
|
||||
|
||||
/**
|
||||
* 高德Key
|
||||
*/
|
||||
private String key;
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
package com.muyu.system.forest.gaode.interceptor;
|
||||
|
||||
import com.dtflys.forest.converter.ForestEncoder;
|
||||
import com.dtflys.forest.exceptions.ForestRuntimeException;
|
||||
import com.dtflys.forest.http.ForestRequest;
|
||||
import com.dtflys.forest.http.ForestResponse;
|
||||
import com.dtflys.forest.interceptor.Interceptor;
|
||||
import com.dtflys.forest.reflection.ForestMethod;
|
||||
import com.muyu.system.forest.gaode.confg.GaoDeConfig;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Log4j2
|
||||
@Component
|
||||
public class GaoDeInterceptor implements Interceptor<String> {
|
||||
|
||||
@Autowired
|
||||
private GaoDeConfig gaoDeConfig;
|
||||
/**
|
||||
* 该方法在被调用时,并在beforeExecute前被调用
|
||||
* @Param request Forest请求对象
|
||||
* @Param args 方法被调用时传入的参数数组
|
||||
*/
|
||||
@Override
|
||||
public void onInvokeMethod(ForestRequest req, ForestMethod method, Object[] args) {
|
||||
log.info("on invoke method");
|
||||
}
|
||||
|
||||
/**
|
||||
* 在请求体数据序列化后,发送请求数据前调用该方法
|
||||
* 默认为什么都不做
|
||||
* 注: multlipart/data类型的文件上传格式的 Body 数据不会调用该回调函数
|
||||
*
|
||||
* @param request Forest请求对象
|
||||
* @param encoder Forest转换器
|
||||
* @param encodedData 序列化后的请求体数据
|
||||
*/
|
||||
public byte[] onBodyEncode(ForestRequest request, ForestEncoder encoder, byte[] encodedData) {
|
||||
// request: Forest请求对象
|
||||
// encoder: 此次转换请求数据的序列化器
|
||||
// encodedData: 序列化后的请求体字节数组
|
||||
// 返回的字节数组将替换原有的序列化结果
|
||||
// 默认不做任何处理,直接返回参数 encodedData
|
||||
return encodedData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 该方法在请求发送之前被调用, 若返回false则不会继续发送请求
|
||||
* @Param request Forest请求对象
|
||||
*/
|
||||
@Override
|
||||
public boolean beforeExecute(ForestRequest req) {
|
||||
log.info("invoke Simple beforeExecute");
|
||||
// 执行在发送请求之前处理的代码 // 添加Header
|
||||
req.addQuery("key", gaoDeConfig.getKey()); // 添加URL的Query参数
|
||||
return true; // 继续执行请求返回true
|
||||
}
|
||||
|
||||
/**
|
||||
* 该方法在请求发送失败时被调用
|
||||
*/
|
||||
@Override
|
||||
public void onError(ForestRuntimeException ex, ForestRequest req, ForestResponse res) {
|
||||
log.info("invoke Simple onError");
|
||||
}
|
||||
|
||||
/**
|
||||
* 该方法在请求发送之后被调用
|
||||
*/
|
||||
@Override
|
||||
public void afterExecute(ForestRequest req, ForestResponse res) {
|
||||
log.info("invoke Simple afterExecute");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.muyu.system.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.common.system.domain.SysDistrict;
|
||||
|
||||
/**
|
||||
* 地域地区Mapper接口
|
||||
*
|
||||
* @author DongZeLiang
|
||||
* @date 2024-04-11
|
||||
*/
|
||||
public interface SysDistrictMapper extends BaseMapper<SysDistrict> {
|
||||
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
package com.muyu.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.common.system.domain.SysDistrict;
|
||||
|
||||
/**
|
||||
* 地域地区Service接口
|
||||
*
|
||||
* @author DongZeLiang
|
||||
* @date 2024-04-11
|
||||
*/
|
||||
public interface SysDistrictService extends IService<SysDistrict> {
|
||||
/**
|
||||
* 查询地域地区列表
|
||||
*
|
||||
* @param sysDistrict 地域地区
|
||||
* @return 地域地区集合
|
||||
*/
|
||||
public List<SysDistrict> list(SysDistrict sysDistrict);
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
package com.muyu.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.muyu.common.core.utils.ObjUtils;
|
||||
import com.muyu.common.system.domain.SysDistrict;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.muyu.system.mapper.SysDistrictMapper;
|
||||
import com.muyu.system.service.SysDistrictService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
|
||||
/**
|
||||
* 地域地区Service业务层处理
|
||||
*
|
||||
* @author DongZeLiang
|
||||
* @date 2024-04-11
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class SysDistrictServiceImpl extends ServiceImpl<SysDistrictMapper, SysDistrict> implements SysDistrictService {
|
||||
|
||||
/**
|
||||
* 查询地域地区列表
|
||||
*
|
||||
* @param sysDistrict 地域地区
|
||||
* @return 地域地区
|
||||
*/
|
||||
@Override
|
||||
public List<SysDistrict> list(SysDistrict sysDistrict) {
|
||||
LambdaQueryWrapper<SysDistrict> queryWrapper = new LambdaQueryWrapper<>();
|
||||
|
||||
|
||||
if (ObjUtils.notNull(sysDistrict.getParentId())){
|
||||
queryWrapper.eq(SysDistrict::getParentId, sysDistrict.getParentId());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(sysDistrict.getName())){
|
||||
queryWrapper.like(SysDistrict::getName, sysDistrict.getName());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(sysDistrict.getCode())){
|
||||
queryWrapper.eq(SysDistrict::getCode, sysDistrict.getCode());
|
||||
}
|
||||
|
||||
if (ObjUtils.notNull(sysDistrict.getLevel())){
|
||||
queryWrapper.eq(SysDistrict::getLevel, sysDistrict.getLevel());
|
||||
}
|
||||
|
||||
|
||||
if (ObjUtils.notNull(sysDistrict.getAreaCode())){
|
||||
queryWrapper.eq(SysDistrict::getAreaCode, sysDistrict.getAreaCode());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return list(queryWrapper);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -14,10 +14,11 @@ spring:
|
|||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
namespace: b8ace5a6-28a3-4126-b109-9b6623c58dc0
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.muyu.system.mapper.SysDistrictMapper">
|
||||
|
||||
<resultMap type="com.muyu.common.system.domain.SysDistrict" id="SysDistrictResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="code" column="code" />
|
||||
<result property="level" column="level" />
|
||||
<result property="codeLevel" column="code_level" />
|
||||
<result property="areaCode" column="area_code" />
|
||||
<result property="center" column="center" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysDistrictVo">
|
||||
select id, parent_id, name, code, level, code_level, area_code, center, create_by, create_time, update_by, update_time, remark from sys_district
|
||||
</sql>
|
||||
</mapper>
|
|
@ -0,0 +1,74 @@
|
|||
package com.forest;
|
||||
|
||||
import com.muyu.common.system.domain.SysDistrict;
|
||||
import com.muyu.system.MuYuSystemApplication;
|
||||
import com.muyu.system.forest.gaode.api.GaoDeBaseApi;
|
||||
import com.muyu.system.forest.gaode.api.resp.District;
|
||||
import com.muyu.system.forest.gaode.api.resp.DistrictResult;
|
||||
import com.muyu.system.service.SysDistrictService;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author DongZl
|
||||
* @description: 测试
|
||||
* @Date 2024/4/11 上午10:38
|
||||
*/
|
||||
@SpringBootTest(classes = MuYuSystemApplication.class)
|
||||
public class FoRestTest {
|
||||
|
||||
@Resource
|
||||
private GaoDeBaseApi gaoDeBaseApi;
|
||||
|
||||
@Autowired
|
||||
private SysDistrictService sysDistrictService;
|
||||
|
||||
@Test
|
||||
public void district(){
|
||||
DistrictResult districtResult = gaoDeBaseApi.district("中国","3");
|
||||
List<District> districtList = districtResult.getDistricts();
|
||||
if (districtList.size() == 1 && "中华人民共和国".equals(districtList.get(0).getName())){
|
||||
districtList = districtList.get(0).getDistricts();
|
||||
}
|
||||
|
||||
conversion(null, "0",districtList); // 初始调用时,parentId 为 null,codeLevel 为 "0"
|
||||
|
||||
System.out.println(districtResult);
|
||||
}
|
||||
|
||||
|
||||
public void conversion(Long parentId, String parentCodeLevel, List<District> districtList){
|
||||
if (districtList == null || districtList.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (District district : districtList) {
|
||||
String newCodeLevel = parentId != null ? parentCodeLevel + "-" + parentId : parentCodeLevel;
|
||||
|
||||
SysDistrict sysDistrict = SysDistrict.builder()
|
||||
.parentId(parentId)
|
||||
.level(district.getLevel())
|
||||
.code("[]".equals(district.getCode()) ? "-" : district.getCode())
|
||||
.name(district.getName())
|
||||
.codeLevel(newCodeLevel)
|
||||
.center(district.getCenter())
|
||||
.areaCode(district.getAreaCode())
|
||||
.build();
|
||||
sysDistrictService.save(sysDistrict);
|
||||
conversion(sysDistrict.getId(), newCodeLevel, district.getDistricts());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void weather(){
|
||||
String test = gaoDeBaseApi.weather("310120");
|
||||
System.out.println(test);
|
||||
}
|
||||
|
||||
}
|
|
@ -14,10 +14,11 @@ spring:
|
|||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 115.159.211.196:8848
|
||||
namespace: b8ace5a6-28a3-4126-b109-9b6623c58dc0
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
10
pom.xml
10
pom.xml
|
@ -30,11 +30,12 @@
|
|||
<dynamic-ds.version>3.5.2</dynamic-ds.version>
|
||||
<commons.io.version>2.13.0</commons.io.version>
|
||||
<velocity.version>2.3</velocity.version>
|
||||
<fastjson.version>2.0.41</fastjson.version>
|
||||
<fastjson.version>2.0.46</fastjson.version>
|
||||
<jjwt.version>0.9.1</jjwt.version>
|
||||
<minio.version>8.2.2</minio.version>
|
||||
<poi.version>4.1.2</poi.version>
|
||||
<transmittable-thread-local.version>2.14.3</transmittable-thread-local.version>
|
||||
<forest.version>1.5.36</forest.version>
|
||||
</properties>
|
||||
|
||||
<!-- 依赖声明 -->
|
||||
|
@ -94,6 +95,13 @@
|
|||
<version>${kaptcha.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.dtflys.forest</groupId>
|
||||
<artifactId>forest-spring-boot-starter</artifactId>
|
||||
<version>${forest.version}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- pagehelper 分页插件 -->
|
||||
<dependency>
|
||||
<groupId>com.github.pagehelper</groupId>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Source Server : 本地5.7
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50737
|
||||
Source Host : 127.0.0.1:3306
|
||||
Source Host : 115.159.211.196:3306
|
||||
Source Schema : product
|
||||
|
||||
Target Server Type : MySQL
|
||||
|
@ -301,10 +301,10 @@ CREATE TABLE `brand_info` (
|
|||
-- ----------------------------
|
||||
-- Records of brand_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `brand_info` VALUES (2, '华为', 'http://127.0.0.1:9300/statics/2024/03/05/仓鼠_20240305092606A001.png', 'Y', '无', ' 几乎一个', 'admin', '2024-03-05 09:26:09', 'admin', '2024-03-08 20:48:35');
|
||||
INSERT INTO `brand_info` VALUES (3, '苹果', 'http://127.0.0.1:9300/statics/2024/03/05/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240305092615A002.png', 'Y', '无', 'i看机会', 'admin', '2024-03-05 09:26:18', 'admin', '2024-03-08 20:48:26');
|
||||
INSERT INTO `brand_info` VALUES (4, '小米', 'http://127.0.0.1:9300/statics/2024/03/21/1688525436945_20240321112835A002.jpg', 'Y', NULL, NULL, 'admin', '2024-03-21 11:28:39', NULL, NULL);
|
||||
INSERT INTO `brand_info` VALUES (5, '苹果', 'http://127.0.0.1:9300/statics/2024/03/26/647726DD13E751DA201EE4D5E9D2A280_20240326135516A015.jpg', 'Y', '而东风', '他又何必', 'admin', '2024-03-26 13:55:47', NULL, NULL);
|
||||
INSERT INTO `brand_info` VALUES (2, '华为', 'http://115.159.211.196:9300/statics/2024/03/05/仓鼠_20240305092606A001.png', 'Y', '无', ' 几乎一个', 'admin', '2024-03-05 09:26:09', 'admin', '2024-03-08 20:48:35');
|
||||
INSERT INTO `brand_info` VALUES (3, '苹果', 'http://115.159.211.196:9300/statics/2024/03/05/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240305092615A002.png', 'Y', '无', 'i看机会', 'admin', '2024-03-05 09:26:18', 'admin', '2024-03-08 20:48:26');
|
||||
INSERT INTO `brand_info` VALUES (4, '小米', 'http://115.159.211.196:9300/statics/2024/03/21/1688525436945_20240321112835A002.jpg', 'Y', NULL, NULL, 'admin', '2024-03-21 11:28:39', NULL, NULL);
|
||||
INSERT INTO `brand_info` VALUES (5, '苹果', 'http://115.159.211.196:9300/statics/2024/03/26/647726DD13E751DA201EE4D5E9D2A280_20240326135516A015.jpg', 'Y', '而东风', '他又何必', 'admin', '2024-03-26 13:55:47', NULL, NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for category_info
|
||||
|
@ -328,19 +328,19 @@ CREATE TABLE `category_info` (
|
|||
-- ----------------------------
|
||||
-- Records of category_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `category_info` VALUES (1, '节点1', 'http://127.0.0.1:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228170131A002.png', 0, 'Y', '介绍', NULL, 'admin', '2024-02-28 17:09:11', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (2, '节点1-1', 'http://127.0.0.1:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228170926A003.png', 1, 'Y', '测试', NULL, 'admin', '2024-02-28 17:09:31', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (3, '节点1-1-1', 'http://127.0.0.1:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228170944A004.png', 2, 'Y', '测试', NULL, 'admin', '2024-02-28 17:09:48', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (4, '节点2', 'http://127.0.0.1:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228170956A005.png', 0, 'Y', '', NULL, 'admin', '2024-02-28 17:09:58', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (5, '节点2-1', 'http://127.0.0.1:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228171012A006.png', 4, 'Y', '测试', NULL, 'admin', '2024-02-28 17:10:14', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (6, '节点2-1-1', 'http://127.0.0.1:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228171031A007.png', 5, 'Y', '', NULL, 'admin', '2024-02-28 17:10:34', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (7, '节点1-1-2', 'http://127.0.0.1:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228171047A008.png', 2, 'Y', '测试', NULL, 'admin', '2024-02-28 17:10:50', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (13, '测试-1', 'http://127.0.0.1:9300/statics/2024/03/01/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240301114154A001.png', 0, 'Y', NULL, NULL, 'admin', '2024-03-01 11:42:03', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (14, '测试1-1', 'http://127.0.0.1:9300/statics/2024/03/01/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240301114209A002.png', 13, 'Y', NULL, NULL, 'admin', '2024-03-01 11:42:22', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (15, '测试1-2', 'http://127.0.0.1:9300/statics/2024/03/01/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240301114446A003.png', 13, 'Y', NULL, NULL, 'admin', '2024-03-01 11:44:56', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (16, '测试1-1-1', 'http://127.0.0.1:9300/statics/2024/03/06/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240306162814A001.png', 14, 'Y', NULL, NULL, 'admin', '2024-03-06 16:28:27', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (17, '顶级1', 'http://127.0.0.1:9300/statics/2024/03/08/花木兰_20240308170205A043.png', 0, 'Y', NULL, NULL, 'admin', '2024-03-08 17:02:31', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (18, '测试1-2-1', 'http://127.0.0.1:9300/statics/2024/03/21/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240321112815A001.png', 15, 'Y', NULL, NULL, 'admin', '2024-03-21 11:28:17', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (1, '节点1', 'http://115.159.211.196:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228170131A002.png', 0, 'Y', '介绍', NULL, 'admin', '2024-02-28 17:09:11', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (2, '节点1-1', 'http://115.159.211.196:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228170926A003.png', 1, 'Y', '测试', NULL, 'admin', '2024-02-28 17:09:31', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (3, '节点1-1-1', 'http://115.159.211.196:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228170944A004.png', 2, 'Y', '测试', NULL, 'admin', '2024-02-28 17:09:48', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (4, '节点2', 'http://115.159.211.196:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228170956A005.png', 0, 'Y', '', NULL, 'admin', '2024-02-28 17:09:58', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (5, '节点2-1', 'http://115.159.211.196:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228171012A006.png', 4, 'Y', '测试', NULL, 'admin', '2024-02-28 17:10:14', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (6, '节点2-1-1', 'http://115.159.211.196:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228171031A007.png', 5, 'Y', '', NULL, 'admin', '2024-02-28 17:10:34', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (7, '节点1-1-2', 'http://115.159.211.196:9300/statics/2024/02/28/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240228171047A008.png', 2, 'Y', '测试', NULL, 'admin', '2024-02-28 17:10:50', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (13, '测试-1', 'http://115.159.211.196:9300/statics/2024/03/01/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240301114154A001.png', 0, 'Y', NULL, NULL, 'admin', '2024-03-01 11:42:03', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (14, '测试1-1', 'http://115.159.211.196:9300/statics/2024/03/01/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240301114209A002.png', 13, 'Y', NULL, NULL, 'admin', '2024-03-01 11:42:22', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (15, '测试1-2', 'http://115.159.211.196:9300/statics/2024/03/01/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240301114446A003.png', 13, 'Y', NULL, NULL, 'admin', '2024-03-01 11:44:56', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (16, '测试1-1-1', 'http://115.159.211.196:9300/statics/2024/03/06/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240306162814A001.png', 14, 'Y', NULL, NULL, 'admin', '2024-03-06 16:28:27', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (17, '顶级1', 'http://115.159.211.196:9300/statics/2024/03/08/花木兰_20240308170205A043.png', 0, 'Y', NULL, NULL, 'admin', '2024-03-08 17:02:31', NULL, NULL);
|
||||
INSERT INTO `category_info` VALUES (18, '测试1-2-1', 'http://115.159.211.196:9300/statics/2024/03/21/7GHOYz1SWffN43a77d257b422464c35bc1da44fc6742_20240321112815A001.png', 15, 'Y', NULL, NULL, 'admin', '2024-03-21 11:28:17', NULL, NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for comment_info
|
||||
|
@ -411,10 +411,10 @@ CREATE TABLE `project_info` (
|
|||
-- ----------------------------
|
||||
-- Records of project_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `project_info` VALUES (1, '测试', '123', '13', '14', '16', 'http://127.0.0.1:9300/statics/2024/03/22/1688525436945_20240322144241A033.jpg', 'http://127.0.0.1:9300/statics/2024/03/22/1688527462686_20240322144244A034.jpg', 'Y', 5, 4, NULL, 'admin', '2024-03-22 14:44:47', NULL, NULL);
|
||||
INSERT INTO `project_info` VALUES (2, '测试', '123', '13', '14', '16', 'http://127.0.0.1:9300/statics/2024/03/22/1688525436945_20240322144241A033.jpg', 'http://127.0.0.1:9300/statics/2024/03/22/1688527462686_20240322144244A034.jpg,http://127.0.0.1:9300/statics/2024/03/22/1688525436945_20240322144241A033.jpg', 'Y', 5, 4, NULL, 'admin', '2024-03-22 14:45:17', NULL, NULL);
|
||||
INSERT INTO `project_info` VALUES (3, '小米10 pro max ', '<p><img src=\"http://127.0.0.1:9300/statics/2024/03/26/20210125092431_20240326110040A008.png\"></p><p><img src=\"http://127.0.0.1:9300/statics/2024/03/26/20210125092537_20240326110045A009.png\"></p><p><img src=\"http://127.0.0.1:9300/statics/2024/03/26/20210125092613_20240326110052A010.png\"></p><p><img src=\"http://127.0.0.1:9300/statics/2024/03/26/20210125092820_20240326110059A011.png\"></p><p><img src=\"http://127.0.0.1:9300/statics/2024/03/26/T20210125092733_20240326110106A012.png\"></p>', '13', '14', '16', 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105343A001.png', 'http://127.0.0.1:9300/statics/2024/03/26/20210115220654_20240326105350A002.png,http://127.0.0.1:9300/statics/2024/03/26/20210115220705_20240326105350A003.png,http://127.0.0.1:9300/statics/2024/03/26/20210115220715_20240326105350A004.png', 'Y', 5, 4, NULL, 'admin', '2024-03-26 10:58:09', NULL, NULL);
|
||||
INSERT INTO `project_info` VALUES (4, '小米11 pro max ', '商品非常不错', '13', '14', '16', 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105343A001.png', 'http://127.0.0.1:9300/statics/2024/03/26/20210115220654_20240326105350A002.png,http://127.0.0.1:9300/statics/2024/03/26/20210115220705_20240326105350A003.png,http://127.0.0.1:9300/statics/2024/03/26/20210115220715_20240326105350A004.png', 'Y', 5, 4, NULL, 'admin', '2024-03-26 11:17:12', NULL, NULL);
|
||||
INSERT INTO `project_info` VALUES (1, '测试', '123', '13', '14', '16', 'http://115.159.211.196:9300/statics/2024/03/22/1688525436945_20240322144241A033.jpg', 'http://115.159.211.196:9300/statics/2024/03/22/1688527462686_20240322144244A034.jpg', 'Y', 5, 4, NULL, 'admin', '2024-03-22 14:44:47', NULL, NULL);
|
||||
INSERT INTO `project_info` VALUES (2, '测试', '123', '13', '14', '16', 'http://115.159.211.196:9300/statics/2024/03/22/1688525436945_20240322144241A033.jpg', 'http://115.159.211.196:9300/statics/2024/03/22/1688527462686_20240322144244A034.jpg,http://115.159.211.196:9300/statics/2024/03/22/1688525436945_20240322144241A033.jpg', 'Y', 5, 4, NULL, 'admin', '2024-03-22 14:45:17', NULL, NULL);
|
||||
INSERT INTO `project_info` VALUES (3, '小米10 pro max ', '<p><img src=\"http://115.159.211.196:9300/statics/2024/03/26/20210125092431_20240326110040A008.png\"></p><p><img src=\"http://115.159.211.196:9300/statics/2024/03/26/20210125092537_20240326110045A009.png\"></p><p><img src=\"http://115.159.211.196:9300/statics/2024/03/26/20210125092613_20240326110052A010.png\"></p><p><img src=\"http://115.159.211.196:9300/statics/2024/03/26/20210125092820_20240326110059A011.png\"></p><p><img src=\"http://115.159.211.196:9300/statics/2024/03/26/T20210125092733_20240326110106A012.png\"></p>', '13', '14', '16', 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105343A001.png', 'http://115.159.211.196:9300/statics/2024/03/26/20210115220654_20240326105350A002.png,http://115.159.211.196:9300/statics/2024/03/26/20210115220705_20240326105350A003.png,http://115.159.211.196:9300/statics/2024/03/26/20210115220715_20240326105350A004.png', 'Y', 5, 4, NULL, 'admin', '2024-03-26 10:58:09', NULL, NULL);
|
||||
INSERT INTO `project_info` VALUES (4, '小米11 pro max ', '商品非常不错', '13', '14', '16', 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105343A001.png', 'http://115.159.211.196:9300/statics/2024/03/26/20210115220654_20240326105350A002.png,http://115.159.211.196:9300/statics/2024/03/26/20210115220705_20240326105350A003.png,http://115.159.211.196:9300/statics/2024/03/26/20210115220715_20240326105350A004.png', 'Y', 5, 4, NULL, 'admin', '2024-03-26 11:17:12', NULL, NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for project_sku_info
|
||||
|
@ -438,30 +438,30 @@ CREATE TABLE `project_sku_info` (
|
|||
-- ----------------------------
|
||||
-- Records of project_sku_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `project_sku_info` VALUES (1, 2, '骁龙888-8G-128G', 12, 12.000000, 'http://127.0.0.1:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (2, 2, '骁龙888-8G-512G', 565, 565.000000, 'http://127.0.0.1:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (3, 2, '骁龙888-16G-128G', 485, 485.000000, 'http://127.0.0.1:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (4, 2, '骁龙888-16G-512G', 658, 658.000000, 'http://127.0.0.1:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (5, 2, '骁龙888plus-8G-128G', 425, 425.000000, 'http://127.0.0.1:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (6, 2, '骁龙888plus-8G-512G', 963, 963.000000, 'http://127.0.0.1:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (7, 2, '骁龙888plus-16G-128G', 875, 875.000000, 'http://127.0.0.1:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (8, 2, '骁龙888plus-16G-512G', 458, 458.000000, 'http://127.0.0.1:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (17, 3, '骁龙888-8G-128G', 25, 2999.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (18, 3, '骁龙888-8G-512G', 25, 3999.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (19, 3, '骁龙888-16G-128G', 25, 3666.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (20, 3, '骁龙888-16G-512G', 25, 4999.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (21, 3, '骁龙888plus-8G-128G', 25, 5999.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (22, 3, '骁龙888plus-8G-512G', 25, 4356.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (23, 3, '骁龙888plus-16G-128G', 25, 4699.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (24, 3, '骁龙888plus-16G-512G', 25, 6599.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (25, 4, '骁龙888-8G-128G', 25, 2999.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (26, 4, '骁龙888-8G-512G', 25, 3999.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (27, 4, '骁龙888-16G-128G', 25, 3666.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (28, 4, '骁龙888-16G-512G', 25, 4999.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (29, 4, '骁龙888plus-8G-128G', 25, 5999.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (30, 4, '骁龙888plus-8G-512G', 25, 4356.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (31, 4, '骁龙888plus-16G-128G', 25, 4699.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (32, 4, '骁龙888plus-16G-512G', 25, 6599.000000, 'http://127.0.0.1:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (1, 2, '骁龙888-8G-128G', 12, 12.000000, 'http://115.159.211.196:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (2, 2, '骁龙888-8G-512G', 565, 565.000000, 'http://115.159.211.196:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (3, 2, '骁龙888-16G-128G', 485, 485.000000, 'http://115.159.211.196:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (4, 2, '骁龙888-16G-512G', 658, 658.000000, 'http://115.159.211.196:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (5, 2, '骁龙888plus-8G-128G', 425, 425.000000, 'http://115.159.211.196:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (6, 2, '骁龙888plus-8G-512G', 963, 963.000000, 'http://115.159.211.196:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (7, 2, '骁龙888plus-16G-128G', 875, 875.000000, 'http://115.159.211.196:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (8, 2, '骁龙888plus-16G-512G', 458, 458.000000, 'http://115.159.211.196:9300/statics/2024/03/22/1688527462686_20240322144513A035.jpg', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (17, 3, '骁龙888-8G-128G', 25, 2999.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (18, 3, '骁龙888-8G-512G', 25, 3999.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (19, 3, '骁龙888-16G-128G', 25, 3666.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (20, 3, '骁龙888-16G-512G', 25, 4999.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (21, 3, '骁龙888plus-8G-128G', 25, 5999.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (22, 3, '骁龙888plus-8G-512G', 25, 4356.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (23, 3, '骁龙888plus-16G-128G', 25, 4699.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (24, 3, '骁龙888plus-16G-512G', 25, 6599.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (25, 4, '骁龙888-8G-128G', 25, 2999.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (26, 4, '骁龙888-8G-512G', 25, 3999.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (27, 4, '骁龙888-16G-128G', 25, 3666.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (28, 4, '骁龙888-16G-512G', 25, 4999.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (29, 4, '骁龙888plus-8G-128G', 25, 5999.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (30, 4, '骁龙888plus-8G-512G', 25, 4356.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (31, 4, '骁龙888plus-16G-128G', 25, 4699.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
INSERT INTO `project_sku_info` VALUES (32, 4, '骁龙888plus-16G-512G', 25, 6599.000000, 'http://115.159.211.196:9300/statics/2024/03/26/20210115220633_20240326105615A005.png', NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for rule_attr_info
|
||||
|
|
1324
sql/ry-cloud.sql
1324
sql/ry-cloud.sql
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,7 @@
|
|||
Source Server : 本地5.7
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50737
|
||||
Source Host : 127.0.0.1:3306
|
||||
Source Host : 115.159.211.196:3306
|
||||
Source Schema : ry-config
|
||||
|
||||
Target Server Type : MySQL
|
||||
|
@ -47,16 +47,16 @@ CREATE TABLE `config_info` (
|
|||
-- Records of config_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `config_info` VALUES (1, 'application-dev.yml', 'DEFAULT_GROUP', 'spring:\n autoconfigure:\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\n mvc:\n pathmatch:\n matching-strategy: ant_path_matcher\n\n# feign 配置\nfeign:\n sentinel:\n enabled: true\n okhttp:\n enabled: true\n httpclient:\n enabled: false\n client:\n config:\n default:\n connectTimeout: 10000\n readTimeout: 10000\n compression:\n request:\n enabled: true\n response:\n enabled: true\n\n# 暴露监控端点\nmanagement:\n endpoints:\n web:\n exposure:\n include: \'*\'\n', 'aaa73b809cfd4d0058893aa13da57806', '2020-05-20 12:00:00', '2022-04-24 10:26:34', 'nacos', '0:0:0:0:0:0:0:1', '', '', '通用配置', 'null', 'null', 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (2, 'muyu-gateway-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: muyu-auth\n uri: lb://muyu-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: muyu-gen\n uri: lb://muyu-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: muyu-job\n uri: lb://muyu-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: muyu-system\n uri: lb://muyu-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: muyu-file\n uri: lb://muyu-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n # 商品服务\n - id: muyu-product\n uri: lb://muyu-product\n predicates:\n - Path=/product/**\n filters:\n - StripPrefix=1\n # 商品服务\n - id: shopCart\n uri: lb://muyu-shop-cart\n predicates:\n - Path=/shopCart/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n', 'f03d72cd72f12479a46f8aa2889833cf', '2020-05-14 14:17:55', '2024-03-29 06:56:29', 'nacos', '127.0.0.1', '', '', '网关模块', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (2, 'muyu-gateway-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: muyu-auth\n uri: lb://muyu-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: muyu-gen\n uri: lb://muyu-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: muyu-job\n uri: lb://muyu-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: muyu-system\n uri: lb://muyu-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: muyu-file\n uri: lb://muyu-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n # 商品服务\n - id: muyu-product\n uri: lb://muyu-product\n predicates:\n - Path=/product/**\n filters:\n - StripPrefix=1\n # 商品服务\n - id: shopCart\n uri: lb://muyu-shop-cart\n predicates:\n - Path=/shopCart/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n', 'f03d72cd72f12479a46f8aa2889833cf', '2020-05-14 14:17:55', '2024-03-29 06:56:29', 'nacos', '115.159.211.196', '', '', '网关模块', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (3, 'muyu-auth-dev.yml', 'DEFAULT_GROUP', 'spring:\n redis:\n host: localhost\n port: 6379\n password:\n', '8bd9dada9a94822feeab40de55efced6', '2020-11-20 00:00:00', '2022-09-29 02:48:42', 'nacos', '0:0:0:0:0:0:0:1', '', '', '认证中心', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (4, 'muyu-monitor-dev.yml', 'DEFAULT_GROUP', '# spring\nspring:\n security:\n user:\n name: muyu\n password: 123456\n boot:\n admin:\n ui:\n title: 若依服务状态监控\n', '6f122fd2bfb8d45f858e7d6529a9cd44', '2020-11-20 00:00:00', '2022-09-29 02:48:54', 'nacos', '0:0:0:0:0:0:0:1', '', '', '监控中心', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (5, 'muyu-system-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '48e0ed4a040c402bdc2444213a82c910', '2020-11-20 00:00:00', '2022-09-29 02:49:09', 'nacos', '0:0:0:0:0:0:0:1', '', '', '系统模块', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (6, 'muyu-gen-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip\n\n# 代码生成\ngen:\n # 作者\n author: DongZeLiang\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: com.muyu.product\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n', '2eb9f41bee0332235f3baca38e603abb', '2020-11-20 00:00:00', '2024-02-27 03:00:52', 'nacos', '127.0.0.1', '', '', '代码生成', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (6, 'muyu-gen-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.gen.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 代码生成接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip\n\n# 代码生成\ngen:\n # 作者\n author: DongZeLiang\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\n packageName: com.muyu.product\n # 自动去除表前缀,默认是false\n autoRemovePre: false\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\n tablePrefix: sys_\n', '2eb9f41bee0332235f3baca38e603abb', '2020-11-20 00:00:00', '2024-02-27 03:00:52', 'nacos', '115.159.211.196', '', '', '代码生成', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (7, 'muyu-job-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password: \n datasource:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.job.domain\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 定时任务接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip\n', 'edcf0e3fe13fea07b4ec08b1088f30b3', '2020-11-20 00:00:00', '2022-09-29 02:50:50', 'nacos', '0:0:0:0:0:0:0:1', '', '', '定时任务', 'null', 'null', 'yaml', '', '');
|
||||
INSERT INTO `config_info` VALUES (8, 'muyu-file-dev.yml', 'DEFAULT_GROUP', '# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/muyu/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test', '5382b93f3d8059d6068c0501fdd41195', '2020-11-20 00:00:00', '2020-12-21 21:01:59', NULL, '0:0:0:0:0:0:0:1', '', '', '文件服务', 'null', 'null', 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (8, 'muyu-file-dev.yml', 'DEFAULT_GROUP', '# 本地文件上传 \r\nfile:\r\n domain: http://115.159.211.196:9300\r\n path: D:/muyu/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test', '5382b93f3d8059d6068c0501fdd41195', '2020-11-20 00:00:00', '2020-12-21 21:01:59', NULL, '0:0:0:0:0:0:0:1', '', '', '文件服务', 'null', 'null', 'yaml', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (9, 'sentinel-muyu-gateway', 'DEFAULT_GROUP', '[\r\n {\r\n \"resource\": \"muyu-auth\",\r\n \"count\": 500,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"muyu-system\",\r\n \"count\": 1000,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"muyu-gen\",\r\n \"count\": 200,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n },\r\n {\r\n \"resource\": \"muyu-job\",\r\n \"count\": 300,\r\n \"grade\": 1,\r\n \"limitApp\": \"default\",\r\n \"strategy\": 0,\r\n \"controlBehavior\": 0\r\n }\r\n]', '9f3a3069261598f74220bc47958ec252', '2020-11-20 00:00:00', '2020-11-20 00:00:00', NULL, '0:0:0:0:0:0:0:1', '', '', '限流策略', 'null', 'null', 'json', NULL, '');
|
||||
INSERT INTO `config_info` VALUES (10, 'muyu-product-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/product?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.product\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '644efaa3b18b043cb536b40f0eb2b6bf', '2024-02-26 08:13:17', '2024-02-26 08:13:46', 'nacos', '127.0.0.1', '', '', '系统模块', '', '', 'yaml', '', NULL);
|
||||
INSERT INTO `config_info` VALUES (11, 'muyu-shop-cart-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/shop_cart?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.shop.cart\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '13a3eadf2d1484790b582fcf76192c1f', '2024-03-29 03:50:12', '2024-03-29 03:51:28', 'nacos', '127.0.0.1', '', '', '系统模块', '', '', 'yaml', '', NULL);
|
||||
INSERT INTO `config_info` VALUES (10, 'muyu-product-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/product?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.product\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '644efaa3b18b043cb536b40f0eb2b6bf', '2024-02-26 08:13:17', '2024-02-26 08:13:46', 'nacos', '115.159.211.196', '', '', '系统模块', '', '', 'yaml', '', NULL);
|
||||
INSERT INTO `config_info` VALUES (11, 'muyu-shop-cart-dev.yml', 'DEFAULT_GROUP', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/shop_cart?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.shop.cart\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '13a3eadf2d1484790b582fcf76192c1f', '2024-03-29 03:50:12', '2024-03-29 03:51:28', 'nacos', '115.159.211.196', '', '', '系统模块', '', '', 'yaml', '', NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for config_info_aggr
|
||||
|
@ -202,10 +202,10 @@ CREATE TABLE `his_config_info` (
|
|||
-- ----------------------------
|
||||
-- Records of his_config_info
|
||||
-- ----------------------------
|
||||
INSERT INTO `his_config_info` VALUES (0, 1, 'muyu-shop-cart-dev.yml', 'DEFAULT_GROUP', '', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '95bc8abf998d35f39a45fa13ff79b493', '2024-03-29 11:50:11', '2024-03-29 03:50:12', NULL, '127.0.0.1', 'I', '', NULL);
|
||||
INSERT INTO `his_config_info` VALUES (11, 2, 'muyu-shop-cart-dev.yml', 'DEFAULT_GROUP', '', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '95bc8abf998d35f39a45fa13ff79b493', '2024-03-29 11:50:40', '2024-03-29 03:50:40', 'nacos', '127.0.0.1', 'U', '', NULL);
|
||||
INSERT INTO `his_config_info` VALUES (11, 3, 'muyu-shop-cart-dev.yml', 'DEFAULT_GROUP', '', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/shop-cart?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.shop.cart\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '1ff084da1908aa9fafd60bf821395278', '2024-03-29 11:51:28', '2024-03-29 03:51:28', 'nacos', '127.0.0.1', 'U', '', NULL);
|
||||
INSERT INTO `his_config_info` VALUES (2, 4, 'muyu-gateway-dev.yml', 'DEFAULT_GROUP', '', 'spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: muyu-auth\n uri: lb://muyu-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: muyu-gen\n uri: lb://muyu-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: muyu-job\n uri: lb://muyu-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: muyu-system\n uri: lb://muyu-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: muyu-file\n uri: lb://muyu-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n # 商品服务\n - id: muyu-product\n uri: lb://muyu-product\n predicates:\n - Path=/product/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n', 'e93803af2c26c60654f44279cba020e1', '2024-03-29 14:56:28', '2024-03-29 06:56:29', 'nacos', '127.0.0.1', 'U', '', NULL);
|
||||
INSERT INTO `his_config_info` VALUES (0, 1, 'muyu-shop-cart-dev.yml', 'DEFAULT_GROUP', '', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '95bc8abf998d35f39a45fa13ff79b493', '2024-03-29 11:50:11', '2024-03-29 03:50:12', NULL, '115.159.211.196', 'I', '', NULL);
|
||||
INSERT INTO `his_config_info` VALUES (11, 2, 'muyu-shop-cart-dev.yml', 'DEFAULT_GROUP', '', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.system\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '95bc8abf998d35f39a45fa13ff79b493', '2024-03-29 11:50:40', '2024-03-29 03:50:40', 'nacos', '115.159.211.196', 'U', '', NULL);
|
||||
INSERT INTO `his_config_info` VALUES (11, 3, 'muyu-shop-cart-dev.yml', 'DEFAULT_GROUP', '', '# spring配置\nspring:\n redis:\n host: localhost\n port: 6379\n password:\n datasource:\n druid:\n stat-view-servlet:\n enabled: true\n loginUsername: admin\n loginPassword: 123456\n dynamic:\n druid:\n initial-size: 5\n min-idle: 5\n maxActive: 20\n maxWait: 60000\n timeBetweenEvictionRunsMillis: 60000\n minEvictableIdleTimeMillis: 300000\n validationQuery: SELECT 1 FROM DUAL\n testWhileIdle: true\n testOnBorrow: false\n testOnReturn: false\n poolPreparedStatements: true\n maxPoolPreparedStatementPerConnectionSize: 20\n filters: stat,slf4j\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\n datasource:\n # 主库数据源\n master:\n driver-class-name: com.mysql.cj.jdbc.Driver\n url: jdbc:mysql://localhost:3306/shop-cart?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\n username: root\n password: root\n # 从库数据源\n # slave:\n # username: \n # password: \n # url: \n # driver-class-name: \n\n# mybatis配置\nmybatis:\n # 搜索指定包别名\n typeAliasesPackage: com.muyu.shop.cart\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\n mapperLocations: classpath:mapper/**/*.xml\n\n# swagger配置\nswagger:\n title: 系统模块接口文档\n license: Powered By muyu\n licenseUrl: https://muyu.vip', '1ff084da1908aa9fafd60bf821395278', '2024-03-29 11:51:28', '2024-03-29 03:51:28', 'nacos', '115.159.211.196', 'U', '', NULL);
|
||||
INSERT INTO `his_config_info` VALUES (2, 4, 'muyu-gateway-dev.yml', 'DEFAULT_GROUP', '', 'spring:\n redis:\n host: localhost\n port: 6379\n password:\n cloud:\n gateway:\n discovery:\n locator:\n lowerCaseServiceId: true\n enabled: true\n routes:\n # 认证中心\n - id: muyu-auth\n uri: lb://muyu-auth\n predicates:\n - Path=/auth/**\n filters:\n # 验证码处理\n - CacheRequestFilter\n - ValidateCodeFilter\n - StripPrefix=1\n # 代码生成\n - id: muyu-gen\n uri: lb://muyu-gen\n predicates:\n - Path=/code/**\n filters:\n - StripPrefix=1\n # 定时任务\n - id: muyu-job\n uri: lb://muyu-job\n predicates:\n - Path=/schedule/**\n filters:\n - StripPrefix=1\n # 系统模块\n - id: muyu-system\n uri: lb://muyu-system\n predicates:\n - Path=/system/**\n filters:\n - StripPrefix=1\n # 文件服务\n - id: muyu-file\n uri: lb://muyu-file\n predicates:\n - Path=/file/**\n filters:\n - StripPrefix=1\n # 商品服务\n - id: muyu-product\n uri: lb://muyu-product\n predicates:\n - Path=/product/**\n filters:\n - StripPrefix=1\n\n# 安全配置\nsecurity:\n # 验证码\n captcha:\n enabled: true\n type: math\n # 防止XSS攻击\n xss:\n enabled: true\n excludeUrls:\n - /system/notice\n # 不校验白名单\n ignore:\n whites:\n - /auth/logout\n - /auth/login\n - /auth/register\n - /*/v2/api-docs\n - /csrf\n', 'e93803af2c26c60654f44279cba020e1', '2024-03-29 14:56:28', '2024-03-29 06:56:29', 'nacos', '115.159.211.196', 'U', '', NULL);
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for permissions
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Source Server : 本地5.7
|
||||
Source Server Type : MySQL
|
||||
Source Server Version : 50737
|
||||
Source Host : 127.0.0.1:3306
|
||||
Source Host : 115.159.211.196:3306
|
||||
Source Schema : shop_cart
|
||||
|
||||
Target Server Type : MySQL
|
||||
|
|
Loading…
Reference in New Issue