管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-20 320d6edb14c475850ab6e2343bc51fa0a41a8f3c
1
已修改9个文件
102 ■■■■ 文件已修改
data/db_cx.sql 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/entity/data/StyleEntity.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/entity/sys/AuthEntity.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/mapper/all/BaseQueryMapper.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/all/BaseQueryService.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/all/BaseQueryMapper.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/data/StyleMapper.xml 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/sys/AuthMapper.xml 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/db_cx.sql
@@ -43,6 +43,11 @@
(select coalesce(level, 0) + 1 from lf.sys_layer where cn_name = '自动发布模型' limit 1),
(select coalesce(max(order_num), 0) from lf.sys_layer where pid = (select id from lf.sys_layer where cn_name = '自动发布模型' limit 1)), 0, 1, '自动发布模型');
select * from bs.s_explorationpoint
select * from lf.sys_attach where tab = 'bs.s_explorationpoint' and tab_guid in (select eventid from bs.s_explorationpoint where exppointid = '001')
src/main/java/com/lf/server/entity/data/StyleEntity.java
@@ -52,6 +52,10 @@
    private String bak;
    private String createName;
    private String updateName;
    public int getId() {
        return id;
    }
@@ -211,4 +215,20 @@
    public void setVname(String vname) {
        this.vname = vname;
    }
    public String getCreateName() {
        return createName;
    }
    public void setCreateName(String createName) {
        this.createName = createName;
    }
    public String getUpdateName() {
        return updateName;
    }
    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }
}
src/main/java/com/lf/server/entity/sys/AuthEntity.java
@@ -27,6 +27,10 @@
    private String bak;
    private String createName;
    private String updateName;
    public int getId() {
        return id;
    }
@@ -90,4 +94,20 @@
    public void setBak(String bak) {
        this.bak = bak;
    }
    public String getCreateName() {
        return createName;
    }
    public void setCreateName(String createName) {
        this.createName = createName;
    }
    public String getUpdateName() {
        return updateName;
    }
    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }
}
src/main/java/com/lf/server/mapper/all/BaseQueryMapper.java
@@ -5,6 +5,7 @@
import com.lf.server.entity.ctrl.TabEntity;
import com.lf.server.entity.data.DictEntity;
import com.lf.server.entity.data.DomainEntity;
import com.lf.server.entity.sys.AttachEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -98,4 +99,13 @@
     * @return
     */
    public List<KeyValueEntity> selectDirTypes(String name);
    /**
     * 根据表名查询附件
     *
     * @param tab  表名
     * @param gids Gid字符串
     * @return 附件
     */
    public List<AttachEntity> selectAnnexByTab(String tab, String gids);
}
src/main/java/com/lf/server/service/all/BaseQueryService.java
@@ -8,6 +8,7 @@
import com.lf.server.entity.ctrl.TabEntity;
import com.lf.server.entity.data.DictEntity;
import com.lf.server.entity.data.DomainEntity;
import com.lf.server.entity.sys.AttachEntity;
import com.lf.server.helper.AesHelper;
import com.lf.server.helper.ClassHelper;
import com.lf.server.helper.StringHelper;
@@ -280,4 +281,9 @@
        return baseQueryMapper.selectDirTypes(name);
    }
    @Override
    public List<AttachEntity> selectAnnexByTab(String tab, String gids) {
        return baseQueryMapper.selectAnnexByTab(tab, gids);
    }
}
src/main/resources/application.yml
@@ -42,11 +42,11 @@
    name: prod
    # JDBC 基本配置 &currentSchema=public
    #url: jdbc:postgresql://103.85.165.99:5433/langfang?useAffectedRows=true
    #url: jdbc:postgresql://192.168.20.205:5433/langfang?useAffectedRows=true
    url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true
    url: jdbc:postgresql://192.168.20.205:5433/langfang?useAffectedRows=true
    #url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true
    username : postgres
    #password: Postgres!_14_Lf
    password: postgres
    password: Postgres!_14_Lf
    #password: postgres
    driver-class-name: org.postgresql.Driver
    paltform: POSTGRESQL
    type: com.alibaba.druid.pool.DruidDataSource
src/main/resources/mapper/all/BaseQueryMapper.xml
@@ -79,4 +79,15 @@
        group by name
        order by key
    </select>
    <select id="selectAnnexByTab" resultType="com.lf.server.entity.sys.AttachEntity">
        select a.* from lf.sys_attach a
        <where>
            tab = #{tab}
            <if test="gids != null">
                and tab_guid in (select eventid from ${tab} where gid in (${gids}))
            </if>
        </where>
        order by a.id
    </select>
</mapper>
src/main/resources/mapper/data/StyleMapper.xml
@@ -11,7 +11,8 @@
    </select>
    <select id="selectByPage" resultType="com.lf.server.entity.data.StyleEntity">
        select a.*,fn_rec_query(a.depid,'dep') depName,fn_rec_query(a.dirid,'dir') dirName from lf.sys_style a
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName, fn_rec_query(a.depid,'dep') depName, fn_rec_query(a.dirid,'dir') dirName
        from lf.sys_style a
        <where>
            <if test="name != null">
                a.name like #{name}
@@ -22,11 +23,13 @@
    </select>
    <select id="selectStyleAll" resultType="com.lf.server.entity.data.StyleEntity">
        select a.*,fn_rec_query(a.depid,'dep') depName,fn_rec_query(a.dirid,'dir') dirName from lf.sys_style a order by a.id desc
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName, fn_rec_query(a.depid,'dep') depName, fn_rec_query(a.dirid,'dir') dirName
        from lf.sys_style a order by a.id desc
    </select>
    <select id="selectStyle" resultType="com.lf.server.entity.data.StyleEntity">
        select a.*,fn_rec_query(a.depid,'dep') depName,fn_rec_query(a.dirid,'dir') dirName from lf.sys_style a where a.id = #{id}
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName, fn_rec_query(a.depid,'dep') depName, fn_rec_query(a.dirid,'dir') dirName
        from lf.sys_style a where a.id = #{id}
    </select>
    <insert id="insertStyle" parameterType="com.lf.server.entity.data.StyleEntity">
src/main/resources/mapper/sys/AuthMapper.xml
@@ -11,7 +11,7 @@
    </select>
    <select id="selectByPage" resultType="com.lf.server.entity.sys.AuthEntity">
        select * from lf.sys_auth
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName from lf.sys_auth a
        <where>
            <if test="name != null">
                name = #{name}
@@ -33,7 +33,8 @@
    </select>
    <select id="selectByPageForMenu" resultType="com.lf.server.entity.sys.AuthEntity">
        select a.* from lf.sys_auth a where not exists (select b.id from lf.sys_menu_auth b
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName
        from lf.sys_auth a where not exists (select b.id from lf.sys_menu_auth b
        <where>
            b.authid = a.id
            <if test="menuid != null">
@@ -46,11 +47,15 @@
    </select>
    <select id="selectAuthAll" resultType="com.lf.server.entity.sys.AuthEntity">
        select * from lf.sys_auth order by id
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName
        from lf.sys_auth a
        order by id
    </select>
    <select id="selectAuth" resultType="com.lf.server.entity.sys.AuthEntity">
        select * from lf.sys_auth where id = #{id}
        select a.*, fn_uname(create_user) createName, fn_uname(update_user) updateName
        from lf.sys_auth a
        where id = #{id}
    </select>
    <insert id="insertAuth" parameterType="com.lf.server.entity.sys.AuthEntity">