Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
ece847aa
Commit
ece847aa
authored
Mar 17, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdk版本
parent
e78f08fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
21 deletions
+27
-21
test.java
haoban-manage3-service/src/test/java/test.java
+25
-19
ApplicationController.java
...c/haoban/manage/web/controller/ApplicationController.java
+2
-2
No files found.
haoban-manage3-service/src/test/java/test.java
View file @
ece847aa
import
java.util.List
;
import
com.gic.haoban.manage.service.entity.TabHaobanPreDealLog
;
import
org.apache.commons.lang3.StringUtils
;
public
class
test
{
public
static
void
main
(
String
[]
args
)
{
//插入不存在的我们pre表的企业微信数据
int
pageSize
=
500
;
int
count
=
345
;
int
pre
=
count
/
pageSize
+
1
;
int
yushu
=
count
%
pageSize
;
if
(
yushu
==
0
){
pre
=
pre
-
1
;
}
int
i
=
0
;
while
(
i
<
pre
){
System
.
out
.
println
(
"这是第{}次,进入"
+
i
);
i
++;
int
fromIndex
=
(
i
-
1
)*
pageSize
;
int
toIndex
=
(
count
-
fromIndex
)
>
pageSize
?
(
fromIndex
+
pageSize
):
count
;
System
.
out
.
println
(
"fromIndex=============>"
+
fromIndex
);
System
.
out
.
println
(
"toIndex=============>"
+
toIndex
);
String
key
=
"3.2.1"
;
String
[]
split
=
key
.
split
(
"."
);
}
}
System
.
out
.
println
(
split
[
1
]);
//
// //插入不存在的我们pre表的企业微信数据
// int pageSize = 500;
// int count = 345;
// int pre = count/pageSize+1;
// int yushu = count%pageSize;
// if(yushu==0){
// pre = pre- 1;
// }
// int i= 0;
// while(i<pre){
// System.out.println("这是第{}次,进入"+i);
// i++;
// int fromIndex = (i-1)*pageSize;
// int toIndex = (count-fromIndex) > pageSize ? (fromIndex+pageSize):count;
//
// System.out.println("fromIndex=============>"+fromIndex);
// System.out.println("toIndex=============>"+toIndex);
//
// }
}
}
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ApplicationController.java
View file @
ece847aa
...
...
@@ -81,8 +81,8 @@ public class ApplicationController extends WebBaseController{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
true
);
}
String
limitSdkVersion
=
cache
.
toString
();
String
[]
limitSdk
=
limitSdkVersion
.
split
(
"."
);
String
[]
versionSplit
=
skdVersion
.
split
(
"."
);
String
[]
limitSdk
=
StringUtils
.
split
(
limitSdkVersion
,
"."
);
String
[]
versionSplit
=
StringUtils
.
split
(
skdVersion
,
"."
);
int
checkFlag
=
checkNum
(
Integer
.
valueOf
(
limitSdk
[
0
]),
Integer
.
valueOf
(
versionSplit
[
0
]));
if
(
checkFlag
!=
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment