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
8edf95ad
Commit
8edf95ad
authored
Jul 24, 2020
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/1003255' into 'master'
feat: [1003255] 立享权益社群板块加头图 See merge request rays/pcloud-book!845
parents
a1e0c3fd
798276e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
PcloudGroupActivityBizImpl.java
...cloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
+13
-7
PcloudGroupActivityDao.xml
...rc/main/resources/mapper/skill/PcloudGroupActivityDao.xml
+2
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/skill/biz/impl/PcloudGroupActivityBizImpl.java
View file @
8edf95ad
...
@@ -54,6 +54,7 @@ import com.pcloud.common.utils.NumberUtil;
...
@@ -54,6 +54,7 @@ import com.pcloud.common.utils.NumberUtil;
import
com.pcloud.common.utils.httpclient.UrlUtils
;
import
com.pcloud.common.utils.httpclient.UrlUtils
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.common.utils.string.StringUtilParent
;
import
com.pcloud.common.utils.string.StringUtilParent
;
import
com.pcloud.readercenter.common.enums.YesOrNoNumEnum
;
import
com.pcloud.usercenter.party.adviser.service.AdviserService
;
import
com.pcloud.usercenter.party.adviser.service.AdviserService
;
import
com.pcloud.usercenter.party.agent.service.AgentService
;
import
com.pcloud.usercenter.party.agent.service.AgentService
;
import
com.sdk.wxgroup.RobotProcessTypeEnum
;
import
com.sdk.wxgroup.RobotProcessTypeEnum
;
...
@@ -161,9 +162,11 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -161,9 +162,11 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
@Override
@Override
public
void
saveGroupActivity
(
SaveGroupActivityRequestVO
vo
)
{
public
void
saveGroupActivity
(
SaveGroupActivityRequestVO
vo
)
{
//校验编号是否重复
//校验编号是否重复
Integer
count
=
pcloudGroupActivityDao
.
getCountByNumber
(
vo
.
getNumber
());
if
(!
StringUtil
.
isEmpty
(
vo
.
getNumber
())){
if
(
count
>
0
){
Integer
count
=
pcloudGroupActivityDao
.
getCountByNumber
(
vo
.
getNumber
());
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误,编号已存在!"
);
if
(
count
>
0
){
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误,编号已存在!"
);
}
}
}
vo
.
checkParam
();
vo
.
checkParam
();
...
@@ -189,9 +192,11 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -189,9 +192,11 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
}
}
//校验编号是否重复
//校验编号是否重复
Integer
count
=
pcloudGroupActivityDao
.
getCountByNumber
(
vo
.
getNumber
());
if
(!
StringUtil
.
isEmpty
(
vo
.
getNumber
())){
if
(
count
>
0
&&
(!
vo
.
getNumber
().
equals
(
activity
.
getNumber
()))){
Integer
count
=
pcloudGroupActivityDao
.
getCountByNumber
(
vo
.
getNumber
());
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误,编号已存在!"
);
if
(
count
>
0
&&
(!
vo
.
getNumber
().
equals
(
activity
.
getNumber
()))){
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误,编号已存在!"
);
}
}
}
PcloudGroupActivity
entity
=
vo
.
getEntity
();
PcloudGroupActivity
entity
=
vo
.
getEntity
();
Date
now
=
new
Date
();
Date
now
=
new
Date
();
...
@@ -328,7 +333,8 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
...
@@ -328,7 +333,8 @@ public class PcloudGroupActivityBizImpl implements PcloudGroupActivityBiz {
if
(
MapUtils
.
isEmpty
(
regionMapMap
))
{
if
(
MapUtils
.
isEmpty
(
regionMapMap
))
{
return
;
return
;
}
}
recordList
.
stream
().
forEach
(
queryGroupActivityResponseVO
->
{
//过滤掉第三方社群
recordList
.
stream
().
filter
(
e
->
!
YesOrNoNumEnum
.
YES
.
getValue
().
equals
(
e
.
getGroupType
())).
forEach
(
queryGroupActivityResponseVO
->
{
RegionMap
regionMap
=
regionMapMap
.
get
(
queryGroupActivityResponseVO
.
getCityCode
());
RegionMap
regionMap
=
regionMapMap
.
get
(
queryGroupActivityResponseVO
.
getCityCode
());
if
(
null
!=
regionMap
)
{
if
(
null
!=
regionMap
)
{
queryGroupActivityResponseVO
.
setCityName
(
regionMap
.
getRegionName
());
queryGroupActivityResponseVO
.
setCityName
(
regionMap
.
getRegionName
());
...
...
pcloud-service-book/src/main/resources/mapper/skill/PcloudGroupActivityDao.xml
View file @
8edf95ad
...
@@ -149,6 +149,7 @@
...
@@ -149,6 +149,7 @@
</if>
</if>
<if
test=
"cityCode != null"
>
<if
test=
"cityCode != null"
>
and b.city_code = #{cityCode}
and b.city_code = #{cityCode}
and a.group_type != 1
</if>
</if>
order by a.id desc
order by a.id desc
</select>
</select>
...
@@ -595,6 +596,7 @@
...
@@ -595,6 +596,7 @@
WHERE
WHERE
a.is_delete = 0 AND a.is_show = 1
a.is_delete = 0 AND a.is_show = 1
and c.city_code = #{cityCode}
and c.city_code = #{cityCode}
and a.group_type != 1
GROUP BY a.id
GROUP BY a.id
ORDER BY a.id DESC
ORDER BY a.id DESC
</select>
</select>
...
...
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