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
923be607
Commit
923be607
authored
Aug 21, 2024
by
江和松
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
ae1df708
a6dcfc58
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
45 additions
and
22 deletions
+45
-22
HGCWTools.java
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
+19
-1
ServiceHGPZ009A.java
...java/com/baosight/hggp/hg/pz/service/ServiceHGPZ009A.java
+2
-1
ServiceHGSB099.java
.../java/com/baosight/hggp/hg/sb/service/ServiceHGSB099.java
+5
-2
ServiceHGWD001.java
.../java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
+7
-7
HGWD001.xml
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD001.xml
+1
-0
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+3
-3
HGWD001.jsp
src/main/webapp/HG/WD/HGWD001.jsp
+2
-2
HGWD001A.jsp
src/main/webapp/HG/WD/HGWD001A.jsp
+6
-6
No files found.
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
View file @
923be607
...
@@ -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/pz/service/ServiceHGPZ009A.java
View file @
923be607
...
@@ -3,6 +3,7 @@ package com.baosight.hggp.hg.pz.service;
...
@@ -3,6 +3,7 @@ package com.baosight.hggp.hg.pz.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.utils.Iplat4jUtils
;
import
com.baosight.hggp.hg.ds.domain.HGDS002
;
import
com.baosight.hggp.hg.ds.domain.HGDS002
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009A
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009A
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.DateUtils
;
...
@@ -109,7 +110,7 @@ public class ServiceHGPZ009A extends ServiceEPBase {
...
@@ -109,7 +110,7 @@ public class ServiceHGPZ009A extends ServiceEPBase {
hppz009A
.
fromMap
(
resultRows
.
get
(
i
));
hppz009A
.
fromMap
(
resultRows
.
get
(
i
));
DaoUtils
.
update
(
HGPZ009A
.
DELETE
,
hppz009A
);
DaoUtils
.
update
(
HGPZ009A
.
DELETE
,
hppz009A
);
if
(!
hppz009A
.
getDocId
().
isEmpty
())
{
if
(!
hppz009A
.
getDocId
().
isEmpty
())
{
this
.
delectDoc
(
hppz009A
.
getDocId
());
Iplat4jUtils
.
deleteFileByDocId
(
hppz009A
.
getDocId
());
}
}
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
...
...
src/main/java/com/baosight/hggp/hg/sb/service/ServiceHGSB099.java
View file @
923be607
...
@@ -2,7 +2,9 @@ package com.baosight.hggp.hg.sb.service;
...
@@ -2,7 +2,9 @@ package com.baosight.hggp.hg.sb.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
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.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.utils.Iplat4jUtils
;
import
com.baosight.hggp.hg.ds.domain.HGDS002
;
import
com.baosight.hggp.hg.ds.domain.HGDS002
;
import
com.baosight.hggp.hg.sb.domain.HGSB099
;
import
com.baosight.hggp.hg.sb.domain.HGSB099
;
import
com.baosight.hggp.util.FileUtils
;
import
com.baosight.hggp.util.FileUtils
;
...
@@ -39,7 +41,7 @@ public class ServiceHGSB099 extends ServiceEPBase {
...
@@ -39,7 +41,7 @@ public class ServiceHGSB099 extends ServiceEPBase {
try
{
try
{
// 项目环境
// 项目环境
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
if
(
CommonConstant
.
projectEnv
.
RUN
.
equalsIgnoreCase
(
projectEnv
))
{
if
(
CommonConstant
.
FileLocation
.
S3
.
equalsIgnoreCase
(
S3Constant
.
FILE_LOCATION
))
{
inInfo
=
super
.
query
(
inInfo
,
"HGSB099.queryRun"
,
new
HGSB099
());
inInfo
=
super
.
query
(
inInfo
,
"HGSB099.queryRun"
,
new
HGSB099
());
}
else
{
}
else
{
inInfo
=
super
.
query
(
inInfo
,
"HGSB099.queryDev"
,
new
HGSB099
());
inInfo
=
super
.
query
(
inInfo
,
"HGSB099.queryDev"
,
new
HGSB099
());
...
@@ -60,7 +62,8 @@ public class ServiceHGSB099 extends ServiceEPBase {
...
@@ -60,7 +62,8 @@ public class ServiceHGSB099 extends ServiceEPBase {
hgsb099
.
fromMap
(
resultRow
);
hgsb099
.
fromMap
(
resultRow
);
DaoUtils
.
update
(
HGSB099
.
DELETE
,
hgsb099
);
DaoUtils
.
update
(
HGSB099
.
DELETE
,
hgsb099
);
if
(!
hgsb099
.
getDocId
().
isEmpty
())
{
if
(!
hgsb099
.
getDocId
().
isEmpty
())
{
this
.
delectDoc
(
hgsb099
.
getDocId
());
Iplat4jUtils
.
deleteFileByDocId
(
hgsb099
.
getDocId
());
//this.delectDoc(hgsb099.getDocId());
}
}
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
...
...
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001.java
View file @
923be607
...
@@ -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,11 +176,13 @@ public class ServiceHGWD001 extends ServiceEPBase {
...
@@ -175,11 +176,13 @@ 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
());
HGWD001
wd001
=
HGWDTools
.
HgWd001
.
get
(
hgwd001
.
getId
());
AssertUtils
.
isEmpty
(
cw999List
,
String
.
format
(
"未找到[%s]所属项目有关的附件, 发布失败!"
,
hgwd001
.
getProjName
()));
//HGWD001 wd001 =HGWDTools.HgWd001.get(hgwd001.getId());
HGWD001A
hgwd001a
=
new
HGWD001A
();
HGWD001A
hgwd001a
=
new
HGWD001A
();
hgwd001a
.
setCompanyCode
(
hgwd001
.
getCompanyCode
());
hgwd001a
.
setCompanyCode
(
hgwd001
.
getCompanyCode
());
hgwd001a
.
setCompanyName
(
hgwd001
.
getCompanyName
());
hgwd001a
.
setCompanyName
(
hgwd001
.
getCompanyName
());
...
@@ -188,12 +191,9 @@ public class ServiceHGWD001 extends ServiceEPBase {
...
@@ -188,12 +191,9 @@ public class ServiceHGWD001 extends ServiceEPBase {
hgwd001a
.
setChangeType
(
ChangeTypeEnum
.
RELEASE
.
getCode
());
hgwd001a
.
setChangeType
(
ChangeTypeEnum
.
RELEASE
.
getCode
());
hgwd001a
.
setMatId
(
hgwd001
.
getId
());
hgwd001a
.
setMatId
(
hgwd001
.
getId
());
hgwd001a
.
setChangeContent
(
"发布"
);
hgwd001a
.
setChangeContent
(
"发布"
);
if
(
wd001
!=
null
){
hgwd001a
.
setChangeStart
(
"V"
.
concat
(
hgwd001
.
getDocVersion
()+
""
));
hgwd001a
.
setChangeStart
(
wd001
.
getFileName
());
hgwd001a
.
setChangeEnd
(
"V"
.
concat
(
hgwd001
.
getDocVersion
()+
1
+
""
));
}
hgwd001a
.
setChangeEnd
(
hgwd001
.
getFileName
());
HGWDTools
.
HgWd001
.
add
(
hgwd001a
);
HGWDTools
.
HgWd001
.
add
(
hgwd001a
);
hgwd001
.
setDocVersion
(
hgwd001
.
getDocVersion
()
+
1
);
hgwd001
.
setStatus
(
HgWdConstant
.
FileStatus
.
S_1
);
hgwd001
.
setStatus
(
HgWdConstant
.
FileStatus
.
S_1
);
hgwd001
.
setReleaseDate
(
DateUtils
.
shortDateTime
());
hgwd001
.
setReleaseDate
(
DateUtils
.
shortDateTime
());
DaoUtils
.
update
(
HGWD001
.
RELEASE_DATE
,
hgwd001
);
DaoUtils
.
update
(
HGWD001
.
RELEASE_DATE
,
hgwd001
);
...
...
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD001.xml
View file @
923be607
...
@@ -185,6 +185,7 @@
...
@@ -185,6 +185,7 @@
UPDATE ${hggpSchema}.HGWD001
UPDATE ${hggpSchema}.HGWD001
SET
SET
RELEASE_DATE = #releaseDate#,
<!--发布时间-->
RELEASE_DATE = #releaseDate#,
<!--发布时间-->
DOC_VERSION = DOC_VERSION + 1,
<!--版本号-->
STATUS = #status#,
<!-- 状态 -->
STATUS = #status#,
<!-- 状态 -->
<include
refid=
"SqlBase.updateRevise"
/>
<include
refid=
"SqlBase.updateRevise"
/>
WHERE ID = #id#
WHERE ID = #id#
...
...
src/main/webapp/HG/WD/HGWD001.js
View file @
923be607
...
@@ -148,9 +148,9 @@ let save = function (btnNode) {
...
@@ -148,9 +148,9 @@ let save = function (btnNode) {
return
;
return
;
}
}
let
flag
=
true
;
let
flag
=
true
;
/*
$.each(rows, function(index, item) {
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
companyCode
=
item
.
get
(
"companyCode"
);
let
companyCode
=
item
.
get
(
"companyCode"
);
let projCode= item.get("proj
Cod
e");
let
projCode
=
item
.
get
(
"proj
Nam
e"
);
if
(
isBlank
(
companyCode
)){
if
(
isBlank
(
companyCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司
\"
,不能为空!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
...
@@ -161,7 +161,7 @@ let save = function (btnNode) {
...
@@ -161,7 +161,7 @@ let save = function (btnNode) {
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
}
}
});
*/
});
if
(
flag
)
{
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
ok
:
function
()
{
...
...
src/main/webapp/HG/WD/HGWD001.jsp
View file @
923be607
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<EF:EFComboColumn ename="companyCode" cname="公司名称"
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="
21
0" required="true"
maxLength="16" readonly="true" width="
16
0" required="true"
align="center" filter="contains" sort="true">
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<EF:EFCodeOption codeName="hggp.hgwd.fileType"/>
<EF:EFCodeOption codeName="hggp.hgwd.fileType"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="fileName" cname="文件名称" width="160" enable="true" readonly="false" align="center" required="true"/>
<EF:EFColumn ename="fileName" cname="文件名称" width="160" enable="true" readonly="false" align="center" required="true"/>
<EF:EFColumn ename="fileId" cname="文件号" width="100" enable="true" readonly="true" align="center" required="
tru
e"/>
<EF:EFColumn ename="fileId" cname="文件号" width="100" enable="true" readonly="true" align="center" required="
fals
e"/>
<EF:EFColumn ename="createdName" cname="创建人" align="center" width="100" readonly="true" required="false"
<EF:EFColumn ename="createdName" cname="创建人" align="center" width="100" readonly="true" required="false"
enable="false"/>
enable="false"/>
<EF:EFColumn ename="createdTime" cname="创建时间" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
<EF:EFColumn ename="createdTime" cname="创建时间" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
...
...
src/main/webapp/HG/WD/HGWD001A.jsp
View file @
923be607
...
@@ -42,22 +42,22 @@
...
@@ -42,22 +42,22 @@
<EF:EFComboColumn ename="companyCode" cname="公司名称"
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="160" required="
tru
e"
maxLength="16" readonly="false" width="160" required="
fals
e"
align="center" filter="contains" sort="true">
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="projName" cname="所属项目" width="160" enable="true" readonly="false" align="center" required="
tru
e"/>
<EF:EFColumn ename="projName" cname="所属项目" width="160" enable="true" readonly="false" align="center" required="
fals
e"/>
<%-- <EF:EFComboColumn ename="projCode" cname="所属项目" blockName="proj_record_block_id"
<%-- <EF:EFComboColumn ename="projCode" cname="所属项目" blockName="proj_record_block_id"
columnTemplate="#=textField#" itemTemplate="#=textField#"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="200" required="true"
maxLength="16" readonly="false" width="200" required="true"
align="center" filter="contains" sort="true" />--%>
align="center" filter="contains" sort="true" />--%>
<EF:EFComboColumn ename="changeType" cname="变更类型" width="100" align="center" readonly="true" required="
tru
e" defaultValue="20">
<EF:EFComboColumn ename="changeType" cname="变更类型" width="100" align="center" readonly="true" required="
fals
e" defaultValue="20">
<EF:EFCodeOption codeName="hggp.hgwd.changeType"/>
<EF:EFCodeOption codeName="hggp.hgwd.changeType"/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn ename="changeContent" cname="变更内容" width="160" enable="true" readonly="true" align="center" required="
tru
e"/>
<EF:EFColumn ename="changeContent" cname="变更内容" width="160" enable="true" readonly="true" align="center" required="
fals
e"/>
<EF:EFColumn ename="changeStart" cname="变更前" width="160" enable="true" readonly="false" align="center" required="
tru
e"/>
<EF:EFColumn ename="changeStart" cname="变更前" width="160" enable="true" readonly="false" align="center" required="
fals
e"/>
<EF:EFColumn ename="changeEnd" cname="变更后" width="160" enable="true" readonly="true" align="center" required="
tru
e"/>
<EF:EFColumn ename="changeEnd" cname="变更后" width="160" enable="true" readonly="true" align="center" required="
fals
e"/>
<EF:EFColumn ename="createdName" cname="创建人" align="center" width="100" readonly="true" required="false"
<EF:EFColumn ename="createdName" cname="创建人" align="center" width="100" readonly="true" required="false"
enable="false"/>
enable="false"/>
<EF:EFColumn ename="createdTime" cname="创建时间" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
<EF:EFColumn ename="createdTime" cname="创建时间" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
...
...
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