Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
7bdaedd0
Commit
7bdaedd0
authored
Jan 25, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更换dao为DaoUtil
parent
b81c02ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
8 deletions
+1
-8
ServiceHPSC003.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
+1
-8
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
View file @
7bdaedd0
...
@@ -182,15 +182,12 @@ public class ServiceHPSC003 extends ServiceBase {
...
@@ -182,15 +182,12 @@ public class ServiceHPSC003 extends ServiceBase {
*/
*/
public
EiInfo
checkHPSC0003
(
EiInfo
eiInfo
)
{
public
EiInfo
checkHPSC0003
(
EiInfo
eiInfo
)
{
try
{
try
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
String
id
=
eiInfo
.
get
(
"id"
).
toString
();
String
id
=
eiInfo
.
get
(
"id"
).
toString
();
map
.
put
(
"id"
,
id
);
map
.
put
(
"id"
,
id
);
HPSC003
HPSC003
=
(
HPSC003
)
this
.
dao
.
get
(
"HPSC003.query"
,
"id"
,
id
);
HPSC003
HPSC003
=
(
HPSC003
)
this
.
dao
.
get
(
"HPSC003.query"
,
"id"
,
id
);
HPSC003
.
setStatus
(
1
);
HPSC003
.
setStatus
(
1
);
HPSC003
.
setUpdatedBy
(
UserSession
.
getUserId
());
DaoUtils
.
update
(
"HPSC003.update"
,
HPSC003
.
toMap
());
HPSC003
.
setUpdatedTime
(
sdf
.
format
(
new
Date
()));
this
.
dao
.
update
(
"HPSC003.update"
,
HPSC003
.
toMap
());
//生成生产订单
//生成生产订单
HashMap
params
=
new
HashMap
();
HashMap
params
=
new
HashMap
();
params
.
put
(
"parentPrdtCode"
,
HPSC003
.
getId
());
params
.
put
(
"parentPrdtCode"
,
HPSC003
.
getId
());
...
@@ -209,14 +206,10 @@ public class ServiceHPSC003 extends ServiceBase {
...
@@ -209,14 +206,10 @@ public class ServiceHPSC003 extends ServiceBase {
HPSC005
.
setNum
(
HPSC004
.
getNum
());
HPSC005
.
setNum
(
HPSC004
.
getNum
());
HPSC005
.
setTotalWt
(
HPSC004
.
getUnitWt
());
HPSC005
.
setTotalWt
(
HPSC004
.
getUnitWt
());
HPSC005
.
setStatus
(
0
);
HPSC005
.
setStatus
(
0
);
HPSC005
.
setCreatedBy
(
UserSession
.
getUserId
());
HPSC005
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
HPSC005
.
setFilePath1
(
HPSC004
.
getId
().
toString
());
HPSC005
.
setFilePath1
(
HPSC004
.
getId
().
toString
());
DaoUtils
.
insert
(
"HPSC005.insert"
,
HPSC005
.
toMap
());
DaoUtils
.
insert
(
"HPSC005.insert"
,
HPSC005
.
toMap
());
HPSC004
.
setProductionOrderNo
(
SCDD
);
HPSC004
.
setProductionOrderNo
(
SCDD
);
HPSC004
.
setUpdatedBy
(
UserSession
.
getUserId
());
HPSC004
.
setUpdatedTime
(
sdf
.
format
(
new
Date
()));
DaoUtils
.
update
(
"HPSC004.update"
,
HPSC004
.
toMap
());
DaoUtils
.
update
(
"HPSC004.update"
,
HPSC004
.
toMap
());
}
}
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
...
...
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