Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
platform
hg-smart
Commits
eafa54a0
Commit
eafa54a0
authored
Aug 21, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-08-21 文档库 没有附件无法发布
parent
ce1327c2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
HGCWTools.java
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
+19
-1
ServiceHGWD001.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
+4
-1
No files found.
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
View file @
eafa54a0
...
@@ -2,6 +2,7 @@ package com.baosight.hggp.hg.cw.tools;
...
@@ -2,6 +2,7 @@ package com.baosight.hggp.hg.cw.tools;
import
com.baosight.hggp.common.AccountPeriodStatusEnum
;
import
com.baosight.hggp.common.AccountPeriodStatusEnum
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.constant.S3Constant
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.cb.domain.HGCB001
;
import
com.baosight.hggp.hg.cb.domain.HGCB001
;
...
@@ -1175,7 +1176,7 @@ public class HGCWTools {
...
@@ -1175,7 +1176,7 @@ public class HGCWTools {
List
<
HGCW999
>
results
=
new
ArrayList
<>();
List
<
HGCW999
>
results
=
new
ArrayList
<>();
// 项目环境
// 项目环境
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
if
(
CommonConstant
.
projectEnv
.
RUN
.
equalsIgnoreCase
(
projectEnv
))
{
if
(
CommonConstant
.
FileLocation
.
S3
.
equalsIgnoreCase
(
S3Constant
.
FILE_LOCATION
))
{
results
=
DaoBase
.
getInstance
().
query
(
"HGCW999.queryRun"
,
new
HashMap
<
String
,
Object
>(){
results
=
DaoBase
.
getInstance
().
query
(
"HGCW999.queryRun"
,
new
HashMap
<
String
,
Object
>(){
{
put
(
"matId"
,
matId
);}
{
put
(
"matId"
,
matId
);}
{
put
(
"bizType"
,
bizType
);}
{
put
(
"bizType"
,
bizType
);}
...
@@ -1189,6 +1190,23 @@ public class HGCWTools {
...
@@ -1189,6 +1190,23 @@ public class HGCWTools {
return
results
;
return
results
;
}
}
public
static
List
<
HGCW999
>
queryByBiz
(
String
bizType
)
{
AssertUtils
.
isNull
(
bizType
,
"业务类型不能为空!"
);
List
<
HGCW999
>
results
=
new
ArrayList
<>();
// 项目环境
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
if
(
CommonConstant
.
FileLocation
.
S3
.
equalsIgnoreCase
(
S3Constant
.
FILE_LOCATION
))
{
results
=
DaoBase
.
getInstance
().
query
(
"HGCW999.queryRun"
,
new
HashMap
<
String
,
Object
>(){
{
put
(
"bizType"
,
bizType
);}
});
}
else
{
results
=
DaoBase
.
getInstance
().
query
(
"HGCW999.queryDev"
,
new
HashMap
<
String
,
Object
>(){
{
put
(
"bizType"
,
bizType
);}
});
}
return
results
;
}
}
}
public
static
class
HgCw051
{
public
static
class
HgCw051
{
...
...
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
View file @
eafa54a0
...
@@ -37,6 +37,7 @@ import java.util.Arrays;
...
@@ -37,6 +37,7 @@ import java.util.Arrays;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
/**
* @author LiuYang
* @author LiuYang
...
@@ -175,10 +176,12 @@ public class ServiceHGWD001 extends ServiceEPBase {
...
@@ -175,10 +176,12 @@ public class ServiceHGWD001 extends ServiceEPBase {
try
{
try
{
HGWD001
hgwd001
=
new
HGWD001
();
HGWD001
hgwd001
=
new
HGWD001
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
List
<
HGCW999
>
list
=
HGCWTools
.
HgCw999
.
queryByBiz
(
"WD"
);
for
(
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
for
(
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hgwd001
.
fromMap
(
map
);
hgwd001
.
fromMap
(
map
);
List
<
HGCW999
>
cw999List
=
list
.
stream
().
filter
(
hgwcw999
->
hgwcw999
.
getMatId
().
equals
(
hgwd001
.
getId
())).
collect
(
Collectors
.
toList
());
AssertUtils
.
isEmpty
(
cw999List
,
String
.
format
(
"未找到[%s]所属项目有关的附件, 发布失败!"
,
hgwd001
.
getProjName
()));
//HGWD001 wd001 =HGWDTools.HgWd001.get(hgwd001.getId());
//HGWD001 wd001 =HGWDTools.HgWd001.get(hgwd001.getId());
HGWD001A
hgwd001a
=
new
HGWD001A
();
HGWD001A
hgwd001a
=
new
HGWD001A
();
hgwd001a
.
setCompanyCode
(
hgwd001
.
getCompanyCode
());
hgwd001a
.
setCompanyCode
(
hgwd001
.
getCompanyCode
());
...
...
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