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
543e078e
Commit
543e078e
authored
Mar 14, 2021
by
罗承锋
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d84a720c
b29deb58
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
0 deletions
+79
-0
common/src/main/java/com/winsun/bean/School.java
+5
-0
common/src/main/java/com/winsun/mapper/SchoolMapper.java
+9
-0
common/src/main/resources/com/winsun/mapper/mapping/SchoolMapper.xml
+49
-0
service-manager/src/main/java/com/winsun/controller/SchoolManagementController.java
+0
-0
service-manager/src/main/java/com/winsun/utils/ExcelDealUtils.java
+16
-0
No files found.
common/src/main/java/com/winsun/bean/School.java
View file @
543e078e
...
@@ -53,6 +53,11 @@ public class School implements Serializable {
...
@@ -53,6 +53,11 @@ public class School implements Serializable {
*/
*/
@TableField
(
"service_qrcode"
)
@TableField
(
"service_qrcode"
)
private
String
serviceQrcode
;
private
String
serviceQrcode
;
/**
* 揽装人
*/
@TableField
(
"lz_user"
)
private
String
lzUser
;
/**
/**
* 揽装工号
* 揽装工号
...
...
common/src/main/java/com/winsun/mapper/SchoolMapper.java
View file @
543e078e
...
@@ -56,4 +56,13 @@ public interface SchoolMapper extends BaseMapper<School> {
...
@@ -56,4 +56,13 @@ public interface SchoolMapper extends BaseMapper<School> {
" LEFT JOIN hhr_school s ON s.`id`=us.`school_id`"
+
" LEFT JOIN hhr_school s ON s.`id`=us.`school_id`"
+
" WHERE u.id=#{id}"
)
" WHERE u.id=#{id}"
)
Map
<
String
,
Object
>
querySchoolById
(
@Param
(
"id"
)
String
id
);
Map
<
String
,
Object
>
querySchoolById
(
@Param
(
"id"
)
String
id
);
Map
<
String
,
Object
>
querySchoolMap
(
@Param
(
"subName"
)
String
subName
,
@Param
(
"schoolName"
)
String
schoolName
);
int
insertSchoolMap
(
Map
<
String
,
Object
>
map
);
int
updateSchoolMap
(
Map
<
String
,
Object
>
map
);
int
insertNetworkInfo
(
Map
<
String
,
Object
>
map
);
}
}
common/src/main/resources/com/winsun/mapper/mapping/SchoolMapper.xml
0 → 100644
View file @
543e078e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.winsun.mapper.SchoolMapper"
>
<select
id=
"querySchoolMap"
parameterType=
"String"
resultType=
"HashMap"
>
select * from hhr_school where sub_name = #{subName} and school_name = #{schoolName}
</select>
<insert
id=
"insertSchoolMap"
>
INSERT INTO hhr_school
(sub_name,school_name,status,lz_user,lzgh,network_code,network_name,app_id,app_key)
VALUES (#{a},#{b},0,#{c},#{d},#{e},#{f},#{g},#{h})
</insert>
<update
id=
"updateSchoolMap"
>
update hhr_school set
<if
test=
"c != null and c != ''"
>
lz_user = #{c},
</if>
<if
test=
"d != null and d != ''"
>
lzgh = #{d},
</if>
<if
test=
"e != null and e != ''"
>
network_code = #{e},
</if>
<if
test=
"f != null and f != ''"
>
network_name = #{f},
</if>
<if
test=
"g != null and g != ''"
>
app_id = #{g},
</if>
<if
test=
"h != null and h != ''"
>
app_key = #{h},
</if>
sub_name = #{a},school_name = #{b}
where
sub_name = #{a}
and
school_name = #{b}
</update>
<insert
id=
"insertNetworkInfo"
>
INSERT INTO hhr_network_info (area_name,school_name,network_code,network_name)
VALUES (#{a},#{b},#{e},#{f})
</insert>
</mapper>
\ No newline at end of file
service-manager/src/main/java/com/winsun/controller/SchoolManagementController.java
View file @
543e078e
This diff is collapsed.
Click to expand it.
service-manager/src/main/java/com/winsun/utils/ExcelDealUtils.java
View file @
543e078e
...
@@ -527,4 +527,20 @@ public class ExcelDealUtils {
...
@@ -527,4 +527,20 @@ public class ExcelDealUtils {
return
resultMap
;
return
resultMap
;
}
}
// 管理导出excel表头
public
static
Map
<
String
,
Object
>
schoolExcel
(
String
sheetName
){
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<
String
,
Object
>();
headMap
.
put
(
"所属县分(必填)"
,
"subName"
);
headMap
.
put
(
"校园名称(必填)"
,
"schoolName"
);
headMap
.
put
(
"揽装人"
,
"lzUser"
);
headMap
.
put
(
"揽装工号"
,
"lzgh"
);
headMap
.
put
(
"网点编码"
,
"networkCode"
);
headMap
.
put
(
"网点名称"
,
"networkName"
);
headMap
.
put
(
"终端编码"
,
"appId"
);
headMap
.
put
(
"终端密匙"
,
"appKey"
);
Map
<
String
,
Object
>
resultMap
=
dealHeadMap
(
headMap
);
resultMap
.
put
(
"sheetName"
,
sheetName
);
return
resultMap
;
}
}
}
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