mirror of https://github.com/Rekoe/rk_svnadmin
升级jar 同时修复分页bug
parent
ed1cd09ebd
commit
84d53c3420
36
pom.xml
36
pom.xml
|
@ -9,6 +9,8 @@
|
||||||
<url>http://www.rekoe.com</url>
|
<url>http://www.rekoe.com</url>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<nutz.version>1.r.63-SNAPSHOT</nutz.version>
|
||||||
|
<freemarker.version>2.3.26-incubating</freemarker.version>
|
||||||
</properties>
|
</properties>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
|
@ -29,7 +31,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
<version>5.1.28</version>
|
<version>5.1.44</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.tmatesoft.svnkit</groupId>
|
<groupId>org.tmatesoft.svnkit</groupId>
|
||||||
|
@ -39,7 +41,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba</groupId>
|
<groupId>com.alibaba</groupId>
|
||||||
<artifactId>druid</artifactId>
|
<artifactId>druid</artifactId>
|
||||||
<version>1.0.24</version>
|
<version>1.1.4</version>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<artifactId>jconsole</artifactId>
|
<artifactId>jconsole</artifactId>
|
||||||
|
@ -54,17 +56,12 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.nutz</groupId>
|
<groupId>org.nutz</groupId>
|
||||||
<artifactId>nutz-plugins-views</artifactId>
|
<artifactId>nutz-plugins-views</artifactId>
|
||||||
<version>1.r.57</version>
|
<version>${nutz.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.nutz</groupId>
|
<groupId>org.nutz</groupId>
|
||||||
<artifactId>nutz</artifactId>
|
<artifactId>nutz</artifactId>
|
||||||
<version> 1.r.57.r3</version>
|
<version>${nutz.version}</version>
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.nutz</groupId>
|
|
||||||
<artifactId>nutz-web</artifactId>
|
|
||||||
<version>1.r.57</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.restfb</groupId>
|
<groupId>com.restfb</groupId>
|
||||||
|
@ -74,7 +71,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.freemarker</groupId>
|
<groupId>org.freemarker</groupId>
|
||||||
<artifactId>freemarker</artifactId>
|
<artifactId>freemarker</artifactId>
|
||||||
<version>2.3.20</version>
|
<version>${freemarker.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sf.ehcache</groupId>
|
<groupId>net.sf.ehcache</groupId>
|
||||||
|
@ -100,12 +97,12 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.nutz</groupId>
|
<groupId>org.nutz</groupId>
|
||||||
<artifactId>nutz-plugins-daocache</artifactId>
|
<artifactId>nutz-plugins-daocache</artifactId>
|
||||||
<version> 1.r.57</version>
|
<version>${nutz.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.nutz</groupId>
|
<groupId>org.nutz</groupId>
|
||||||
<artifactId>nutz-integration-quartz</artifactId>
|
<artifactId>nutz-integration-quartz</artifactId>
|
||||||
<version>1.r.57.r2</version>
|
<version>${nutz.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.json</groupId>
|
<groupId>org.json</groupId>
|
||||||
|
@ -120,7 +117,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.nutz</groupId>
|
<groupId>org.nutz</groupId>
|
||||||
<artifactId>nutz-integration-shiro</artifactId>
|
<artifactId>nutz-integration-shiro</artifactId>
|
||||||
<version>1.r.59</version>
|
<version>${nutz.version}</version>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<artifactId>shiro-core</artifactId>
|
<artifactId>shiro-core</artifactId>
|
||||||
|
@ -195,10 +192,15 @@
|
||||||
<finalName>rk_svnadmin</finalName>
|
<finalName>rk_svnadmin</finalName>
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
<resource>
|
||||||
<directory>src/main/java</directory>
|
<directory>src/main/resources</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>com/rekoe/mvc/*.*</include>
|
<include>**/*.js</include>
|
||||||
|
<include>**/msg/**/*.properties</include>
|
||||||
|
<include>log4j2.xml</include>
|
||||||
</includes>
|
</includes>
|
||||||
|
</resource>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/java</directory>
|
||||||
<filtering>false</filtering>
|
<filtering>false</filtering>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -234,8 +236,8 @@
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>2.5.1</version>
|
<version>2.5.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.7</source>
|
<source>1.8</source>
|
||||||
<target>1.7</target>
|
<target>1.8</target>
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package com.rekoe;
|
package com.rekoe;
|
||||||
|
|
||||||
import org.nutz.mvc.annotation.ChainBy;
|
|
||||||
import org.nutz.mvc.annotation.Encoding;
|
import org.nutz.mvc.annotation.Encoding;
|
||||||
import org.nutz.mvc.annotation.Fail;
|
import org.nutz.mvc.annotation.Fail;
|
||||||
import org.nutz.mvc.annotation.IocBy;
|
import org.nutz.mvc.annotation.IocBy;
|
||||||
|
@ -8,16 +7,14 @@ import org.nutz.mvc.annotation.Localization;
|
||||||
import org.nutz.mvc.annotation.Modules;
|
import org.nutz.mvc.annotation.Modules;
|
||||||
import org.nutz.mvc.annotation.SetupBy;
|
import org.nutz.mvc.annotation.SetupBy;
|
||||||
import org.nutz.mvc.annotation.Views;
|
import org.nutz.mvc.annotation.Views;
|
||||||
import org.nutz.mvc.impl.NutActionChainMaker;
|
|
||||||
import org.nutz.mvc.ioc.provider.ComboIocProvider;
|
import org.nutz.mvc.ioc.provider.ComboIocProvider;
|
||||||
import org.nutz.plugins.view.freemarker.FreemarkerViewMaker;
|
import org.nutz.plugins.view.freemarker.FreemarkerViewMaker;
|
||||||
|
|
||||||
@Modules(scanPackage = true, packages = { "com.rekoe.module" })
|
@Modules(scanPackage = true, packages = { "com.rekoe.module" })
|
||||||
@IocBy(type = ComboIocProvider.class, args = { "*json", "/ioc", "*anno", "com.rekoe", "*tx", "*org.nutz.integration.quartz.QuartzIocLoader", "*org.nutz.plugins.view.freemarker.FreemarkerIocLoader", "*async" })
|
@IocBy(type = ComboIocProvider.class, args = { "*json", "/ioc", "*anno", "com.rekoe", "*tx", "*quartz", "*org.nutz.plugins.view.freemarker.FreemarkerIocLoader", "*async" })
|
||||||
@SetupBy(MvcSetup.class)
|
@SetupBy(MvcSetup.class)
|
||||||
@Fail(">>:/admin/common/unauthorized.rk")
|
@Fail(">>:/admin/common/unauthorized.rk")
|
||||||
@Encoding(input = "UTF-8", output = "UTF-8")
|
@Encoding(input = "UTF-8", output = "UTF-8")
|
||||||
@ChainBy(type = NutActionChainMaker.class, args = { "com/rekoe/mvc/mvc-chains.js" })
|
|
||||||
@Views({ FreemarkerViewMaker.class })
|
@Views({ FreemarkerViewMaker.class })
|
||||||
@Localization(value = "msg/", defaultLocalizationKey = "zh-CN")
|
@Localization(value = "msg/", defaultLocalizationKey = "zh-CN")
|
||||||
public class MainModule {
|
public class MainModule {
|
||||||
|
|
|
@ -81,7 +81,7 @@ public class ProjectGroupUsrService extends BaseService<PjGrUsr> {
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Long counts = Daos.queryCount(dao(), sql.getSourceSql());
|
Long counts = Daos.queryCount(dao(), sql);
|
||||||
pager.setRecordCount(Integer.parseInt(counts.toString()));
|
pager.setRecordCount(Integer.parseInt(counts.toString()));
|
||||||
dao().execute(sql);
|
dao().execute(sql);
|
||||||
return new Pagination(page, 20, pager.getRecordCount(), list);
|
return new Pagination(page, 20, pager.getRecordCount(), list);
|
||||||
|
|
|
@ -52,7 +52,7 @@ function deleted(pj,gr){
|
||||||
<@p.column title="项目" align="center">${group.pj}</@p.column><#t/>
|
<@p.column title="项目" align="center">${group.pj}</@p.column><#t/>
|
||||||
<@p.column title="用户组" align="center">${group.gr}</@p.column><#t/>
|
<@p.column title="用户组" align="center">${group.gr}</@p.column><#t/>
|
||||||
<@p.column title="描述" align="center">${group.des!}</@p.column><#t/>
|
<@p.column title="描述" align="center">${group.des!}</@p.column><#t/>
|
||||||
<@p.column title="设置用户" align="center"><a href="${base}/admin/project/group/usr/list?pageNumber=1&pj=${group.pj}&gr=${group.gr}">设置用户</a></@p.column><#t/>
|
<@p.column title="设置用户" align="center"><a href="${base}/admin/project/group/usr/list?pj=${group.pj}&gr=${group.gr}">设置用户</a></@p.column><#t/>
|
||||||
<@shiro.hasPermission name="project.group:delete">
|
<@shiro.hasPermission name="project.group:delete">
|
||||||
<@p.column title="删除" align="center">
|
<@p.column title="删除" align="center">
|
||||||
<#if group.gr != "manager"><a href="javascript:void(0);" onclick="deleted('${group.pj}','${group.gr}')" class="pn-opt">删除</a></#if><#rt/>
|
<#if group.gr != "manager"><a href="javascript:void(0);" onclick="deleted('${group.pj}','${group.gr}')" class="pn-opt">删除</a></#if><#rt/>
|
||||||
|
|
Loading…
Reference in New Issue