Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
wangming
/
kzy-wx
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d39d52a2
authored
Mar 16, 2020
by
魏文甫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
1 parent
59b199af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
src/main/java/com/server/web/common/service/Impl/InformationServiceImpl.java
src/main/java/com/server/web/common/service/Impl/InformationServiceImpl.java
View file @
d39d52a
package
com
.
server
.
web
.
common
.
service
.
Impl
;
import
com.server.web.common.mapper.TBaseFirstClassMapper
;
import
com.server.web.common.mapper.TBaseSecondClassMapper
;
import
com.server.web.common.mapper.TKzyCommentMapper
;
import
com.server.web.common.mapper.TKzyInformationMapper
;
import
com.server.web.common.mapping.CommentMapper
;
import
com.server.web.common.mapping.InformationMapper
;
import
com.server.web.common.model.TBaseSecondClass
;
import
com.server.web.common.model.TBaseSecondClassExample
;
import
com.server.web.common.model.TKzyComment
;
import
com.server.web.common.model.TKzyInformation
;
import
com.server.web.common.model.*
;
import
com.server.web.common.service.InformationService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -35,12 +33,18 @@ public class InformationServiceImpl implements InformationService {
private
CommentMapper
commentMapper
;
@Autowired
private
TKzyCommentMapper
tKzyCommentMapper
;
@Autowired
private
TBaseFirstClassMapper
tBaseFirstClassMapper
;
@Override
public
Map
<
String
,
Object
>
secondClassList
(
Long
firstId
)
{
TBaseSecondClassExample
tBaseSecondClassExample
=
new
TBaseSecondClassExample
();
tBaseSecondClassExample
.
createCriteria
().
andFirstIdEqualTo
(
firstId
).
andStatusEqualTo
(
1
);
List
<
TBaseSecondClass
>
list
=
tBaseSecondClassMapper
.
selectByExample
(
tBaseSecondClassExample
);
TBaseFirstClass
tBaseFirstClass
=
tBaseFirstClassMapper
.
selectByPrimaryKey
(
firstId
);
Map
<
String
,
Object
>
dataMap
=
new
HashMap
<
String
,
Object
>();
dataMap
.
put
(
"list"
,
list
);
dataMap
.
put
(
"firstClassName"
,
tBaseFirstClass
.
getClassName
());
return
returnMap
(
"1"
,
""
,
list
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment