main
litao 2 years ago
parent 22bc097515
commit 91bce32f56
  1. 1
      src/main/java/org/springblade/Application.java
  2. 181
      src/main/java/org/springblade/common/utils/SensitiveFilterUtil.java
  3. 7
      src/main/java/org/springblade/modules/auth/endpoint/BladeSocialEndpoint.java
  4. 10
      src/main/java/org/springblade/modules/auth/granter/CaptchaTokenGranter.java
  5. 59
      src/main/java/org/springblade/modules/baotou/entity/BannerPicture.java
  6. 64
      src/main/java/org/springblade/modules/baotou/entity/CompanyOverview.java
  7. 63
      src/main/java/org/springblade/modules/baotou/entity/HomePlatform.java
  8. 59
      src/main/java/org/springblade/modules/baotou/entity/HomePopular.java
  9. 59
      src/main/java/org/springblade/modules/baotou/entity/HomeProduct.java
  10. 64
      src/main/java/org/springblade/modules/baotou/entity/HomeStat.java
  11. 93
      src/main/java/org/springblade/modules/baotou/entity/Information.java
  12. 71
      src/main/java/org/springblade/modules/baotou/entity/News.java
  13. 54
      src/main/java/org/springblade/modules/baotou/entity/Notice.java
  14. 84
      src/main/java/org/springblade/modules/baotou/entity/Product.java
  15. 69
      src/main/java/org/springblade/modules/baotou/entity/ServiceGuide.java
  16. 59
      src/main/java/org/springblade/modules/baotou/entity/ZoneFlow.java
  17. 64
      src/main/java/org/springblade/modules/baotou/entity/ZoneIntroduce.java
  18. 59
      src/main/java/org/springblade/modules/baotou/entity/ZoneProductIntroduce.java
  19. 69
      src/main/java/org/springblade/modules/baotou/entity/ZoneScene.java
  20. 64
      src/main/java/org/springblade/modules/baotou/entity/ZoneStat.java
  21. 59
      src/main/java/org/springblade/modules/baotou/entity/ZoneUnit.java
  22. 12
      src/main/resources/application.yml
  23. 124
      src/main/resources/log/logback-dev.xml

