Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
data_management_system
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
data_management_system
Commits
7609556a
Commit
7609556a
authored
Nov 29, 2022
by
zhuangxinwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into master
parents
559af62b
6480899b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
24 deletions
+44
-24
YxryController.java
.../java/com/ruoyi/web/controller/system/YxryController.java
+9
-9
Yxry.java
ruoyi-system/src/main/java/com/ruoyi/system/domain/Yxry.java
+11
-10
YxryServiceImpl.java
...n/java/com/ruoyi/system/service/impl/YxryServiceImpl.java
+2
-2
yxry.js
ruoyi-ui/src/api/system/yxry.js
+20
-0
index.vue
ruoyi-ui/src/views/system/yxry/index.vue
+2
-3
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/YxryController.java
View file @
7609556a
...
...
@@ -118,27 +118,27 @@ public class YxryController extends BaseController
public
void
importTemplate
(
HttpServletResponse
response
)
throws
Exception
{
ExcelUtil
<
Yxry
>
util
=
new
ExcelUtil
<
Yxry
>(
Yxry
.
class
);
Class
<?
extends
Yxry
>
clazz
=
new
Yxry
().
getClass
();
List
<
SysDictData
>
isYzs
=
DictUtils
.
getDictCache
(
"yz_status"
);
//
List<SysDictData> isYzs = DictUtils.getDictCache("yz_status");
List
<
SysDictData
>
isYins
=
DictUtils
.
getDictCache
(
"yin_status"
);
List
<
SysDictData
>
areas
=
DictUtils
.
getDictCache
(
"residential_area"
);
List
<
SysDictData
>
streets
=
DictUtils
.
getDictCache
(
"street_town"
);
List
<
SysDictData
>
isControls
=
DictUtils
.
getDictCache
(
"control_status"
);
//
List<SysDictData> isControls = DictUtils.getDictCache("control_status");
List
<
SysDictData
>
isHomes
=
DictUtils
.
getDictCache
(
"home_status"
);
List
<
SysDictData
>
glPlaces
=
DictUtils
.
getDictCache
(
"isolation_status"
);
String
[]
isYz
=
isYzs
.
stream
().
map
(
SysDictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
//
List<SysDictData> glPlaces = DictUtils.getDictCache("isolation_status");
//
String[] isYz=isYzs.stream().map(SysDictData::getDictLabel).toArray(String[]::new);
String
[]
isYin
=
isYins
.
stream
().
map
(
SysDictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
String
[]
area
=
areas
.
stream
().
map
(
SysDictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
String
[]
street
=
streets
.
stream
().
map
(
SysDictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
String
[]
isControl
=
isControls
.
stream
().
map
(
SysDictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
//
String[] isControl=isControls.stream().map(SysDictData::getDictLabel).toArray(String[]::new);
String
[]
isHome
=
isHomes
.
stream
().
map
(
SysDictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
String
[]
glPlace
=
glPlaces
.
stream
().
map
(
SysDictData:
:
getDictLabel
).
toArray
(
String
[]::
new
);
ExcelUtil
.
setClassExcelAttribute
(
clazz
,
"isYz"
,
"combo"
,
isYz
);
//
String[] glPlace=glPlaces.stream().map(SysDictData::getDictLabel).toArray(String[]::new);
//
ExcelUtil.setClassExcelAttribute( clazz,"isYz","combo",isYz);
ExcelUtil
.
setClassExcelAttribute
(
clazz
,
"isYin"
,
"combo"
,
isYin
);
ExcelUtil
.
setClassExcelAttribute
(
clazz
,
"area"
,
"combo"
,
area
);
ExcelUtil
.
setClassExcelAttribute
(
clazz
,
"street"
,
"combo"
,
street
);
ExcelUtil
.
setClassExcelAttribute
(
clazz
,
"isControl"
,
"combo"
,
isControl
);
//
ExcelUtil.setClassExcelAttribute( clazz,"isControl","combo",isControl);
ExcelUtil
.
setClassExcelAttribute
(
clazz
,
"isHome"
,
"combo"
,
isHome
);
ExcelUtil
.
setClassExcelAttribute
(
clazz
,
"glPlace"
,
"combo"
,
glPlace
);
//
ExcelUtil.setClassExcelAttribute( clazz,"glPlace","combo",glPlace);
util
.
importTemplateExcel
(
response
,
"阳性人员"
);
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/Yxry.java
View file @
7609556a
...
...
@@ -26,7 +26,7 @@ public class Yxry extends BaseEntity
private
Date
sbDate
;
/** 流调人员 */
@Excel
(
name
=
"流调人员姓名"
)
//
@Excel(name = "流调人员姓名")
private
String
ldry
;
/** 姓名 */
...
...
@@ -34,11 +34,11 @@ public class Yxry extends BaseEntity
private
String
userName
;
/** 身份证号码 */
@Excel
(
name
=
"
患者
身份证号码"
,
cellType
=
Excel
.
ColumnType
.
STRING
)
@Excel
(
name
=
"身份证号码"
,
cellType
=
Excel
.
ColumnType
.
STRING
)
private
String
cardNo
;
/** 联系方式 */
@Excel
(
name
=
"
患者联系方式
"
)
@Excel
(
name
=
"
联系电话
"
)
private
String
phone
;
/** 联系方式 */
...
...
@@ -46,11 +46,11 @@ public class Yxry extends BaseEntity
private
String
userType
;
/** 联系方式 */
@Excel
(
name
=
"风险
来源
"
)
@Excel
(
name
=
"风险"
)
private
String
riskSource
;
/** 是否重症 */
@Excel
(
name
=
"是否重症"
,
dictType
=
"yz_status"
,
combo
=
""
)
//
@Excel(name = "是否重症", dictType = "yz_status",combo = "")
private
String
isYz
;
/** 是否转阴 */
...
...
@@ -86,13 +86,17 @@ public class Yxry extends BaseEntity
private
String
house
;
/** 是否已管控 */
@Excel
(
name
=
"是否已管控"
,
dictType
=
"control_status"
,
combo
=
""
)
//
@Excel(name = "是否已管控", dictType = "control_status",combo = "")
private
String
isControl
;
/** 是否符合居家隔离 */
@Excel
(
name
=
"是否符合居家隔离"
,
dictType
=
"home_status"
,
combo
=
""
)
private
String
isHome
;
/** 转运状态 */
@Excel
(
name
=
"转运状态"
)
private
String
hasAcid
;
/** 转运时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"转运时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
...
...
@@ -100,7 +104,7 @@ public class Yxry extends BaseEntity
/** 隔离位置 */
@Excel
(
name
=
"隔离位置"
,
dictType
=
"isolation_status"
,
combo
=
""
)
//
@Excel(name = "隔离位置", dictType = "isolation_status",combo = "")
private
String
glPlace
;
/** 备注 */
...
...
@@ -111,9 +115,6 @@ public class Yxry extends BaseEntity
// @Excel(name = "隔离状态")
private
String
isolationStatus
;
/** 转运状态 */
// @Excel(name = "转运状态")
private
String
hasAcid
;
/** 状态(0正常 1停用) */
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/YxryServiceImpl.java
View file @
7609556a
...
...
@@ -125,7 +125,7 @@ public class YxryServiceImpl implements IYxryService
for
(
Yxry
zlqk
:
list
)
{
if
(
StringUtils
.
isNotEmpty
(
zlqk
.
getCardNo
())
&&
StringUtils
.
isNotEmpty
(
zlqk
.
getUserName
())
&&
StringUtils
.
isNotEmpty
(
zlqk
.
getPhone
())
&&
StringUtils
.
isNotEmpty
(
zlqk
.
getIsYin
())
&&
StringUtils
.
isNotEmpty
(
zlqk
.
getGlPlace
())
){
&&
StringUtils
.
isNotEmpty
(
zlqk
.
getIsYin
())){
//校验身份证是否重复
List
<
Yxry
>
zlqks
=
yxryMapper
.
selectYxryByCard
(
zlqk
.
getCardNo
());
if
(!
zlqks
.
isEmpty
())
...
...
@@ -148,7 +148,7 @@ public class YxryServiceImpl implements IYxryService
}
}
else
if
(
StringUtils
.
isEmpty
(
zlqk
.
getCardNo
())
&&
StringUtils
.
isEmpty
(
zlqk
.
getUserName
())
&&
StringUtils
.
isEmpty
(
zlqk
.
getPhone
())
&&
StringUtils
.
isEmpty
(
zlqk
.
getIsYin
())
&&
StringUtils
.
isEmpty
(
zlqk
.
getGlPlace
())
)
{
&&
StringUtils
.
isEmpty
(
zlqk
.
getIsYin
())
)
{
continue
;
}
else
{
failureList
.
add
(
zlqk
);
...
...
ruoyi-ui/src/api/system/yxry.js
View file @
7609556a
...
...
@@ -9,6 +9,26 @@ export function listYxry(query) {
})
}
// 下载治疗情况导入模板
export
function
importTemplate
(
params
)
{
return
request
({
url
:
'/system/yxry/importTemplate'
,
method
:
'post'
,
responseType
:
'blob'
,
params
})
}
// 导入用户信息
export
function
importExcel
(
data
)
{
return
request
({
url
:
'/system/yxry/importData'
,
method
:
'post'
,
responseType
:
'blob'
,
data
})
}
// 查询阳性人员详细
export
function
getYxry
(
id
)
{
return
request
({
...
...
ruoyi-ui/src/views/system/yxry/index.vue
View file @
7609556a
...
...
@@ -435,9 +435,8 @@
<
/template
>
<
script
>
import
{
listYxry
,
getYxry
,
delYxry
,
addYxry
,
updateYxry
}
from
"@/api/system/yxry"
;
import
{
listYxry
,
getYxry
,
delYxry
,
addYxry
,
updateYxry
,
importTemplate
,
importExcel
}
from
"@/api/system/yxry"
;
import
{
getToken
}
from
'@/utils/auth'
import
{
importTemplate
,
importExcel
}
from
"@/api/system/zlqk"
;
export
default
{
name
:
"Yxry"
,
...
...
@@ -459,7 +458,7 @@ export default {
// 设置上传的请求头部
headers
:
{
Authorization
:
"Bearer "
+
getToken
()
}
,
// 上传的地址
url
:
process
.
env
.
VUE_APP_BASE_API
+
"/system/
zlqk
/importTemplate"
url
:
process
.
env
.
VUE_APP_BASE_API
+
"/system/
yxry
/importTemplate"
}
,
// 遮罩层
loading
:
true
,
...
...
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