Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
erp-service
Project
Project
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
ximai
erp-service
Commits
4f7a30d8
Commit
4f7a30d8
authored
Jan 13, 2025
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询库存时物料不存在需提示异常
调拨单单号错误
parent
b57f3639
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
InvmcService.java
.../com/topsunit/scanservice/ximai/service/InvmcService.java
+4
-0
InvtaService.java
.../com/topsunit/scanservice/ximai/service/InvtaService.java
+1
-1
No files found.
src/main/java/com/topsunit/scanservice/ximai/service/InvmcService.java
View file @
4f7a30d8
package
com
.
topsunit
.
scanservice
.
ximai
.
service
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.topsunit.scanservice.ximai.common.TopsunitException
;
import
com.topsunit.scanservice.ximai.dao.*
;
import
com.topsunit.scanservice.ximai.dto.*
;
import
com.topsunit.scanservice.ximai.dto.mapper.InvmbMapper
;
...
...
@@ -45,6 +46,8 @@ public class InvmcService {
@Autowired
private
InvmlDao
invmlDao
;
@Autowired
private
InvmbDao
invmbDao
;
@Autowired
private
InvmlMapper
invmlMapper
;
@Autowired
private
WarehouseArriveDao
warehouseArriveDao
;
...
...
@@ -70,6 +73,7 @@ public class InvmcService {
}
public
List
<
InvmlDto
>
getInvmlList2
(
InvmlCriteria
criteria
)
{
invmbDao
.
findById
(
criteria
.
getMl001
()).
orElseThrow
(()->
new
TopsunitException
(
String
.
format
(
"未找到物料:%s"
,
criteria
.
getMl001
())));
Specification
<
Invml
>
query
=
new
Specification
<
Invml
>()
{
@Override
public
Predicate
toPredicate
(
Root
<
Invml
>
root
,
CriteriaQuery
<?>
criteriaQuery
,
CriteriaBuilder
criteriaBuilder
)
{
...
...
src/main/java/com/topsunit/scanservice/ximai/service/InvtaService.java
View file @
4f7a30d8
...
...
@@ -89,7 +89,7 @@ public class InvtaService {
});
if
(!
data
.
isEmpty
()){
this
.
saveData
(
this
.
inventory_
overag
e
,
tempData
);
this
.
saveData
(
this
.
inventory_
allocat
e
,
tempData
);
}
}
...
...
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