Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
25143517
Commit
25143517
authored
Feb 18, 2020
by
黄森林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单宽学校名称
parent
29b0f575
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
service-manager/src/main/java/com/winsun/controller/ProductController.java
+20
-4
No files found.
service-manager/src/main/java/com/winsun/controller/ProductController.java
View file @
25143517
...
@@ -18,10 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -18,10 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
java.util.Date
;
import
java.util.*
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 宽带管理
* 宽带管理
...
@@ -142,4 +139,23 @@ public class ProductController extends BaseController {
...
@@ -142,4 +139,23 @@ public class ProductController extends BaseController {
page
.
setRecords
(
products
);
page
.
setRecords
(
products
);
return
ResponseData
.
success
(
page
,
"查询完毕!"
);
return
ResponseData
.
success
(
page
,
"查询完毕!"
);
}
}
/**
* 单宽学校名称
* @return
*/
@Permission
(
menuname
=
"单宽学校名称"
,
value
=
"productSchool"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
List
<
Map
<
String
,
Object
>>>
productSchool
(){
Wrapper
<
Product
>
wrapper
=
new
EntityWrapper
();
wrapper
.
eq
(
"product_state"
,
"0"
);
List
<
Product
>
products
=
productMapper
.
selectList
(
wrapper
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
for
(
Product
product:
products
){
map
.
put
(
"id"
,
product
.
getProductId
());
map
.
put
(
"productSchool"
,
product
.
getProductUniversity
());
list
.
add
(
map
);
}
return
ResponseData
.
success
(
list
);
}
}
}
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