浏览代码

feature 初次提交

xiahan 6 天之前
当前提交
27ed8516b2

+ 156 - 0
pom.xml

@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.rongwei</groupId>
+    <artifactId>QHSE</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <modules>
+        <module>qhse-server</module>
+        <module>qhse-common</module>
+        <module>qhse-entity</module>
+    </modules>
+
+
+    <parent>
+        <artifactId>InControl</artifactId>
+        <groupId>com.rongwei</groupId>
+        <version>1.1-SNAPSHOT</version>
+    </parent>
+
+    <properties>
+        <mapper.version>3.4.0</mapper.version>
+        <maven.compile.source>1.8</maven.compile.source>
+        <maven.compile.target>1.8</maven.compile.target>
+        <fastjson.version>1.2.83</fastjson.version>
+        <tomcat.version>9.0.99</tomcat.version>
+    </properties>
+
+    <packaging>pom</packaging>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>com.dameng</groupId>
+            <artifactId>DmJdbcDriver18</artifactId>
+            <version>8.1.1.193</version>
+        </dependency>
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
+            <version>3.5.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+            <version>1.16.14</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>fastjson</artifactId>
+            <version>${fastjson.version}</version>
+        </dependency>
+    </dependencies>
+
+    <repositories>
+        <repository>
+            <id>oss</id>
+            <name>oss</name>
+            <url>https://oss.sonatype.org/content/groups/public</url>
+        </repository>
+        <repository>
+            <id>spring-milestones</id>
+            <name>Spring Milestones</name>
+            <url>https://repo.spring.io/libs-milestone</url>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+        </repository>
+        <repository>
+            <id>sonatype-nexus-snapshots</id>
+            <name>Sonatype Nexus Snapshots</name>
+            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+        </repository>
+    </repositories>
+
+    <!--依赖管理,用于管理spring-cloud的依赖,其中Camden.SR3是版本号-->
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.springframework.cloud</groupId>
+                <artifactId>spring-cloud-dependencies</artifactId>
+                <version>Greenwich.RELEASE</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <dependency>
+                <groupId>com.alibaba</groupId>
+                <artifactId>fastjson</artifactId>
+                <version>1.2.33</version>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework.cloud</groupId>
+                <artifactId>spring-cloud-alibaba-dependencies</artifactId>
+                <version>0.2.1.RELEASE</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <distributionManagement>
+        <snapshotRepository>
+            <id>ossrh</id>
+            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+        </snapshotRepository>
+        <repository>
+            <id>ossrh</id>
+            <name>Maven Central Staging Repository</name>
+            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
+        </repository>
+    </distributionManagement>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>versions-maven-plugin</artifactId>
+                <version>2.7</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>${maven-compiler-plugin.version}</version>
+                <configuration>
+                    <source>${maven.compile.source}</source>
+                    <target>${maven.compile.target}</target>
+                    <encoding>${project.build.sourceEncoding}</encoding>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+                <version>2.4</version>
+                <executions>
+                    <execution>
+                        <id>attach-sources</id>
+                        <goals>
+                            <goal>jar-no-fork</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-deploy-plugin</artifactId>
+                <version>2.8.2</version>
+            </plugin>
+        </plugins>
+    </build>
+</project>

+ 50 - 0
qhse-common/pom.xml

@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://maven.apache.org/POM/4.0.0"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>QHSE</artifactId>
+        <groupId>com.rongwei</groupId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.rongwei</groupId>
+    <artifactId>qhse-common</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <properties>
+        <mysql.version>8.0.11</mysql.version>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.rongwei</groupId>
+            <artifactId>qhse-entity</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-collections4</artifactId>
+            <version>4.4</version>
+        </dependency>
+        <dependency>
+            <groupId>com.rongwei</groupId>
+            <artifactId>rw-admin-entity</artifactId>
+            <version>1.1-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tomcat.embed</groupId>
+            <artifactId>tomcat-embed-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-data-redis</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.datatype</groupId>
+            <artifactId>jackson-datatype-jsr310</artifactId>
+        </dependency>
+    </dependencies>
+</project>

+ 23 - 0
qhse-common/src/main/java/com/rongwei/bscommon/sys/service/RedisService.java

@@ -0,0 +1,23 @@
+package com.rongwei.bscommon.sys.service;
+
+
+
+import com.rongwei.rwadmincommon.system.vo.SysUserVo;
+
+import java.util.Set;
+
+public interface RedisService {
+
+
+    void redisCatchInit(String key, Object obj, int expireTime);
+
+    Object getRedisCatchObj(String key);
+
+    SysUserVo getLoginUser(String token);
+
+    Set<String> getPatternKey(String pattern);
+
+    boolean hasKey(String key);
+
+
+}

+ 92 - 0
qhse-common/src/main/java/com/rongwei/bscommon/sys/service/impl/RedisServiceImpl.java

@@ -0,0 +1,92 @@
+package com.rongwei.bscommon.sys.service.impl;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.PropertyAccessor;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+import com.rongwei.bscommon.sys.service.RedisService;
+import com.rongwei.rwadmincommon.system.vo.SysUserVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.data.redis.core.StringRedisTemplate;
+import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
+import org.springframework.data.redis.serializer.RedisSerializer;
+import org.springframework.data.redis.serializer.StringRedisSerializer;
+import org.springframework.stereotype.Service;
+
+import java.util.Set;
+import java.util.concurrent.TimeUnit;
+
+@Service("MyRedisService")
+public class RedisServiceImpl implements RedisService {
+
+    @Value("${jwt.expire}")
+    private int expire;
+
+    @Autowired
+    private RedisTemplate redisTemplate;
+    @Autowired
+    private StringRedisTemplate stringRedisTemplate;
+
+
+    @Override
+    public void redisCatchInit(String key, Object obj, int expireTime) {
+        if (expireTime > 0) {
+            redisTemplate.opsForValue().set(key, obj, expireTime, TimeUnit.SECONDS);
+        } else {
+            redisTemplate.opsForValue().set(key, obj);
+        }
+    }
+
+    @Override
+    public Object getRedisCatchObj(String key) {
+        return redisTemplate.opsForValue().get(key);
+    }
+
+    //    判断key是否存在
+    public boolean hasKey(String key) {
+        return redisTemplate.hasKey(key);
+    }
+    /**
+     * redis配置项初始化
+     * @param redisTemplate
+     */
+    @Autowired(required = false)
+    public void setRedisTemplate(RedisTemplate redisTemplate) {
+        RedisSerializer stringSerializer = new StringRedisSerializer();
+        //使用Jackson2JsonRedisSerializer来序列化和反序列化redis的value值(默认使用JDK的序列化方式)
+        Jackson2JsonRedisSerializer jacksonSeial = new Jackson2JsonRedisSerializer(Object.class);
+        ObjectMapper objectMapper = new ObjectMapper();
+        objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
+        objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
+        objectMapper.registerModule(new JavaTimeModule());
+        // 指定要序列化的域,field,get和set,以及修饰符范围,ANY是都有包括private和public
+        objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
+        // 指定序列化输入的类型,类必须是非final修饰的,final修饰的类,比如String,Integer等会跑出异常
+        objectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
+        jacksonSeial.setObjectMapper(objectMapper);
+        // 值采用json序列化-------
+        redisTemplate.setValueSerializer(jacksonSeial);
+        redisTemplate.setKeySerializer(stringSerializer);
+        redisTemplate.setHashKeySerializer(stringSerializer);
+        redisTemplate.setHashValueSerializer(jacksonSeial);
+        redisTemplate.afterPropertiesSet();
+        this.redisTemplate = redisTemplate;
+    }
+    /**
+     * 根据 pattern 模糊查询,查所有传入 "*" 即可
+     *
+     * @param pattern
+     * @return
+     */
+    public Set<String> getPatternKey(String pattern) {
+        return redisTemplate.keys(pattern);
+    }
+    @Override
+    public SysUserVo getLoginUser(String token) {
+        return (SysUserVo)redisTemplate.opsForValue().get("token-"+token);
+    }
+}

+ 187 - 0
qhse-common/src/main/java/com/rongwei/bscommon/sys/utils/QHSEConstant.java

@@ -0,0 +1,187 @@
+package com.rongwei.bscommon.sys.utils;
+
+import java.math.BigDecimal;
+
+/**
+ * JXKHConstant class
+ *
+ * @author XH
+ * @date 2024/12/02
+ */
+public class QHSEConstant {
+    public static class DatePattern {
+        public static final String DATE_PATTERN_YM_CN = "yyyy年MM月";
+        public static final String DATE_PATTERN_YM = "yyyy-MM";
+        public static final String DATE_PATTERN_YMD_CN = "yyyy年MM月dd日";
+        public static final String DATE_PATTERN_YMD = "yyyy-MM-dd";
+        public static final String DATE_PATTERN_YMDHMS = "yyyy-MM-dd HH:mm:ss";
+        public static final String DATE_PATTERN_YMD_SLASH = "yyyy/MM/dd";
+        public static final String DATE_PATTERN_YM_UNDERLINE = "yyyy_MM";
+        public static final String DATE_PATTERN_YMD_POINT = "yyyy.MM.dd";
+    }
+
+    public static class BusinessReturnCode {
+        /**
+         * 接口执行成功
+         */
+        public static final int CODE_100 = 100;
+        /**
+         * 必填项xxx为空
+         */
+        public static final int CODE_101 = 101;
+        /**
+         * 数据主键或数据编码有误,数据操作失败
+         */
+        public static final int CODE_103 = 103;
+    }
+
+    public static class StandardReturn {
+        /**
+         * 请求成功
+         */
+        public static final String CODE_000 = "000";
+        /**
+         * token校验失败
+         */
+        public static final String CODE_001 = "001";
+        /**
+         * 单位编码为空
+         */
+        public static final String CODE_002 = "002";
+        /**
+         * 接口无权限
+         */
+        public static final String CODE_003 = "003";
+        /**
+         * token过期
+         */
+        public static final String CODE_004 = "004";
+        /**
+         * 数据超过最大处理数量
+         */
+        public static final String CODE_006 = "006";
+    }
+
+    public static class DefaultSource {
+        public static final BigDecimal THREE_SOURCE = BigDecimal.valueOf(3);
+        public static final BigDecimal TWO_SOURCE = BigDecimal.valueOf(2);
+        public static final BigDecimal FOUR_SOURCE = BigDecimal.valueOf(4);
+        public static final BigDecimal FIVE_SOURCE = BigDecimal.valueOf(5);
+        public static final BigDecimal ZERO_POINT_FIVE_SOURCE = BigDecimal.valueOf(0.5);
+    }
+
+    public static class JXJB {
+        /**
+         * 设计咨询省部级(一等)
+         */
+        public static final String JXJB_27 = "27";
+        /**
+         * 设计咨询集团级(一等)
+         */
+        public static final String JXJB_26 = "26";
+        /**
+         * 设计咨询国家级(三等)
+         */
+        public static final String JXJB_25 = "25";
+        /**
+         * 设计咨询国家级(二等)
+         */
+        public static final String JXJB_24 = "24";
+        /**
+         * 设计咨询国家级(一等)
+         */
+        public static final String JXJB_23 = "23";
+        /**
+         * 技术发明其他
+         */
+        public static final String JXJB_22 = "22";
+        /**
+         * 技术发明省部级(一等)
+         */
+        public static final String JXJB_21 = "21";
+        /**
+         * 技术发明集团级(一等)
+         */
+        public static final String JXJB_20 = "20";
+        /**
+         * 技术发明国家级(一等)
+         */
+        public static final String JXJB_19 = "19";
+        /**
+         * 低碳技术其他
+         */
+        public static final String JXJB_18 = "18";
+        /**
+         * 低碳技术省部级(一等)
+         */
+        public static final String JXJB_17 = "17";
+        /**
+         * 低碳技术集团级(一等)
+         */
+        public static final String JXJB_16 = "16";
+        /**
+         * 低碳技术国家级(三级)
+         */
+        public static final String JXJB_15 = "15";
+        /**
+         * 低碳技术国家级(二等)
+         */
+        public static final String JXJB_14 = "14";
+        /**
+         * 低碳技术国家级(一等)
+         */
+        public static final String JXJB_13 = "13";
+        /**
+         * 天佑奖
+         */
+        public static final String JXJB_12 = "12";
+        /**
+         * 班奖
+         */
+        public static final String JXJB_11 = "11";
+        /**
+         * 国家优质工程金奖
+         */
+        public static final String JXJB_10 = "10";
+        /**
+         * 国家优质工程奖
+         */
+        public static final String JXJB_9 = "9";
+        /**
+         * 科技奖集团(一等)
+         */
+        public static final String JXJB_7 = "7";
+        /**
+         * 科技奖省部级(一等)
+         */
+        public static final String JXJB_5 = "5";
+        /**
+         * 科技奖国家级(三级)
+         */
+        public static final String JXJB_4 = "4";
+        /**
+         * 科技奖国家级(二等)
+         */
+        public static final String JXJB_3 = "3";
+        /**
+         * 科技奖国家级(一等)
+         */
+        public static final String JXJB_2 = "2";
+        /**
+         * 设计咨询国际级
+         */
+        public static final String JXJB_1 = "1";
+    }
+
+    public static class YZLX{
+        /**
+         * 基础资料验证
+         */
+        public static final String JCZL="0";
+        /**
+         * 外业验收验证
+         */
+        public static final String WYYS="1";
+    }
+}
+

