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
947584c8
Commit
947584c8
authored
Jul 23, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
其他入库、生产领料,新增主表后需要返回主表id信息
parent
be51fd2f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
ServiceHGKC006.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
+3
-4
ServiceHGKC008.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC008.java
+3
-0
HGKC006.js
src/main/webapp/HG/KC/HGKC006.js
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC006.java
View file @
947584c8
...
...
@@ -8,12 +8,10 @@ import com.baosight.hggp.core.security.UserSessionUtils;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.cw.tools.HGCWTools
;
import
com.baosight.hggp.hg.cw.vo.UserVO
;
import
com.baosight.hggp.hg.kc.domain.*
;
import
com.baosight.hggp.hg.kc.domain.HGKC006
;
import
com.baosight.hggp.hg.kc.tools.HGKCTools
;
import
com.baosight.hggp.hg.kc.utils.HGKCUtils
;
import
com.baosight.hggp.hg.utils.HGUtils
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.*
;
...
...
@@ -25,7 +23,6 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
org.springframework.util.CollectionUtils
;
import
java.math.BigDecimal
;
import
java.util.*
;
/**
...
...
@@ -99,11 +96,13 @@ public class ServiceHGKC006 extends ServiceBase {
hgkc006
.
setOtherEnterDate
(
DateUtils
.
formatShort
(
hgkc006
.
getOtherEnterDate
()));
if
(
hgkc006
.
getId
()
==
null
||
hgkc006
.
getId
()
==
0
)
{
this
.
add
(
hgkc006
);
//移动端新增需要获取新增后的id信息
HGKC006
queryKC006
=
HGKCTools
.
HgKc006
.
getByOtherEnterNo
(
hgkc006
.
getOtherEnterNo
());
EiInfoUtils
.
addBlock
(
inInfo
,
"entity"
,
queryKC006
,
HGKC006
.
class
);
}
else
{
this
.
modify
(
hgkc006
);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据保存成功!"
);
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC008.java
View file @
947584c8
...
...
@@ -99,6 +99,9 @@ public class ServiceHGKC008 extends ServiceBase {
hgkc008
.
setApplyCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
RECEIVE_CODE
));
hgkc008
.
setStatus
(
HGConstant
.
ProductStatus
.
WTJ
);
DaoUtils
.
insert
(
HGKC008
.
INSERT
,
hgkc008
);
//移动端新增需要获取对象id信息
HGKC008
queryKC008
=
HGKCTools
.
HgKc008
.
getByApplyCode
(
hgkc008
.
getApplyCode
());
EiInfoUtils
.
addBlock
(
inInfo
,
"entity"
,
queryKC008
,
HGKC008
.
class
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
...
...
src/main/webapp/HG/KC/HGKC006.js
View file @
947584c8
...
...
@@ -83,7 +83,7 @@ $(function () {
deleteFunc
();
},
onSuccess
:
function
(
e
)
{
if
(
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
)
{
if
(
e
.
eiInfo
.
extAttr
.
methodName
==
'save'
||
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
)
{
query
();
}
}
...
...
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