Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
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
徐少华
midjourney-proxy
Commits
f7d69dbd
Commit
f7d69dbd
authored
Dec 02, 2021
by
郑勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : [1006126] 修改下载的多个选项回答只有一个
parent
2a5abfd9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
BmBizImpl.java
.../java/com/pcloud/book/advertising/biz/impl/BmBizImpl.java
+9
-4
AdvertisingBmRegisterItemMapper.xml
...es/mapper/advertising/AdvertisingBmRegisterItemMapper.xml
+0
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/advertising/biz/impl/BmBizImpl.java
View file @
f7d69dbd
...
@@ -59,6 +59,10 @@ import java.util.List;
...
@@ -59,6 +59,10 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Optional
;
import
java.util.Optional
;
import
java.util.UUID
;
import
java.util.UUID
;
import
java.util.stream.Collectors
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.StrUtil
;
/**
/**
* @描述:报名
* @描述:报名
...
@@ -535,16 +539,17 @@ public class BmBizImpl implements BmBiz {
...
@@ -535,16 +539,17 @@ public class BmBizImpl implements BmBiz {
for
(
int
m
=
0
;
m
<
optionList
.
size
();
m
++)
{
for
(
int
m
=
0
;
m
<
optionList
.
size
();
m
++)
{
AdvertisingBmOption
appOption
=
optionList
.
get
(
m
);
AdvertisingBmOption
appOption
=
optionList
.
get
(
m
);
Long
optionId
=
appOption
.
getId
();
Long
optionId
=
appOption
.
getId
();
String
optionValue
=
""
;
List
<
String
>
optionValues
=
new
ArrayList
<>()
;
for
(
BmRegisterItemDTO
dto
:
registerDto
.
getRegisterItemDTOS
())
{
for
(
BmRegisterItemDTO
dto
:
registerDto
.
getRegisterItemDTOS
())
{
if
(
optionId
.
equals
(
dto
.
getOptionId
()))
{
if
(
optionId
.
equals
(
dto
.
getOptionId
()))
{
optionValue
=
dto
.
getOptionValue
();
if
(
StrUtil
.
isNotBlank
(
dto
.
getOptionValue
())){
optionValue
=
StringUtil
.
isEmpty
(
optionValue
)
?
""
:
optionValue
;
optionValues
.
add
(
dto
.
getOptionValue
());
}
}
}
}
}
SXSSFCell
cellm
=
srow
.
createCell
(
m
+
3
);
SXSSFCell
cellm
=
srow
.
createCell
(
m
+
3
);
cellm
.
setCellStyle
(
dataStyle
);
cellm
.
setCellStyle
(
dataStyle
);
cellm
.
setCellValue
(
optionValue
);
cellm
.
setCellValue
(
CollUtil
.
isEmpty
(
optionValues
)
?
""
:
optionValues
.
stream
().
collect
(
Collectors
.
joining
(
","
))
);
}
}
}
}
}
}
...
...
pcloud-service-book/src/main/resources/mapper/advertising/AdvertisingBmRegisterItemMapper.xml
View file @
f7d69dbd
...
@@ -45,8 +45,6 @@
...
@@ -45,8 +45,6 @@
LEFT JOIN advertising_bm_option b ON a.option_id = b.ID
LEFT JOIN advertising_bm_option b ON a.option_id = b.ID
WHERE
WHERE
a.register_id = #{id}
a.register_id = #{id}
GROUP BY
a.option_id
ORDER BY
ORDER BY
b.seq ASC,
b.seq ASC,
b.id ASC
b.id ASC
...
...
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