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
8f306ac6
Commit
8f306ac6
authored
Nov 30, 2022
by
秦嘉
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
55d284bc
3d29a38d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
0 deletions
+26
-0
HscjController.java
.../java/com/ruoyi/web/controller/system/HscjController.java
+10
-0
HscjMapper.java
...tem/src/main/java/com/ruoyi/system/mapper/HscjMapper.java
+2
-0
IHscjService.java
.../src/main/java/com/ruoyi/system/service/IHscjService.java
+2
-0
HscjServiceImpl.java
...n/java/com/ruoyi/system/service/impl/HscjServiceImpl.java
+6
-0
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
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/HscjController.java
View file @
8f306ac6
...
@@ -157,4 +157,14 @@ public class HscjController extends BaseController
...
@@ -157,4 +157,14 @@ public class HscjController extends BaseController
{
{
return
toAjax
(
hscjService
.
deleteHscjByIds
(
ids
));
return
toAjax
(
hscjService
.
deleteHscjByIds
(
ids
));
}
}
/**
* 校验身份证号在采集时间内是否重复
*/
@GetMapping
(
"/checkCard"
)
public
AjaxResult
checkCard
(
Hscj
hscj
)
{
List
<
Hscj
>
list
=
hscjService
.
checkCard
(
hscj
);
return
AjaxResult
.
success
(
list
.
isEmpty
());
}
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/HscjMapper.java
View file @
8f306ac6
...
@@ -58,4 +58,6 @@ public interface HscjMapper
...
@@ -58,4 +58,6 @@ public interface HscjMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteHscjByIds
(
Long
[]
ids
);
public
int
deleteHscjByIds
(
Long
[]
ids
);
List
<
Hscj
>
checkCard
(
Hscj
hscj
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/IHscjService.java
View file @
8f306ac6
...
@@ -63,4 +63,6 @@ public interface IHscjService
...
@@ -63,4 +63,6 @@ public interface IHscjService
public
int
deleteHscjById
(
Long
id
);
public
int
deleteHscjById
(
Long
id
);
void
importList
(
List
<
Hscj
>
list
,
HttpServletResponse
response
);
void
importList
(
List
<
Hscj
>
list
,
HttpServletResponse
response
);
List
<
Hscj
>
checkCard
(
Hscj
hscj
);
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/HscjServiceImpl.java
View file @
8f306ac6
...
@@ -267,4 +267,10 @@ public class HscjServiceImpl implements IHscjService {
...
@@ -267,4 +267,10 @@ public class HscjServiceImpl implements IHscjService {
util
.
exportExcel
(
response
,
failureList
,
"核算采集错误数据"
);
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/YxryServiceImpl.java
View file @
8f306ac6
...
@@ -243,6 +243,7 @@ public class YxryServiceImpl implements IYxryService {
...
@@ -243,6 +243,7 @@ public class YxryServiceImpl implements IYxryService {
@Override
@Override
public
Map
selectByCard
(
String
card
)
{
public
Map
selectByCard
(
String
card
)
{
List
<
Yxry
>
zlqks
=
yxryMapper
.
selectYxryByCard
(
card
);
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
// 根据身份证号查询方舱人员信息
// 根据身份证号查询方舱人员信息
Fcry
fcry
=
new
Fcry
();
Fcry
fcry
=
new
Fcry
();
...
@@ -280,6 +281,7 @@ public class YxryServiceImpl implements IYxryService {
...
@@ -280,6 +281,7 @@ public class YxryServiceImpl implements IYxryService {
map
.
put
(
"fcName"
,
null
);
map
.
put
(
"fcName"
,
null
);
map
.
put
(
"glName"
,
gldryList
.
stream
().
map
(
Gldry:
:
getGlPlace
).
collect
(
Collectors
.
toList
()));
map
.
put
(
"glName"
,
gldryList
.
stream
().
map
(
Gldry:
:
getGlPlace
).
collect
(
Collectors
.
toList
()));
}
}
map
.
put
(
"card"
,
zlqks
.
isEmpty
());
return
map
;
return
map
;
}
}
}
}
ruoyi-system/src/main/resources/mapper/system/HscjMapper.xml
View file @
8f306ac6
...
@@ -114,6 +114,10 @@
...
@@ -114,6 +114,10 @@
<include
refid=
"selectHscjVo"
/>
<include
refid=
"selectHscjVo"
/>
where id = #{id}
where id = #{id}
</select>
</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
id=
"insertHscj"
parameterType=
"Hscj"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into hscj
insert into hscj
...
...
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