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
aa615ddf
Commit
aa615ddf
authored
Mar 20, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024/03/20 生产任务关联通过厂区查询产品库存
parent
7a68f07b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
5 deletions
+8
-5
ServiceHPKC003.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC003.java
+1
-1
ServiceHPKC003A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC003A.java
+1
-1
ServiceHPKC004.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
+1
-1
ServiceHPKC004A.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004A.java
+1
-1
ServiceHPKC011.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC011.java
+2
-0
HPKCTools.java
src/main/java/com/baosight/hpjx/hp/kc/tools/HPKCTools.java
+2
-1
No files found.
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC003.java
View file @
aa615ddf
...
@@ -116,7 +116,7 @@ public class ServiceHPKC003 extends ServiceBase {
...
@@ -116,7 +116,7 @@ public class ServiceHPKC003 extends ServiceBase {
HPSCTools
.
HpSc005a
.
updateCompleteNum
(
newKc003
.
getProdTaskNo
(),
newKc003
.
getAmount
());
HPSCTools
.
HpSc005a
.
updateCompleteNum
(
newKc003
.
getProdTaskNo
(),
newKc003
.
getAmount
());
// 修改库存
// 修改库存
HPKCTools
.
updateProdStock
(
newKc003
.
getWhCode
(),
newKc003
.
getProdOrderNo
(),
HPKCTools
.
updateProdStock
(
newKc003
.
getWhCode
(),
newKc003
.
getProdOrderNo
(),
newKc003
.
getAmount
(),
newKc003
.
getWeight
());
newKc003
.
getAmount
(),
newKc003
.
getWeight
()
,
newKc003
.
getFactoryCode
()
);
}
}
eiInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
eiInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
eiInfo
.
setMsg
(
"删除成功!"
);
eiInfo
.
setMsg
(
"删除成功!"
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC003A.java
View file @
aa615ddf
...
@@ -151,7 +151,7 @@ public class ServiceHPKC003A extends ServiceEPBase {
...
@@ -151,7 +151,7 @@ public class ServiceHPKC003A extends ServiceEPBase {
HPSCTools
.
HpSc005a
.
updateCompleteNum
(
fSc005b
.
getProdTaskNo
(),
applyNum
);
HPSCTools
.
HpSc005a
.
updateCompleteNum
(
fSc005b
.
getProdTaskNo
(),
applyNum
);
// 修改库存
// 修改库存
HPKCTools
.
updateProdStock
(
newKc003
.
getWhCode
(),
newKc003
.
getProdOrderNo
(),
HPKCTools
.
updateProdStock
(
newKc003
.
getWhCode
(),
newKc003
.
getProdOrderNo
(),
newKc003
.
getAmount
(),
newKc003
.
getWeight
());
newKc003
.
getAmount
(),
newKc003
.
getWeight
()
,
fSc005b
.
getFactoryCode
()
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"生成入库单失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"生成入库单失败"
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
View file @
aa615ddf
...
@@ -121,7 +121,7 @@ public class ServiceHPKC004 extends ServiceBase {
...
@@ -121,7 +121,7 @@ public class ServiceHPKC004 extends ServiceBase {
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
().
multiply
(
new
BigDecimal
(
1000
)));
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
().
multiply
(
new
BigDecimal
(
1000
)));
else
else
HPKCTools
.
updateProdStock
(
dbKc004
.
getWhCode
(),
dbKc004
.
getProdNo
(),
HPKCTools
.
updateProdStock
(
dbKc004
.
getWhCode
(),
dbKc004
.
getProdNo
(),
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
());
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
()
,
hpkc010
.
getFactoryCode
()
);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004A.java
View file @
aa615ddf
...
@@ -115,7 +115,7 @@ public class ServiceHPKC004A extends ServiceEPBase {
...
@@ -115,7 +115,7 @@ public class ServiceHPKC004A extends ServiceEPBase {
DaoUtils
.
insert
(
HPKC004
.
INSERT
,
newKc004
);
DaoUtils
.
insert
(
HPKC004
.
INSERT
,
newKc004
);
// 修改库存数量
// 修改库存数量
HPKCTools
.
updateProdStock
(
newKc004
.
getWhCode
(),
newKc004
.
getProdNo
(),
HPKCTools
.
updateProdStock
(
newKc004
.
getWhCode
(),
newKc004
.
getProdNo
(),
newKc004
.
getAmount
().
negate
(),
newKc004
.
getWeight
().
negate
());
newKc004
.
getAmount
().
negate
(),
newKc004
.
getWeight
().
negate
()
,
dbKc011
.
getFactoryCode
()
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"生成出库单失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"生成出库单失败"
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC011.java
View file @
aa615ddf
...
@@ -99,6 +99,7 @@ public class ServiceHPKC011 extends ServiceBase {
...
@@ -99,6 +99,7 @@ public class ServiceHPKC011 extends ServiceBase {
public
EiInfo
updateStock
(
EiInfo
inInfo
){
public
EiInfo
updateStock
(
EiInfo
inInfo
){
String
whCode
=
inInfo
.
getString
(
"whCode"
);
String
whCode
=
inInfo
.
getString
(
"whCode"
);
String
prodNo
=
inInfo
.
getString
(
"prodNo"
);
String
prodNo
=
inInfo
.
getString
(
"prodNo"
);
String
factoryCode
=
inInfo
.
getString
(
"factoryCode"
);
BigDecimal
amount
=
new
BigDecimal
(
inInfo
.
getString
(
"amount"
));
BigDecimal
amount
=
new
BigDecimal
(
inInfo
.
getString
(
"amount"
));
BigDecimal
weight
=
new
BigDecimal
(
inInfo
.
getString
(
"weight"
));
BigDecimal
weight
=
new
BigDecimal
(
inInfo
.
getString
(
"weight"
));
String
companyCode
=
UserSessionUtils
.
getCompanyCode
();
String
companyCode
=
UserSessionUtils
.
getCompanyCode
();
...
@@ -116,6 +117,7 @@ public class ServiceHPKC011 extends ServiceBase {
...
@@ -116,6 +117,7 @@ public class ServiceHPKC011 extends ServiceBase {
||
weight
.
compareTo
(
BigDecimal
.
ZERO
)<
0
){
||
weight
.
compareTo
(
BigDecimal
.
ZERO
)<
0
){
throw
new
PlatException
(
"当前库存为空,库存变更数量与重量不能小于等于0!"
);
throw
new
PlatException
(
"当前库存为空,库存变更数量与重量不能小于等于0!"
);
}
}
newObj
.
setFactoryCode
(
factoryCode
);
generatorBaseInfo
(
newObj
);
generatorBaseInfo
(
newObj
);
DaoUtils
.
insert
(
"HPKC011.insert"
,
newObj
);
DaoUtils
.
insert
(
"HPKC011.insert"
,
newObj
);
}
else
{
}
else
{
...
...
src/main/java/com/baosight/hpjx/hp/kc/tools/HPKCTools.java
View file @
aa615ddf
...
@@ -668,7 +668,7 @@ public class HPKCTools {
...
@@ -668,7 +668,7 @@ public class HPKCTools {
* @param amount
* @param amount
* @param weight
* @param weight
*/
*/
public
static
void
updateProdStock
(
String
whCode
,
String
prodNo
,
BigDecimal
amount
,
BigDecimal
weight
)
{
public
static
void
updateProdStock
(
String
whCode
,
String
prodNo
,
BigDecimal
amount
,
BigDecimal
weight
,
String
factoryCode
)
{
if
(
amount
.
compareTo
(
BigDecimal
.
ZERO
)
==
0
&&
weight
.
compareTo
(
BigDecimal
.
ZERO
)
==
0
)
{
if
(
amount
.
compareTo
(
BigDecimal
.
ZERO
)
==
0
&&
weight
.
compareTo
(
BigDecimal
.
ZERO
)
==
0
)
{
return
;
return
;
}
}
...
@@ -677,6 +677,7 @@ public class HPKCTools {
...
@@ -677,6 +677,7 @@ public class HPKCTools {
inInfo
.
set
(
"prodNo"
,
prodNo
);
inInfo
.
set
(
"prodNo"
,
prodNo
);
inInfo
.
set
(
"amount"
,
amount
);
inInfo
.
set
(
"amount"
,
amount
);
inInfo
.
set
(
"weight"
,
weight
);
inInfo
.
set
(
"weight"
,
weight
);
inInfo
.
set
(
"factoryCode"
,
factoryCode
);
inInfo
.
set
(
EiConstant
.
serviceName
,
"HPKC011"
);
inInfo
.
set
(
EiConstant
.
serviceName
,
"HPKC011"
);
inInfo
.
set
(
EiConstant
.
methodName
,
"updateStock"
);
inInfo
.
set
(
EiConstant
.
methodName
,
"updateStock"
);
EiInfo
outInfo
=
XLocalManager
.
call
(
inInfo
);
EiInfo
outInfo
=
XLocalManager
.
call
(
inInfo
);
...
...
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