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
146a4966
Commit
146a4966
authored
May 25, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加批量导入
parent
c490737e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
5 deletions
+35
-5
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowBusinessServiceImpl.java
...module/window/service/impl/WindowBusinessServiceImpl.java
+1
-1
base-manager/src/test/java/com/mortals/httpclient/http-client.env.json
...src/test/java/com/mortals/httpclient/http-client.env.json
+1
-1
base-manager/src/test/java/com/mortals/httpclient/site/SiteHallController.http
.../java/com/mortals/httpclient/site/SiteHallController.http
+1
-1
base-manager/src/test/java/com/mortals/httpclient/window/WindowBusinessController.http
...m/mortals/httpclient/window/WindowBusinessController.http
+2
-1
portal-manager/src/main/java/com/mortals/xhx/module/user/model/UserEntity.java
...in/java/com/mortals/xhx/module/user/model/UserEntity.java
+1
-1
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserController.java
.../java/com/mortals/xhx/module/user/web/UserController.java
+12
-0
portal-manager/src/test/java/com/mortals/httpclient/user/UserController.http
...test/java/com/mortals/httpclient/user/UserController.http
+17
-0
No files found.
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowBusinessServiceImpl.java
View file @
146a4966
...
@@ -66,7 +66,7 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
...
@@ -66,7 +66,7 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
item
.
setFromnum
(
windowEntity
.
getFromnum
());
item
.
setFromnum
(
windowEntity
.
getFromnum
());
WindowHallEntity
windowHallEntity
=
windowHallEntityMap
.
get
(
item
.
getWindowId
());
WindowHallEntity
windowHallEntity
=
windowHallEntityMap
.
get
(
item
.
getWindowId
());
if
(!
ObjectUtils
.
isEmpty
(
windowHallEntity
))
{
if
(!
ObjectUtils
.
isEmpty
(
windowHallEntity
))
{
item
.
setHallId
(
windowHallEntity
.
get
Window
Id
());
item
.
setHallId
(
windowHallEntity
.
get
Hall
Id
());
item
.
setHallName
(
windowHallEntity
.
getHallName
());
item
.
setHallName
(
windowHallEntity
.
getHallName
());
}
}
}
else
{
}
else
{
...
...
base-manager/src/test/java/com/mortals/httpclient/http-client.env.json
View file @
146a4966
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
"baseUrl"
:
"http://192.168.0.98:11078/base"
"baseUrl"
:
"http://192.168.0.98:11078/base"
},
},
"base-test1"
:
{
"base-test1"
:
{
"baseUrl"
:
"http://
192.168.0.98:17211
/base"
"baseUrl"
:
"http://
8.136.255.30:11078
/base"
},
},
"base-yibintest"
:
{
"base-yibintest"
:
{
"baseUrl"
:
"http://192.168.2.169:11078/base"
"baseUrl"
:
"http://192.168.2.169:11078/base"
...
...
base-manager/src/test/java/com/mortals/httpclient/site/SiteHallController.http
View file @
146a4966
...
@@ -19,7 +19,7 @@ Content-Type: application/json
...
@@ -19,7 +19,7 @@ Content-Type: application/json
{
{
"page":1,
"page":1,
"size":1
0
"size":1
1
}
}
...
...
base-manager/src/test/java/com/mortals/httpclient/window/WindowBusinessController.http
View file @
146a4966
...
@@ -5,7 +5,8 @@ Content-Type: application/json
...
@@ -5,7 +5,8 @@ Content-Type: application/json
{
{
"page":1,
"page":1,
"size":10
"size":10,
"hallId": 11
}
}
...
...
portal-manager/src/main/java/com/mortals/xhx/module/user/model/UserEntity.java
View file @
146a4966
...
@@ -24,7 +24,7 @@ public class UserEntity extends UserVo implements IUser {
...
@@ -24,7 +24,7 @@ public class UserEntity extends UserVo implements IUser {
/**
/**
* 登录名
* 登录名
*/
*/
@Excel
(
name
=
"
用户
账号"
)
@Excel
(
name
=
"
登录
账号"
)
private
String
loginName
;
private
String
loginName
;
/**
/**
* 登录密码,使用md5双次加密
* 登录密码,使用md5双次加密
...
...
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserController.java
View file @
146a4966
...
@@ -23,6 +23,7 @@ import io.swagger.annotations.Api;
...
@@ -23,6 +23,7 @@ import io.swagger.annotations.Api;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -270,4 +271,15 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
...
@@ -270,4 +271,15 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
public
void
doImportDataBefore
(
List
<
UserEntity
>
list
,
boolean
updateSupport
,
Context
context
)
throws
AppException
{
public
void
doImportDataBefore
(
List
<
UserEntity
>
list
,
boolean
updateSupport
,
Context
context
)
throws
AppException
{
super
.
doImportDataBefore
(
list
,
updateSupport
,
context
);
super
.
doImportDataBefore
(
list
,
updateSupport
,
context
);
}
}
/**
* @param file
* @param updateSupport
* @return
*/
@Override
@UnAuth
public
String
importData
(
MultipartFile
file
,
boolean
updateSupport
)
{
return
super
.
importData
(
file
,
updateSupport
);
}
}
}
\ No newline at end of file
portal-manager/src/test/java/com/mortals/httpclient/user/UserController.http
View file @
146a4966
POST {{baseUrl}}/user/importData
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="user.xlsx"
< F:\\user.xlsx
--WebAppBoundary--
###
###用户信息业务列表
POST {{baseUrl}}/user/downloadTemplate
Content-Type: application/json
###用户信息业务列表
###用户信息业务列表
POST {{baseUrl}}/user/list
POST {{baseUrl}}/user/list
...
@@ -59,3 +73,6 @@ Accept: application/json
...
@@ -59,3 +73,6 @@ Accept: application/json
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