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
e990c708
Commit
e990c708
authored
Jan 25, 2024
by
yukang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产计划、生产订单附件查看
parent
e31eeea2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
ServiceHPSC002.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
+4
-5
ServiceHPSC003.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
+4
-3
ServiceHPSC004.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC004.java
+2
-1
ServiceHPSC005.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC005.java
+2
-1
No files found.
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
View file @
e990c708
...
...
@@ -2,6 +2,7 @@ package com.baosight.hpjx.hp.sc.service;
import
cn.hutool.core.bean.BeanUtil
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.kc.domain.HPKC003
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
...
...
@@ -361,10 +362,8 @@ public class ServiceHPSC002 extends ServiceBase {
HPSC003
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
HPSC003
.
setUpdatedBy
(
null
);
HPSC003
.
setUpdatedTime
(
null
);
this
.
dao
.
insert
(
"HPSC003.insert"
,
HPSC003
.
toMap
());
DaoUtils
.
insert
(
"HPSC003.insert"
,
HPSC003
.
toMap
());
//根据生产计划单号找到ID
HPSC003
ent
=
(
HPSC003
)
this
.
dao
.
get
(
"HPSC003.query"
,
"planInfoNo"
,
SCJHD
);
//生产计划详情
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"id"
,
id
);
...
...
@@ -377,7 +376,7 @@ public class ServiceHPSC002 extends ServiceBase {
HPSC004
.
setDeptCode
(
""
);
HPSC004
.
setProjCode
(
HPSC002
.
getProjCode
());
HPSC004
.
setProjName
(
HPSC002
.
getProjName
());
HPSC004
.
setParentPrdtCode
(
S
tringUtils
.
toString
(
ent
.
getId
())
);
HPSC004
.
setParentPrdtCode
(
S
CJHD
);
HPSC004
.
setParentPrdtName
(
HPSC002
.
getParentPrdtName
());
HPSC004
.
setPrdtType
(
HPSC002
.
getPrdtType
());
HPSC004
.
setPrdtCode
(
HPSC002
.
getPrdtCode
());
...
...
@@ -395,7 +394,7 @@ public class ServiceHPSC002 extends ServiceBase {
HPSC004
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
HPSC004
.
setUpdatedBy
(
null
);
HPSC004
.
setUpdatedTime
(
null
);
this
.
dao
.
insert
(
"HPSC004.insert"
,
HPSC004
.
toMap
());
DaoUtils
.
insert
(
"HPSC004.insert"
,
HPSC004
.
toMap
());
}
}
}
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
View file @
e990c708
package
com
.
baosight
.
hpjx
.
hp
.
sc
.
service
;
import
com.baosight.hpjx.common.HPConstants
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.sc.domain.HPSC003
;
import
com.baosight.hpjx.hp.sc.domain.HPSC004
;
...
...
@@ -65,7 +66,7 @@ public class ServiceHPSC003 extends ServiceBase {
HPSC003
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
HPSC003
.
setUpdatedBy
(
null
);
HPSC003
.
setUpdatedTime
(
null
);
this
.
dao
.
insert
(
"HPSC003.insert"
,
HPSC003
.
toMap
());
DaoUtils
.
insert
(
"HPSC003.insert"
,
HPSC003
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"新增成功!"
);
...
...
@@ -211,12 +212,12 @@ public class ServiceHPSC003 extends ServiceBase {
HPSC005
.
setCreatedBy
(
UserSession
.
getUserId
());
HPSC005
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
HPSC005
.
setFilePath1
(
HPSC004
.
getId
().
toString
());
this
.
dao
.
insert
(
"HPSC005.insert"
,
HPSC005
.
toMap
());
DaoUtils
.
insert
(
"HPSC005.insert"
,
HPSC005
.
toMap
());
HPSC004
.
setProductionOrderNo
(
SCDD
);
HPSC004
.
setUpdatedBy
(
UserSession
.
getUserId
());
HPSC004
.
setUpdatedTime
(
sdf
.
format
(
new
Date
()));
this
.
dao
.
update
(
"HPSC004.update"
,
HPSC004
.
toMap
());
DaoUtils
.
update
(
"HPSC004.update"
,
HPSC004
.
toMap
());
}
}
catch
(
PlatException
e
)
{
eiInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC004.java
View file @
e990c708
package
com
.
baosight
.
hpjx
.
hp
.
sc
.
service
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.sc.domain.HPSC004
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
...
@@ -55,7 +56,7 @@ public class ServiceHPSC004 extends ServiceBase {
HPSC004
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
HPSC004
.
setUpdatedBy
(
null
);
HPSC004
.
setUpdatedTime
(
null
);
this
.
dao
.
insert
(
"HPSC004.insert"
,
HPSC004
.
toMap
());
DaoUtils
.
insert
(
"HPSC004.insert"
,
HPSC004
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"新增成功!"
);
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC005.java
View file @
e990c708
package
com
.
baosight
.
hpjx
.
hp
.
sc
.
service
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.sc.domain.HPSC004
;
import
com.baosight.hpjx.hp.sc.domain.HPSC005
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
...
...
@@ -59,7 +60,7 @@ public class ServiceHPSC005 extends ServiceBase {
HPSC005
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
HPSC005
.
setUpdatedBy
(
null
);
HPSC005
.
setUpdatedTime
(
null
);
this
.
dao
.
insert
(
"HPSC005.insert"
,
HPSC005
.
toMap
());
DaoUtils
.
insert
(
"HPSC005.insert"
,
HPSC005
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"新增成功!"
);
...
...
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