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
d0ba92a6
Commit
d0ba92a6
authored
Oct 18, 2019
by
朱亚洁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音频时长精度
parent
49799711
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
AdvertisingSpaceBizImpl.java
...ud/book/advertising/biz/impl/AdvertisingSpaceBizImpl.java
+3
-4
AdvertisingDetailFile.java
...pcloud/book/advertising/entity/AdvertisingDetailFile.java
+4
-3
AdvertisingDetailFileMapper.xml
...ources/mapper/advertising/AdvertisingDetailFileMapper.xml
+2
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/advertising/biz/impl/AdvertisingSpaceBizImpl.java
View file @
d0ba92a6
...
@@ -294,7 +294,7 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
...
@@ -294,7 +294,7 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
Long
seconds
=
detailFile
.
getFilePilotSecond
();
Long
seconds
=
detailFile
.
getFilePilotSecond
();
String
title
=
detailFile
.
getTitle
();
String
title
=
detailFile
.
getTitle
();
//总时长
//总时长
Integer
duration
=
null
;
BigDecimal
duration
=
null
;
if
(!
StringUtil
.
isEmpty
(
fileId
))
{
if
(!
StringUtil
.
isEmpty
(
fileId
))
{
//获取转码路径
//获取转码路径
FileUploadInfo
fileUploadInfo
=
convertConsr
.
getByFileId
(
fileId
);
FileUploadInfo
fileUploadInfo
=
convertConsr
.
getByFileId
(
fileId
);
...
@@ -305,7 +305,7 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
...
@@ -305,7 +305,7 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
duration
=
fileUploadInfo
.
getDuration
();
duration
=
fileUploadInfo
.
getDuration
();
detailFile
.
setFileUrl
(
fileUrl
);
detailFile
.
setFileUrl
(
fileUrl
);
if
(
null
!=
duration
)
{
if
(
null
!=
duration
)
{
detailFile
.
setFileDuration
(
duration
.
longValue
()
);
detailFile
.
setFileDuration
(
duration
);
}
}
}
}
/* if (StringUtil.isEmpty(fileUrl) && !StringUtil.isEmpty(fileId)) {
/* if (StringUtil.isEmpty(fileUrl) && !StringUtil.isEmpty(fileId)) {
...
@@ -314,7 +314,7 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
...
@@ -314,7 +314,7 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
advertisingSpace.setAdDetailFileConvertState(0);
advertisingSpace.setAdDetailFileConvertState(0);
return advertisingSpace;
return advertisingSpace;
}*/
}*/
if
(
null
!=
duration
&&
null
!=
seconds
&&
seconds
>=
duration
)
{
if
(
null
!=
duration
&&
null
!=
seconds
&&
BigDecimal
.
valueOf
(
seconds
.
doubleValue
()).
compareTo
(
duration
)
>=
0
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"资源"
+
title
+
"时长"
+
duration
+
"s,试听/试看时长超过该时长,请重新设置"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"资源"
+
title
+
"时长"
+
duration
+
"s,试听/试看时长超过该时长,请重新设置"
);
}
}
if
(!
StringUtil
.
isEmpty
(
fileUrl
))
{
//剪切文件
if
(!
StringUtil
.
isEmpty
(
fileUrl
))
{
//剪切文件
...
@@ -655,7 +655,6 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
...
@@ -655,7 +655,6 @@ public class AdvertisingSpaceBizImpl implements AdvertisingSpaceBiz {
// 获取群信息
// 获取群信息
GroupQrcode
groupQrcode
=
groupQrcodeDao
.
getById
(
group
.
getQrcodeId
());
GroupQrcode
groupQrcode
=
groupQrcodeDao
.
getById
(
group
.
getQrcodeId
());
String
groupId
=
groupQrcode
.
getWeixinGroupId
();
String
groupId
=
groupQrcode
.
getWeixinGroupId
();
ClassifyDTO
classifyDTO
=
bookGroupClassifyDao
.
getById
(
group
.
getClassifyId
());
// 获取机器人微信号
// 获取机器人微信号
String
altId
=
wechatGroupConsr
.
getSendAdRobotByGroupId
(
groupId
);
String
altId
=
wechatGroupConsr
.
getSendAdRobotByGroupId
(
groupId
);
if
(
StringUtil
.
isEmpty
(
altId
))
{
if
(
StringUtil
.
isEmpty
(
altId
))
{
...
...
pcloud-service-book/src/main/java/com/pcloud/book/advertising/entity/AdvertisingDetailFile.java
View file @
d0ba92a6
...
@@ -3,6 +3,7 @@ package com.pcloud.book.advertising.entity;
...
@@ -3,6 +3,7 @@ package com.pcloud.book.advertising.entity;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.pcloud.common.entity.BaseEntity
;
import
com.pcloud.common.entity.BaseEntity
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -35,7 +36,7 @@ public class AdvertisingDetailFile extends BaseEntity{
...
@@ -35,7 +36,7 @@ public class AdvertisingDetailFile extends BaseEntity{
/**
/**
*文件时长
*文件时长
*/
*/
private
Long
fileDuration
;
private
BigDecimal
fileDuration
;
/**
/**
*文件路径
*文件路径
*/
*/
...
@@ -116,11 +117,11 @@ public class AdvertisingDetailFile extends BaseEntity{
...
@@ -116,11 +117,11 @@ public class AdvertisingDetailFile extends BaseEntity{
this
.
fileName
=
fileName
==
null
?
null
:
fileName
.
trim
();
this
.
fileName
=
fileName
==
null
?
null
:
fileName
.
trim
();
}
}
public
Long
getFileDuration
()
{
public
BigDecimal
getFileDuration
()
{
return
fileDuration
;
return
fileDuration
;
}
}
public
void
setFileDuration
(
Long
fileDuration
)
{
public
void
setFileDuration
(
BigDecimal
fileDuration
)
{
this
.
fileDuration
=
fileDuration
;
this
.
fileDuration
=
fileDuration
;
}
}
...
...
pcloud-service-book/src/main/resources/mapper/advertising/AdvertisingDetailFileMapper.xml
View file @
d0ba92a6
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<result
column=
"file_convert_state"
property=
"fileConvertState"
jdbcType=
"INTEGER"
/>
<result
column=
"file_convert_state"
property=
"fileConvertState"
jdbcType=
"INTEGER"
/>
<result
column=
"file_size"
property=
"fileSize"
jdbcType=
"BIGINT"
/>
<result
column=
"file_size"
property=
"fileSize"
jdbcType=
"BIGINT"
/>
<result
column=
"file_name"
property=
"fileName"
jdbcType=
"VARCHAR"
/>
<result
column=
"file_name"
property=
"fileName"
jdbcType=
"VARCHAR"
/>
<result
column=
"file_duration"
property=
"fileDuration"
jdbcType=
"
BIGINT
"
/>
<result
column=
"file_duration"
property=
"fileDuration"
jdbcType=
"
DECIMAL
"
/>
<result
column=
"file_url"
property=
"fileUrl"
jdbcType=
"VARCHAR"
/>
<result
column=
"file_url"
property=
"fileUrl"
jdbcType=
"VARCHAR"
/>
<result
column=
"file_pilot_second"
property=
"filePilotSecond"
jdbcType=
"BIGINT"
/>
<result
column=
"file_pilot_second"
property=
"filePilotSecond"
jdbcType=
"BIGINT"
/>
<result
column=
"file_pilot_url"
property=
"filePilotUrl"
jdbcType=
"VARCHAR"
/>
<result
column=
"file_pilot_url"
property=
"filePilotUrl"
jdbcType=
"VARCHAR"
/>
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
(
(
#{item.adId,jdbcType=BIGINT}, #{item.fileId,jdbcType=VARCHAR},
#{item.adId,jdbcType=BIGINT}, #{item.fileId,jdbcType=VARCHAR},
#{item.fileConvertState,jdbcType=INTEGER}, #{item.fileSize,jdbcType=BIGINT}, #{item.fileName,jdbcType=VARCHAR},
#{item.fileConvertState,jdbcType=INTEGER}, #{item.fileSize,jdbcType=BIGINT}, #{item.fileName,jdbcType=VARCHAR},
#{item.fileDuration,jdbcType=
BIGINT
}, #{item.fileUrl,jdbcType=VARCHAR}, #{item.filePilotSecond,jdbcType=BIGINT},
#{item.fileDuration,jdbcType=
DECIMAL
}, #{item.fileUrl,jdbcType=VARCHAR}, #{item.filePilotSecond,jdbcType=BIGINT},
#{item.filePilotUrl,jdbcType=VARCHAR}, #{item.filePilotFinishTip,jdbcType=VARCHAR}, #{item.title,jdbcType=VARCHAR},
#{item.filePilotUrl,jdbcType=VARCHAR}, #{item.filePilotFinishTip,jdbcType=VARCHAR}, #{item.title,jdbcType=VARCHAR},
#{item.coverPic,jdbcType=VARCHAR}, NOW(), #{item.cpaId}
#{item.coverPic,jdbcType=VARCHAR}, NOW(), #{item.cpaId}
)
)
...
...
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