Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
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
胡懿
warehouse
Commits
bc4fe3aa
Commit
bc4fe3aa
authored
Jun 13, 2023
by
胡懿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复分批入库台账信息不正确的问题
parent
5dd248c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
StorageInfoMapper.xml
...odules/warehouse/storage/mapper/xml/StorageInfoMapper.xml
+8
-4
StorageService.java
...lus/modules/warehouse/storage/service/StorageService.java
+2
-0
No files found.
src/main/java/com/jeeplus/modules/warehouse/storage/mapper/xml/StorageInfoMapper.xml
View file @
bc4fe3aa
...
...
@@ -26,7 +26,8 @@
s.name AS "shelves.name",
warehouse.name AS "warehouse.name",
qr.code AS "qrCode.code"
qr.code AS "qrCode.code",
qr.state AS "qrCode.state"
</sql>
<sql
id=
"storageInfoJoins"
>
...
...
@@ -56,6 +57,9 @@
<if
test=
"storage != null and storage.id != null and storage.id != ''"
>
AND a.storage_id = #{storage.id}
</if>
<if
test=
"goodsInfo != null and goodsInfo.id != null and goodsInfo.id != ''"
>
AND a.goods_info_id = #{goodsInfo.id}
</if>
<if
test=
"name != null and name != ''"
>
AND a.name LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{name}||'%'
</if>
...
...
@@ -65,12 +69,12 @@
<if
test=
"type != null and type.id != null and type.id != ''"
>
AND a.type_id = #{type.id}
</if>
<if
test=
"shelves != null and shelves.id != null and shelves.id != ''"
>
AND a.shelves_id = #{shelves.id}
</if>
<if
test=
"goodsInfo != null and goodsInfo.id != null and goodsInfo.id != ''"
>
AND a.goods_info_id = #{goodsInfo.id}
</if>
<if
test=
"model != null and model != ''"
>
AND a.model LIKE
<if
test=
"dbName == 'oracle'"
>
'%'||#{model}||'%'
</if>
...
...
src/main/java/com/jeeplus/modules/warehouse/storage/service/StorageService.java
View file @
bc4fe3aa
...
...
@@ -123,6 +123,7 @@ public class StorageService extends CrudService<StorageMapper, Storage> {
*/
public
List
<
StorageInfo
>
findInfoBycountStorage
(
CountStorageInfo
countStorageInfo
)
{
StorageInfo
storageInfo
=
new
StorageInfo
();
storageInfo
.
setStorage
(
countStorageInfo
.
getStorage
());
storageInfo
.
setShelves
(
countStorageInfo
.
getShelves
());
storageInfo
.
setGoodsInfo
(
countStorageInfo
.
getGoodsInfo
());
storageInfo
.
setPage
(
countStorageInfo
.
getPage
());
...
...
@@ -147,6 +148,7 @@ public class StorageService extends CrudService<StorageMapper, Storage> {
continue
;
}
GoodsInfo
goodsInfo
=
storageInfo
.
getGoodsInfo
();
goodsInfo
=
goodsInfoMapper
.
get
(
goodsInfo
.
getId
());
if
(
StorageInfo
.
DEL_FLAG_NORMAL
.
equals
(
storageInfo
.
getDelFlag
())){
if
(
StringUtils
.
isBlank
(
storageInfo
.
getId
())){
storageInfo
.
setStorage
(
storage
);
...
...
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