File tree Expand file tree Collapse file tree 2 files changed +7
-37
lines changed
java/org/nlpcn/jcoder/controller Expand file tree Collapse file tree 2 files changed +7
-37
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,13 @@ public class ApiAction {
55
55
@ Filters (@ By (type = CrossOriginFilter .class ))
56
56
public Object api (@ Param (value = "type" , df = "1" ) int type ) {
57
57
58
- List <ClassDoc > result = TaskService .findTaskList (type ).stream ().sorted ((t1 ,t2 )-> (int )(t1 .getGroupId ()-t2 .getGroupId ())).map ((t ) -> {
58
+ List <ClassDoc > result = TaskService .findTaskList (type ).stream ().sorted ((t1 , t2 ) -> {
59
+ int v = (int ) (t1 .getGroupId () - t2 .getGroupId ());
60
+ if (v != 0 ) {
61
+ return v ;
62
+ }
63
+ return (int ) (t1 .getId () - t2 .getId ());
64
+ }).map ((t ) -> {
59
65
boolean compile = false ;
60
66
ClassDoc cd = null ;
61
67
try {
Original file line number Diff line number Diff line change 38
38
ng-repeat ="x in nav_datas " ng-click ="clickNav(x) ">
39
39
< a href ="{{x.href}} " class ="{{x.status==false?'alert-error':''}} "> {{x.name}}</ a >
40
40
</ li >
41
-
42
- < li class ="nav-header {{x.isActive?'active':''}} "> < a href ="#maven_response "> Virtual Maven</ a > </ li >
43
41
</ ul >
44
42
</ nav >
45
43
</ div >
@@ -115,40 +113,6 @@ <h2 ng-show="y.retrunContent">Return</h2>
115
113
</ section >
116
114
117
115
118
- < div >
119
- < section id ="maven_response ">
120
- < h2 > Virtual Maven Response</ h2 >
121
- < pre class ="prettyprint prettyprinted "> < code > <!--jcoder virtual respository-->
122
- <repositories>
123
- <repository>
124
- <id>jcoder</id>
125
- <url>{{atx}}/api_maven/repository/</url>
126
- </repository>
127
- </repositories>
128
-
129
- <!-- jcoder rpc sdk -->
130
- <dependency>
131
- <groupId>org.nlpcn.jcoder</groupId>
132
- <artifactId>jcoder-rpc-sdk</artifactId>
133
- <version>2.0.5</version>
134
- </dependency>
135
-
136
- <!-- make a package all class to a jar -->
137
- <dependency>
138
- <groupId>org.nlpcn.jcoder.package</groupId>
139
- <artifactId>[com.domain.package]</artifactId>
140
- <version>[any version]</version>
141
- </dependency>
142
-
143
- <!-- put updateData jar to you maven -->
144
- <dependency>
145
- <groupId>org.nlpcn.jcoder.jar</groupId>
146
- <artifactId>[your jar file name]</artifactId>
147
- <version>[your jar version]</version>
148
- </dependency>
149
- </ code > </ pre >
150
- </ section >
151
- </ div >
152
116
</ div >
153
117
< div id ="generator ">
154
118
< div class ="content ">
You can’t perform that action at this time.
0 commit comments