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
cb972db2
Commit
cb972db2
authored
May 11, 2022
by
zhangyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release' into feature/many
parents
1c726e96
8f351cc3
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
132 additions
and
31 deletions
+132
-31
BookDto.java
...-book/src/main/java/com/pcloud/book/book/dto/BookDto.java
+10
-0
BookAdviser.java
...rc/main/java/com/pcloud/book/book/entity/BookAdviser.java
+2
-0
BookAdviserBiz.java
...rc/main/java/com/pcloud/book/book/biz/BookAdviserBiz.java
+2
-0
BookAdviserBizImpl.java
...ava/com/pcloud/book/book/biz/impl/BookAdviserBizImpl.java
+12
-0
BookBizImpl.java
.../main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
+1
-0
BookFacade.java
...src/main/java/com/pcloud/book/book/facade/BookFacade.java
+2
-1
BookAdviserFacadeImpl.java
...m/pcloud/book/book/facade/impl/BookAdviserFacadeImpl.java
+9
-0
BookFacadeImpl.java
...java/com/pcloud/book/book/facade/impl/BookFacadeImpl.java
+3
-1
QrcodeSceneConsr.java
...va/com/pcloud/book/consumer/channel/QrcodeSceneConsr.java
+16
-0
ResourcePageBizImpl.java
...a/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
+25
-20
ResourcePageWxwork.java
...java/com/pcloud/book/group/entity/ResourcePageWxwork.java
+4
-1
WxworkPageCreateVO.java
...ain/java/com/pcloud/book/group/vo/WxworkPageCreateVO.java
+7
-0
WxworkPageVO.java
.../src/main/java/com/pcloud/book/group/vo/WxworkPageVO.java
+12
-0
Book.Mapper.xml
...rvice-book/src/main/resources/mapper/book/Book.Mapper.xml
+8
-3
BookAdviser.Mapper.xml
...ook/src/main/resources/mapper/book/BookAdviser.Mapper.xml
+14
-2
ResourcePageWxworkDao.xml
...src/main/resources/mapper/group/ResourcePageWxworkDao.xml
+5
-3
No files found.
pcloud-facade-book/src/main/java/com/pcloud/book/book/dto/BookDto.java
View file @
cb972db2
...
@@ -859,6 +859,8 @@ public class BookDto extends BaseDto {
...
@@ -859,6 +859,8 @@ public class BookDto extends BaseDto {
*/
*/
private
Integer
appointBook
;
private
Integer
appointBook
;
private
Integer
openRaysCode
;
public
Integer
getAppointBook
()
{
public
Integer
getAppointBook
()
{
return
appointBook
;
return
appointBook
;
}
}
...
@@ -2427,6 +2429,14 @@ public class BookDto extends BaseDto {
...
@@ -2427,6 +2429,14 @@ public class BookDto extends BaseDto {
this
.
erpNumbers
=
erpNumbers
;
this
.
erpNumbers
=
erpNumbers
;
}
}
public
Integer
getOpenRaysCode
()
{
return
openRaysCode
;
}
public
void
setOpenRaysCode
(
Integer
openRaysCode
)
{
this
.
openRaysCode
=
openRaysCode
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"BookDto{"
+
return
"BookDto{"
+
...
...
pcloud-facade-book/src/main/java/com/pcloud/book/book/entity/BookAdviser.java
View file @
cb972db2
...
@@ -118,4 +118,6 @@ public class BookAdviser extends BaseEntity {
...
@@ -118,4 +118,6 @@ public class BookAdviser extends BaseEntity {
* 上下册标签id
* 上下册标签id
*/
*/
private
Long
volLabelId
;
private
Long
volLabelId
;
private
Integer
openRaysCode
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/BookAdviserBiz.java
View file @
cb972db2
...
@@ -507,4 +507,6 @@ public interface BookAdviserBiz {
...
@@ -507,4 +507,6 @@ public interface BookAdviserBiz {
Map
<
Long
,
AdviserBookStatisDto
>
getAdviserBookStatis
(
AdviserBookStatisRequestDto
requestDto
);
Map
<
Long
,
AdviserBookStatisDto
>
getAdviserBookStatis
(
AdviserBookStatisRequestDto
requestDto
);
Integer
getBookIsOpenCatalog
(
Long
bookId
,
Long
channelId
,
Long
adviserId
);
Integer
getBookIsOpenCatalog
(
Long
bookId
,
Long
channelId
,
Long
adviserId
);
void
updateOpenRaysCode
(
BookAdviser
bookAdviser
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookAdviserBizImpl.java
View file @
cb972db2
...
@@ -3564,4 +3564,16 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
...
@@ -3564,4 +3564,16 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
Integer
isOpenCatalog
=
bookAdviserDao
.
getBookIsOpenCatalog
(
bookId
,
channelId
,
adviserId
);
Integer
isOpenCatalog
=
bookAdviserDao
.
getBookIsOpenCatalog
(
bookId
,
channelId
,
adviserId
);
return
null
==
isOpenCatalog
?
0
:
isOpenCatalog
;
return
null
==
isOpenCatalog
?
0
:
isOpenCatalog
;
}
}
@Override
public
void
updateOpenRaysCode
(
BookAdviser
bookAdviser
)
{
if
(
bookAdviser
==
null
||
bookAdviser
.
getBookAdviserId
()
==
null
)
{
throw
BizException
.
PARAM_DELETION
;
}
BookAdviser
model
=
new
BookAdviser
();
model
.
setBookAdviserId
(
bookAdviser
.
getBookAdviserId
());
model
.
setOpenRaysCode
(
bookAdviser
.
getOpenRaysCode
());
bookAdviserDao
.
update
(
model
);
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
View file @
cb972db2
...
@@ -1975,6 +1975,7 @@ public class BookBizImpl implements BookBiz {
...
@@ -1975,6 +1975,7 @@ public class BookBizImpl implements BookBiz {
bookAdviser
.
setPurLabelId
(
book
.
getPurLabelId
());
bookAdviser
.
setPurLabelId
(
book
.
getPurLabelId
());
bookAdviser
.
setVolLabelId
(
book
.
getVolLabelId
());
bookAdviser
.
setVolLabelId
(
book
.
getVolLabelId
());
bookAdviser
.
setIpAddress
(
book
.
getIpAddress
());
bookAdviser
.
setIpAddress
(
book
.
getIpAddress
());
bookAdviser
.
setOpenRaysCode
(
qrcodeSceneConsr
.
getByAgentId
(
book
.
getAgentId
()));
if
(
book
.
getIsBookGroup
()!=
null
&&
book
.
getIsBookGroup
()){
if
(
book
.
getIsBookGroup
()!=
null
&&
book
.
getIsBookGroup
()){
bookAdviser
.
setIsOpenRobotProcess
(
1
);
bookAdviser
.
setIsOpenRobotProcess
(
1
);
}
else
{
}
else
{
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/BookFacade.java
View file @
cb972db2
...
@@ -180,7 +180,8 @@ public interface BookFacade {
...
@@ -180,7 +180,8 @@ public interface BookFacade {
@RequestParam
(
value
=
"graLabelId"
,
required
=
false
)
Integer
graLabelId
,
@RequestParam
(
value
=
"graLabelId"
,
required
=
false
)
Integer
graLabelId
,
@RequestParam
(
value
=
"subLabelId"
,
required
=
false
)
Integer
subLabelId
,
@RequestParam
(
value
=
"subLabelId"
,
required
=
false
)
Integer
subLabelId
,
@RequestParam
(
value
=
"verLabelId"
,
required
=
false
)
Integer
verLabelId
,
@RequestParam
(
value
=
"verLabelId"
,
required
=
false
)
Integer
verLabelId
,
@RequestParam
(
value
=
"appointBook"
,
required
=
false
)
Integer
appointBook
)
@RequestParam
(
value
=
"appointBook"
,
required
=
false
)
Integer
appointBook
,
@RequestParam
(
value
=
"openRaysCode"
,
required
=
false
)
Integer
openRaysCode
)
throws
BizException
,
PermissionException
;
throws
BizException
,
PermissionException
;
@ApiOperation
(
value
=
"首页获取正在做的图书"
,
httpMethod
=
"GET"
)
@ApiOperation
(
value
=
"首页获取正在做的图书"
,
httpMethod
=
"GET"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/impl/BookAdviserFacadeImpl.java
View file @
cb972db2
...
@@ -597,4 +597,13 @@ public class BookAdviserFacadeImpl implements BookAdviserFacade {
...
@@ -597,4 +597,13 @@ public class BookAdviserFacadeImpl implements BookAdviserFacade {
return
new
ResponseDto
<>(
bookAdviserBiz
.
multiGetBookScanCount
(
param
));
return
new
ResponseDto
<>(
bookAdviserBiz
.
multiGetBookScanCount
(
param
));
}
}
/**
* 更新
*/
@PostMapping
(
"updateOpenRaysCode"
)
public
ResponseDto
<?>
updateOpenRaysCode
(
@RequestHeader
(
"token"
)
String
token
,
@RequestBody
BookAdviser
bookAdviser
)
throws
PermissionException
{
Long
adviserId
=
(
Long
)
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
bookAdviserBiz
.
updateOpenRaysCode
(
bookAdviser
);
return
new
ResponseDto
<>();
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/book/facade/impl/BookFacadeImpl.java
View file @
cb972db2
...
@@ -288,7 +288,8 @@ public class BookFacadeImpl implements BookFacade {
...
@@ -288,7 +288,8 @@ public class BookFacadeImpl implements BookFacade {
@RequestParam
(
value
=
"graLabelId"
,
required
=
false
)
Integer
graLabelId
,
@RequestParam
(
value
=
"graLabelId"
,
required
=
false
)
Integer
graLabelId
,
@RequestParam
(
value
=
"subLabelId"
,
required
=
false
)
Integer
subLabelId
,
@RequestParam
(
value
=
"subLabelId"
,
required
=
false
)
Integer
subLabelId
,
@RequestParam
(
value
=
"verLabelId"
,
required
=
false
)
Integer
verLabelId
,
@RequestParam
(
value
=
"verLabelId"
,
required
=
false
)
Integer
verLabelId
,
@RequestParam
(
value
=
"appointBook"
,
required
=
false
)
Integer
appointBook
)
@RequestParam
(
value
=
"appointBook"
,
required
=
false
)
Integer
appointBook
,
@RequestParam
(
value
=
"openRaysCode"
,
required
=
false
)
Integer
openRaysCode
)
throws
BizException
,
PermissionException
{
throws
BizException
,
PermissionException
{
Long
adviserId
=
(
Long
)
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
Long
adviserId
=
(
Long
)
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
if
(
currentPage
==
null
||
numPerPage
==
null
||
currentPage
<
0
||
numPerPage
<
0
)
{
if
(
currentPage
==
null
||
numPerPage
==
null
||
currentPage
<
0
||
numPerPage
<
0
)
{
...
@@ -332,6 +333,7 @@ public class BookFacadeImpl implements BookFacade {
...
@@ -332,6 +333,7 @@ public class BookFacadeImpl implements BookFacade {
paramMap
.
put
(
"graLabelId"
,
graLabelId
);
paramMap
.
put
(
"graLabelId"
,
graLabelId
);
paramMap
.
put
(
"subLabelId"
,
subLabelId
);
paramMap
.
put
(
"subLabelId"
,
subLabelId
);
paramMap
.
put
(
"verLabelId"
,
verLabelId
);
paramMap
.
put
(
"verLabelId"
,
verLabelId
);
paramMap
.
put
(
"openRaysCode"
,
openRaysCode
);
PageBean
pageBean
=
bookBiz
.
getListPage4Adviser
(
paramMap
,
new
PageParam
(
currentPage
,
numPerPage
),
adviserId
,
hasQrcode
,
appointBook
);
PageBean
pageBean
=
bookBiz
.
getListPage4Adviser
(
paramMap
,
new
PageParam
(
currentPage
,
numPerPage
),
adviserId
,
hasQrcode
,
appointBook
);
return
new
ResponseDto
<>(
pageBean
);
return
new
ResponseDto
<>(
pageBean
);
}
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/consumer/channel/QrcodeSceneConsr.java
View file @
cb972db2
...
@@ -19,6 +19,7 @@ import com.pcloud.channelcenter.qrcode.entity.QrcodeTemp;
...
@@ -19,6 +19,7 @@ import com.pcloud.channelcenter.qrcode.entity.QrcodeTemp;
import
com.pcloud.channelcenter.qrcode.service.QrcodeLocationAssocService
;
import
com.pcloud.channelcenter.qrcode.service.QrcodeLocationAssocService
;
import
com.pcloud.channelcenter.qrcode.service.QrcodeSceneService
;
import
com.pcloud.channelcenter.qrcode.service.QrcodeSceneService
;
import
com.pcloud.channelcenter.qrcode.service.QrcodeTempService
;
import
com.pcloud.channelcenter.qrcode.service.QrcodeTempService
;
import
com.pcloud.channelcenter.qrcode.service.RaysCodePermissionService
;
import
com.pcloud.channelcenter.qrcode.vo.BookAssocLastQrAskVO
;
import
com.pcloud.channelcenter.qrcode.vo.BookAssocLastQrAskVO
;
import
com.pcloud.channelcenter.qrcode.vo.BookAssocLastQrVO
;
import
com.pcloud.channelcenter.qrcode.vo.BookAssocLastQrVO
;
import
com.pcloud.channelcenter.qrcode.vo.BookAssocQRcountRequestVO
;
import
com.pcloud.channelcenter.qrcode.vo.BookAssocQRcountRequestVO
;
...
@@ -43,6 +44,7 @@ import com.pcloud.common.utils.ListUtils;
...
@@ -43,6 +44,7 @@ import com.pcloud.common.utils.ListUtils;
import
com.pcloud.common.utils.ResponseHandleUtil
;
import
com.pcloud.common.utils.ResponseHandleUtil
;
import
com.pcloud.channelcenter.wechat.entity.SpecialUser
;
import
com.pcloud.channelcenter.wechat.entity.SpecialUser
;
import
com.pcloud.readercenter.common.enums.YesOrNoNumEnum
;
import
org.apache.regexp.RE
;
import
org.apache.regexp.RE
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -81,6 +83,8 @@ public class QrcodeSceneConsr {
...
@@ -81,6 +83,8 @@ public class QrcodeSceneConsr {
private
QrcodeTempService
qrcodeTempService
;
private
QrcodeTempService
qrcodeTempService
;
@Autowired
@Autowired
private
BookQrCatalogService
bookQrCatalogService
;
private
BookQrCatalogService
bookQrCatalogService
;
@Autowired
private
RaysCodePermissionService
raysCodePermissionService
;
/**
/**
...
@@ -734,4 +738,16 @@ public class QrcodeSceneConsr {
...
@@ -734,4 +738,16 @@ public class QrcodeSceneConsr {
}
}
return
null
;
return
null
;
}
}
@ParamLog
(
description
=
"获取是否有权限创建"
)
public
Integer
getByAgentId
(
Long
agentId
)
throws
BizException
{
if
(
agentId
==
null
)
return
YesOrNoNumEnum
.
YES
.
getValue
();
try
{
return
ResponseHandleUtil
.
parseResponse
(
raysCodePermissionService
.
getByAgentId
(
agentId
),
Integer
.
class
);
}
catch
(
BizException
e
)
{
LOGGER
.
error
(
"【二维码-渠道(消)】 获取是否有权限创建失败,<ERROR>.[getByAgentId]:"
+
e
.
getMessage
(),
e
);
}
return
null
;
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
View file @
cb972db2
...
@@ -2,6 +2,7 @@ package com.pcloud.book.group.biz.impl;
...
@@ -2,6 +2,7 @@ package com.pcloud.book.group.biz.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.pcloud.advertising.advertising.dto.AdvertisingSpaceDTO
;
import
com.pcloud.advertising.advertising.dto.AdvertisingSpaceDTO
;
...
@@ -170,6 +171,7 @@ import com.pcloud.wechatgroup.wxwork.dto.WxworkGroupQrcodeBaseDTO;
...
@@ -170,6 +171,7 @@ import com.pcloud.wechatgroup.wxwork.dto.WxworkGroupQrcodeBaseDTO;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.lang3.BooleanUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.amqp.core.AmqpTemplate
;
import
org.springframework.amqp.core.AmqpTemplate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -3701,13 +3703,10 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -3701,13 +3703,10 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
ResourcePageWxwork
resourcePageWxwork
=
new
ResourcePageWxwork
();
ResourcePageWxwork
resourcePageWxwork
=
new
ResourcePageWxwork
();
BeanUtils
.
copyProperties
(
wxworkPageCreateVO
,
resourcePageWxwork
);
BeanUtils
.
copyProperties
(
wxworkPageCreateVO
,
resourcePageWxwork
);
//自定义存下高度
//自定义存下高度
// 新版直接存储自定义配置到 fixed_set 字段
if
(
ResourcePageConstants
.
WxworkPageTemplateTypeEnum
.
CUSTOM
.
getCode
().
equals
(
templateType
))
{
if
(
ResourcePageConstants
.
WxworkPageTemplateTypeEnum
.
CUSTOM
.
getCode
().
equals
(
templateType
))
{
WxworkPageFixedDTO
fixedDTO
=
new
WxworkPageFixedDTO
();
resourcePageWxwork
.
setFixedSet
(
JSON
.
toJSONString
(
wxworkPageCreateVO
.
getConfig
()));
fixedDTO
.
setHeight
(
wxworkPageCreateVO
.
getHeight
());
}
else
if
(
null
!=
wxworkPageCreateVO
.
getFixedDTO
())
{
//资源模板参数json存放
wxworkPageCreateVO
.
setFixedDTO
(
fixedDTO
);
}
//资源模板参数json存放
if
(
null
!=
wxworkPageCreateVO
.
getFixedDTO
())
{
resourcePageWxwork
.
setFixedSet
(
JSONUtils
.
toJsonString
(
wxworkPageCreateVO
.
getFixedDTO
()));
resourcePageWxwork
.
setFixedSet
(
JSONUtils
.
toJsonString
(
wxworkPageCreateVO
.
getFixedDTO
()));
}
}
ResourcePageWxwork
pageWxwork
=
resourcePageWxworkDao
.
getByPageId
(
resourcePageId
);
ResourcePageWxwork
pageWxwork
=
resourcePageWxworkDao
.
getByPageId
(
resourcePageId
);
...
@@ -3717,13 +3716,13 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -3717,13 +3716,13 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
}
else
{
}
else
{
resourcePageWxworkDao
.
insert
(
resourcePageWxwork
);
resourcePageWxworkDao
.
insert
(
resourcePageWxwork
);
}
}
if
(
ResourcePageConstants
.
WxworkPageTemplateTypeEnum
.
CUSTOM
.
getCode
().
equals
(
templateType
))
{
/*
if (ResourcePageConstants.WxworkPageTemplateTypeEnum.CUSTOM.getCode().equals(templateType)) {
//生成图片更新到数据库
//生成图片更新到数据库
HtmlDto htmlDto = new HtmlDto();
HtmlDto htmlDto = new HtmlDto();
htmlDto.setHeight(wxworkPageCreateVO.getHeight());
htmlDto.setHeight(wxworkPageCreateVO.getHeight());
htmlDto.setWidth(750);
htmlDto.setWidth(750);
htmlDto.setHtmlCode(wxworkPageCreateVO.getHtml());
htmlDto.setHtmlCode(wxworkPageCreateVO.getHtml());
htmlDto
.
setSnapshot
(
new
Long
(
System
.
currentTimeMillis
()).
toString
(
));
htmlDto.setSnapshot(
Long.toString(System.currentTimeMillis()
));
ThreadPoolUtils.RESOURCE_POOL.execute(()->{
ThreadPoolUtils.RESOURCE_POOL.execute(()->{
String url = shareImageConsr.toJPGByChrome(htmlDto);
String url = shareImageConsr.toJPGByChrome(htmlDto);
if (!StringUtil.isEmpty(url)) {
if (!StringUtil.isEmpty(url)) {
...
@@ -3731,7 +3730,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -3731,7 +3730,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
resourcePageWxworkDao.update(resourcePageWxwork);
resourcePageWxworkDao.update(resourcePageWxwork);
}
}
});
});
}
}
*/
}
}
...
@@ -3742,18 +3741,17 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -3742,18 +3741,17 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
if
(
null
==
wxworkPageCreateVO
.
getTemplateType
())
{
if
(
null
==
wxworkPageCreateVO
.
getTemplateType
())
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少模板类型"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少模板类型"
);
}
}
if
(
null
==
wxworkPageCreateVO
.
getQrcodeType
()
||
null
==
wxworkPageCreateVO
.
getQrcodeId
())
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"请选择二维码"
);
}
Integer
templateType
=
wxworkPageCreateVO
.
getTemplateType
();
Integer
templateType
=
wxworkPageCreateVO
.
getTemplateType
();
if
(!
Objects
.
equals
(
ResourcePageConstants
.
WxworkPageTemplateTypeEnum
.
CUSTOM
.
getCode
(),
templateType
)
&&
(
null
==
wxworkPageCreateVO
.
getQrcodeType
()
||
null
==
wxworkPageCreateVO
.
getQrcodeId
()))
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"请选择二维码"
);
}
if
(
ResourcePageConstants
.
WxworkPageTemplateTypeEnum
.
FIXED_NORMAL
.
getCode
().
equals
(
templateType
))
{
if
(
ResourcePageConstants
.
WxworkPageTemplateTypeEnum
.
FIXED_NORMAL
.
getCode
().
equals
(
templateType
))
{
if
(
null
==
wxworkPageCreateVO
.
getGuide
()||
null
==
wxworkPageCreateVO
.
getDisplayBook
())
{
if
(
null
==
wxworkPageCreateVO
.
getGuide
()||
null
==
wxworkPageCreateVO
.
getDisplayBook
())
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少参数"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少参数"
);
}
}
}
else
if
(
ResourcePageConstants
.
WxworkPageTemplateTypeEnum
.
CUSTOM
.
getCode
().
equals
(
templateType
))
{
}
else
if
(
ResourcePageConstants
.
WxworkPageTemplateTypeEnum
.
CUSTOM
.
getCode
().
equals
(
templateType
))
{
if
(
StringUtil
.
isEmpty
(
wxworkPageCreateVO
.
getBasePic
())
||
StringUtil
.
isEmpty
(
wxworkPageCreateVO
.
getHtml
())
if
(
CollectionUtil
.
isEmpty
(
wxworkPageCreateVO
.
getConfig
()))
{
||
null
==
wxworkPageCreateVO
.
getTopSpace
()
||
null
==
wxworkPageCreateVO
.
getLeftSpace
()
||
null
==
wxworkPageCreateVO
.
getHeight
())
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少参数"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_NULL
,
"缺少参数"
);
}
}
}
else
if
(
null
==
wxworkPageCreateVO
.
getFixedDTO
())
{
}
else
if
(
null
==
wxworkPageCreateVO
.
getFixedDTO
())
{
...
@@ -3770,12 +3768,19 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
...
@@ -3770,12 +3768,19 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
return
wxworkPageVO
;
return
wxworkPageVO
;
}
}
BeanUtils
.
copyProperties
(
pageWxwork
,
wxworkPageVO
);
BeanUtils
.
copyProperties
(
pageWxwork
,
wxworkPageVO
);
if
(!
StringUtil
.
isEmpty
(
pageWxwork
.
getFixedSet
()))
{
if
(!
StringUtil
.
isEmpty
(
pageWxwork
.
getFixedSet
()))
{
wxworkPageVO
.
setFixedDTO
(
JSONUtils
.
jsonToBean
(
pageWxwork
.
getFixedSet
(),
WxworkPageFixedDTO
.
class
));
if
(
ResourcePageConstants
.
WxworkPageTemplateTypeEnum
.
CUSTOM
.
getCode
().
equals
(
pageWxwork
.
getTemplateType
()))
{
}
if
(
BooleanUtils
.
isTrue
(
pageWxwork
.
getOldTemplate
()))
{
if
(
ResourcePageConstants
.
WxworkPageTemplateTypeEnum
.
CUSTOM
.
getCode
().
equals
(
pageWxwork
.
getTemplateType
()))
{
wxworkPageVO
.
setFixedDTO
(
JSONUtils
.
jsonToBean
(
pageWxwork
.
getFixedSet
(),
WxworkPageFixedDTO
.
class
));
wxworkPageVO
.
setHeight
(
wxworkPageVO
.
getFixedDTO
().
getHeight
());
wxworkPageVO
.
setHeight
(
wxworkPageVO
.
getFixedDTO
().
getHeight
());
}
else
{
wxworkPageVO
.
setConfig
(
JSON
.
parseObject
(
pageWxwork
.
getFixedSet
()));
}
}
else
{
wxworkPageVO
.
setFixedDTO
(
JSONUtils
.
jsonToBean
(
pageWxwork
.
getFixedSet
(),
WxworkPageFixedDTO
.
class
));
}
}
}
Integer
qrcodeType
=
pageWxwork
.
getQrcodeType
();
Integer
qrcodeType
=
pageWxwork
.
getQrcodeType
();
Long
qrcodeId
=
pageWxwork
.
getQrcodeId
();
Long
qrcodeId
=
pageWxwork
.
getQrcodeId
();
if
(!
isWechat
&&
null
!=
qrcodeId
)
{
if
(!
isWechat
&&
null
!=
qrcodeId
)
{
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/entity/ResourcePageWxwork.java
View file @
cb972db2
...
@@ -80,7 +80,10 @@ public class ResourcePageWxwork extends BaseEntity {
...
@@ -80,7 +80,10 @@ public class ResourcePageWxwork extends BaseEntity {
*/
*/
private
Date
updateTime
;
private
Date
updateTime
;
/**
* 是否旧模板 - 旧数据标识
*/
private
Boolean
oldTemplate
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/vo/WxworkPageCreateVO.java
View file @
cb972db2
...
@@ -4,6 +4,8 @@ import com.pcloud.book.group.dto.WxworkPageFixedDTO;
...
@@ -4,6 +4,8 @@ import com.pcloud.book.group.dto.WxworkPageFixedDTO;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Map
;
/**
/**
* @ClassName com.pcloud.book.group.vo.WxworkPageCreateVO
* @ClassName com.pcloud.book.group.vo.WxworkPageCreateVO
* @Author zhuyajie
* @Author zhuyajie
...
@@ -68,4 +70,9 @@ public class WxworkPageCreateVO {
...
@@ -68,4 +70,9 @@ public class WxworkPageCreateVO {
* 图片高度
* 图片高度
*/
*/
private
Integer
height
;
private
Integer
height
;
/**
* 存储落地页 - 自定义类型的前端配置
*/
private
Map
<
String
,
Object
>
config
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/vo/WxworkPageVO.java
View file @
cb972db2
...
@@ -5,6 +5,8 @@ import com.pcloud.common.dto.BaseDto;
...
@@ -5,6 +5,8 @@ import com.pcloud.common.dto.BaseDto;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.Map
;
/**
/**
* @ClassName com.pcloud.book.group.vo.WxworkPageVO
* @ClassName com.pcloud.book.group.vo.WxworkPageVO
* @Author zhuyajie
* @Author zhuyajie
...
@@ -73,4 +75,14 @@ public class WxworkPageVO extends BaseDto {
...
@@ -73,4 +75,14 @@ public class WxworkPageVO extends BaseDto {
* 图片高度
* 图片高度
*/
*/
private
Integer
height
;
private
Integer
height
;
/**
* 存储落地页 - 自定义类型的前端配置
*/
private
Map
<
String
,
Object
>
config
;
/**
* 是否旧模板 - 旧数据标识
*/
private
Boolean
oldTemplate
;
}
}
pcloud-service-book/src/main/resources/mapper/book/Book.Mapper.xml
View file @
cb972db2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<mapper
namespace=
"com.pcloud.book.book.dao.impl.BookDaoImpl"
>
<mapper
namespace=
"com.pcloud.book.book.dao.impl.BookDaoImpl"
>
<!-- 书籍实体DTO -->
<!-- 书籍实体DTO -->
<resultMap
id=
"bookMap"
type=
"
b
ookDto"
>
<resultMap
id=
"bookMap"
type=
"
com.pcloud.book.book.dto.B
ookDto"
>
<id
column=
"BOOK_ID"
property=
"bookId"
jdbcType=
"BIGINT"
/>
<id
column=
"BOOK_ID"
property=
"bookId"
jdbcType=
"BIGINT"
/>
<result
column=
"TYPE_CODE"
property=
"typeCode"
jdbcType=
"VARCHAR"
/>
<result
column=
"TYPE_CODE"
property=
"typeCode"
jdbcType=
"VARCHAR"
/>
<result
column=
"TYPE_NAME"
property=
"typeName"
jdbcType=
"VARCHAR"
/>
<result
column=
"TYPE_NAME"
property=
"typeName"
jdbcType=
"VARCHAR"
/>
...
@@ -78,6 +78,7 @@
...
@@ -78,6 +78,7 @@
<result
column=
"book_phone_auth"
property=
"bookPhoneAuth"
jdbcType=
"BIT"
/>
<result
column=
"book_phone_auth"
property=
"bookPhoneAuth"
jdbcType=
"BIT"
/>
<result
column=
"is_wechat_auth"
property=
"isWechatAuth"
jdbcType=
"BIT"
/>
<result
column=
"is_wechat_auth"
property=
"isWechatAuth"
jdbcType=
"BIT"
/>
<result
column=
"is_jump_book"
property=
"isJumpBook"
jdbcType=
"TINYINT"
/>
<result
column=
"is_jump_book"
property=
"isJumpBook"
jdbcType=
"TINYINT"
/>
<result
column=
"open_rays_code"
property=
"openRaysCode"
jdbcType=
"INTEGER"
/>
</resultMap>
</resultMap>
<resultMap
id=
"bookListPageMap"
type=
"bookDto"
extends =
"bookMap"
>
<resultMap
id=
"bookListPageMap"
type=
"bookDto"
extends =
"bookMap"
>
...
@@ -322,7 +323,7 @@
...
@@ -322,7 +323,7 @@
BA.GRA_LABEL_ID,BA.SUB_LABEL_ID,BA.VER_LABEL_ID,BA.AREA_LABEL_ID, BA.IS_PRINT isPrint, BA.is_relate,
BA.GRA_LABEL_ID,BA.SUB_LABEL_ID,BA.VER_LABEL_ID,BA.AREA_LABEL_ID, BA.IS_PRINT isPrint, BA.is_relate,
BA.pro_label_id, BA.dep_label_id,BA.pur_label_id,BA.vol_label_id,if(G.ID IS NULL, 0, 1) isBookGroup, G.id BOOK_GROUP_ID,G.join_group_type,
BA.pro_label_id, BA.dep_label_id,BA.pur_label_id,BA.vol_label_id,if(G.ID IS NULL, 0, 1) isBookGroup, G.id BOOK_GROUP_ID,G.join_group_type,
BA.is_open_robot_process,BA.vol_label_id,b.unique_number,BA.CREATED_DATE,b.edition,BA.is_send_mini_url,
BA.is_open_robot_process,BA.vol_label_id,b.unique_number,BA.CREATED_DATE,b.edition,BA.is_send_mini_url,
BA.is_open_catalog ,BA.is_approval, BA.book_phone_auth,BA.is_wechat_auth,BA.is_jump_book
BA.is_open_catalog ,BA.is_approval, BA.book_phone_auth,BA.is_wechat_auth,BA.is_jump_book
,BA.open_rays_code
FROM
FROM
BOOK_ADVISER BA
BOOK_ADVISER BA
INNER JOIN
INNER JOIN
...
@@ -660,6 +661,9 @@
...
@@ -660,6 +661,9 @@
<if
test=
"verLabelId != null"
>
<if
test=
"verLabelId != null"
>
AND A.ver_label_id = #{verLabelId}
AND A.ver_label_id = #{verLabelId}
</if>
</if>
<if
test=
"openRaysCode != null and openRaysCode == 1"
>
AND A.open_rays_code = 1
</if>
GROUP BY A.BOOK_ID, A.CHANNEL_ID
GROUP BY A.BOOK_ID, A.CHANNEL_ID
ORDER BY
ORDER BY
LAST_MODIFIED_DATE DESC
LAST_MODIFIED_DATE DESC
...
@@ -1517,9 +1521,10 @@
...
@@ -1517,9 +1521,10 @@
<!-- 书刊列表-出版端 -->
<!-- 书刊列表-出版端 -->
<select
id=
"listPage4Agent"
parameterType=
"map"
resultMap=
"bookMap"
>
<select
id=
"listPage4Agent"
parameterType=
"map"
resultMap=
"bookMap"
>
SELECT
SELECT
A.BOOK_ID, A.CHANNEL_ID, A.ADVISER_ID, A.IS_MAIN_EDITOR, T.TYPE_CODE, T.TYPE_NAME, B.ISBN, B.BOOK_NAME, B.REMARK,
A.BOOK_
ADVISER_ID, A.BOOK_
ID, A.CHANNEL_ID, A.ADVISER_ID, A.IS_MAIN_EDITOR, T.TYPE_CODE, T.TYPE_NAME, B.ISBN, B.BOOK_NAME, B.REMARK,
B.AUTHOR, B.PUBLISH, B.PUBLISH_DATE, B.COVER_IMG, B.ORIGIN_NAME, B.BOOK_PRICE, B.ISSN, B.BOOK_NUM, B.SERIAL_NUMBER,
B.AUTHOR, B.PUBLISH, B.PUBLISH_DATE, B.COVER_IMG, B.ORIGIN_NAME, B.BOOK_PRICE, B.ISSN, B.BOOK_NUM, B.SERIAL_NUMBER,
IF(ISNULL(BF.BOOK_FUND_ID),0,1) IS_FUND_SUPPORT, A.TEMPLET_ID, A.IS_PRINT isPrint, IF(ISNULL(s.id),0,1) minimumSupport,B.CREATED_DATE
IF(ISNULL(BF.BOOK_FUND_ID),0,1) IS_FUND_SUPPORT, A.TEMPLET_ID, A.IS_PRINT isPrint, IF(ISNULL(s.id),0,1) minimumSupport,B.CREATED_DATE
,A.open_rays_code
FROM
FROM
BOOK_ADVISER A
BOOK_ADVISER A
INNER JOIN
INNER JOIN
...
...
pcloud-service-book/src/main/resources/mapper/book/BookAdviser.Mapper.xml
View file @
cb972db2
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
INSERT INTO BOOK_ADVISER (
INSERT INTO BOOK_ADVISER (
BOOK_ID, ADVISER_ID, CHANNEL_ID, CREATED_USER, CREATED_DATE,IS_MAIN_EDITOR, TEMPLET_ID, SECOND_TEMPLET_ID,third_templet_id,
BOOK_ID, ADVISER_ID, CHANNEL_ID, CREATED_USER, CREATED_DATE,IS_MAIN_EDITOR, TEMPLET_ID, SECOND_TEMPLET_ID,third_templet_id,
GRA_LABEL_ID,SUB_LABEL_ID,VER_LABEL_ID,AREA_LABEL_ID,pro_label_id, dep_label_id,pur_label_id,is_open_robot_process,
GRA_LABEL_ID,SUB_LABEL_ID,VER_LABEL_ID,AREA_LABEL_ID,pro_label_id, dep_label_id,pur_label_id,is_open_robot_process,
vol_label_id,LAST_MODIFIED_DATE,ip_address
vol_label_id,LAST_MODIFIED_DATE,ip_address
,open_rays_code
)
)
VALUES (
VALUES (
#{bookId, jdbcType=VARCHAR}, #{adviserId, jdbcType=VARCHAR}, #{channelId, jdbcType=VARCHAR},
#{bookId, jdbcType=VARCHAR}, #{adviserId, jdbcType=VARCHAR}, #{channelId, jdbcType=VARCHAR},
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
#{secondTempletId, jdbcType=BIGINT},#{thirdTempletId},#{graLabelId, jdbcType=BIGINT},#{subLabelId, jdbcType=BIGINT},
#{secondTempletId, jdbcType=BIGINT},#{thirdTempletId},#{graLabelId, jdbcType=BIGINT},#{subLabelId, jdbcType=BIGINT},
#{verLabelId, jdbcType=BIGINT},#{areaLabelId, jdbcType=BIGINT},#{proLabelId,jdbcType=BIGINT},
#{verLabelId, jdbcType=BIGINT},#{areaLabelId, jdbcType=BIGINT},#{proLabelId,jdbcType=BIGINT},
#{depLabelId,jdbcType=BIGINT},#{purLabelId,jdbcType=BIGINT},#{isOpenRobotProcess,jdbcType=BIT},
#{depLabelId,jdbcType=BIGINT},#{purLabelId,jdbcType=BIGINT},#{isOpenRobotProcess,jdbcType=BIT},
#{volLabelId},now(),#{ipAddress}
#{volLabelId},now(),#{ipAddress}
,IFNULL(#{openRaysCode},1)
)
)
ON
ON
DUPLICATE KEY UPDATE IS_DELETE = 0,LAST_MODIFIED_DATE=now(), IS_MAIN_EDITOR = #{isMainEditor, jdbcType=BIT}
DUPLICATE KEY UPDATE IS_DELETE = 0,LAST_MODIFIED_DATE=now(), IS_MAIN_EDITOR = #{isMainEditor, jdbcType=BIT}
...
@@ -1420,4 +1420,16 @@
...
@@ -1420,4 +1420,16 @@
ADVISER_ID = #{adviserId}
ADVISER_ID = #{adviserId}
</select>
</select>
<!-- 更新 -->
<update
id=
"update"
parameterType=
"bookAdviser"
>
UPDATE book_adviser
SET
<if
test=
"openRaysCode != null"
>
open_rays_code = #{openRaysCode},
</if>
LAST_MODIFIED_DATE = NOW()
WHERE
book_adviser_id = #{bookAdviserId}
</update>
</mapper>
</mapper>
pcloud-service-book/src/main/resources/mapper/group/ResourcePageWxworkDao.xml
View file @
cb972db2
...
@@ -16,13 +16,14 @@
...
@@ -16,13 +16,14 @@
<result
property=
"leftSpace"
column=
"left_space"
jdbcType=
"INTEGER"
/>
<result
property=
"leftSpace"
column=
"left_space"
jdbcType=
"INTEGER"
/>
<result
property=
"htmlPic"
column=
"html_pic"
jdbcType=
"VARCHAR"
/>
<result
property=
"htmlPic"
column=
"html_pic"
jdbcType=
"VARCHAR"
/>
<result
property=
"fixedSet"
column=
"fixed_set"
jdbcType=
"VARCHAR"
/>
<result
property=
"fixedSet"
column=
"fixed_set"
jdbcType=
"VARCHAR"
/>
<result
property=
"oldTemplate"
column=
"is_old_template"
jdbcType=
"VARCHAR"
/>
<result
property=
"createUser"
column=
"create_user"
jdbcType=
"INTEGER"
/>
<result
property=
"createUser"
column=
"create_user"
jdbcType=
"INTEGER"
/>
<result
property=
"createTime"
column=
"create_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"createTime"
column=
"create_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"updateTime"
column=
"update_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"updateTime"
column=
"update_time"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_columns"
>
<sql
id=
"Base_columns"
>
id, resource_page_id, template_type, display_book, guide, qrcode_type, qrcode_id, qrcode_url, base_pic, top_space, left_space, html_pic, fixed_set, create_user, create_time, update_time
id, resource_page_id, template_type, display_book, guide, qrcode_type, qrcode_id, qrcode_url, base_pic, top_space, left_space, html_pic, fixed_set,
is_old_template,
create_user, create_time, update_time
</sql>
</sql>
<!--查询单个-->
<!--查询单个-->
...
@@ -35,8 +36,8 @@
...
@@ -35,8 +36,8 @@
<!--新增所有列-->
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into resource_page_wxwork(resource_page_id, template_type, display_book, guide, qrcode_type, qrcode_id, qrcode_url, base_pic, top_space, left_space, html_pic, fixed_set, create_user, create_time, update_time)
insert into resource_page_wxwork(resource_page_id, template_type, display_book, guide, qrcode_type, qrcode_id, qrcode_url, base_pic, top_space, left_space, html_pic, fixed_set,
is_old_template,
create_user, create_time, update_time)
values (#{resourcePageId}, #{templateType}, #{displayBook}, #{guide}, #{qrcodeType}, #{qrcodeId}, #{qrcodeUrl}, #{basePic}, #{topSpace}, #{leftSpace}, #{htmlPic}, #{fixedSet}, #{createUser}, now(), now())
values (#{resourcePageId}, #{templateType}, #{displayBook}, #{guide}, #{qrcodeType}, #{qrcodeId}, #{qrcodeUrl}, #{basePic}, #{topSpace}, #{leftSpace}, #{htmlPic}, #{fixedSet},
0,
#{createUser}, now(), now())
</insert>
</insert>
<!--通过主键修改数据-->
<!--通过主键修改数据-->
...
@@ -59,6 +60,7 @@
...
@@ -59,6 +60,7 @@
<if
test=
"qrcodeUrl != null and qrcodeUrl != ''"
>
<if
test=
"qrcodeUrl != null and qrcodeUrl != ''"
>
qrcode_url = #{qrcodeUrl},
qrcode_url = #{qrcodeUrl},
</if>
</if>
is_old_template = 0,
base_pic = #{basePic},
base_pic = #{basePic},
top_space = #{topSpace},
top_space = #{topSpace},
left_space = #{leftSpace},
left_space = #{leftSpace},
...
...
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