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
0add0e01
Commit
0add0e01
authored
May 31, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目立项删除同时删除附件opt;
parent
560cbb37
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
ServiceHGSC002.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC002.java
+2
-1
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+7
-1
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC002.java
View file @
0add0e01
...
@@ -62,7 +62,8 @@ public class ServiceHGSC002 extends ServiceBase {
...
@@ -62,7 +62,8 @@ public class ServiceHGSC002 extends ServiceBase {
try
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 销售单号
// 销售单号
List
<
Long
>
ids
=
ObjectUtils
.
listKey
(
resultRows
,
HGSC002
.
FIELD_id
);
List
<
Long
>
ids
=
ObjectUtils
.
listKey
(
resultRows
,
HGSC002
.
FIELD_id
).
stream
().
map
(
id
->
Long
.
parseLong
(
String
.
valueOf
(
id
))).
collect
(
Collectors
.
toList
());
DaoUtils
.
update
(
HGSC002
.
BATCH_DELETE
,
new
HashMap
<
String
,
Object
>(){{
put
(
"ids"
,
ids
);}});
DaoUtils
.
update
(
HGSC002
.
BATCH_DELETE
,
new
HashMap
<
String
,
Object
>(){{
put
(
"ids"
,
ids
);}});
ids
.
forEach
(
id
->
{
ids
.
forEach
(
id
->
{
HGSCTools
.
THGSC099
.
deleteByMatId
(
id
,
HGConstant
.
FileBizType
.
XMRY
);
HGSCTools
.
THGSC099
.
deleteByMatId
(
id
,
HGConstant
.
FileBizType
.
XMRY
);
...
...
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
0add0e01
...
@@ -826,7 +826,13 @@ public class HGSCTools {
...
@@ -826,7 +826,13 @@ public class HGSCTools {
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
HGSC099
.
FIELD_mat_id
,
matId
);
queryMap
.
put
(
HGSC099
.
FIELD_mat_id
,
matId
);
queryMap
.
put
(
HGSC099
.
FIELD_biz_type
,
bizType
);
queryMap
.
put
(
HGSC099
.
FIELD_biz_type
,
bizType
);
return
DaoBase
.
getInstance
().
query
(
HGSC099
.
QUERY
,
queryMap
);
// 项目环境
String
projectEnv
=
ProjectInfo
.
getProjectEnv
();
if
(
CommonConstant
.
projectEnv
.
RUN
.
equalsIgnoreCase
(
projectEnv
))
{
return
DaoBase
.
getInstance
().
query
(
"HGSC099.queryRun"
,
queryMap
);
}
else
{
return
DaoBase
.
getInstance
().
query
(
"HGSC099.queryDev"
,
queryMap
);
}
}
}
public
static
void
deleteByMatId
(
Long
matId
,
String
bizType
){
public
static
void
deleteByMatId
(
Long
matId
,
String
bizType
){
...
...
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