Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c7dc8010
authored
Feb 17, 2023
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人社局测试
1 parent
b06c404d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
src/main/java/com/subsidy/service/impl/RenSheJuServiceImpl.java
src/main/resources/mapper/RenSheJuMapper.xml
src/main/java/com/subsidy/service/impl/RenSheJuServiceImpl.java
View file @
c7dc801
...
...
@@ -41,6 +41,9 @@ public class RenSheJuServiceImpl implements RenSheJuService {
@Autowired
RenshejuHistoryMapper
renshejuHistoryMapper
;
@Autowired
private
ImageCheckRecordMapper
imageCheckRecordMapper
;
public
RensheResponseVO
classBaseInfo
()
throws
IOException
{
OkHttpClient
client
=
new
OkHttpClient
().
newBuilder
()
...
...
@@ -449,12 +452,26 @@ public class RenSheJuServiceImpl implements RenSheJuService {
if
(
classImageChecksVOS2
.
size
()
>
0
)
{
for
(
ClassImageChecksVO
cicon
:
classImageChecksVOS2
)
{
int
count
=
imageCheckRecordMapper
.
selectCount
(
new
QueryWrapper
<
ImageCheckRecordDO
>()
.
lambda
()
.
eq
(
ImageCheckRecordDO:
:
getResult
,
1
)
.
isNull
(
ImageCheckRecordDO:
:
getPaperId
)
.
eq
(
ImageCheckRecordDO:
:
getMemberId
,
cicon
.
getMemberId
())
.
eq
(
ImageCheckRecordDO:
:
getClassId
,
cicon
.
getClassId
()));
ImageDetailList
imageDetailList
=
new
ImageDetailList
();
BeanUtils
.
copyProperties
(
cicon
,
imageDetailList
);
imageDetailList
.
setImageBase64
(
"data:image/jpeg;base64,"
+
OSSUtils
.
image2Base64
(
cicon
.
getImage
()));
if
(
count
==
1
)
{
imageDetailList
.
setProcessType
(
0L
);
imageDetailList
.
setDetectionType
(
0L
);
imageDetailLists
.
add
(
imageDetailList
);
}
else
if
(
count
==
2
)
{
imageDetailList
.
setProcessType
(
1L
);
imageDetailList
.
setDetectionType
(
1L
);
imageDetailLists
.
add
(
imageDetailList
);
}
imageDetailLists
.
add
(
imageDetailList
);
}
uploadImage
.
setImageDetailList
(
imageDetailLists
);
...
...
src/main/resources/mapper/RenSheJuMapper.xml
View file @
c7dc801
...
...
@@ -409,7 +409,7 @@
t2.user_name AS studentName,
t2.id_card AS identity,
t2.telephone AS phone,
UNIX_TIMESTAMP( t1.
cre
ate_date )* 1000 AS activityTime
UNIX_TIMESTAMP( t1.
upd
ate_date )* 1000 AS activityTime
FROM
image_check_record t1
LEFT JOIN member t2 ON t1.member_id = t2.id
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment