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
c6a22c3a
Commit
c6a22c3a
authored
Oct 30, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com:8800/platform/hg-smart
into dev-ly
parents
c2f9b42d
d1321201
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
20 deletions
+36
-20
ServiceHGSC004A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC004A.java
+21
-5
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+1
-1
CommonMethod.java
src/main/java/com/baosight/hggp/util/CommonMethod.java
+10
-10
HGPZ009.jsp
src/main/webapp/HG/PZ/HGPZ009.jsp
+1
-1
HGWD002A1.js
src/main/webapp/HG/WD/HGWD002A1.js
+3
-3
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC004A.java
View file @
c6a22c3a
package
com
.
baosight
.
hggp
.
hg
.
sc
.
service
;
package
com
.
baosight
.
hggp
.
hg
.
sc
.
service
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.common.ProductTypeEnum
;
import
com.baosight.hggp.common.ProductTypeEnum
;
...
@@ -10,9 +9,18 @@ import com.baosight.hggp.core.security.UserSessionUtils;
...
@@ -10,9 +9,18 @@ import com.baosight.hggp.core.security.UserSessionUtils;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.sc.domain.*
;
import
com.baosight.hggp.hg.sc.domain.HGSC003
;
import
com.baosight.hggp.hg.sc.domain.HGSC004
;
import
com.baosight.hggp.hg.sc.domain.HGSC004A
;
import
com.baosight.hggp.hg.sc.domain.HGSC005
;
import
com.baosight.hggp.hg.sc.domain.HGSC005A
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.util.*
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.ErrorCodeUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
@@ -24,9 +32,17 @@ import com.baosight.iplat4j.core.util.StringUtils;
...
@@ -24,9 +32,17 @@ import com.baosight.iplat4j.core.util.StringUtils;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.LinkedList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
cn.hutool.core.bean.BeanUtil
;
/**
/**
* @Author jhs
* @Author jhs
...
@@ -384,7 +400,7 @@ public class ServiceHGSC004A extends ServiceBase {
...
@@ -384,7 +400,7 @@ public class ServiceHGSC004A extends ServiceBase {
mapA
.
put
(
"notId"
,
hgsc004a
.
getId
());
mapA
.
put
(
"notId"
,
hgsc004a
.
getId
());
}
}
List
<
HGSC004A
>
hgsc004AList
=
dao
.
query
(
HGSC004A
.
QUERY
,
mapA
,
0
,
-
999999
);
List
<
HGSC004A
>
hgsc004AList
=
dao
.
query
(
HGSC004A
.
QUERY
,
mapA
,
0
,
-
999999
);
AssertUtils
.
isTrue
(!
CollectionUtils
.
isEmpty
(
hgsc004AList
),
"已存在构
建
"
+
hgsc004a
.
getProductCode
()+
"-"
+
hgsc004a
.
getProductName
());
AssertUtils
.
isTrue
(!
CollectionUtils
.
isEmpty
(
hgsc004AList
),
"已存在构
件
"
+
hgsc004a
.
getProductCode
()+
"-"
+
hgsc004a
.
getProductName
());
}
}
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getAccountCode
(),
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getAccountCode
(),
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getOrgId
(),
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getOrgId
(),
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
...
...
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
c6a22c3a
...
@@ -592,7 +592,7 @@ public class HGSCTools {
...
@@ -592,7 +592,7 @@ public class HGSCTools {
mapA
.
put
(
HGSC004A
.
FIELD_parent_prod_code
,
hgsc004a
.
getParentProdCode
());
mapA
.
put
(
HGSC004A
.
FIELD_parent_prod_code
,
hgsc004a
.
getParentProdCode
());
mapA
.
put
(
HGSC004A
.
FIELD_product_code
,
hgsc004a
.
getProductCode
());
mapA
.
put
(
HGSC004A
.
FIELD_product_code
,
hgsc004a
.
getProductCode
());
List
<
HGSC004A
>
hgsc004AList
=
list
(
mapA
);
List
<
HGSC004A
>
hgsc004AList
=
list
(
mapA
);
AssertUtils
.
isTrue
(!
CollectionUtils
.
isEmpty
(
hgsc004AList
),
String
.
format
(
"已存在构
建
%s-%s"
,
hgsc004a
.
getProductCode
(),
hgsc004a
.
getProductName
()));
AssertUtils
.
isTrue
(!
CollectionUtils
.
isEmpty
(
hgsc004AList
),
String
.
format
(
"已存在构
件
%s-%s"
,
hgsc004a
.
getProductCode
(),
hgsc004a
.
getProductName
()));
}
}
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getAccountCode
(),
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getAccountCode
(),
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
//AssertUtils.isEmpty(UserSessionUtils.getOrgId(), "当前用户未绑定部门,无法操作数据,请联系管理员!");
//AssertUtils.isEmpty(UserSessionUtils.getOrgId(), "当前用户未绑定部门,无法操作数据,请联系管理员!");
...
...
src/main/java/com/baosight/hggp/util/CommonMethod.java
View file @
c6a22c3a
...
@@ -93,16 +93,16 @@ public class CommonMethod {
...
@@ -93,16 +93,16 @@ public class CommonMethod {
row
.
put
(
HGConstants
.
VALUE_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getValue
())));
row
.
put
(
HGConstants
.
VALUE_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getValue
())));
if
(
isSplicingSymbol
)
{
if
(
isSplicingSymbol
)
{
row
.
put
(
HGConstants
.
TEXT_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getText
())));
row
.
put
(
HGConstants
.
TEXT_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getText
())));
row
.
put
(
HGConstants
.
PARAM1_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam1
())));
row
.
put
(
HGConstants
.
PARAM1_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam1
())));
row
.
put
(
HGConstants
.
PARAM2_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam2
())));
row
.
put
(
HGConstants
.
PARAM2_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam2
())));
row
.
put
(
HGConstants
.
PARAM3_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam3
())));
row
.
put
(
HGConstants
.
PARAM3_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam3
())));
row
.
put
(
HGConstants
.
PARAM4_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam4
())));
row
.
put
(
HGConstants
.
PARAM4_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam4
())));
row
.
put
(
HGConstants
.
PARAM5_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam5
())));
row
.
put
(
HGConstants
.
PARAM5_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam5
())));
row
.
put
(
HGConstants
.
PARAM6_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam6
())));
row
.
put
(
HGConstants
.
PARAM6_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam6
())));
row
.
put
(
HGConstants
.
PARAM7_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam7
())));
row
.
put
(
HGConstants
.
PARAM7_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam7
())));
row
.
put
(
HGConstants
.
PARAM8_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam8
())));
row
.
put
(
HGConstants
.
PARAM8_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam8
())));
row
.
put
(
HGConstants
.
PARAM9_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam9
())));
row
.
put
(
HGConstants
.
PARAM9_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam9
())));
row
.
put
(
HGConstants
.
PARAM10_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HGConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam10
())));
row
.
put
(
HGConstants
.
PARAM10_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam10
())));
}
else
{
}
else
{
row
.
put
(
HGConstants
.
TEXT_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getText
())));
row
.
put
(
HGConstants
.
TEXT_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getText
())));
row
.
put
(
HGConstants
.
PARAM1_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam1
())));
row
.
put
(
HGConstants
.
PARAM1_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam1
())));
...
...
src/main/webapp/HG/PZ/HGPZ009.jsp
View file @
c6a22c3a
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"
/>
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"
/>
</EF:EFGrid>
</EF:EFGrid>
<br/>
<br/>
<span
style=
'color: red;font-size: 13px;'
>
说明:新增企业时会同步新增企业管理员账户,账户=登录前缀0000,例如:登录前缀是HG,初始账
账户就是HG0000,密码与账
账户相同
</span></br>
<span
style=
'color: red;font-size: 13px;'
>
说明:新增企业时会同步新增企业管理员账户,账户=登录前缀0000,例如:登录前缀是HG,初始账
户就是HG0000,密码与
账户相同
</span></br>
</EF:EFRegion>
</EF:EFRegion>
</EF:EFPage>
</EF:EFPage>
...
...
src/main/webapp/HG/WD/HGWD002A1.js
View file @
c6a22c3a
...
@@ -62,14 +62,14 @@ function previewFile(url, docType) {
...
@@ -62,14 +62,14 @@ function previewFile(url, docType) {
$
(
"#descDiv"
).
css
(
'display'
,
'none'
);
$
(
"#descDiv"
).
css
(
'display'
,
'none'
);
if
(
isXml
(
docType
))
{
if
(
isXml
(
docType
))
{
previewXml
(
url
);
previewXml
(
url
);
}
else
if
(
isExcel
(
docType
))
{
previewExcel
(
url
);
}
else
if
(
isWord
(
docType
))
{
}
else
if
(
isWord
(
docType
))
{
previewDocx
(
url
);
previewDocx
(
url
);
}
else
{
}
else
{
previewOnline
(
url
);
previewOnline
(
url
);
}
}
// else if (isText(docType)) {
// else if (isExcel(docType)) {
// previewExcel(url);
// } else if (isText(docType)) {
// previewText(url);
// previewText(url);
// } else if (isImage(docType)) {
// } else if (isImage(docType)) {
// previewImage(url);
// previewImage(url);
...
...
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