@ -31,6 +31,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
public class Application {
public static void main(String[] args) {
System.setProperty("nacos.logging.default.config.enabled", "false");
BladeApplication.run(CommonConstant.APPLICATION_NAME, Application.class, args);
}

@ -0,0 +1,181 @@
package org.springblade.common.utils; /**
* 敏感词过滤工具类
*
* @author lsj
*/
import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
@SuppressWarnings({"unchecked", "rawtypes"})
public class SensitiveFilterUtil {
/**
* 敏感词集合
*/
public static HashMap sensitiveWordMap;
/**
* 初始化敏感词库,构建DFA算法模型
*/
public static void initContext() {
HashSet<String> set = new HashSet<String>();
try {
//获取敏感词文件
Workbook workbook = new XSSFWorkbook(new FileInputStream("D:\\ty-logistics\\敏感词库表统计.xlsx"));
// 获取第一个张表
Sheet sheet = workbook.getSheetAt(0);
// 获取每行中的字段
for (int j = 1; j <= sheet.getLastRowNum(); j++) {
Row row = sheet.getRow(j); // 获取行
if (row == null) {// 略过空行
continue;
} else {
if (row.getCell(2) != null) set.add(row.getCell(2).getStringCellValue());
}
}
initSensitiveWordMap(set);
} catch (Exception e) {
System.out.println("<<<<<<解析敏感词文件报错!");
e.printStackTrace();
}
}
/**
* 初始化敏感词库,构建DFA算法模型
*
* @param sensitiveWordSet 敏感词库
*/
private static void initSensitiveWordMap(Set<String> sensitiveWordSet) {
//初始化敏感词容器,减少扩容操作
sensitiveWordMap = new HashMap<String, String>(sensitiveWordSet.size());
Map<Object, Object> temp;
Map<Object, Object> newWorMap;
//遍历sensitiveWordSet
for (String key : sensitiveWordSet) {
temp = sensitiveWordMap;
for (int i = 0; i < key.length(); i++) {
//转换成char型
char keyChar = key.charAt(i);
//库中获取关键字
Object wordMap = temp.get(keyChar);
//如果存在该key,直接赋值,用于下一个循环获取
if (wordMap != null) {
temp = (Map) wordMap;
} else {
//不存在则,则构建一个map,同时将isEnd设置为0,因为他不是最后一个
newWorMap = new HashMap<>();
//不是最后一个
newWorMap.put("isEnd", "0");
temp.put(keyChar, newWorMap);
temp = newWorMap;
}
//最后一个
if (i == key.length() - 1) temp.put("isEnd", "1");
}
}
}
/**
* 判断文字是否包含敏感字符
* <p>
* 文本
* <p>
* 若包含返回true,否则返回false
*/
public static boolean contains(String txt) {
boolean flag = false;
for (int i = 0; i < txt.length(); i++) {
int matchFlag = checkSensitiveWord(txt, i); //判断是否包含敏感字符
if (matchFlag > 0) {//大于0存在,返回true
flag = true;
}
}
return flag;
}
/**
* 检查文字中是否包含敏感字符,检查规则如下:
*
* @param txt
* @param beginIndex
* @param matchType
* @return 如果存在, 则返回敏感词字符的长度, 不存在返回0
*/
private static int checkSensitiveWord(String txt, int beginIndex) {
//敏感词结束标识位:用于敏感词只有1位的情况
boolean flag = false;
//匹配标识数默认为0
int matchFlag = 0;
char word;
Map nowMap = sensitiveWordMap;
for (int i = beginIndex; i < txt.length(); i++) {
word = txt.charAt(i);
//获取指定key
nowMap = (Map) nowMap.get(word);
if (nowMap != null) {//存在,则判断是否为最后一个
//找到相应key,匹配标识+1
matchFlag++;
//如果为最后一个匹配规则,结束循环,返回匹配标识数
if ("1".equals(nowMap.get("isEnd"))) {
//结束标志位为true
flag = true;
}
} else {//不存在,直接返回
break;
}
}
if (matchFlag < 2 || !flag) {//长度必须大于等于1,为词
matchFlag = 0;
}
return matchFlag;
}
/**
* 获取文字中的敏感词
* <p>
* txt文字
*/
public static List getSensitiveWord(String txt) {
List sensitiveWordList = new ArrayList();
for (int i = 0; i < txt.length(); i++) {
//判断是否包含敏感字符
int length = checkSensitiveWord(txt, i);
if (length > 0) {//存在,加入list中
sensitiveWordList.add(txt.substring(i, i + length));
i = i + length - 1;//减1的原因,是因为for会自增
}
}
return sensitiveWordList;
}
/**
* context是要校验的内容返回结果是list为空说明没有敏感词
*
* @param context
* @return
*/
public static List checkTxt(String context) {
Set<String> set = new HashSet<>();
set.add("卖淫");
set.add("嫖娼");
initSensitiveWordMap(set);
//包含敏感词返回所有敏感词数据
return getSensitiveWord(context);
}
public static void main(String[] args) {
System.out.println(checkTxt("卖淫嫖娼杀人犯法"));
}
}

@ -29,6 +29,7 @@ import org.springblade.core.social.props.SocialProperties;
import org.springblade.core.social.utils.SocialUtil;
import org.springblade.core.tenant.annotation.NonDS;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -93,5 +94,11 @@ public class BladeSocialEndpoint {
return authRequest.refresh(AuthToken.builder().refreshToken(token).build());
}
@GetMapping("/oauth/test")
public void test() {
log.info("我执行了......1");
log.info("我执行了......2");
log.info("我执行了......3");
}
}

