Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-plan
Project
Project
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
INET-TWO
server
dcs-plan
Commits
98579186
Commit
98579186
authored
Nov 14, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
季报自定义编码规则
parent
bac1ffea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
ExtQuarterlyReportServiceImpl.java
...plan/core/service/impl/ExtQuarterlyReportServiceImpl.java
+19
-11
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtQuarterlyReportServiceImpl.java
View file @
98579186
package
com
.
yonde
.
dcs
.
plan
.
core
.
service
.
impl
;
import
cn.hutool.core.util.ZipUtil
;
import
com.yonde.dcs.document.common.entity.vo.DxDocumentVO
;
import
com.yonde.dcs.plan.common.constants.Constants
;
import
com.yonde.dcs.plan.common.utils.FileUtils
;
import
com.yonde.dcs.plan.common.utils.ResourceHelper
;
import
com.yonde.dcs.plan.common.utils.SearchUtil
;
import
com.yonde.dcs.plan.common.vo.ExtActionItemVO
;
import
com.yonde.dcs.plan.common.vo.ExtQuarterlyReportVO
;
import
com.yonde.dcs.plan.core.encode.QuarterlyReportEncode
;
import
com.yonde.dcs.plan.core.repository.ExtQuarterlyReportRepository
;
import
com.yonde.dcs.plan.core.service.ExtActionItemService
;
import
com.yonde.dcs.plan.core.service.ExtQuarterlyReportService
;
...
...
@@ -16,15 +16,12 @@ import com.yonde.dex.basedata.data.search.SearchItem;
import
com.yonde.dex.basedata.data.search.SearchItems
;
import
com.yonde.dex.basedata.data.search.SearchQueryCondition
;
import
com.yonde.dex.basedata.entity.api.ApiResult
;
import
com.yonde.dex.basedata.entity.data.DxPageImpl
;
import
com.yonde.dex.basedata.entity.data.OperatorType
;
import
com.yonde.dex.basedata.entity.vo.IdVO
;
import
com.yonde.dex.basedata.exception.DxBusinessException
;
import
com.yonde.dex.basedata.users.UserHelper
;
import
com.yonde.dex.dao.service.DxDaoPluginExpander
;
import
com.yonde.dex.dfs.feign.FileManagerFeignService
;
import
com.yonde.dex.dfs.vo.ObjFileLinkVO
;
import
com.yonde.dex.dfs.vo.view.FileDownLoadInfoVO
;
import
com.yonde.dex.lcycle.plugin.common.entity.DxLifecycleManageBaseVOHolder
;
import
com.yonde.dex.wfc.feign.api.WfcProcessFeign
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -39,8 +36,8 @@ import java.io.IOException;
import
java.io.InputStream
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* @description: ExtQuarterlyReport-ServiceImpl
...
...
@@ -50,7 +47,7 @@ import java.util.stream.Collectors;
**/
@Slf4j
@Service
(
ExtQuarterlyReportServiceImpl
.
BEAN_NAME
)
public
class
ExtQuarterlyReportServiceImpl
<
V
extends
ExtQuarterlyReportVO
>
implements
ExtQuarterlyReportService
<
V
>
{
public
class
ExtQuarterlyReportServiceImpl
<
V
extends
ExtQuarterlyReportVO
>
implements
ExtQuarterlyReportService
<
V
>
,
DxDaoPluginExpander
<
V
>
{
public
static
final
String
BEAN_NAME
=
"extQuarterlyReportServiceImpl"
;
...
...
@@ -67,6 +64,8 @@ public class ExtQuarterlyReportServiceImpl<V extends ExtQuarterlyReportVO> imple
private
WfcProcessFeign
wfcProcessFeign
;
@Autowired
private
UserHelper
userHelper
;
@Autowired
private
QuarterlyReportEncode
quarterlyReportEncode
;
@Override
public
void
batchDownloadDoc
(
HttpServletResponse
response
,
Long
id
)
throws
IOException
{
...
...
@@ -154,11 +153,11 @@ public class ExtQuarterlyReportServiceImpl<V extends ExtQuarterlyReportVO> imple
@Override
public
ExtQuarterlyReportVO
changeState
(
Long
id
)
{
ExtQuarterlyReportVO
extQuarterlyReportVO
=
this
.
get
(
id
);
if
(!
ObjectUtils
.
isEmpty
(
extQuarterlyReportVO
))
{
wfcProcessFeign
.
startProcessByKey
(
"ExtQuarterlyReportWF"
,
extQuarterlyReportVO
);
if
(!
ObjectUtils
.
isEmpty
(
extQuarterlyReportVO
))
{
wfcProcessFeign
.
startProcessByKey
(
"ExtQuarterlyReportWF"
,
extQuarterlyReportVO
);
return
this
.
changeStatus
(
id
,
Constants
.
REVIEWING
,
true
);
}
else
{
throw
new
DxBusinessException
(
"-1"
,
"根据id:"
+
id
+
"查询出的对象是空"
);
}
else
{
throw
new
DxBusinessException
(
"-1"
,
"根据id:"
+
id
+
"查询出的对象是空"
);
}
}
...
...
@@ -190,6 +189,15 @@ public class ExtQuarterlyReportServiceImpl<V extends ExtQuarterlyReportVO> imple
});
}
}
@Override
public
void
beforeSave
(
Collection
<
V
>
target
)
{
for
(
V
v
:
target
){
//生成文件编码
String
fileNumber
=
quarterlyReportEncode
.
generateEncode
(
v
);
v
.
setFileNumber
(
fileNumber
);
}
}
}
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