| | |
| | | (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') |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | private String bak; |
| | | |
| | | private String createName; |
| | | |
| | | private String updateName; |
| | | |
| | | public int getId() { |
| | | return id; |
| | | } |
| | |
| | | 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; |
| | | } |
| | | } |
| | |
| | | |
| | | private String bak; |
| | | |
| | | private String createName; |
| | | |
| | | private String updateName; |
| | | |
| | | public int getId() { |
| | | return id; |
| | | } |
| | |
| | | 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; |
| | | } |
| | | } |
| | |
| | | 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; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | public List<KeyValueEntity> selectDirTypes(String name); |
| | | |
| | | /** |
| | | * 根据表名查询附件 |
| | | * |
| | | * @param tab 表名 |
| | | * @param gids Gid字符串 |
| | | * @return 附件 |
| | | */ |
| | | public List<AttachEntity> selectAnnexByTab(String tab, String gids); |
| | | } |
| | |
| | | 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; |
| | |
| | | |
| | | return baseQueryMapper.selectDirTypes(name); |
| | | } |
| | | |
| | | @Override |
| | | public List<AttachEntity> selectAnnexByTab(String tab, String gids) { |
| | | return baseQueryMapper.selectAnnexByTab(tab, gids); |
| | | } |
| | | } |
| | |
| | | name: prod |
| | | # JDBC 基本配置 ¤tSchema=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 |
| | |
| | | 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> |
| | |
| | | </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} |
| | |
| | | </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"> |
| | |
| | | </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} |
| | |
| | | </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"> |
| | |
| | | </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"> |