+ 81 - 0
qhse-common/src/main/java/com/rongwei/bscommon/sys/utils/QHSEUtils.java

@@ -0,0 +1,81 @@
+package com.rongwei.bscommon.sys.utils;
+
+import com.rongwei.bscommon.sys.service.RedisService;
+import com.rongwei.rwadmincommon.system.domain.SysUserDo;
+import com.rongwei.rwadmincommon.system.vo.SysUserVo;
+import com.rongwei.rwcommon.base.BaseDo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+import org.springframework.web.context.request.RequestContextHolder;
+import org.springframework.web.context.request.ServletRequestAttributes;
+
+import javax.annotation.PostConstruct;
+import javax.servlet.http.HttpServletRequest;
+import java.math.BigDecimal;
+import java.math.RoundingMode;
+import java.util.Date;
+
+/**
+ * JXKHUtils class
+ *
+ * @author XH
+ * @date 2024/12/02
+ */
+@Component
+public class QHSEUtils {
+    private static RedisService redisService;
+    @Autowired
+    private RedisService autoRedisService;
+
+    /**
+     * 获取当前的登陆人信息
+     *
+     * @return
+     */
+    public static SysUserVo getCurrentUser() {
+        // 获取当前登录人信息
+        SysUserVo currUser = null;
+        ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
+        if (attributes != null) {
+            HttpServletRequest request = attributes.getRequest();
+            if (request != null) {
+                String token = request.getHeader("token");
+                if (com.rongwei.rwcommon.utils.StringUtils.isNotEmpty(token)) {
+                    currUser = redisService.getLoginUser(token);
+                }
+            }
+        }
+        return currUser;
+    }
+
+    public static <T extends BaseDo> void initModelGeneralParameters(T t, SysUserDo userVo) {
+        if (userVo == null) {
+            userVo = getCurrentUser();
+        }
+        t.setCreatedate(new Date());
+        t.setModifydate(new Date());
+        if (userVo != null) {
+            t.setCreateuserid(userVo.getId());
+            t.setCreateusername(userVo.getName());
+            t.setModifyuserid(userVo.getId());
+            t.setModifyusername(userVo.getName());
+        }
+        t.setDeleted("0");
+    }
+
+    public static BigDecimal CALCULATE_Y3(BigDecimal x1, BigDecimal y1, BigDecimal x2, BigDecimal y2, BigDecimal x3) {
+        // 检查x1是否等于x2,以避免除以零的错误
+        if (x1.compareTo(x2) == 0) {
+            throw new IllegalArgumentException("x1 和 x2 不能相等,因为这将导致除以零的错误。");
+        }
+        // 使用两点式方程计算y3值
+        return y1.add(y2.subtract(y1).multiply(x3.subtract(x1)).divide(x2.subtract(x1),4, RoundingMode.HALF_UP)).setScale(3, RoundingMode.HALF_UP);
+
+    }
+
+    @PostConstruct
+    public void init() {
+
+        redisService = autoRedisService;
+    }
+}

+ 38 - 0
qhse-entity/pom.xml

@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>QHSE</artifactId>
+        <groupId>com.rongwei</groupId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.rongwei</groupId>
+    <artifactId>qhse-entity</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.rongwei</groupId>
+            <artifactId>rw-common-entity</artifactId>
+            <version>1.1-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>druid</artifactId>
+            <version>1.2.24</version>
+        </dependency>
+        <dependency>
+            <groupId>com.rongwei</groupId>
+            <artifactId>rw-common-utils</artifactId>
+            <version>1.1-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-web</artifactId>
+            <version>5.3.7</version>
+        </dependency>
+    </dependencies>
+</project>

+ 118 - 0
qhse-entity/src/main/java/com/rongwei/bsentity/domain/SysOrganization.java

@@ -0,0 +1,118 @@
+package com.rongwei.bsentity.domain;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.util.Date;
+
+import com.rongwei.rwcommon.base.BaseDo;
+import lombok.Data;
+
+/**
+ * 组织机构表
+ * @TableName SYS_ORGANIZATION
+ */
+@TableName(value ="SYS_ORGANIZATION")
+@Data
+public class SysOrganization extends BaseDo implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId(value = "ID")
+    private String id;
+
+    /**
+     * 父主键ID
+     */
+    @TableField(value = "PID")
+    private String pid;
+
+    /**
+     * 父级全路径
+     */
+    @TableField(value = "FULLPID")
+    private String fullpid;
+
+    /**
+     * 
+     */
+    @TableField(value = "TREECODE")
+    private String treecode;
+
+    /**
+     * 等级
+     */
+    @TableField(value = "LEVEL")
+    private Integer level;
+
+    /**
+     * 是否叶子节点
+     */
+    @TableField(value = "ISLEAF")
+    private String isleaf;
+
+    /**
+     * 代码
+     */
+    @TableField(value = "CODE")
+    private String code;
+
+    /**
+     * 全称
+     */
+    @TableField(value = "FULLNAME")
+    private String fullname;
+
+    /**
+     * 简称
+     */
+    @TableField(value = "SHORTNAME")
+    private String shortname;
+
+    /**
+     * 排序
+     */
+    @TableField(value = "SORT")
+    private Integer sort;
+
+    /**
+     * 组织类型
+     */
+    @TableField(value = "ORGTYPE")
+    private String orgtype;
+
+    /**
+     * 负责人ID
+     */
+    @TableField(value = "CHARGEID")
+    private String chargeid;
+
+    /**
+     * 负责人名称
+     */
+    @TableField(value = "CHARGER")
+    private String charger;
+
+    /**
+     * 是否启用Y/N
+     */
+    @TableField(value = "ENABLED")
+    private String enabled;
+
+    /**
+     * 租户ID
+     */
+    @TableField(value = "TENANTID")
+    private String tenantid;
+
+    /**
+     * 扩展json格式配置
+     */
+    @TableField(value = "ROPTION")
+    private String roption;
+
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+}

+ 100 - 0
qhse-entity/src/main/java/com/rongwei/bsentity/domain/SysRole.java

