Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-doc-expand
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-doc-expand
Commits
3f96fec0
Commit
3f96fec0
authored
Oct 18, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档类型创建即发布
parent
d4046a48
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
2 deletions
+55
-2
Constants.java
.../java/com/inet/dcs/document/core/constants/Constants.java
+34
-0
DocumentEvent.java
.../java/com/inet/dcs/document/core/event/DocumentEvent.java
+11
-0
ExtDxDocumentServiceImpl.java
...nt/core/service/impl/expand/ExtDxDocumentServiceImpl.java
+10
-2
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/constants/Constants.java
View file @
3f96fec0
...
@@ -2,6 +2,9 @@ package com.inet.dcs.document.core.constants;
...
@@ -2,6 +2,9 @@ package com.inet.dcs.document.core.constants;
import
com.inet.dcs.document.core.util.ResourceHelper
;
import
com.inet.dcs.document.core.util.ResourceHelper
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
/**
* @author xfchai
* @author xfchai
* @ClassName Constants.java
* @ClassName Constants.java
...
@@ -147,6 +150,10 @@ public class Constants {
...
@@ -147,6 +150,10 @@ public class Constants {
* 已发放
* 已发放
*/
*/
public
static
final
String
RELEASED
=
"released"
;
public
static
final
String
RELEASED
=
"released"
;
/**
* 已发放
*/
public
static
final
String
RELEASE
=
"release"
;
/**
/**
* 文档-图纸-已发布
* 文档-图纸-已发布
*/
*/
...
@@ -427,4 +434,31 @@ public class Constants {
...
@@ -427,4 +434,31 @@ public class Constants {
* app 内部名称
* app 内部名称
*/
*/
public
static
final
String
APPLICATION_DOC_INNER_NAME
=
"dcs-doc"
;
public
static
final
String
APPLICATION_DOC_INNER_NAME
=
"dcs-doc"
;
/**
* 部分文档类型无流程
*/
public
static
final
Map
<
String
,
String
>
DOCUMENT_TYPE_MAP
=
new
HashMap
<
String
,
String
>()
{{
put
(
"OutdatedDocNotify"
,
"过时文件通知"
);
put
(
"BidProcessReport"
,
"招标过程报告"
);
put
(
"CommentsDoc"
,
"招标文件评审意见"
);
put
(
"BiddingFile"
,
"招标文件"
);
put
(
"SingleSourceDoc"
,
"单一来源采购文件"
);
put
(
"NegotiationDoc"
,
"竞争性谈判文件"
);
put
(
"InquiryOrder"
,
"询价采购单"
);
put
(
"PrototypeFile"
,
"样机竞优文件"
);
put
(
"ComparisonDoc"
,
"比质比价文件"
);
put
(
"OtherResponseDoc"
,
"其他响应文件"
);
put
(
"BiddingDocument"
,
"投标文件"
);
put
(
"CompletReport"
,
"完工报告"
);
put
(
"WitnessRecord"
,
"见证记录"
);
put
(
"SupervisionRecord"
,
"监造记录"
);
put
(
"ContractAcceptMeeting"
,
"合同验收会议纪要"
);
put
(
"InstallAcceptRecord"
,
"安装调试验收记录"
);
put
(
"UnpackAcceptRecord"
,
"开箱验收记录"
);
put
(
"SourceAcceptMeeting"
,
"源地验收会议纪要"
);
put
(
"PreInspectMeeting"
,
"开工前检查会议纪要"
);
put
(
"PotSupplierQuestion"
,
"潜在供方调查表"
);
put
(
"EngineeOther"
,
"其他"
);
}};
}
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/event/DocumentEvent.java
View file @
3f96fec0
...
@@ -411,4 +411,15 @@ public class DocumentEvent {
...
@@ -411,4 +411,15 @@ public class DocumentEvent {
}
}
return
false
;
return
false
;
}
}
/**
* 创建即发布
* @param documentVO
*/
public
void
changeDocumentStatus
(
DxDocumentVO
documentVO
)
{
String
subTypeName
=
documentVO
.
getSubTypeName
();
if
(
Constants
.
DOCUMENT_TYPE_MAP
.
containsKey
(
subTypeName
))
{
documentService
.
changeStatus
(
documentVO
.
getId
(),
Constants
.
RELEASE
,
true
);
}
}
}
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/expand/ExtDxDocumentServiceImpl.java
View file @
3f96fec0
...
@@ -5,12 +5,12 @@ import cn.hutool.core.io.FileUtil;
...
@@ -5,12 +5,12 @@ import cn.hutool.core.io.FileUtil;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy
;
import
com.alibaba.excel.write.style.column.LongestMatchColumnWidthStyleStrategy
;
import
com.inet.dcs.document.common.vo.ExtAtlasDrawingLinkVO
;
import
com.inet.dcs.document.common.vo.ExtAtlasDrawingLinkVO
;
import
com.inet.dcs.document.core.constants.Constants
;
import
com.inet.dcs.document.core.event.DocumentEvent
;
import
com.inet.dcs.document.core.event.DocumentEvent
;
import
com.inet.dcs.document.core.excel.ExtCatalogExcelVO
;
import
com.inet.dcs.document.core.excel.ExtCatalogExcelVO
;
import
com.inet.dcs.document.core.service.ExtDxDocumentFolderService
;
import
com.inet.dcs.document.core.service.ExtDxDocumentFolderService
;
import
com.inet.dcs.document.core.service.expand.ExtDxDocumentService
;
import
com.inet.dcs.document.core.service.expand.ExtDxDocumentService
;
import
com.inet.dcs.document.core.util.*
;
import
com.inet.dcs.document.core.util.*
;
import
com.yonde.dcs.plan.common.constants.Constants
;
import
com.yonde.dex.basedata.data.search.SearchItem
;
import
com.yonde.dex.basedata.data.search.SearchItem
;
import
com.yonde.dex.basedata.data.search.SearchItems
;
import
com.yonde.dex.basedata.data.search.SearchItems
;
import
com.yonde.dex.basedata.data.search.SearchQueryBuilder
;
import
com.yonde.dex.basedata.data.search.SearchQueryBuilder
;
...
@@ -69,7 +69,15 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
...
@@ -69,7 +69,15 @@ public class ExtDxDocumentServiceImpl<V extends DxDocumentVO> extends DocumentSe
@Override
@Override
public
void
beforeUpdate
(
Collection
<
V
>
target
,
Collection
<
V
>
origin
)
{
public
void
beforeUpdate
(
Collection
<
V
>
target
,
Collection
<
V
>
origin
)
{
for
(
V
v
:
target
)
{
for
(
V
v
:
target
)
{
//documentEvent.updateDocListener(v);
documentEvent
.
updateDocListener
(
v
);
}
}
@Override
public
void
postSave
(
Collection
<
V
>
target
)
{
// 创建即发布
for
(
V
v
:
target
)
{
documentEvent
.
changeDocumentStatus
(
v
);
}
}
}
}
...
...
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