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
8f5e564b
Commit
8f5e564b
authored
Aug 22, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-sx' of
http://129.211.46.84:8800/platform/hg-smart
Conflicts: src/main/resources/application.properties
parents
50765dfc
56725d6e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
21 deletions
+39
-21
HGDM099.xml
src/main/java/com/baosight/hggp/hg/dm/sql/HGDM099.xml
+1
-1
HGSC001.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC001.xml
+2
-1
ServiceHGSJ001.java
.../java/com/baosight/hggp/hg/sj/service/ServiceHGSJ001.java
+36
-19
No files found.
src/main/java/com/baosight/hggp/hg/dm/sql/HGDM099.xml
View file @
8f5e564b
...
...
@@ -29,7 +29,7 @@
<sql
id=
"condition"
>
AND A.DELETE_FLAG = '0'
<include
refid=
"
SqlBase.authCondition
"
/>
<include
refid=
"
HGXSDataAuth.authConditionA
"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
A.ID = #id#
</isNotEmpty>
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC001.xml
View file @
8f5e564b
...
...
@@ -296,7 +296,8 @@
SET
COMPANY_CODE = #companyCode#,
COMPANY_NAME = #companyName#,
PROJ_NAME = #projName#
PROJ_NAME = #projName#,
<include
refid=
"SqlBase.updateRevise"
/>
WHERE PROJ_CODE = #projCode#
</update>
...
...
src/main/java/com/baosight/hggp/hg/sj/service/ServiceHGSJ001.java
View file @
8f5e564b
...
...
@@ -173,25 +173,42 @@ public class ServiceHGSJ001 extends ServiceEPBase {
public
List
<
String
>
getOrgId
(){
Map
<
String
,
Object
>
orgMap
=
new
HashMap
();
List
<
Org
>
orgList
=
HGXSTools
.
XsOrg
.
queryByUser
();
if
(
CollectionUtils
.
isNotEmpty
(
orgList
))
{
Org
org
=
orgList
.
get
(
0
);
if
(!
org
.
getOrgType
().
equals
(
"company"
))
{
//如果不是公司公司,则找到上一级
Org
org1
=
HGXSTools
.
XsOrg
.
queryCompany
(
org
.
getOrgId
());
orgMap
.
put
(
"orgId"
,
org1
.
getParentOrgId
());
}
else
{
orgMap
.
put
(
"orgId"
,
org
.
getParentOrgId
());
}
}
List
<
HashMap
<
String
,
Object
>>
orgIdChildList
=
this
.
dao
.
query
(
"XSOG01.queryOrgChild"
,
orgMap
);
List
<
String
>
strList
=
new
ArrayList
();
Iterator
var6
=
orgIdChildList
.
iterator
();
while
(
var6
.
hasNext
())
{
HashMap
map
=
(
HashMap
)
var6
.
next
();
strList
.
add
(
map
.
get
(
"ORG_ID"
).
toString
());
}
return
strList
;
if
(
CollectionUtils
.
isNotEmpty
(
orgList
))
{
Org
org
=
orgList
.
get
(
0
);
if
(!
org
.
getOrgType
().
equals
(
"company"
))
{
//如果不是公司公司,则找到上一级
Org
org1
=
HGXSTools
.
XsOrg
.
queryCompany
(
org
.
getOrgId
());
orgMap
.
put
(
"orgId"
,
org1
.
getParentOrgId
());
}
else
{
orgMap
.
put
(
"orgId"
,
org
.
getParentOrgId
());
}
}
List
<
HashMap
<
String
,
Object
>>
orgIdChildList
=
this
.
dao
.
query
(
"XSOG01.queryOrgChild"
,
orgMap
);
List
<
String
>
strList
=
new
ArrayList
();
Iterator
var6
=
orgIdChildList
.
iterator
();
while
(
var6
.
hasNext
())
{
HashMap
map
=
(
HashMap
)
var6
.
next
();
strList
.
add
(
map
.
get
(
"ORG_ID"
).
toString
());
}
return
strList
;
}
/**
* 下拉框
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"仓库档案"
,
operType
=
"查询"
,
operDesc
=
"下拉框"
)
public
EiInfo
queryComboBox
(
EiInfo
inInfo
)
{
try
{
List
<
DdynamicEnum
>
list
=
new
ArrayList
<>();
list
.
add
(
DdynamicEnum
.
PROCESS_CODE_BLOCK_ID
);
CommonMethod
.
initBlock
(
inInfo
,
list
,
EiInfoUtils
.
getFirstRow
(
inInfo
),
false
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询工序失败"
);
}
return
inInfo
;
}
}
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