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
a62dc2cd
Commit
a62dc2cd
authored
May 29, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报工单删除
parent
93264b58
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+1
-0
HGZL002.java
src/main/java/com/baosight/hggp/hg/zl/domain/HGZL002.java
+2
-0
HGZL002.xml
src/main/java/com/baosight/hggp/hg/zl/sql/HGZL002.xml
+6
-0
HGZLTools.java
src/main/java/com/baosight/hggp/hg/zl/tools/HGZLTools.java
+5
-0
No files found.
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
a62dc2cd
...
...
@@ -808,6 +808,7 @@ public class HGSCTools {
public
static
void
delete
(
List
<
Long
>
ids
)
{
checkDeleteDate
(
ids
);
DaoUtils
.
update
(
HGSC008
.
BATCH_DELETE
,
new
HashMap
<
String
,
Object
>(){{
put
(
"ids"
,
ids
);}});
HGZLTools
.
THGZL002
.
deleteByWorkIds
(
ids
);
}
private
static
void
checkDeleteDate
(
List
<
Long
>
ids
){
...
...
src/main/java/com/baosight/hggp/hg/zl/domain/HGZL002.java
View file @
a62dc2cd
...
...
@@ -118,6 +118,8 @@ public class HGZL002 extends DaoEPBase {
public
static
final
String
INSERT
=
"HGZL002.insert"
;
public
static
final
String
UPDATE
=
"HGZL002.update"
;
public
static
final
String
DELETE
=
"HGZL002.delete"
;
public
static
final
String
DELETE_BY_WORKS
=
"HGZL002.delete_by_works"
;
private
Long
id
=
new
Long
(
0
);
private
Long
matId
=
new
Long
(
0
);
/* 物料清单ID*/
...
...
src/main/java/com/baosight/hggp/hg/zl/sql/HGZL002.xml
View file @
a62dc2cd
...
...
@@ -443,6 +443,12 @@
id = #id#
</delete>
<delete
id=
"delete_by_works"
>
DELETE FROM ${hggpSchema}.HGZL002 WHERE
work_id IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"workIds"
>
#workIds[]#
</iterate>
</delete>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGZL002
SET
...
...
src/main/java/com/baosight/hggp/hg/zl/tools/HGZLTools.java
View file @
a62dc2cd
...
...
@@ -117,5 +117,9 @@ public class HGZLTools {
queryMap
.
put
(
"workIds"
,
workIds
);
return
DaoBase
.
getInstance
().
query
(
HGZL002
.
QUERY
,
queryMap
);
}
public
static
void
deleteByWorkIds
(
List
<
Long
>
workIds
)
{
DaoUtils
.
update
(
HGZL002
.
DELETE_BY_WORKS
,
new
HashMap
<
String
,
Object
>(){{
put
(
"workIds"
,
workIds
);}});
}
}
}
\ No newline at end of file
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