Merge remote-tracking branch 'origin/jtdev' into jtdev
# Conflicts:
# skjcmanager/skjcmanager-common/src/main/java/cn/gistack/common/launch/LauncherServiceImpl.java
6 files modified
1 files deleted
14 files added
| | |
| | | PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.server-addr", LauncherConstant.nacosAddr(profile)); |
| | | PropsUtil.setProperty(props, "spring.cloud.nacos.config.server-addr", LauncherConstant.nacosAddr(profile)); |
| | | |
| | | // //自定义注册 |
| | | // PropsUtil.setProperty(props, "spring.cloud.nacos.config.namespace", "zhongrijian"); |
| | | // PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.namespace", "zhongrijian"); |
| | | //自定义命名空间 |
| | | // PropsUtil.setProperty(props, "spring.cloud.nacos.config.namespace", "xiebin"); |
| | | // PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.namespace", "xiebin"); |
| | | |
| | | PropsUtil.setProperty(props, "spring.cloud.sentinel.transport.dashboard", LauncherConstant.sentinelAddr(profile)); |
| | | PropsUtil.setProperty(props, "spring.zipkin.base-url", LauncherConstant.zipkinAddr(profile)); |
| | | //开启多数据源 |
| | | PropsUtil.setProperty(props, "spring.datasource.dynamic.enabled", "false"); |
| | | |
| | | // 开启elk日志 |
| | |
| | | DEFAULT_SKIP_URL.add("/oauth/revoke/**"); |
| | | DEFAULT_SKIP_URL.add("/oauth/refresh/**"); |
| | | DEFAULT_SKIP_URL.add("/token/**"); |
| | | DEFAULT_SKIP_URL.add("/actuator/**"); |
| | | // DEFAULT_SKIP_URL.add("/actuator/**"); |
| | | DEFAULT_SKIP_URL.add("/v2/api-docs/**"); |
| | | DEFAULT_SKIP_URL.add("/auth/**"); |
| | | DEFAULT_SKIP_URL.add("/log/**"); |
| | |
| | | DEFAULT_SKIP_URL.add("/manager/check-upload"); |
| | | DEFAULT_SKIP_URL.add("/error/**"); |
| | | DEFAULT_SKIP_URL.add("/assets/**"); |
| | | DEFAULT_SKIP_URL.add("/blade-system/menu/dynamicMenu"); |
| | | DEFAULT_SKIP_URL.add("/sjztmd/**/**"); |
| | | DEFAULT_SKIP_URL.add("/simulate/**"); |
| | | } |
| | | |
| | |
| | | */ |
| | | package cn.gistack.develop; |
| | | |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springblade.core.cloud.client.BladeCloudApplication; |
| | | import org.springblade.core.launch.BladeApplication; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springframework.cloud.openfeign.EnableFeignClients; |
| | | |
| | | /** |
| | | * Develop启动器 |
| | |
| | | * @author Chill |
| | | */ |
| | | @BladeCloudApplication |
| | | @EnableFeignClients({"cn.gistack"}) |
| | | @MapperScan({"org.springblade.**.mapper.**","cn.gistack.**.mapper.**"}) |
| | | public class DevelopApplication { |
| | | |
| | | public static void main(String[] args) { |
| | |
| | | <groupId>cn.com.flaginfo.sdk.cmc</groupId> |
| | | <artifactId>send-api-sdk</artifactId> |
| | | <version>1.2.1</version> |
| | | <scope>system</scope> |
| | | <systemPath>${project.basedir}/libs/send-api-sdk-1.2.1.jar</systemPath> |
| | | </dependency> |
| | | <!--开启多数据源--> |
| | | <dependency> |
| | | <groupId>org.springblade</groupId> |
| | | <artifactId>blade-core-auto</artifactId> |
| | | <scope>compile</scope> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-antrun-plugin</artifactId> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <includeSystemScope>true</includeSystemScope> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </build> |
| | |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springblade.core.cloud.client.BladeCloudApplication; |
| | | import org.springblade.core.launch.BladeApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| | | import org.springframework.cloud.openfeign.EnableFeignClients; |
| | | |
| | | @BladeCloudApplication |
| New file |
| | |
| | | /* |
| | | * 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 cn.gistack.sm.launch; |
| | | |
| | | import cn.gistack.common.constant.LauncherConstant; |
| | | import org.springblade.core.auto.service.AutoService; |
| | | import org.springblade.core.launch.service.LauncherService; |
| | | import org.springblade.core.launch.utils.PropsUtil; |
| | | import org.springframework.boot.builder.SpringApplicationBuilder; |
| | | |
| | | import java.util.Properties; |
| | | |
| | | /** |
| | | * 启动参数拓展 |
| | | * |
| | | * @author smallchil |
| | | */ |
| | | @AutoService(LauncherService.class) |
| | | public class SmLauncherServiceImpl implements LauncherService { |
| | | |
| | | @Override |
| | | public void launcher(SpringApplicationBuilder builder, String appName, String profile, boolean isLocalDev) { |
| | | Properties props = System.getProperties(); |
| | | // 通用注册 |
| | | PropsUtil.setProperty(props, "spring.cloud.nacos.discovery.server-addr", LauncherConstant.nacosAddr(profile)); |
| | | PropsUtil.setProperty(props, "spring.cloud.nacos.config.server-addr", LauncherConstant.nacosAddr(profile)); |
| | | |
| | | |
| | | PropsUtil.setProperty(props, "spring.cloud.sentinel.transport.dashboard", LauncherConstant.sentinelAddr(profile)); |
| | | PropsUtil.setProperty(props, "spring.zipkin.base-url", LauncherConstant.zipkinAddr(profile)); |
| | | //开启多数据源 |
| | | PropsUtil.setProperty(props, "spring.datasource.dynamic.enabled", "true"); |
| | | |
| | | // 开启elk日志 |
| | | // PropsUtil.setProperty(props, "blade.log.elk.destination", LauncherConstant.elkAddr(profile)); |
| | | |
| | | // seata注册地址 |
| | | // PropsUtil.setProperty(props, "seata.service.grouplist.default", LauncherConstant.seataAddr(profile)); |
| | | // seata注册group格式 |
| | | // PropsUtil.setProperty(props, "seata.tx-service-group", LauncherConstant.seataServiceGroup(appName)); |
| | | // seata配置服务group |
| | | // PropsUtil.setProperty(props, "seata.service.vgroup-mapping.".concat(LauncherConstant.seataServiceGroup(appName)), LauncherConstant.DEFAULT_MODE); |
| | | // seata注册模式配置 |
| | | // PropsUtil.setProperty(props, "seata.registry.type", LauncherConstant.NACOS_MODE); |
| | | // PropsUtil.setProperty(props, "seata.registry.nacos.server-addr", LauncherConstant.nacosAddr(profile)); |
| | | // PropsUtil.setProperty(props, "seata.config.type", LauncherConstant.NACOS_MODE); |
| | | // PropsUtil.setProperty(props, "seata.config.nacos.server-addr", LauncherConstant.nacosAddr(profile)); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package cn.gistack.sm.sjztmd.controller; |
| | | |
| | | import cn.gistack.sm.exam.entity.ExamPlan; |
| | | import cn.gistack.sm.sjztmd.entity.AttAdBase; |
| | | import cn.gistack.sm.sjztmd.service.IAttAdBaseService; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @ClassName AttAdBaseController |
| | | * @Description TODO |
| | | * @Author aix |
| | | * @Date 2023/4/21 20:09 |
| | | * @Version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "中台行政区划") |
| | | @RestController |
| | | @RequestMapping("/sjztmd/attad") |
| | | @AllArgsConstructor |
| | | public class AttAdBaseController extends BladeController { |
| | | |
| | | private final IAttAdBaseService attAdBaseService; |
| | | |
| | | @ApiOperation(value = "中台行政区划-分页列表查询", notes = "中台行政区划-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public R queryPageList(AttAdBase attAdBase, Query query) { |
| | | IPage<AttAdBase> pageList = attAdBaseService.page(Condition.getPage(query), Condition.getQueryWrapper(attAdBase)); |
| | | return R.data(pageList); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package cn.gistack.sm.sjztmd.controller; |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttResManagePerson; |
| | | import cn.gistack.sm.sjztmd.service.IAttResManagePersonService; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @ClassName AttResManagePersonController |
| | | * @Description TODO |
| | | * @Author aix |
| | | * @Date 2023/4/22 14:34 |
| | | * @Version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "中台责任人水库列表") |
| | | @RestController |
| | | @RequestMapping("/sjztmd/attResManagePerson") |
| | | @AllArgsConstructor |
| | | public class AttResManagePersonController extends BladeController { |
| | | private final IAttResManagePersonService attResManagePersonService; |
| | | |
| | | @ApiOperation(value = "中台责任人水库列表-分页列表查询", notes = "中台责任人水库列表-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public R queryPageList(AttResManagePerson attResManagePerson, Query query) { |
| | | IPage<AttResManagePerson> pageList = attResManagePersonService.page(Condition.getPage(query), Condition.getQueryWrapper(attResManagePerson)); |
| | | return R.data(pageList); |
| | | } |
| | | } |
| New file |
| | |
| | | package cn.gistack.sm.sjztmd.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * 中台行政区划实体类 |
| | | * |
| | | * @author Chill |
| | | */ |
| | | @Data |
| | | @TableName("\"att_ad_base\"") |
| | | @ApiModel(value = "行政区划对象", description = "行政区划对象") |
| | | public class AttAdBase implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | @ApiModelProperty(value = "主键") |
| | | @TableField("\"guid\"") |
| | | private String guid; |
| | | |
| | | /** |
| | | * 行政区划编码 |
| | | */ |
| | | @ApiModelProperty(value = "行政区划编码") |
| | | @TableField("\"ad_code\"") |
| | | private String adCode; |
| | | |
| | | /** |
| | | * 父主键 |
| | | */ |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | @ApiModelProperty(value = "父主键") |
| | | @TableField("\"p_ad_code\"") |
| | | private String pAdCode; |
| | | |
| | | /** |
| | | * 行政区划名称 |
| | | */ |
| | | @ApiModelProperty(value = "行政区划名称") |
| | | @TableField("\"ad_name\"") |
| | | private String adName; |
| | | |
| | | /** |
| | | * 行政区划等级 |
| | | */ |
| | | @ApiModelProperty(value = "行政区划等级") |
| | | @TableField("\"ad_grad\"") |
| | | private String adGrad; |
| | | |
| | | } |
| New file |
| | |
| | | package cn.gistack.sm.sjztmd.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @ClassName 中台责任人实体类 |
| | | * @Description TODO |
| | | * @Author aix |
| | | * @Date 2023/4/22 10:45 |
| | | * @Version 1.0 |
| | | */ |
| | | @Data |
| | | @TableName("\"att_res_manage_person\"") |
| | | @ApiModel(value = "行政区划对象", description = "行政区划对象") |
| | | public class AttResManagePerson implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | @ApiModelProperty(value = "主键") |
| | | @TableField("\"guid\"") |
| | | private String guid; |
| | | |
| | | /** |
| | | * 用户名称 |
| | | */ |
| | | @ApiModelProperty(value = "用户名称") |
| | | @TableField("\"user_name\"") |
| | | private String userName; |
| | | |
| | | /** |
| | | * 责任人类型 |
| | | */ |
| | | @ApiModelProperty(value = "责任人类型") |
| | | @TableField("\"type\"") |
| | | private String type; |
| | | |
| | | /** |
| | | * 手机号码 |
| | | */ |
| | | @ApiModelProperty(value = "手机号码") |
| | | @TableField("\"user_phone\"") |
| | | private String userPhone; |
| | | |
| | | /** |
| | | * 水库id |
| | | */ |
| | | @ApiModelProperty(value = "水库id") |
| | | @TableField("\"res_guid\"") |
| | | private String res_guid; |
| | | |
| | | } |
| New file |
| | |
| | | package cn.gistack.sm.sjztmd.mapper; |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttAdBase; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * AddAdBaseMapper 接口 |
| | | * |
| | | * @author Chill |
| | | */ |
| | | public interface AttAdBaseMapper extends BaseMapper<AttAdBase> { |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | <?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="cn.gistack.sm.sjztmd.mapper.AttAdBaseMapper"> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | package cn.gistack.sm.sjztmd.mapper; |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttResManagePerson; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @ClassName AttResManagePersonMapper |
| | | * @Description TODO |
| | | * @Author aix |
| | | * @Date 2023/4/22 11:11 |
| | | * @Version 1.0 |
| | | */ |
| | | public interface AttResManagePersonMapper extends BaseMapper<AttResManagePerson> { |
| | | } |
| New file |
| | |
| | | <?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="cn.gistack.sm.sjztmd.mapper.AttResManagePersonMapper"> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | package cn.gistack.sm.sjztmd.service; |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttAdBase; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @ClassName IAttAdBase |
| | | * @Description TODO |
| | | * @Author aix |
| | | * @Date 2023/4/21 19:55 |
| | | * @Version 1.0 |
| | | */ |
| | | public interface IAttAdBaseService extends IService<AttAdBase> { |
| | | } |
| New file |
| | |
| | | package cn.gistack.sm.sjztmd.service; |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttResManagePerson; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @ClassName AttResManagePerson |
| | | * @Description TODO |
| | | * @Author aix |
| | | * @Date 2023/4/22 11:09 |
| | | * @Version 1.0 |
| | | */ |
| | | public interface IAttResManagePersonService extends IService<AttResManagePerson> { |
| | | } |
| New file |
| | |
| | | package cn.gistack.sm.sjztmd.service.impl; |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttAdBase; |
| | | import cn.gistack.sm.sjztmd.mapper.AttAdBaseMapper; |
| | | import cn.gistack.sm.sjztmd.service.IAttAdBaseService; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @ClassName AttAdBaseServiceImpl |
| | | * @Description TODO |
| | | * @Author aix |
| | | * @Date 2023/4/21 20:01 |
| | | * @Version 1.0 |
| | | */ |
| | | @Service |
| | | @DS("zt") |
| | | public class AttAdBaseServiceImpl extends ServiceImpl<AttAdBaseMapper, AttAdBase> implements IAttAdBaseService { |
| | | } |
| New file |
| | |
| | | package cn.gistack.sm.sjztmd.service.impl; |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttResManagePerson; |
| | | import cn.gistack.sm.sjztmd.mapper.AttResManagePersonMapper; |
| | | import cn.gistack.sm.sjztmd.service.IAttResManagePersonService; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @ClassName AttResManagePersonServiceImpl |
| | | * @Description TODO |
| | | * @Author aix |
| | | * @Date 2023/4/22 11:10 |
| | | * @Version 1.0 |
| | | */ |
| | | @Service |
| | | @DS("zt") |
| | | public class AttResManagePersonServiceImpl extends ServiceImpl<AttResManagePersonMapper, AttResManagePerson> implements IAttResManagePersonService { |
| | | } |
| New file |
| | |
| | | /* |
| | | * 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 cn.gistack.sm.sjztmd.vo; |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttAdBase; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.springblade.core.tool.node.INode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 实体类 |
| | | * |
| | | * @author Chill |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @ApiModel(value = "att_ad_base对象", description = "att_ad_base对象") |
| | | public class AttAdBaseVO extends AttAdBase implements INode<AttAdBaseVO> { |
| | | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键ID |
| | | */ |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 父节点ID |
| | | */ |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long parentId; |
| | | |
| | | /** |
| | | * 子孙节点 |
| | | */ |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | | private List<AttAdBaseVO> children; |
| | | |
| | | /** |
| | | * 是否有子孙节点 |
| | | */ |
| | | @JsonInclude(JsonInclude.Include.NON_EMPTY) |
| | | private Boolean hasChildren; |
| | | |
| | | @Override |
| | | public List<AttAdBaseVO> getChildren() { |
| | | if (this.children == null) { |
| | | this.children = new ArrayList<>(); |
| | | } |
| | | return this.children; |
| | | } |
| | | |
| | | /** |
| | | * 上级名称 |
| | | */ |
| | | private String pAdName; |
| | | |
| | | } |
| | |
| | | port: 8110 |
| | | |
| | | #数据源配置 |
| | | #spring: |
| | | # datasource: |
| | | # url: ${blade.datasource.dev.url} |
| | | # username: ${blade.datasource.dev.username} |
| | | # password: ${blade.datasource.dev.password} |
| | | |
| | | #多数据源配置 |
| | | spring: |
| | | #排除DruidDataSourceAutoConfigure |
| | | autoconfigure: |
| | | exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
| | | datasource: |
| | | url: ${blade.datasource.dev.url} |
| | | username: ${blade.datasource.dev.username} |
| | | password: ${blade.datasource.dev.password} |
| | | dynamic: |
| | | #设置默认的数据源或者数据源组,默认值即为master |
| | | primary: master |
| | | datasource: |
| | | master: |
| | | url: ${blade.datasource.dev.url} |
| | | username: ${blade.datasource.dev.username} |
| | | password: ${blade.datasource.dev.password} |
| | | zt: |
| | | url: ${blade.datasource.dev.zt.url} |
| | | username: ${blade.datasource.dev.zt.username} |
| | | password: ${blade.datasource.dev.zt.password} |
| | | |