@@ -0,0 +1,100 @@
+package com.rongwei.bsentity.domain;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.util.Date;
+
+import com.rongwei.rwcommon.base.BaseDo;
+import lombok.Data;
+
+/**
+ * 角色表
+ * @TableName SYS_ROLE
+ */
+@TableName(value ="SYS_ROLE")
+@Data
+public class SysRole extends BaseDo implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId(value = "ID")
+    private String id;
+
+    /**
+     * 父ID
+     */
+    @TableField(value = "PID")
+    private String pid;
+
+    /**
+     * 父级全路径
+     */
+    @TableField(value = "FULLPID")
+    private String fullpid;
+
+    /**
+     * 树表结构编号
+     */
+    @TableField(value = "TREECODE")
+    private String treecode;
+
+    /**
+     * 等级
+     */
+    @TableField(value = "LEVEL")
+    private Integer level;
+
+    /**
+     * 是否叶子节点
+     */
+    @TableField(value = "ISLEAF")
+    private String isleaf;
+
+    /**
+     * 编码
+     */
+    @TableField(value = "CODE")
+    private String code;
+
+    /**
+     * 角色名称
+     */
+    @TableField(value = "NAME")
+    private String name;
+
+    /**
+     * 多语言角色名称
+     */
+    @TableField(value = "ENNAME")
+    private String enname;
+
+    /**
+     * 角色类型
+     */
+    @TableField(value = "ROLETYPE")
+    private String roletype;
+
+    /**
+     * 排序
+     */
+    @TableField(value = "SORT")
+    private Integer sort;
+
+    /**
+     * 租户ID
+     */
+    @TableField(value = "TENANTID")
+    private String tenantid;
+
+    /**
+     * 扩展json格式配置
+     */
+    @TableField(value = "ROPTION")
+    private String roption;
+
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+}

+ 129 - 0
qhse-entity/src/main/java/com/rongwei/bsentity/domain/SysUser.java

@@ -0,0 +1,129 @@
+package com.rongwei.bsentity.domain;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.util.Date;
+
+import com.rongwei.rwcommon.base.BaseDo;
+import lombok.Data;
+
+/**
+ * 用户表
+ * @TableName SYS_USER
+ */
+@TableName(value ="SYS_USER")
+@Data
+public class SysUser extends BaseDo implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId(value = "ID")
+    private String id;
+
+    /**
+     * 账号
+     */
+    @TableField(value = "ACCOUNT")
+    private String account;
+
+    /**
+     * 密码
+     */
+    @TableField(value = "PASSWORD")
+    private String password;
+
+    /**
+     * 姓名
+     */
+    @TableField(value = "NAME")
+    private String name;
+
+    /**
+     * 工号
+     */
+    @TableField(value = "CODE")
+    private String code;
+
+    /**
+     * 头像
+     */
+    @TableField(value = "PORTRAIT")
+    private String portrait;
+
+    /**
+     * 手机号
+     */
+    @TableField(value = "MOBILE")
+    private String mobile;
+
+    /**
+     * 电话
+     */
+    @TableField(value = "PHONE")
+    private String phone;
+
+    /**
+     * 邮箱
+     */
+    @TableField(value = "EMAIL")
+    private String email;
+
+    /**
+     * 性别
+     */
+    @TableField(value = "GENDER")
+    private String gender;
+
+    /**
+     * 直属领导
+     */
+    @TableField(value = "DIRECTLYLEADER")
+    private String directlyleader;
+
+    /**
+     * 用户属性(存sql server对应的4AID)
+     */
+    @TableField(value = "USERATTRIBUTE")
+    private String userattribute;
+
+    /**
+     * 排序
+     */
+    @TableField(value = "SORT")
+    private Integer sort;
+
+    /**
+     * 是否启用Y/N
+     */
+    @TableField(value = "ENABLED")
+    private String enabled;
+
+    /**
+     * 租户ID
+     */
+    @TableField(value = "TENANTID")
+    private String tenantid;
+
+    /**
+     * 企业微信userid
+     */
+    @TableField(value = "QYWXUSERID")
+    private String qywxuserid;
+
+    /**
+     * 扩展json格式配置
+     */
+    @TableField(value = "ROPTION")
+    private String roption;
+
+    /**
+     * 签名
+     */
+    @TableField(value = "SIGNATURE")
+    private String signature;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+}

+ 58 - 0
qhse-entity/src/main/java/com/rongwei/bsentity/domain/SysUserOrg.java

@@ -0,0 +1,58 @@
+package com.rongwei.bsentity.domain;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.util.Date;
+
+import com.rongwei.rwcommon.base.BaseDo;
+import lombok.Data;
+
+/**
+ * 用户部门表
+ * @TableName SYS_USER_ORG
+ */
+@TableName(value ="SYS_USER_ORG")
+@Data
+public class SysUserOrg extends BaseDo implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId(value = "ID")
+    private String id;
+
+    /**
+     * 用户ID
+     */
+    @TableField(value = "USERID")
+    private String userid;
+
+    /**
+     * 组织ID
+     */
+    @TableField(value = "ORGID")
+    private String orgid;
+
+    /**
+     * 是否主部门Y/N
+     */
+    @TableField(value = "ISMAIN")
+    private String ismain;
+
+    /**
+     * 租户ID
+     */
+    @TableField(value = "TENANTID")
+    private String tenantid;
+
+    /**
+     * 扩展json格式配置
+     */
+    @TableField(value = "ROPTION")
+    private String roption;
+
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+}

+ 51 - 0
qhse-entity/src/main/java/com/rongwei/bsentity/domain/SysUserRole.java

@@ -0,0 +1,51 @@
+package com.rongwei.bsentity.domain;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.util.Date;
+
+import com.rongwei.rwcommon.base.BaseDo;
+import lombok.Data;
+
+/**
+ * 用户角色表
+ * @TableName SYS_USER_ROLE
+ */
+@TableName(value ="SYS_USER_ROLE")
+@Data
+public class SysUserRole extends BaseDo implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId(value = "ID")
+    private String id;
+
+    /**
+     * 用户ID
+     */
+    @TableField(value = "USERID")
+    private String userid;
+
+    /**
+     * 角色ID
+     */
+    @TableField(value = "ROLEID")
+    private String roleid;
+
+    /**
+     * 租户ID
+     */
+    @TableField(value = "TENANTID")
+    private String tenantid;
+
+    /**
+     * 扩展json格式配置
+     */
+    @TableField(value = "ROPTION")
+    private String roption;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+}

+ 975 - 0
qhse-entity/src/main/java/com/rongwei/bsentity/domain/ZProject.java

