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
dbaf91ed
Commit
dbaf91ed
authored
Feb 23, 2023
by
胡懿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入库明细统计接口增加返回单价信息
parent
437f11c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
CountStorageInfo.java
...eplus/modules/warehouse/storage/dto/CountStorageInfo.java
+10
-1
StorageInfoMapper.xml
...odules/warehouse/storage/mapper/xml/StorageInfoMapper.xml
+3
-1
StorageService.java
...lus/modules/warehouse/storage/service/StorageService.java
+1
-0
No files found.
src/main/java/com/jeeplus/modules/warehouse/storage/dto/CountStorageInfo.java
View file @
dbaf91ed
...
@@ -22,7 +22,8 @@ public class CountStorageInfo extends DataEntity<StorageInfo> {
...
@@ -22,7 +22,8 @@ public class CountStorageInfo extends DataEntity<StorageInfo> {
private
GoodsInfo
goodsInfo
;
// 货品明细id
private
GoodsInfo
goodsInfo
;
// 货品明细id
private
Shelves
shelves
;
// 货架id
private
Shelves
shelves
;
// 货架id
private
Warehouse
warehouse
;
// 仓库外键
private
Warehouse
warehouse
;
// 仓库外键
private
BigDecimal
sum
;
// 单价
private
BigDecimal
sum
;
// 总价
private
BigDecimal
amount
;
// 单价
private
int
num
;
// 数量
private
int
num
;
// 数量
private
String
state
;
// 入库状态
private
String
state
;
// 入库状态
...
@@ -132,4 +133,12 @@ public class CountStorageInfo extends DataEntity<StorageInfo> {
...
@@ -132,4 +133,12 @@ public class CountStorageInfo extends DataEntity<StorageInfo> {
public
void
setState
(
String
state
)
{
public
void
setState
(
String
state
)
{
this
.
state
=
state
;
this
.
state
=
state
;
}
}
public
BigDecimal
getAmount
()
{
return
amount
;
}
public
void
setAmount
(
BigDecimal
amount
)
{
this
.
amount
=
amount
;
}
}
}
src/main/java/com/jeeplus/modules/warehouse/storage/mapper/xml/StorageInfoMapper.xml
View file @
dbaf91ed
...
@@ -202,6 +202,7 @@
...
@@ -202,6 +202,7 @@
type.name AS "type.name",
type.name AS "type.name",
a.model AS "model",
a.model AS "model",
sum(a.amount) AS "sum",
sum(a.amount) AS "sum",
a.amount AS "amount",
a.goods_info_id AS "goodsInfo.id",
a.goods_info_id AS "goodsInfo.id",
a.shelves_id AS "shelves.id",
a.shelves_id AS "shelves.id",
s.name AS "shelves.name",
s.name AS "shelves.name",
...
@@ -221,7 +222,7 @@
...
@@ -221,7 +222,7 @@
AND a.storage_id = #{storage.id}
AND a.storage_id = #{storage.id}
</if>
</if>
</where>
</where>
GROUP BY a.goods_info_id,a.shelves_id,qr.state
GROUP BY a.goods_info_id,a.shelves_id,qr.state
,a.amount
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/java/com/jeeplus/modules/warehouse/storage/service/StorageService.java
View file @
dbaf91ed
...
@@ -90,6 +90,7 @@ public class StorageService extends CrudService<StorageMapper, Storage> {
...
@@ -90,6 +90,7 @@ public class StorageService extends CrudService<StorageMapper, Storage> {
csi
.
setName
(
c
.
getName
());
csi
.
setName
(
c
.
getName
());
csi
.
setType
(
c
.
getType
());
csi
.
setType
(
c
.
getType
());
csi
.
setState
(
c
.
getState
());
csi
.
setState
(
c
.
getState
());
csi
.
setAmount
(
c
.
getAmount
());
}
}
if
(
i
!=
list
.
size
()
-
1
)
{
if
(
i
!=
list
.
size
()
-
1
)
{
shelvesNames
=
shelvesNames
+
c
.
getShelves
().
getName
()
+
","
;
shelvesNames
=
shelvesNames
+
c
.
getShelves
().
getName
()
+
","
;
...
...
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