Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
60c6cfb3
Commit
60c6cfb3
authored
Mar 06, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试 事项查询
parent
82a8b7e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
base-manager/src/main/java/com/mortals/xhx/module/matter/dao/ibatis/MatterDaoImpl.java
...m/mortals/xhx/module/matter/dao/ibatis/MatterDaoImpl.java
+10
-13
base-manager/src/test/java/com/mortals/httpclient/system/system.http
...r/src/test/java/com/mortals/httpclient/system/system.http
+9
-0
No files found.
base-manager/src/main/java/com/mortals/xhx/module/matter/dao/ibatis/MatterDaoImpl.java
View file @
60c6cfb3
...
...
@@ -27,7 +27,6 @@ import java.util.List;
public
class
MatterDaoImpl
extends
BaseCRUDDaoMybatis
<
MatterEntity
,
Long
>
implements
MatterDao
{
@Override
public
Result
<
MatterEntity
>
getSubList
(
MatterEntity
matterQuery
,
PageInfo
pageInfo
)
{
Result
<
MatterEntity
>
result
=
new
Result
();
...
...
@@ -51,6 +50,7 @@ public class MatterDaoImpl extends BaseCRUDDaoMybatis<MatterEntity, Long> implem
public
int
getSubCount
(
ParamDto
paramDto
)
{
return
this
.
getSqlSession
().
selectOne
(
this
.
getSqlId
(
SQLID_SUB_COUNT
),
this
.
cpyQueryParamDto
(
paramDto
));
}
@Override
public
int
getMatterListByAreaCodeCount
(
ParamDto
paramDto
)
{
return
this
.
getSqlSession
().
selectOne
(
this
.
getSqlId
(
SQLID_MATTERLIST_AREACODE_COUNT
),
this
.
cpyQueryParamDto
(
paramDto
));
...
...
@@ -61,7 +61,7 @@ public class MatterDaoImpl extends BaseCRUDDaoMybatis<MatterEntity, Long> implem
ParamDto
param
=
new
ParamDto
();
param
.
getCondition
().
put
(
"areaCode"
,
matterQuery
.
getAreaCode
());
if
(!
ObjectUtils
.
isEmpty
(
matterQuery
.
getSource
()))
{
if
(!
ObjectUtils
.
isEmpty
(
matterQuery
.
getSource
()))
{
param
.
getCondition
().
put
(
"source"
,
matterQuery
.
getSource
());
}
return
this
.
getSqlSession
().
selectList
(
this
.
getSqlId
(
"getMatterListByAreaCode"
),
param
);
...
...
@@ -75,18 +75,15 @@ public class MatterDaoImpl extends BaseCRUDDaoMybatis<MatterEntity, Long> implem
@Override
public
Result
<
MatterEntity
>
getMatterListByAreaCodePage
(
MatterEntity
matterQuery
,
PageInfo
pageInfo
)
{
Result
<
MatterEntity
>
result
=
new
Result
();
ParamDto
paramDto
=
this
.
getQueryParam
(
matterQuery
);
int
count
=
this
.
getMatterListByAreaCodeCount
(
paramDto
);
List
list
=
null
;
if
(
count
==
0
)
{
list
=
new
ArrayList
();
}
else
if
(
pageInfo
.
getPrePageResult
()
==
-
1
)
{
list
=
this
.
getSqlSession
().
selectList
(
this
.
getSqlId
(
SQLID_MATTERLIST_AREACODE
),
paramDto
);
}
else
{
RowBounds
rowBounds
=
new
RowBounds
(
pageInfo
.
getBeginIndex
(),
pageInfo
.
getPrePageResult
());
list
=
this
.
getSqlSession
().
selectList
(
this
.
getSqlId
(
SQLID_MATTERLIST_AREACODE
),
this
.
cpyQueryParamDto
(
paramDto
),
rowBounds
);
ParamDto
param
=
new
ParamDto
();
param
.
getCondition
().
put
(
"areaCode"
,
matterQuery
.
getAreaCode
());
if
(!
ObjectUtils
.
isEmpty
(
matterQuery
.
getSource
()))
{
param
.
getCondition
().
put
(
"source"
,
matterQuery
.
getSource
());
}
pageInfo
.
setTotalResult
(
count
);
RowBounds
rowBounds
=
new
RowBounds
(
pageInfo
.
getBeginIndex
(),
pageInfo
.
getPrePageResult
());
List
<
MatterEntity
>
list
=
this
.
getSqlSession
().
selectList
(
this
.
getSqlId
(
SQLID_MATTERLIST_AREACODE
),
param
,
rowBounds
);
// pageInfo.setTotalResult(count);
result
.
setPageInfo
(
pageInfo
);
result
.
setList
(
list
);
return
result
;
...
...
base-manager/src/test/java/com/mortals/httpclient/system/system.http
View file @
60c6cfb3
...
...
@@ -122,6 +122,15 @@ Content-Type: application/json
}
###test testAllMatterCount
POST {{baseUrl}}/test/testAllMatterCount
Content-Type: application/json
{
"areaCode":"511500000000"
}
###testre
POST {{baseUrl}}/test/reDepts
...
...
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