@@ -0,0 +1,975 @@
+package com.rongwei.bsentity.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 java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * 财务云——生产项目
+ * @TableName Z_PROJECT
+ */
+@TableName(value ="Z_PROJECT")
+@Data
+public class ZProject implements Serializable {
+
+    @TableId(value = "ID")
+    private Long id;
+    /**
+     * 经营项目id
+     */
+    @TableField(value = "MMPROJECTID")
+    private Long mmprojectid;
+    /**
+     * 删除标识
+     */
+    private String deleted;
+    /**
+     * 项目主数据编码
+     */
+    @TableField(value = "PROJECTMASTERCODE")
+    private String projectmastercode;
+
+    /**
+     * 中标交底项目编号
+     */
+    @TableField(value = "ZAWARDP")
+    private String zawardp;
+
+    /**
+     * 项目名称
+     */
+    @TableField(value = "PROJECTCENTERNAME")
+    private String projectcentername;
+
+    /**
+     * 项目简称
+     */
+    @TableField(value = "PROJECTABBREVIATION")
+    private String projectabbreviation;
+
+    /**
+     * 项目外文名称
+     */
+    @TableField(value = "PROJECTFOREIGNNAME")
+    private String projectforeignname;
+
+    /**
+     * 曾用名
+     */
+    @TableField(value = "BEFORENAME")
+    private String beforename;
+
+    /**
+     * 中交项目业务分类值域
+     */
+    @TableField(value = "BUSINESSTYPEFIELD")
+    private String businesstypefield;
+
+    /**
+     * 中标主体单位
+     */
+    @TableField(value = "ZBZTDW")
+    private String zbztdw;
+
+    /**
+     * 中标主体单位名称
+     */
+    @TableField(value = "ZBZTDWNAME")
+    private String zbztdwname;
+
+    /**
+     * 项目机构
+     */
+    @TableField(value = "PROJECTORG")
+    private String projectorg;
+
+    /**
+     * 项目类别:选择工程承包,设计,其他类
+     */
+    @TableField(value = "PROJECTCATEGORY")
+    private String projectcategory;
+
+    /**
+     * 项目类型一级code
+     */
+    @TableField(value = "PROJECTTYPE1")
+    private String projecttype1;
+
+    /**
+     * 项目类型二级code
+     */
+    @TableField(value = "PROJECTTYPE2")
+    private String projecttype2;
+
+    /**
+     * 项目类型三级code
+     */
+    @TableField(value = "PROJECTTYPE3")
+    private String projecttype3;
+
+    /**
+     * 中交项目业务分类值域一级编码
+     */
+    @TableField(value = "ZCPBCCODE1")
+    private String zcpbccode1;
+
+    /**
+     * 中交项目业务分类值域二级编码
+     */
+    @TableField(value = "ZCPBCCODE2")
+    private String zcpbccode2;
+
+    /**
+     * 上级项目主数据编码
+     */
+    @TableField(value = "SUP_PROJECTCODE")
+    private String supProjectcode;
+
+    /**
+     * 项目年份
+     */
+    @TableField(value = "PROJECTYEAR")
+    private String projectyear;
+
+    /**
+     * 计划开始日期
+     */
+    @TableField(value = "STARTTIME")
+    private Date starttime;
+
+    /**
+     * 计划结束日期
+     */
+    @TableField(value = "ENDTIME")
+    private Date endtime;
+
+    /**
+     * 项目停用状态
+     */
+    @TableField(value = "ZSTATE")
+    private String zstate;
+
+    /**
+     * 停用原因
+     */
+    @TableField(value = "TYYY")
+    private String tyyy;
+
+    /**
+     * 区域总部
+     */
+    @TableField(value = "RHQ")
+    private String rhq;
+
+    /**
+     * 是否集团内投资项目
+     */
+    @TableField(value = "INVSET")
+    private String invset;
+
+    /**
+     * 是否“一带一路”
+     */
+    @TableField(value = "BR")
+    private String br;
+
+    /**
+     * 项目状态
+     */
+    @TableField(value = "PROJECTCENTERSTATUS")
+    private String projectcenterstatus;
+
+    /**
+     * 计税方式
+     */
+    @TableField(value = "TAXMETHOD")
+    private String taxmethod;
+
+    /**
+     * 平台关联状态(10:待同步,20:已同步,30:已同步未更新)
+     */
+    @TableField(value = "DCSYNCSTATUS")
+    private String dcsyncstatus;
+
+    /**
+     * 中交关联状态(10:待同步,20:已同步,30:已同步未更新)
+     */
+    @TableField(value = "JTSYNCSTATUS")
+    private String jtsyncstatus;
+
+    /**
+     * 日志信息
+     */
+    @TableField(value = "LOGMESSAGE")
+    private String logmessage;
+
+    /**
+     * 关联投资项目编号
+     */
+    @TableField(value = "RELATEDINVESTMENTPROJECTNO")
+    private String relatedinvestmentprojectno;
+
+    /**
+     * 国家:大洲代码
+     */
+    @TableField(value = "CONTRY1")
+    private String contry1;
+
+    /**
+     * 国家:国家地区代码
+     */
+    @TableField(value = "CONTRY2")
+    private String contry2;
+
+    /**
+     * 项目所在地:省
+     */
+    @TableField(value = "LOCATION1")
+    private String location1;
+
+    /**
+     * 项目所在地:市
+     */
+    @TableField(value = "LOCATION2")
+    private String location2;
+
+    /**
+     * 项目所在地:区
+     */
+    @TableField(value = "LOCATION3")
+    private String location3;
+
+    /**
+     * 发送记录ID
+     */
+    @TableField(value = "ZZSERIAL")
+    private String zzserial;
+
+    /**
+     * 项目组织模式一级
+     */
+    @TableField(value = "XMZZMS")
+    private String xmzzms;
+
+    /**
+     * 项目组织模式二级
+     */
+    @TableField(value = "XMZZMSEJ")
+    private String xmzzmsej;
+
+    /**
+     * 所属事业部
+     */
+    @TableField(value = "SSSYB")
+    private String sssyb;
+
+    /**
+     * 项目管理方式
+     */
+    @TableField(value = "ZMANAGE_MODE")
+    private String zmanageMode;
+
+    /**
+     * 是否联合体项目
+     */
+    @TableField(value = "ZWINNINGC")
+    private String zwinningc;
+
+    /**
+     * 投资主体
+     */
+    @TableField(value = "ZINVERSTOR")
+    private String zinverstor;
+
+    /**
+     * 项目批复/决议文号
+     */
+    @TableField(value = "ZAPPROVAL")
+    private String zapproval;
+
+    /**
+     * 项目批复/决议时间
+     */
+    @TableField(value = "ZAPVLDATE")
+    private Date zapvldate;
+
+    /**
+     * 收入来源
+     */
+    @TableField(value = "ZSI")
+    private String zsi;
+
+    /**
+     * 往来单位类别
+     */
+    @TableField(value = "WLDWLB")
+    private String wldwlb;
+
+    /**
+     * 项目状态
+     */
+    @TableField(value = "PROJSTATUS")
+    private String projstatus;
+
+    /**
+     * 项目资金来源
+     */
+    @TableField(value = "XMZJLY")
+    private String xmzjly;
+
+    /**
+     * 项目实际开工日期
+     */
+    @TableField(value = "ACTUALSTARTDATE")
+    private Date actualstartdate;
+
+    /**
+     * 业主单位名称
+     */
+    @TableField(value = "YZDWMC")
+    private String yzdwmc;
+
+    /**
+     * 是否房产并表项目
+     */
+    @TableField(value = "SFBB")
+    private String sfbb;
+
+    /**
+     * 项目业务模式
+     */
+    @TableField(value = "XMYWMS")
+    private String xmywms;
+
+    /**
+     * 国民经济行业分类
+     */
+    @TableField(value = "NEIC")
+    private String neic;
+
+    /**
+     * 项目阶段
+     */
+    @TableField(value = "PROJSTAGE")
+    private String projstage;
+
+    /**
+     * 项目所在地纬度
+     */
+    @TableField(value = "LATITUDE")
+    private String latitude;
+
+    /**
+     * 项目所在地经度
+     */
+    @TableField(value = "LONGITUDE")
+    private String longitude;
+
+    /**
+     * 是否关联投资项目
+     */
+    @TableField(value = "SFGLTZXM")
+    private String sfgltzxm;
+
+    /**
+     * 关联投资批复项目名称
+     */
+    @TableField(value = "GLTZXMMC")
+    private String gltzxmmc;
+
+    /**
+     * 是否CCCC直属项目
+     */
+    @TableField(value = "SFCCCC")
+    private String sfcccc;
+
+    /**
+     * 是否本年中交集团重点监控项目
+     */
+    @TableField(value = "SFZDJK")
+    private String sfzdjk;
+
+    /**
+     * 项目概况及规模
+     */
+    @TableField(value = "XMGKJGM")
+    private String xmgkjgm;
+
+    /**
+     * 主体工程结构及特点
+     */
+    @TableField(value = "ZTGCJGJTD")
+    private String ztgcjgjtd;
+
+    /**
+     * 监理单位名称
+     */
+    @TableField(value = "JLDWMC")
+    private String jldwmc;
+
+    /**
+     * 项目计划交工日期
+     */
+    @TableField(value = "PDDATE")
+    private Date pddate;
+
+    /**
+     * 项目计划竣工日期
+     */
+    @TableField(value = "PFDATE")
+    private Date pfdate;
+
+    /**
+     * 项目实际完工日期
+     */
+    @TableField(value = "ACTUALENDDATE")
+    private Date actualenddate;
+
+    /**
+     * 项目实际竣工日期
+     */
+    @TableField(value = "ACTUALCOMPDATE")
+    private Date actualcompdate;
+
+    /**
+     * 主要原因
+     */
+    @TableField(value = "MAJOR_REASON")
+    private String majorReason;
+
+    /**
+     * 参建外部单位
+     */
+    @TableField(value = "CJWBDW")
+    private String cjwbdw;
+
+    /**
+     * 参建外部单位类型
+     */
+    @TableField(value = "CJWBDWLX")
+    private String cjwbdwlx;
+
+    /**
+     * 贷款配套资金比例
+     */
+    @TableField(value = "DKPTZJBL")
+    private String dkptzjbl;
+
+    /**
+     * 设计施工技术标准
+     */
+    @TableField(value = "SJSGJSBZ")
+    private String sjsgjsbz;
+
+    /**
+     * 是否是见签项目
+     */
+    @TableField(value = "SFJQ")
+    private String sfjq;
+
+    /**
+     * 卫星电话配备
+     */
+    @TableField(value = "WXDHPB")
+    private String wxdhpb;
+
+    /**
+     * 周边应急资源分布
+     */
+    @TableField(value = "ZBYJZYFB")
+    private String zbyjzyfb;
+
+    /**
+     * 医务室建设情况
+     */
+    @TableField(value = "YWSJSQK")
+    private String ywsjsqk;
+
+    /**
+     * 涉及危大或超危大工程数量
+     */
+    @TableField(value = "WDGCSL")
+    private BigDecimal wdgcsl;
+
+    /**
+     * 涉及危大或超危大工程类型
+     */
+    @TableField(value = "WDGCLX")
+    private String wdgclx;
+
+    /**
+     * 参建二级单位
+     */
+    @TableField(value = "SECONDARYUNIT")
+    private String secondaryunit;
+
+    /**
+     * 参建三级单位
+     */
+    @TableField(value = "THIRDLEVELUNIT")
+    private String thirdlevelunit;
+
+    /**
+     * 项目实际交工日期
+     */
+    @TableField(value = "ACTUALDLVDATE")
+    private Date actualdlvdate;
+
+    /**
+     * 是否是一带一路沿线项目
+     */
+    @TableField(value = "SFYDYL")
+    private String sfydyl;
+
+    /**
+     * 中标项目名称
+     */
+    @TableField(value = "WIN_PROJNAME")
+    private String winProjname;
+
+    /**
+     * 基础信息同步状态
+     */
+    @TableField(value = "JCSYNCSTATUS")
+    private String jcsyncstatus;
+
+    /**
+     * 基础信息同步日志
+     */
+    @TableField(value = "JCSYNCLOG")
+    private String jcsynclog;
+
+    /**
+     * 管理信息同步状态
+     */
+    @TableField(value = "MANAGESYNCSTATUS")
+    private String managesyncstatus;
+
+    /**
+     * 管理信息同步日志
+     */
+    @TableField(value = "MANAGESYNCLOG")
+    private String managesynclog;
+
+    /**
+     * 合同约定应收款总额
+     */
+    @TableField(value = "HTYSK")
+    private BigDecimal htysk;
+
+    /**
+     * 竣工结算日期
+     */
+    @TableField(value = "JGJSRQ")
+    private Date jgjsrq;
+
+    /**
+     * 竣工结算金额_含税
+     */
+    @TableField(value = "JGJSJE_HS")
+    private BigDecimal jgjsjeHs;
+
+    /**
+     * 项目总人数
+     */
+    @TableField(value = "XMZRS")
+    private Integer xmzrs;
+
+    /**
+     * 中方人员数量
+     */
+    @TableField(value = "ZFRYSL")
+    private Integer zfrysl;
+
+    /**
+     * 外籍人员数量
+     */
+    @TableField(value = "WJRYSL")
+    private Integer wjrysl;
+
+    /**
+     * 项目安全应急联系人
+     */
+    @TableField(value = "XMAQYJLXR")
+    private String xmaqyjlxr;
+
+    /**
+     * 接口项目主数据编码(废弃)
+     */
+    @TableField(value = "ZPROJECT")
+    private String zproject;
+
+    /**
+     * 接口项目名称(废弃)
+     */
+    @TableField(value = "ZPROJNAME")
+    private String zprojname;
+
+    /**
+     * 项目子类
+     */
+    @TableField(value = "PROJECT_SUB_TYPE")
+    private String projectSubType;
+
+    /**
+     * 项目性质代码
+     */
+    @TableField(value = "PROJECT_NATURE")
+    private String projectNature;
+
+    /**
+     * 项目资金来源代码
+     */
+    @TableField(value = "PROJECT_FUNDING_SOURCE")
+    private String projectFundingSource;
+
+    /**
+     * 实际开工日期
+     */
+    @TableField(value = "ACTUAL_COMMENCEMENT_DATE")
+    private Date actualCommencementDate;
+
+    /**
+     * 业主单位名称
+     */
+    @TableField(value = "OWNER_UNIT_NAME")
+    private String ownerUnitName;
+
+    /**
+     * 实际交工日期
+     */
+    @TableField(value = "ACTUAL_DELIVERY_DATE")
+    private Date actualDeliveryDate;
+
+    /**
+     * 关联投资批复项目名称
+     */
+    @TableField(value = "GLTZPFXMMC")
+    private String gltzpfxmmc;
+
+    /**
+     * 质保金到期日
+     */
+    @TableField(value = "WARRANTY_DEPOSIT_EXPIRY_DATE")
+    private Date warrantyDepositExpiryDate;
+
+    /**
+     * 验收日期
+     */
+    @TableField(value = "ACCEPTANCE_DATE")
+    private Date acceptanceDate;
+
+    /**
+     * 实际开工日期新
+     */
+    @TableField(value = "STARTDATE")
+    private Date startdate;
+
+    /**
+     * 国民经济行业分类
+     */
+    @TableField(value = "GMJJHYFL")
+    private String gmjjhyfl;
+
+    /**
+     * SPV公司
+     */
+    @TableField(value = "ZSPV")
+    private String zspv;
+
+    /**
+     * 关联的实体项目编码
+     */
+    @TableField(value = "ZPELPROJ")
+    private String zpelproj;
+
+    /**
+     * 是否存在现汇类SPV公司
+     */
+    @TableField(value = "ZIF_SPV")
+    private String zifSpv;
+
+    /**
+     * 施工单位
+     */
+    @TableField(value = "ZSGDW")
+    private String zsgdw;
+
+    /**
+     * 项目主数据ID
+     */
+    @TableField(value = "CWYPJID")
+    private String cwypjid;
+
+    /**
+     * 项目获取方式
+     */
+    @TableField(value = "ACQUIRE_TYPE")
+    private String acquireType;
+
+    /**
+     * 签约品牌
+     */
+    @TableField(value = "CONTRACTED_BRAND")
+    private String contractedBrand;
+
+    /**
+     * 关联投资项目主数据编码
+     */
+    @TableField(value = "INVEST_ZPROJECT")
+    private String investZproject;
+
+    /**
+     * 项目资金来源
+     */
+    @TableField(value = "PROJ_FUND_SOURCE")
+    private String projFundSource;
+
+    /**
+     * 资质单位4A码
+     */
+    @TableField(value = "ZORG_QUAL")
+    private String zorgQual;
+
+    /**
+     * 是否关联投资项目
+     */
+    @TableField(value = "IS_FROM_INVEST")
+    private String isFromInvest;
+
+    /**
+     * 项目来源
+     */
+    @TableField(value = "PROJ_SOURCE")
+    private String projSource;
+
+    /**
+     * 境内外标识
+     */
+    @TableField(value = "ISOVERSEAS")
+    private String isoverseas;
+
+    /**
+     * 是否基于建设项目
+     */
+    @TableField(value = "IS_CAPITAL_PROJECT")
+    private String isCapitalProject;
+
+    /**
+     * 项目等级
+     */
+    @TableField(value = "PROJ_GRADE")
+    private String projGrade;
+
+    /**
+     * 币种
+     */
+    @TableField(value = "ZZCURRENCY")
+    private String zzcurrency;
+
+    /**
+     * 投资来源
+     */
+    @TableField(value = "INVEST_SOURCE")
+    private String investSource;
+
+    /**
+     * 计划开发周期(月)
+     */
+    @TableField(value = "PLAN_DEVELOP_CYCLE")
+    private String planDevelopCycle;
+
+    /**
+     * 资审日期
+     */
+    @TableField(value = "APPRAISAL_DATE")
+    private Date appraisalDate;
+
+    /**
+     * 资审结果
+     */
+    @TableField(value = "APPRAISAL_RESULT")
+    private String appraisalResult;
+
+    /**
+     * 项目性质
+     */
+    @TableField(value = "PROJ_NATURE")
+    private String projNature;
+
+    /**
+     * 项目合作方式
+     */
+    @TableField(value = "PROJ_COOP_MODE")
+    private String projCoopMode;
+
+    /**
+     * 设计单位名称
+     */
+    @TableField(value = "DESIGN_CO_NAME")
+    private String designCoName;
+
+    /**
+     * 预计总投资额
+     */
+    @TableField(value = "EXPE_TOT_INVE_AMT")
+    private BigDecimal expeTotInveAmt;
+
+    /**
+     * 招商方/业主单位ID
+     */
+    @TableField(value = "BUSIUNITID")
+    private String busiunitid;
+
+    /**
+     * 招商方/业主单位
+     */
+    @TableField(value = "BUSIUNIT")
+    private String busiunit;
+
+    /**
+     * 中标金额/土地成交金额
+     */
+    @TableField(value = "WIN_BID_AMT")
+    private BigDecimal winBidAmt;
+
+    /**
+     * 设计合同额
+     */
+    @TableField(value = "DESG_CON_AMT")
+    private BigDecimal desgConAmt;
+
+    /**
+     * 是否收到委托书(合同)
+     */
+    @TableField(value = "ISWBNOTICE")
+    private String iswbnotice;
+
+    /**
+     * 委托接收日期
+     */
+    @TableField(value = "BIDACCEPTANCEDATE")
+    private Date bidacceptancedate;
+
+    /**
+     * 录入人所在公司
+     */
+    @TableField(value = "ORG_CODE")
+    private String orgCode;
+
+    /**
+     * 录入人所在部门
+     */
+    @TableField(value = "USER_DEPT_ID")
+    private String userDeptId;
+
+    /**
+     * 中交内的行政单位ID
+     */
+    @TableField(value = "INNER_ORGID")
+    private String innerOrgid;
+
+    /**
+     * 中交内的行政单位名称
+     */
+    @TableField(value = "INNER_ORGNAME")
+    private String innerOrgname;
+
+    /**
+     * 项目推进目标
+     */
+    @TableField(value = "TAKE_TARGET")
+    private String takeTarget;
+
+    /**
+     * 设计单位ID
+     */
+    @TableField(value = "DESIGN_CO_ID")
+    private String designCoId;
+
+    /**
+     * 单位名称ID
+     */
+    @TableField(value = "BID_UNIT_ID")
+    private String bidUnitId;
+
+    /**
+     * 单位名称
+     */
+    @TableField(value = "BID_UNIT_NAME")
+    private String bidUnitName;
+
+    /**
+     * 委托(合同)日期
+     */
+    @TableField(value = "BIDNOTICEDATE")
+    private Date bidnoticedate;
+
+    /**
+     * 录入人
+     */
+    @TableField(value = "USER_CODE")
+    private String userCode;
+
+    /**
+     * 中标类型
+     */
+    @TableField(value = "BID_TYPE")
+    private String bidType;
+
+    /**
+     * 投标标段
+     */
+    @TableField(value = "BIDDING")
+    private String bidding;
+
+    /**
+     * 投标负责人ID
+     */
+    @TableField(value = "BID_PERSON_CHARGE_ID")
+    private String bidPersonChargeId;
+
+    /**
+     * 投标负责人名称
+     */
+    @TableField(value = "BID_PERSON_CHARGE")
+    private String bidPersonCharge;
+
+    /**
+     * 未中标分析
+     */
+    @TableField(value = "WINNINGBIDANALYSIS")
+    private String winningbidanalysis;
+
+    /**
+     * 中标项目名称
+     */
+    @TableField(value = "ISWINBID")
+    private String iswinbid;
+
+    /**
+     * 中标公示开始日期
+     */
+    @TableField(value = "BIDANNOUNCEDATES")
+    private Date bidannouncedates;
+
+    /**
+     * 是否政府框架项目
+     */
+    @TableField(value = "GOVFRAMEWORK")
+    private String govframework;
+
+    /**
+     * 中标公示截止日期
+     */
+    @TableField(value = "BIDANNOUNCEDATEE")
+    private Date bidannouncedatee;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+}

+ 90 - 0
qhse-server/pom.xml

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>QHSE</artifactId>
+        <groupId>com.rongwei</groupId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>qhse-server</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.rongwei</groupId>
+            <artifactId>qhse-common</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-actuator</artifactId>
+        </dependency>
+
+
+        <!-- Spring Cloud Begin -->
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.alibaba.nacos</groupId>
+            <artifactId>nacos-client</artifactId>
+            <version>1.4.2</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-openfeign</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-freemarker</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-jdbc</artifactId>
+        </dependency>
+
+        <!-- druid -->
+<!--        <dependency>-->
+<!--            <groupId>com.github.drtrang</groupId>-->
+<!--            <artifactId>druid-spring-boot2-starter</artifactId>-->
+<!--            <version>1.1.10</version>-->
+<!--        </dependency>-->
+    </dependencies>
+
+    <build>
+<!--        <resources>-->
+<!--            <resource>-->
+<!--                <directory>${basedir}/src/main/java</directory>-->
+<!--                <includes>-->
+<!--                    <include>**/*.xml</include>-->
+<!--                </includes>-->
+<!--            </resource>-->
+<!--        </resources>-->
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+</project>

+ 24 - 0
qhse-server/src/main/java/com/rongwei/BusinessServerApplication.java

@@ -0,0 +1,24 @@
+package com.rongwei;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
+import org.springframework.cloud.openfeign.EnableFeignClients;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+@EnableAsync
+@SpringBootApplication
+@EnableDiscoveryClient
+@EnableFeignClients
+@MapperScan("com.rongwei.bscommon.sys.dao")
+@EnableScheduling
+public class BusinessServerApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(BusinessServerApplication.class, args);
+    }
+
+}

+ 14 - 0
qhse-server/src/main/resources/bootstrap-dev.yml

@@ -0,0 +1,14 @@
+spring:
+  cloud:
+    nacos:
+      config:
+        file-extension: yaml
+        server-addr: 127.0.0.1:8848
+        namespace: cd047569-9470-4dfb-8663-b113d01cd30f
+        ext-config[0]:
+          data-id: common-config.yaml
+      discovery:
+        server-addr: 127.0.0.1:8848
+        namespace: cd047569-9470-4dfb-8663-b113d01cd30f
+
+  

+ 39 - 0
qhse-server/src/main/resources/bootstrap.yml

@@ -0,0 +1,39 @@
+spring:
+  profiles:
+    active: dev
+  application:
+    name: rw-jxkh-server
+  jta:
+    atomikos:
+      properties:
+        log-base-name: jsglkh
+  servlet:
+    multipart:
+      max-file-size: 100MB
+      max-request-size: 1000MB
+server:
+  port: 9689
+management:
+  endpoints:
+    web:
+      exposure:
+        include: "*"
+feign:
+  client:
+    config:
+      default:
+        connectTimeout: 5000
+        readTimeout: 5000
+  sentinel:
+    enabled: true
+mybatis-plus:
+  configuration:
+    log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
+    map-underscore-to-camel-case: false
+  mapperLocations: "classpath:mybatis/**/**.xml"
+  typeAliasesPackage: com.rongwei.bsentity.domain
+  global-config:
+    db-config:
+      logic-delete-value: 1
+      logic-not-delete-value: 0
+      column-like: true