@ -67,13 +67,13 @@ public class CaptchaTokenGranter implements ITokenGranter {
String headerRole = request.getHeader(TokenUtil.ROLE_HEADER_KEY);
// 获取验证码信息
String key = request.getHeader(TokenUtil.CAPTCHA_HEADER_KEY);
String code = request.getHeader(TokenUtil.CAPTCHA_HEADER_CODE);
// String code = request.getHeader(TokenUtil.CAPTCHA_HEADER_CODE);
// 获取验证码
String redisCode = bladeRedis.get(CacheNames.CAPTCHA_KEY + key);
// String redisCode = bladeRedis.get(CacheNames.CAPTCHA_KEY + key);
// 判断验证码
if (code == null || !StringUtil.equalsIgnoreCase(redisCode, code)) {
throw new ServiceException(TokenUtil.CAPTCHA_NOT_CORRECT);
}
// if (code == null || !StringUtil.equalsIgnoreCase(redisCode, code)) {
// throw new ServiceException(TokenUtil.CAPTCHA_NOT_CORRECT);
// }
String tenantId = tokenParameter.getArgs().getStr("tenantId");
String username = tokenParameter.getArgs().getStr("username");

@ -0,0 +1,59 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-banner图片
*/
@Data
@TableName("data_banner_picture")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BannerPicture对象", description = "BannerPicture对象")
public class BannerPicture extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 所属模块字典值
*/
@ApiModelProperty(value = "所属模块(字典值)")
private String module;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-公司概况表
*/
@Data
@TableName("data_company_overview")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "CompanyOverview对象", description = "CompanyOverview对象")
public class CompanyOverview extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 内容
*/
@ApiModelProperty(value = "内容")
private String content;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,63 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-首页-平台介绍表
*/
@Data
@TableName("data_home_platform")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "HomePlatform对象", description = "HomePlatform对象")
public class HomePlatform extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 内容
*/
@ApiModelProperty(value = "内容")
private String content;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,59 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-首页-热门表
*/
@Data
@TableName("data_home_popular")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "HomePopular对象", description = "HomePopular对象")
public class HomePopular extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 内容
*/
@ApiModelProperty(value = "内容")
private String content;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,59 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-首页-产品推介表
*/
@Data
@TableName("data_home_product")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "HomeProduct对象", description = "HomeProduct对象")
public class HomeProduct extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-首页-统计表
*/
@Data
@TableName("data_home_stat")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "HomeStat对象", description = "HomeStat对象")
public class HomeStat extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 单位
*/
@ApiModelProperty(value = "单位")
private String unit;
/**
* 数量
*/
@ApiModelProperty(value = "数量")
private Integer count;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,93 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-数据大厅表
*/
@Data
@TableName("data_information")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Information对象", description = "Information对象")
public class Information extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 支付方式产品广场
*/
@ApiModelProperty(value = "支付方式(产品广场)")
private String payMethod;
/**
* 数据产品产品广场
*/
@ApiModelProperty(value = "数据产品(产品广场)")
private String dataProduct;
/**
* 产品分类产品广场
*/
@ApiModelProperty(value = "产品分类(产品广场)")
private String productType;
/**
* 产品名称
*/
@ApiModelProperty(value = "产品名称")
private String name;
/**
* 产品信息
*/
@ApiModelProperty(value = "产品信息")
private String information;
/**
* 产品价格
*/
@ApiModelProperty(value = "产品价格")
private Integer price;
/**
* 产品标签
*/
@ApiModelProperty(value = "产品标签")
private String label;
/**
* 浏览量
*/
@ApiModelProperty(value = "浏览量")
private Integer pageNum;
/**
* 收藏量
*/
@ApiModelProperty(value = "收藏量")
private Integer collectNum;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,71 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import java.util.Date;
/**
* 实体类-新闻资讯表
*/
@Data
@TableName("data_news")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "News对象", description = "News对象")
public class News extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 内容
*/
@ApiModelProperty(value = "内容")
private String introduce;
/**
* 发布时间
*/
@ApiModelProperty(value = "发布时间")
private Date releaseTime;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 分类字典值
*/
@ApiModelProperty(value = "分类(字典值)")
private Integer type;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,54 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-公告表
*/
@Data
@TableName("data_notice")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Notice对象", description = "Notice对象")
public class Notice extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 内容
*/
@ApiModelProperty(value = "内容")
private String content;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,84 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-产品表
*/
@Data
@TableName("data_product")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Product对象", description = "Product对象")
public class Product extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 场景分类数据大厅
*/
@ApiModelProperty(value = "场景分类(数据大厅)")
private String sceneType;
/**
* 产品名称
*/
@ApiModelProperty(value = "产品名称")
private String name;
/**
* 产品信息
*/
@ApiModelProperty(value = "产品信息")
private String information;
/**
* 产品价格
*/
@ApiModelProperty(value = "产品价格")
private Integer price;
/**
* 产品标签
*/
@ApiModelProperty(value = "产品标签")
private String label;
/**
* 浏览量
*/
@ApiModelProperty(value = "浏览量")
private Integer pageNum;
/**
* 收藏量
*/
@ApiModelProperty(value = "收藏量")
private Integer collectNum;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,69 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-服务指南表
*/
@Data
@TableName("data_service_guide")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ServiceGuide对象", description = "ServiceGuide对象")
public class ServiceGuide extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 所属模块字典值
*/
@ApiModelProperty(value = "所属模块(字典值)")
private String module;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 内容
*/
@ApiModelProperty(value = "内容")
private String content;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,59 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-医疗专区-流程图表
*/
@Data
@TableName("data_zone_flow")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ZoneFlow对象", description = "ZoneFlow对象")
public class ZoneFlow extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-医疗专区-专区介绍表
*/
@Data
@TableName("data_zone_introduce")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ZoneIntroduce对象", description = "ZoneIntroduce对象")
public class ZoneIntroduce extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 内容
*/
@ApiModelProperty(value = "内容")
private String content;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,59 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-医疗专区-产品介绍表
*/
@Data
@TableName("data_zone_product_introduce")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ZoneProductIntroduce对象", description = "ZoneProductIntroduce对象")
public class ZoneProductIntroduce extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,69 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-医疗专区-应用场景表
*/
@Data
@TableName("data_zone_scene")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ZoneScene对象", description = "ZoneScene对象")
public class ZoneScene extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 所属模块字典值
*/
@ApiModelProperty(value = "所属模块(字典值)")
private String module;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 内容
*/
@ApiModelProperty(value = "内容")
private String content;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,64 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-医疗专区-统计表
*/
@Data
@TableName("data_zone_stat")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ZoneStat对象", description = "ZoneStat对象")
public class ZoneStat extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 单位
*/
@ApiModelProperty(value = "单位")
private String unit;
/**
* 数量
*/
@ApiModelProperty(value = "数量")
private Integer count;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -0,0 +1,59 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.baotou.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* 实体类-医疗专区-共建单位表
*/
@Data
@TableName("data_zone_unit")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ZoneUnit对象", description = "ZoneUnit对象")
public class ZoneUnit extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
@ApiModelProperty(value = "标题")
private String title;
/**
* 文件路径
*/
@ApiModelProperty(value = "文件路径")
private String url;
/**
* 是否展示
*/
@ApiModelProperty(value = "是否展示")
private Integer isShow;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark;
}

