| | |
| | | ----------------------------------------------------------------------------------------------------- |
| | | select a.*,fn_uname(a.create_user) createUserName,fn_uname(a.update_user) updateUserName from lf.sys_blacklist a order by a.id; |
| | | select * from lf.sys_user a where uname like '%' and a.depid=ANY(fn_rec_array(1,'dep')); |
| | | |
| | | select * from lf.sys_user a left join lf.sys_role_user b on a.id=b.userid |
| | | where exist |
| | | |
| | | select * from lf.sys_user a where not exists (select id from lf.sys_role_user b where b.userid = a.id and b.roleid = 1) |
| | | select a.* from lf.sys_user a where not exists (select b.id from lf.sys_role_user b where b.userid = a.id and b.roleid = 1) |
| | | and uname like '%室%' and a.depid = ANY(fn_rec_array(1, 'dep')) |
| | | order by a.id limit 10 offset 0; |
| | | |
| | | select a.*,fn_uname(a.userid) uname from lf.sys_role_user a order by a.id |
| | | select a.*,fn_uname(a.userid) uname from lf.sys_role_user a where a.id = 1 |
| | | |
| | | select a.*,fn_rec_query(a.depid, 'dep') depName,fn_rec_query(a.dirid, 'dir') dirName from lf.sys_style a; |
| | | |
| | | select * from lf.sys_auth order by id; |
| | | ------------------------------------------------------------ |
| | | select * from lf.sys_auth; |
| | | select * from lf.sys_menu; |
| | | select * from lf.sys_menu_auth; |
| | | |
| | | select * from lf.sys_args; |
| | | |
| | | |
| | | select * from lf.sys_auth a left join lf.sys_menu; |
| | | select a.* from lf.sys_auth a where not exists (select b.id from lf.sys_menu_auth b where b.authid=a.id and b.menuid=1); |
| | | ----------------------------------------------------------------------------------------------------- |
| | | |
| | | |
| | | |
| | |
| | | comment on column lf.sys_role.update_user is 'æ´æ°äººID'; |
| | | comment on column lf.sys_role.update_time is 'æ´æ°æ¶é´'; |
| | | comment on column lf.sys_role.bak is '夿³¨'; |
| | | --insert into lf.sys_role (depid,name,descr) values (1,'Admin','ç³»ç»ç®¡çå'); |
| | | --insert into lf.sys_role (id,depid,name,descr) values (1,1,'Admin','ç³»ç»ç®¡çå'); |
| | | |
| | | select * from lf.sys_role; |
| | | select a.*,b.name depname from lf.sys_role a inner join lf.sys_dep b on a.depid = b.id order by a.id limit 10 offset 0; |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®èåå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "menuid", value = "èåID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageForMenu") |
| | | public ResponseMsg<List<AuthEntity>> selectByPageForMenu(Integer menuid, Integer pageSize, Integer pageIndex) { |
| | | try { |
| | | if (pageSize < 1 || pageIndex < 1) { |
| | | return fail("æ¯é¡µé¡µæ°æå页æ°å°äº1", null); |
| | | } |
| | | |
| | | int count = authService.selectCountForMenu(menuid); |
| | | if (count == 0) { |
| | | return success(0, null); |
| | | } |
| | | |
| | | List<AuthEntity> rs = authService.selectByPageForMenu(menuid, pageSize, pageSize * (pageIndex - 1)); |
| | | |
| | | return success(count, rs); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "com.lf.server.entity.sys.AuthEntity", paramType = "body", example = "") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®è§è²+åä½å页æ¥è¯¢") |
| | | @ApiOperation(value = "æ ¹æ®è§è²+åä½å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "室"), |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = "1"), |
| | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param name åç§° |
| | | * @param name åç§° |
| | | * @param limit è®°å½è¡¨ |
| | | * @param offset åç§»é |
| | | * @return å表 |
| | | */ |
| | | public List<AuthEntity> selectByPage(String name, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * æ ¹æ®èåæ¥è¯¢è®°å½æ° |
| | | * |
| | | * @param menuid |
| | | * @return |
| | | */ |
| | | public Integer selectCountForMenu(Integer menuid); |
| | | |
| | | /** |
| | | * æ ¹æ®èåå页æ¥è¯¢ |
| | | * |
| | | * @param menuid |
| | | * @param limit |
| | | * @param offset |
| | | * @return |
| | | */ |
| | | public List<AuthEntity> selectByPageForMenu(Integer menuid, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * æå
¥ä¸æ¡ |
| | |
| | | * @return |
| | | */ |
| | | public List<AuthEntity> selectAuthAll(); |
| | | |
| | | } |
| | |
| | | @Autowired |
| | | AuthMapper authMapper; |
| | | |
| | | |
| | | @Override |
| | | public Integer selectCount(String name) { |
| | | return authMapper.selectCount(name); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectCountForMenu(Integer menuid) { |
| | | return authMapper.selectCountForMenu(menuid); |
| | | } |
| | | |
| | | @Override |
| | | public List<AuthEntity> selectByPageForMenu(Integer menuid, Integer limit, Integer offset) { |
| | | return authMapper.selectByPageForMenu(menuid, limit, offset); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insertAuth(AuthEntity authEntity) { |
| | | return authMapper.insertAuth(authEntity); |
| | | } |
| | |
| | | <?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="com.lf.server.mapper.sys.AuthMapper"> |
| | | |
| | | <!-- ç»è®¡è¡æ° --> |
| | | <select id="selectCount" resultType="java.lang.Integer" parameterType="java.lang.String"> |
| | | select count(*) from lf.sys_auth |
| | | <where> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <!-- å页æ¥è¯¢ --> |
| | | <select id="selectByPage" resultType="com.lf.server.entity.sys.AuthEntity"> |
| | | select * from lf.sys_auth |
| | | <where> |
| | |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | <select id="selectCountForMenu" resultType="java.lang.Integer" parameterType="java.lang.String"> |
| | | select count(a.*) 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"> |
| | | and b.menuid = #{menuid} |
| | | </if> |
| | | </where> |
| | | ) |
| | | </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 |
| | | <where> |
| | | b.authid = a.id |
| | | <if test="menuid != null"> |
| | | and b.menuid = #{menuid} |
| | | </if> |
| | | </where> |
| | | ) |
| | | order by a.id |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | <select id="selectAuthAll" resultType="com.lf.server.entity.sys.AuthEntity"> |
| | | select * from lf.sys_auth order by id |
| | |
| | | </select> |
| | | |
| | | <select id="selectCountForRole" resultType="java.lang.Integer" parameterType="java.lang.String"> |
| | | select count(*) from lf.sys_user a |
| | | select count(a.*) from lf.sys_user a |
| | | <where> |
| | | not exists (select id from lf.sys_role_user b where b.userid = a.id |
| | | not exists (select b.id from lf.sys_role_user b where b.userid = a.id |
| | | <if test="roleid != null"> |
| | | and b.roleid = #{roleid} |
| | | </if> |
| | |
| | | <select id="selectByPageForRole" resultMap="resultMap" resultType="com.lf.server.entity.sys.UserEntity"> |
| | | select a.*,fn_rec_query(a.depid, 'dep') depName from lf.sys_user a |
| | | <where> |
| | | not exists (select id from lf.sys_role_user b where b.userid = a.id |
| | | not exists (select b.id from lf.sys_role_user b where b.userid = a.id |
| | | <if test="roleid != null"> |
| | | and b.roleid = #{roleid} |
| | | </if> |
| | |
| | | 11.èµæºå®æ¶çæ§ï¼CPUä¿¡æ¯+å
åä¿¡æ¯+å¨çº¿ç¨æ·+èµæºç¶æï¼ |
| | | 12.ä¸è½½æä»¶å¹¶è®¾ç½®MIMEç±»å |
| | | 13.ä¸ä¼ æä»¶ï¼commons-fileuploadï¼ * |
| | | |
| | | 1.å端éæç»å½æ¥å£ |
| | | 2.è忥壿·»å ç¨æ·æé |
| | | 3.å¼åèåæéãç¨æ·æéãèµæºæéæ¥å£ |
| | | ---------------------------------------------------------------------------------------------------- |
| | | java è°ç¨gdal读ågdbæ°æ®ï¼linuxä¸javaè°ç¨gdalï¼ |
| | | https://blog.csdn.net/weixin_53853459/article/details/120954597 |
| | | https://blog.csdn.net/qq_43444401/article/details/125649414 |
| | | https://blog.csdn.net/qq_43961619/article/details/124627871 |
| | | |
| | | http://127.0.0.1:12316/dict/selectCount?tab=sys_user |
| | | http://127.0.0.1:12316/Dict/selectByPage?tab=sys_user&pageSize=10&pageIndex=0 |
| | | |