+ 39 - 0
qhse-server/src/main/resources/logback-spring.xml

@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration  scan="true" scanPeriod="60 seconds" debug="false">
+    <contextName>logback</contextName>
+    <!--输出到控制台-->
+    <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
+        <encoder>
+            <pattern>%d{HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n</pattern>
+        </encoder>
+    </appender>
+    <appender name="logFile"  class="ch.qos.logback.core.rolling.RollingFileAppender">
+        <Prudent>true</Prudent>
+        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+            <FileNamePattern>
+                jsglkh-log/%d{yyyy-MM-dd}/%d{yyyy-MM-dd}.%i.log
+            </FileNamePattern>
+            <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
+                <maxFileSize>5MB</maxFileSize>
+            </timeBasedFileNamingAndTriggeringPolicy>
+        </rollingPolicy>
+        <!-- 追加方式记录日志 -->
+        <append>true</append>
+        <layout class="ch.qos.logback.classic.PatternLayout">
+            <Pattern>
+                %d{yyyy-MM-dd HH:mm:ss} [%X{traceId}] [%thread] %-5level -%msg%n
+            </Pattern>
+        </layout>
+    </appender>
+
+    <logger name="com.bootdo" additivity="false">
+        <appender-ref ref="console"/>
+        <appender-ref ref="logFile" />
+    </logger>
+
+    <root level="error">
+        <appender-ref ref="console"/>
+        <appender-ref ref="logFile" />
+    </root>
+
+</configuration>