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
6f3c8573
Commit
6f3c8573
authored
Nov 30, 2022
by
zhuangxinwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into master
parents
ed6bbe48
96922d91
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
50 additions
and
3 deletions
+50
-3
HscjController.java
.../java/com/ruoyi/web/controller/system/HscjController.java
+10
-0
YcsbController.java
.../java/com/ruoyi/web/controller/system/YcsbController.java
+11
-0
HscjMapper.java
...tem/src/main/java/com/ruoyi/system/mapper/HscjMapper.java
+2
-0
YcsbMapper.java
...tem/src/main/java/com/ruoyi/system/mapper/YcsbMapper.java
+1
-0
IHscjService.java
.../src/main/java/com/ruoyi/system/service/IHscjService.java
+2
-0
IYcsbService.java
.../src/main/java/com/ruoyi/system/service/IYcsbService.java
+2
-0
HscjServiceImpl.java
...n/java/com/ruoyi/system/service/impl/HscjServiceImpl.java
+6
-0
YcsbServiceImpl.java
...n/java/com/ruoyi/system/service/impl/YcsbServiceImpl.java
+8
-1
YxryServiceImpl.java
...n/java/com/ruoyi/system/service/impl/YxryServiceImpl.java
+2
-0
HscjMapper.xml
ruoyi-system/src/main/resources/mapper/system/HscjMapper.xml
+4
-0
index.vue
ruoyi-ui/src/views/system/gldry/index.vue
+2
-2
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/HscjController.java
View file @
6f3c8573
...
...
@@ -157,4 +157,14 @@ public class HscjController extends BaseController
{
return
toAjax
(
hscjService
.
deleteHscjByIds
(
ids
));
}
/**
* 校验身份证号在采集时间内是否重复
*/
@GetMapping
(
"/checkCard"
)
public
AjaxResult
checkCard
(
Hscj
hscj
)
{
List
<
Hscj
>
list
=
hscjService
.
checkCard
(
hscj
);
return
AjaxResult
.
success
(
list
.
isEmpty
());
}
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/YcsbController.java
View file @
6f3c8573
...
...
@@ -8,6 +8,7 @@ import com.ruoyi.common.core.domain.entity.SysDictData;
import
com.ruoyi.common.utils.DictUtils
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.system.domain.Fkqk
;
import
com.ruoyi.system.domain.Hscj
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -153,4 +154,14 @@ public class YcsbController extends BaseController
List
<
Ycsb
>
list
=
util
.
importExcel
(
file
.
getInputStream
());
ycsbService
.
importList
(
list
,
response
);
}
/**
* 校验身份证号是否重复
*/
@GetMapping
(
"/checkCard"
)
public
AjaxResult
checkCard
(
Ycsb
ycsb
)
{
List
<
Ycsb
>
list
=
ycsbService
.
checkCard
(
ycsb
);
return
AjaxResult
.
success
(
list
.
isEmpty
());
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/HscjMapper.java
View file @
6f3c8573
...
...
@@ -58,4 +58,6 @@ public interface HscjMapper
* @return 结果
*/
public
int
deleteHscjByIds
(
Long
[]
ids
);
List
<
Hscj
>
checkCard
(
Hscj
hscj
);
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/YcsbMapper.java
View file @
6f3c8573
...
...
@@ -65,4 +65,5 @@ public interface YcsbMapper
* @return
*/
List
<
Ycsb
>
selectYcsbByCard
(
String
cardNo
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/IHscjService.java
View file @
6f3c8573
...
...
@@ -63,4 +63,6 @@ public interface IHscjService
public
int
deleteHscjById
(
Long
id
);
void
importList
(
List
<
Hscj
>
list
,
HttpServletResponse
response
);
List
<
Hscj
>
checkCard
(
Hscj
hscj
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/IYcsbService.java
View file @
6f3c8573
...
...
@@ -67,4 +67,6 @@ public interface IYcsbService
* @param response
*/
void
importList
(
List
<
Ycsb
>
list
,
HttpServletResponse
response
);
List
<
Ycsb
>
checkCard
(
Ycsb
ycsb
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/HscjServiceImpl.java
View file @
6f3c8573
...
...
@@ -267,4 +267,10 @@ public class HscjServiceImpl implements IHscjService {
util
.
exportExcel
(
response
,
failureList
,
"核算采集错误数据"
);
}
}
@Override
public
List
<
Hscj
>
checkCard
(
Hscj
hscj
)
{
return
hscjMapper
.
checkCard
(
hscj
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/YcsbServiceImpl.java
View file @
6f3c8573
...
...
@@ -176,7 +176,7 @@ public class YcsbServiceImpl implements IYcsbService
}
if
(
StringUtils
.
isNotEmpty
(
ycsb
.
getCommunity
()))
{
List
<
SysDictData
>
communties
=
DictUtils
.
getDictCache
(
"community"
);
List
<
String
>
values
=
this
.
checkParam
(
communties
,
ycsb
.
getComm
ittee
());
List
<
String
>
values
=
this
.
checkParam
(
communties
,
ycsb
.
getComm
unity
());
if
(
values
.
isEmpty
())
{
failureList
.
add
(
ycsb
);
continue
;
...
...
@@ -212,6 +212,7 @@ public class YcsbServiceImpl implements IYcsbService
ycsb
.
setCreateTime
(
DateUtils
.
getNowDate
());
if
(
ycsbList
.
size
()
>
0
)
{
ycsbMapper
.
updateYcsb
(
ycsb
);
continue
;
}
ycsbMapper
.
insertYcsb
(
ycsb
);
}
...
...
@@ -226,4 +227,10 @@ public class YcsbServiceImpl implements IYcsbService
return
dicList
.
stream
().
filter
(
i
->
str
.
equals
(
i
.
getDictLabel
()))
.
map
(
SysDictData:
:
getDictValue
).
collect
(
Collectors
.
toList
());
}
@Override
public
List
<
Ycsb
>
checkCard
(
Ycsb
ycsb
)
{
return
ycsbMapper
.
selectYcsbByCard
(
ycsb
.
getCardNo
());
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/YxryServiceImpl.java
View file @
6f3c8573
...
...
@@ -243,6 +243,7 @@ public class YxryServiceImpl implements IYxryService {
@Override
public
Map
selectByCard
(
String
card
)
{
List
<
Yxry
>
zlqks
=
yxryMapper
.
selectYxryByCard
(
card
);
Map
map
=
new
HashMap
();
// 根据身份证号查询方舱人员信息
Fcry
fcry
=
new
Fcry
();
...
...
@@ -280,6 +281,7 @@ public class YxryServiceImpl implements IYxryService {
map
.
put
(
"fcName"
,
null
);
map
.
put
(
"glName"
,
gldryList
.
stream
().
map
(
Gldry:
:
getGlPlace
).
collect
(
Collectors
.
toList
()));
}
map
.
put
(
"card"
,
zlqks
.
isEmpty
());
return
map
;
}
}
ruoyi-system/src/main/resources/mapper/system/HscjMapper.xml
View file @
6f3c8573
...
...
@@ -114,6 +114,10 @@
<include
refid=
"selectHscjVo"
/>
where id = #{id}
</select>
<select
id=
"checkCard"
resultType=
"com.ruoyi.system.domain.Hscj"
parameterType=
"com.ruoyi.system.domain.Hscj"
>
select id from hscj where del_flag ='0' and card_no=#{cardNo} and date_format(cj_time,'%y%m%d') = date_format(#{cjTime},'%y%m%d')
</select>
<insert
id=
"insertHscj"
parameterType=
"Hscj"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into hscj
...
...
ruoyi-ui/src/views/system/gldry/index.vue
View file @
6f3c8573
...
...
@@ -316,8 +316,8 @@
<el-col
:span=
"12"
>
<el-form-item
label=
"是否阳性"
prop=
"isYx"
>
<el-select
v-model=
"form.isYx"
placeholder=
"请选择是否阳性"
style=
"width: 100%"
>
<el-option
value=
"
是
"
label=
"阳"
></el-option>
<el-option
value=
"
否
"
label=
"未阳"
></el-option>
<el-option
value=
"
0
"
label=
"阳"
></el-option>
<el-option
value=
"
1
"
label=
"未阳"
></el-option>
</el-select>
</el-form-item>
</el-col>
...
...
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