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
541742fb
Commit
541742fb
authored
Nov 05, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据项目群代码,查询所有案卷
parent
5e1e1eb1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
5 deletions
+54
-5
ExtFilesController.java
...inet/dcs/document/core/controller/ExtFilesController.java
+9
-0
ExtTransferDocumentController.java
...cument/core/controller/ExtTransferDocumentController.java
+12
-5
ExtFilesService.java
...a/com/inet/dcs/document/core/service/ExtFilesService.java
+8
-0
ExtTransferDocumentService.java
...dcs/document/core/service/ExtTransferDocumentService.java
+2
-0
ExtFilesServiceImpl.java
...t/dcs/document/core/service/impl/ExtFilesServiceImpl.java
+18
-0
ExtTransferDocumentServiceImpl.java
...ent/core/service/impl/ExtTransferDocumentServiceImpl.java
+5
-0
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/controller/ExtFilesController.java
View file @
541742fb
...
@@ -27,6 +27,15 @@ import org.springframework.stereotype.Controller;
...
@@ -27,6 +27,15 @@ import org.springframework.stereotype.Controller;
@Controller
(
ExtFilesController
.
BEAN_NAME
)
@Controller
(
ExtFilesController
.
BEAN_NAME
)
public
class
ExtFilesController
<
V
extends
ExtFilesVO
,
S
extends
ExtFilesService
<
V
>>
extends
ExtFilesControllerShadow
<
V
,
S
>
{
public
class
ExtFilesController
<
V
extends
ExtFilesVO
,
S
extends
ExtFilesService
<
V
>>
extends
ExtFilesControllerShadow
<
V
,
S
>
{
@Autowired
private
ExtFilesService
extFilesService
;
@ApiOperation
(
value
=
"获取项目群"
,
notes
=
"移交单下文件清单退档"
)
@GetMapping
(
value
=
"/getExtFilesByProjectCode"
)
public
ApiResult
getExtFilesByProjectCode
(
@RequestParam
(
"projectCode"
)
Long
projectCode
)
{
List
<
ExtFilesVO
>
extFilesVOList
=
extFilesService
.
getExtFilesByProjectCode
(
projectCode
);
return
ApiResult
.
ok
(
extFilesVOList
);
}
}
}
...
...
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/controller/ExtTransferDocumentController.java
View file @
541742fb
...
@@ -23,7 +23,6 @@ import org.springframework.web.bind.annotation.*;
...
@@ -23,7 +23,6 @@ import org.springframework.web.bind.annotation.*;
@Controller
(
ExtTransferDocumentController
.
BEAN_NAME
)
@Controller
(
ExtTransferDocumentController
.
BEAN_NAME
)
public
class
ExtTransferDocumentController
<
V
extends
ExtTransferDocumentVO
,
S
extends
ExtTransferDocumentService
<
V
>>
extends
ExtTransferDocumentControllerShadow
<
V
,
S
>
{
public
class
ExtTransferDocumentController
<
V
extends
ExtTransferDocumentVO
,
S
extends
ExtTransferDocumentService
<
V
>>
extends
ExtTransferDocumentControllerShadow
<
V
,
S
>
{
@Autowired
@Autowired
private
ExtTransferDocumentService
extTransferDocumentService
;
private
ExtTransferDocumentService
extTransferDocumentService
;
...
@@ -33,24 +32,32 @@ public class ExtTransferDocumentController<V extends ExtTransferDocumentVO, S ex
...
@@ -33,24 +32,32 @@ public class ExtTransferDocumentController<V extends ExtTransferDocumentVO, S ex
return
ApiResult
.
ok
(
extTransferDocumentService
.
startWorkflow
(
id
),
"流程启动成功"
);
return
ApiResult
.
ok
(
extTransferDocumentService
.
startWorkflow
(
id
),
"流程启动成功"
);
}
}
@ApiOperation
(
value
=
"更新案卷部分字段信息"
,
notes
=
"更新案卷部分字段信息"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"更新案卷部分字段信息"
,
notes
=
"更新案卷部分字段信息"
)
@PostMapping
(
value
=
"/updateExtFiles"
)
@PostMapping
(
value
=
"/updateExtFiles"
)
public
ApiResult
updateExtFiles
(
@RequestBody
ExtTransferDocumentVO
extTransferDocumentVO
)
{
public
ApiResult
updateExtFiles
(
@RequestBody
ExtTransferDocumentVO
extTransferDocumentVO
)
{
extTransferDocumentService
.
updateExtFiles
(
extTransferDocumentVO
);
extTransferDocumentService
.
updateExtFiles
(
extTransferDocumentVO
);
return
ApiResult
.
ok
(
ApiResult
.
SUCCESS
,
"更新案卷部分信息成功"
);
return
ApiResult
.
ok
(
ApiResult
.
SUCCESS
,
"更新案卷部分信息成功"
);
}
}
@ApiOperation
(
value
=
"获取项目信息"
,
notes
=
"获取项目信息"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"获取项目信息"
,
notes
=
"获取项目信息"
)
@GetMapping
(
value
=
"/getTransferDocProject"
)
@GetMapping
(
value
=
"/getTransferDocProject"
)
public
ApiResult
getTransferDocProjectById
(
@RequestParam
(
"id"
)
Long
id
)
{
public
ApiResult
getTransferDocProjectById
(
@RequestParam
(
"id"
)
Long
id
)
{
return
ApiResult
.
ok
(
extTransferDocumentService
.
getTransferDocProjectById
(
id
));
return
ApiResult
.
ok
(
extTransferDocumentService
.
getTransferDocProjectById
(
id
));
}
}
@ApiOperation
(
value
=
"获取文档列表"
,
notes
=
"获取文档列表"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"获取文档列表"
,
notes
=
"获取文档列表"
)
@
Ge
tMapping
(
value
=
"/getDxDocumentList"
)
@
Pos
tMapping
(
value
=
"/getDxDocumentList"
)
public
ApiResult
getDxDocumentList
(
@RequestBody
SearchQueryCondition
searchQueryCondition
)
{
public
ApiResult
getDxDocumentList
(
@RequestBody
SearchQueryCondition
searchQueryCondition
)
{
return
ApiResult
.
ok
(
extTransferDocumentService
.
getDxDocumentList
(
searchQueryCondition
));
return
ApiResult
.
ok
(
extTransferDocumentService
.
getDxDocumentList
(
searchQueryCondition
));
}
}
@ApiOperation
(
value
=
"移交单下文件清单退档"
,
notes
=
"移交单下文件清单退档"
)
@GetMapping
(
value
=
"/returnDocument"
)
public
ApiResult
returnDocument
(
@RequestParam
(
"id"
)
Long
id
,
@RequestParam
(
"docId"
)
Long
docId
)
{
extTransferDocumentService
.
returnDocument
(
id
,
docId
);
return
ApiResult
.
ok
(
ApiResult
.
SUCCESS
,
"退档成功"
);
}
}
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/ExtFilesService.java
View file @
541742fb
...
@@ -28,4 +28,12 @@ public interface ExtFilesService<V extends ExtFilesVO> extends ExtFilesServiceSh
...
@@ -28,4 +28,12 @@ public interface ExtFilesService<V extends ExtFilesVO> extends ExtFilesServiceSh
* @return
* @return
*/
*/
List
<
ExtFilesVO
>
findRecursionByVolumeNumber
(
String
volumeNumber
);
List
<
ExtFilesVO
>
findRecursionByVolumeNumber
(
String
volumeNumber
);
/**
* 根据项目代号查询所有案卷
*
* @param projectCode
* @return
*/
List
<
ExtFilesVO
>
getExtFilesByProjectCode
(
Long
projectCode
);
}
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/ExtTransferDocumentService.java
View file @
541742fb
...
@@ -32,4 +32,6 @@ public interface ExtTransferDocumentService<V extends ExtTransferDocumentVO> ext
...
@@ -32,4 +32,6 @@ public interface ExtTransferDocumentService<V extends ExtTransferDocumentVO> ext
LocalDateTime
getEndDate
(
List
<
DxWfProcessTaskVO
>
activities
,
String
activityName
);
LocalDateTime
getEndDate
(
List
<
DxWfProcessTaskVO
>
activities
,
String
activityName
);
void
updateArchivingStatus
(
Long
id
);
void
updateArchivingStatus
(
Long
id
);
void
returnDocument
(
Long
id
,
Long
docId
);
}
}
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtFilesServiceImpl.java
View file @
541742fb
...
@@ -112,6 +112,24 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic
...
@@ -112,6 +112,24 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic
return
(
List
<
ExtFilesVO
>)
this
.
findRecursion
(
queryDoc
).
getContent
();
return
(
List
<
ExtFilesVO
>)
this
.
findRecursion
(
queryDoc
).
getContent
();
}
}
@Override
public
List
<
ExtFilesVO
>
getExtFilesByProjectCode
(
Long
projectCode
)
{
SearchQueryCondition
searchProgram
=
SearchUtil
.
buildQuery
(
"number"
,
SearchItem
.
Operator
.
EQ
,
projectCode
);
DxPageImpl
programDxPage
=
extDxContextProjectServiceFeign
.
findRecursion
(
searchProgram
);
DxContextProjectVO
dxContextProjectVO
=
(
DxContextProjectVO
)
programDxPage
.
getContent
().
get
(
0
);
String
volumeNumber
=
"-"
+
dxContextProjectVO
.
getNumber
()
+
"-"
;
SearchQueryCondition
queryDoc
=
SearchQueryCondition
.
builder
()
.
searchItems
(
SearchItems
.
builder
()
.
item
(
new
SearchItem
(
"volumeNumber"
,
SearchItem
.
Operator
.
LIKE
,
volumeNumber
,
null
))
.
item
(
new
SearchItem
(
"latest"
,
SearchItem
.
Operator
.
EQ
,
true
,
null
))
.
item
(
new
SearchItem
(
"checkOuted"
,
SearchItem
.
Operator
.
EQ
,
true
,
null
))
.
operator
(
SearchItems
.
BooleanOperator
.
AND
).
build
()).
build
();
List
<
ExtFilesVO
>
content
=
(
List
<
ExtFilesVO
>)
this
.
findRecursion
(
queryDoc
).
getContent
();
return
content
;
}
private
String
getProjectCodeAndNumber
(
DxContextProjectVO
dxContextProjectVO
)
{
private
String
getProjectCodeAndNumber
(
DxContextProjectVO
dxContextProjectVO
)
{
boolean
projectClass
=
false
;
boolean
projectClass
=
false
;
// 项目群上的合同编号
// 项目群上的合同编号
...
...
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtTransferDocumentServiceImpl.java
View file @
541742fb
...
@@ -210,6 +210,11 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
...
@@ -210,6 +210,11 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
}
}
}
}
@Override
public
void
returnDocument
(
Long
id
,
Long
docId
)
{
}
@Override
@Override
public
DxUserInfoVO
getSignInfo
(
List
<
DxWfProcessTaskVO
>
activities
,
String
activityName
)
{
public
DxUserInfoVO
getSignInfo
(
List
<
DxWfProcessTaskVO
>
activities
,
String
activityName
)
{
for
(
DxWfProcessTaskVO
wf
:
activities
)
{
for
(
DxWfProcessTaskVO
wf
:
activities
)
{
...
...
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