@ -134,19 +134,19 @@ oss:
enabled: true
#开启oss类型
#minio、s3、qiniu、alioss、huaweiobs、tencentcos
name: qiniu
name: minio
#租户模式
tenant-mode: true
tenant-mode: false
#oss服务地址
endpoint: http://prt1thnw3.bkt.clouddn.com
endpoint: http://192.168.1.102:9000
#minio转换服务地址,用于内网上传后将返回地址改为转换的外网地址
transform-endpoint: http://localhost:9000
#访问key
access-key: N_Loh1ngBqcJovwiAJqR91Ifj2vgOWHOf8AwBA_h
access-key: g5HeFysuXl8GR6Rn
#密钥key
secret-key: AuzuA1KHAbkIndCU0dB3Zfii2O3crHNODDmpxHRS
secret-key: fz2cbDybMz6VOYFnUHSa24jywAAJ7BkM
#存储桶
bucket-name: bladex
bucket-name: dataOperation
#第三方登陆配置
social:

@ -21,10 +21,44 @@
</encoder>
</appender>
<!-- 生成日志文件 -->
<appender name="INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件输出的文件名 -->
<FileNamePattern>./logs/info-%d{yyyy-MM-dd}.log</FileNamePattern>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%n%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] [%X{traceId}] [%logger{50}] %n%-5level: %msg%n</pattern>
</encoder>
<!-- 打印日志级别 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 生成日志文件 -->
<appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件输出的文件名 -->
<FileNamePattern>./logs/error-%d{yyyy-MM-dd}.log</FileNamePattern>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%n%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] [%X{traceId}] [%logger{50}] %n%-5level: %msg%n</pattern>
</encoder>
<!-- 打印日志级别 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<if condition='property("ELK_MODE").toUpperCase().contains("TRUE")'>
<then>
<!-- 推送日志至elk -->
<appender name="STDOUT_LOGSTASH" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
<appender name="INFO_LOGSTASH" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
<destination>${DESTINATION}</destination>
<!-- 日志输出编码 -->
<encoder charset="UTF-8" class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
@ -53,6 +87,50 @@
<stackTrace/>
</providers>
</encoder>
<!-- 打印日志级别 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 推送日志至elk -->
<appender name="ERROR_LOGSTASH" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
<destination>${DESTINATION}</destination>
<!-- 日志输出编码 -->
<encoder charset="UTF-8" class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
<providers>
<timestamp>
<timeZone>UTC</timeZone>
</timestamp>
<pattern>
<pattern>
{
"traceId": "%X{traceId}",
"requestId": "%X{requestId}",
"accountId": "%X{accountId}",
"tenantId": "%X{tenantId}",
"logLevel": "%level",
"serviceName": "${springAppName:-SpringApp}",
"pid": "${PID:-}",
"thread": "%thread",
"class": "%logger{40}",
"line":"%L",
"message": "%message"
}
</pattern>
</pattern>
<mdc/>
<stackTrace/>
</providers>
</encoder>
<!-- 打印日志级别 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
</then>
</if>
@ -60,54 +138,14 @@
<!-- 日志输出级别 -->
<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="${STDOUT_APPENDER}"/>
<appender-ref ref="${INFO_APPENDER}"/>
<appender-ref ref="${ERROR_APPENDER}"/>
</root>
<logger name="net.sf.ehcache" level="INFO"/>
<logger name="druid.sql" level="INFO"/>
<!-- MyBatis log configure -->
<logger name="com.apache.ibatis" level="INFO"/>
<logger name="org.mybatis.spring" level="INFO"/>
<logger name="java.sql.Connection" level="INFO"/>
<logger name="java.sql.Statement" level="INFO"/>
<logger name="java.sql.PreparedStatement" level="INFO"/>
<!-- 减少部分debug日志 -->
<logger name="druid.sql" level="INFO"/>
<logger name="org.apache.shiro" level="INFO"/>
<logger name="org.mybatis.spring" level="INFO"/>
<logger name="org.springframework" level="INFO"/>
<logger name="org.springframework.context" level="WARN"/>
<logger name="org.springframework.beans" level="WARN"/>
<logger name="com.baomidou.mybatisplus" level="INFO"/>
<logger name="org.apache.ibatis.io" level="INFO"/>
<logger name="org.apache.velocity" level="INFO"/>
<logger name="org.eclipse.jetty" level="INFO"/>
<logger name="io.undertow" level="INFO"/>
<logger name="org.xnio.nio" level="INFO"/>
<logger name="org.thymeleaf" level="INFO"/>
<logger name="springfox.documentation" level="INFO"/>
<logger name="org.hibernate.validator" level="INFO"/>
<logger name="com.netflix.loadbalancer" level="INFO"/>
<logger name="com.netflix.hystrix" level="INFO"/>
<logger name="com.netflix.zuul" level="INFO"/>
<logger name="de.codecentric" level="INFO"/>
<!-- cache INFO -->
<logger name="net.sf.ehcache" level="INFO"/>
<logger name="org.springframework.cache" level="INFO"/>
<!-- cloud -->
<logger name="org.apache.http" level="INFO"/>
<logger name="com.netflix.discovery" level="INFO"/>
<logger name="com.netflix.eureka" level="INFO"/>
<!-- 业务日志 -->
<Logger name="org.springblade" level="INFO"/>
<Logger name="org.springblade.core.tenant" level="INFO"/>
<Logger name="org.springblade.core.version" level="INFO"/>
<!-- 减少nacos日志 -->
<logger name="com.alibaba.nacos" level="ERROR"/>
</configuration>

Loading…
Cancel
Save