Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-app-report
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
Administrator
xzxt-app-report
Commits
537f0292
Commit
537f0292
authored
Apr 18, 2022
by
wang_jiaxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复单位数量超过1000的问题
parent
2c0f847b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
11 deletions
+37
-11
src/main/java/org/springblade/founder/dzbl/entity/ZcyEntity.java
+0
-1
src/main/java/org/springblade/founder/dzbl/mapper/TbStAppDzblMapper.xml
+6
-3
src/main/java/org/springblade/founder/entity/BaseModel.java
+19
-1
src/main/java/org/springblade/founder/xcxx/mapper/XcxxMapper.xml
+12
-6
No files found.
src/main/java/org/springblade/founder/dzbl/entity/ZcyEntity.java
View file @
537f0292
...
...
@@ -14,5 +14,4 @@ public class ZcyEntity extends BaseModel {
private
String
jh
;
private
String
dwdm
;
private
String
dwmc
;
private
List
<
String
>
dwList
;
}
src/main/java/org/springblade/founder/dzbl/mapper/TbStAppDzblMapper.xml
View file @
537f0292
...
...
@@ -233,9 +233,12 @@
AND sfzh = #{sfzh , jdbcType=VARCHAR }
</if>
<if
test=
"dwList != null and dwList.size() > 0"
>
and dzbl.XXDJDW_GAJGJGDM in
<foreach
collection=
"dwList"
item=
"dw"
open=
"("
close=
")"
separator=
","
>
#{dw,jdbcType=VARCHAR}
and
<foreach
collection=
"dwList"
item=
"dws"
open=
"("
close=
")"
separator=
" or "
>
dzbl.XXDJDW_GAJGJGDM in
<foreach
collection=
"dws"
item=
"dw"
separator=
","
open=
"("
close=
")"
>
#{dw,jdbcType=VARCHAR}
</foreach>
</foreach>
</if>
</sql>
...
...
src/main/java/org/springblade/founder/entity/BaseModel.java
View file @
537f0292
...
...
@@ -6,6 +6,7 @@ import lombok.Data;
import
lombok.EqualsAndHashCode
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -30,5 +31,22 @@ public class BaseModel extends PageModel{
protected
String
xxlyms
;
@TableField
(
exist
=
false
)
protected
List
<
String
>
dwList
;
protected
List
<
List
<
String
>>
dwList
;
public
void
setDwList
(
List
<
String
>
dwList
)
{
this
.
dwList
=
new
ArrayList
<>();
List
<
String
>
dws
=
new
ArrayList
<>();
if
(
dwList
.
size
()
<
1000
){
this
.
dwList
.
add
(
dwList
);
return
;
}
for
(
String
dw
:
dwList
)
{
if
(
dws
.
size
()
>=
1000
)
{
this
.
dwList
.
add
(
new
ArrayList
<>(
dws
));
dws
.
clear
();
}
dws
.
add
(
dw
);
}
this
.
dwList
.
add
(
dws
);
}
}
src/main/java/org/springblade/founder/xcxx/mapper/XcxxMapper.xml
View file @
537f0292
...
...
@@ -102,9 +102,12 @@
and glxx_xxzjbh = #{tbStAppXcxx.glxxXxzjbh , jdbcType=VARCHAR}
</if>
<if
test=
"tbStAppXcxx.dwList != null and tbStAppXcxx.dwList.size() > 0"
>
and XXDJDW_GAJGJGDM in
<foreach
collection=
"tbStAppXcxx.dwList"
item=
"dw"
open=
"("
close=
")"
separator=
","
>
#{dw,jdbcType=VARCHAR}
and
<foreach
collection=
"tbStAppXcxx.dwList"
item=
"dws"
open=
"("
close=
")"
separator=
" or "
>
XXDJDW_GAJGJGDM in
<foreach
collection=
"dws"
item=
"dw"
separator=
","
open=
"("
close=
")"
>
#{dw,jdbcType=VARCHAR}
</foreach>
</foreach>
</if>
order by djsj desc
...
...
@@ -152,9 +155,12 @@
and glxx_xxzjbh = #{tbStAppXcxx.glxxXxzjbh , jdbcType=VARCHAR}
</if>
<if
test=
"tbStAppXcxx.dwList != null and tbStAppXcxx.dwList.size() > 0"
>
and XXDJDW_GAJGJGDM in
<foreach
collection=
"tbStAppXcxx.dwList"
item=
"dw"
open=
"("
close=
")"
separator=
","
>
#{dw,jdbcType=VARCHAR}
and
<foreach
collection=
"tbStAppXcxx.dwList"
item=
"dws"
open=
"("
close=
")"
separator=
" or "
>
XXDJDW_GAJGJGDM in
<foreach
collection=
"dws"
item=
"dw"
separator=
","
open=
"("
close=
")"
>
#{dw,jdbcType=VARCHAR}
</foreach>
</foreach>
</if>
</select>
...
...
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