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
3a864c02
Commit
3a864c02
authored
Aug 08, 2023
by
anxiaohe
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
497ffcbd
f302f826
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
88 additions
and
7 deletions
+88
-7
LedgerService.java
...eplus/modules/warehouse/ledger/service/LedgerService.java
+37
-6
MaterialLossInfo.java
...dules/warehouse/materialloss/entity/MaterialLossInfo.java
+23
-1
ProfitWarehousingInfo.java
...house/profitwarehousing/entity/ProfitWarehousingInfo.java
+22
-0
ProfitWarehousingInfoMapper.xml
...fitwarehousing/mapper/xml/ProfitWarehousingInfoMapper.xml
+6
-0
No files found.
src/main/java/com/jeeplus/modules/warehouse/ledger/service/LedgerService.java
View file @
3a864c02
...
@@ -16,11 +16,15 @@ import com.jeeplus.modules.sys.utils.UserUtils;
...
@@ -16,11 +16,15 @@ import com.jeeplus.modules.sys.utils.UserUtils;
import
com.jeeplus.modules.warehouse.ledger.Utils.ExcelStyleUtils
;
import
com.jeeplus.modules.warehouse.ledger.Utils.ExcelStyleUtils
;
import
com.jeeplus.modules.warehouse.ledger.dto.CountLedgerInfo
;
import
com.jeeplus.modules.warehouse.ledger.dto.CountLedgerInfo
;
import
com.jeeplus.modules.warehouse.ledger.dto.ExcelExportInfo
;
import
com.jeeplus.modules.warehouse.ledger.dto.ExcelExportInfo
;
import
com.jeeplus.modules.warehouse.materialloss.entity.MaterialLossInfo
;
import
com.jeeplus.modules.warehouse.materialloss.mapper.MaterialLossInfoMapper
;
import
com.jeeplus.modules.warehouse.materialtype.entity.MaterialType
;
import
com.jeeplus.modules.warehouse.materialtype.entity.MaterialType
;
import
com.jeeplus.modules.warehouse.materialtype.mapper.MaterialTypeMapper
;
import
com.jeeplus.modules.warehouse.materialtype.mapper.MaterialTypeMapper
;
import
com.jeeplus.modules.warehouse.materialtype.service.MaterialTypeService
;
import
com.jeeplus.modules.warehouse.materialtype.service.MaterialTypeService
;
import
com.jeeplus.modules.warehouse.outbound.entity.OutboundInfo
;
import
com.jeeplus.modules.warehouse.outbound.entity.OutboundInfo
;
import
com.jeeplus.modules.warehouse.outbound.mapper.OutboundInfoMapper
;
import
com.jeeplus.modules.warehouse.outbound.mapper.OutboundInfoMapper
;
import
com.jeeplus.modules.warehouse.profitwarehousing.entity.ProfitWarehousingInfo
;
import
com.jeeplus.modules.warehouse.profitwarehousing.mapper.ProfitWarehousingInfoMapper
;
import
com.jeeplus.modules.warehouse.qrcode.entity.QrCode
;
import
com.jeeplus.modules.warehouse.qrcode.entity.QrCode
;
import
com.jeeplus.modules.warehouse.qrcode.mapper.QrCodeMapper
;
import
com.jeeplus.modules.warehouse.qrcode.mapper.QrCodeMapper
;
import
com.jeeplus.modules.warehouse.shelves.entity.Shelves
;
import
com.jeeplus.modules.warehouse.shelves.entity.Shelves
;
...
@@ -67,7 +71,10 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
...
@@ -67,7 +71,10 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
private
StorageInfoMapper
storageInfoMapper
;
private
StorageInfoMapper
storageInfoMapper
;
@Autowired
@Autowired
private
OutboundInfoMapper
outboundInfoMapper
;
private
OutboundInfoMapper
outboundInfoMapper
;
@Autowired
private
ProfitWarehousingInfoMapper
profitWarehousingInfoMapper
;
@Autowired
private
MaterialLossInfoMapper
materialLossInfoMapper
;
...
@@ -194,20 +201,24 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
...
@@ -194,20 +201,24 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
public
void
ledgerStreamWater
(
String
typeId
,
String
beginTime
,
String
endTime
,
HttpServletResponse
respons
)
{
public
void
ledgerStreamWater
(
String
typeId
,
String
beginTime
,
String
endTime
,
HttpServletResponse
respons
)
{
Date
bTime
=
DateUtil
.
parseStrToDate
(
beginTime
,
"yyyy-MM-dd HH:mm:ss"
);
Date
bTime
=
DateUtil
.
parseStrToDate
(
beginTime
,
"yyyy-MM-dd HH:mm:ss"
);
Date
eTime
=
DateUtil
.
parseStrToDate
(
endTime
,
"yyyy-MM-dd HH:mm:ss"
);
Date
eTime
=
DateUtil
.
parseStrToDate
(
endTime
,
"yyyy-MM-dd HH:mm:ss"
);
//入库
MaterialType
materialType
=
materialTypeMapper
.
get
(
typeId
);
MaterialType
materialType
=
materialTypeMapper
.
get
(
typeId
);
StorageInfo
temSi
=
new
StorageInfo
();
StorageInfo
temSi
=
new
StorageInfo
();
temSi
.
setType
(
materialType
);
temSi
.
setType
(
materialType
);
temSi
.
setBeginTime
(
bTime
);
temSi
.
setBeginTime
(
bTime
);
temSi
.
setEndTime
(
eTime
);
temSi
.
setEndTime
(
eTime
);
List
<
StorageInfo
>
storageInfoList
=
storageInfoMapper
.
findList
(
temSi
);
List
<
StorageInfo
>
storageInfoList
=
storageInfoMapper
.
findList
(
temSi
);
//盘盈入库
ProfitWarehousingInfo
profitWarehousingInfo
=
new
ProfitWarehousingInfo
();
profitWarehousingInfo
.
setType
(
materialType
);
profitWarehousingInfo
.
setBeginTime
(
bTime
);
profitWarehousingInfo
.
setEndTime
(
eTime
);
List
<
ProfitWarehousingInfo
>
profitWarehousingInfoList
=
profitWarehousingInfoMapper
.
findList
(
profitWarehousingInfo
);
LedgerInfo
temLi
=
new
LedgerInfo
();
LedgerInfo
temLi
=
new
LedgerInfo
();
temLi
.
setType
(
materialType
);
temLi
.
setType
(
materialType
);
//出库
OutboundInfo
outboundInfo
=
new
OutboundInfo
();
OutboundInfo
outboundInfo
=
new
OutboundInfo
();
outboundInfo
.
setLedgerInfo
(
temLi
);
outboundInfo
.
setLedgerInfo
(
temLi
);
outboundInfo
.
setBeginTime
(
bTime
);
outboundInfo
.
setBeginTime
(
bTime
);
...
@@ -238,7 +249,27 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
...
@@ -238,7 +249,27 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
eei
.
setUserName
(
user
.
getLoginName
());
eei
.
setUserName
(
user
.
getLoginName
());
excelExportInfoList
.
add
(
eei
);
excelExportInfoList
.
add
(
eei
);
}
}
for
(
ProfitWarehousingInfo
si
:
profitWarehousingInfoList
)
{
ExcelExportInfo
eei
=
new
ExcelExportInfo
();
eei
.
setMonth
(
DateUtil
.
getMonth
(
si
.
getCreateDate
())
+
""
);
eei
.
setDay
(
DateUtil
.
getDay
(
si
.
getCreateDate
())
+
""
);
eei
.
setBatch
(
si
.
getProfitWarehousing
().
getNumber
()+
"[盘盈]"
);
eei
.
setRemarks
(
si
.
getRemarks
());
eei
.
setTaskOrSend
(
0
);
eei
.
setTask
(
si
.
getAmount
().
multiply
(
new
BigDecimal
(
si
.
getNum
())).
toString
());
eei
.
setSend
(
""
);
eei
.
setNum
(
si
.
getNum
()
+
""
);
eei
.
setModel
(
si
.
getMarking
());
Integer
n
=
modelMap
.
get
(
si
.
getMarking
());
if
(
null
==
n
)
{
modelMap
.
put
(
si
.
getMarking
(),
modelMap
.
size
());
}
User
user
=
UserUtils
.
get
(
si
.
getCreateBy
().
getId
());
eei
.
setUserName
(
user
.
getLoginName
());
excelExportInfoList
.
add
(
eei
);
}
for
(
OutboundInfo
oi
:
outboundInfoList
)
{
for
(
OutboundInfo
oi
:
outboundInfoList
)
{
ExcelExportInfo
eei
=
new
ExcelExportInfo
();
ExcelExportInfo
eei
=
new
ExcelExportInfo
();
eei
.
setMonth
(
DateUtil
.
getMonth
(
oi
.
getCreateDate
())
+
""
);
eei
.
setMonth
(
DateUtil
.
getMonth
(
oi
.
getCreateDate
())
+
""
);
...
@@ -269,7 +300,7 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
...
@@ -269,7 +300,7 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
intModelMap
.
put
(
entry
.
getValue
(),
entry
.
getKey
());
intModelMap
.
put
(
entry
.
getValue
(),
entry
.
getKey
());
}
}
int
sunRowNum
=
5
+
storageInfoList
.
size
()
+
outboundInfoList
.
size
();
int
sunRowNum
=
5
+
storageInfoList
.
size
()
+
outboundInfoList
.
size
()
+
profitWarehousingInfoList
.
size
()
;
// 创建工作薄
// 创建工作薄
XSSFWorkbook
workbook
=
new
XSSFWorkbook
();
XSSFWorkbook
workbook
=
new
XSSFWorkbook
();
// 创建工作表
// 创建工作表
...
...
src/main/java/com/jeeplus/modules/warehouse/materialloss/entity/MaterialLossInfo.java
View file @
3a864c02
...
@@ -8,6 +8,8 @@ import com.jeeplus.core.persistence.DataEntity;
...
@@ -8,6 +8,8 @@ import com.jeeplus.core.persistence.DataEntity;
import
com.jeeplus.common.utils.excel.annotation.ExcelField
;
import
com.jeeplus.common.utils.excel.annotation.ExcelField
;
import
com.jeeplus.modules.warehouse.ledger.entity.LedgerInfo
;
import
com.jeeplus.modules.warehouse.ledger.entity.LedgerInfo
;
import
java.util.Date
;
/**
/**
* 盘亏明细表Entity
* 盘亏明细表Entity
* @author zhanglt
* @author zhanglt
...
@@ -19,7 +21,11 @@ public class MaterialLossInfo extends DataEntity<MaterialLossInfo> {
...
@@ -19,7 +21,11 @@ public class MaterialLossInfo extends DataEntity<MaterialLossInfo> {
private
MaterialLoss
materialLoss
;
// 盘亏表主表ID
private
MaterialLoss
materialLoss
;
// 盘亏表主表ID
private
LedgerInfo
ledgerInfo
;
// 物资台账明细ID
private
LedgerInfo
ledgerInfo
;
// 物资台账明细ID
private
String
remarks
;
// 物资台账明细ID
private
String
remarks
;
// 物资台账明细ID
/**
* 查询使用的属性-------
*/
private
Date
beginTime
;
private
Date
endTime
;
public
MaterialLossInfo
()
{
public
MaterialLossInfo
()
{
super
();
super
();
}
}
...
@@ -34,6 +40,22 @@ public class MaterialLossInfo extends DataEntity<MaterialLossInfo> {
...
@@ -34,6 +40,22 @@ public class MaterialLossInfo extends DataEntity<MaterialLossInfo> {
this
.
remarks
=
remarks
;
this
.
remarks
=
remarks
;
}
}
public
Date
getBeginTime
()
{
return
beginTime
;
}
public
void
setBeginTime
(
Date
beginTime
)
{
this
.
beginTime
=
beginTime
;
}
public
Date
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
Date
endTime
)
{
this
.
endTime
=
endTime
;
}
public
MaterialLossInfo
(
String
id
){
public
MaterialLossInfo
(
String
id
){
super
(
id
);
super
(
id
);
}
}
...
...
src/main/java/com/jeeplus/modules/warehouse/profitwarehousing/entity/ProfitWarehousingInfo.java
View file @
3a864c02
...
@@ -14,6 +14,7 @@ import com.jeeplus.modules.warehouse.storage.entity.Storage;
...
@@ -14,6 +14,7 @@ import com.jeeplus.modules.warehouse.storage.entity.Storage;
import
com.jeeplus.modules.warehouse.warehouse.entity.Warehouse
;
import
com.jeeplus.modules.warehouse.warehouse.entity.Warehouse
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -38,6 +39,27 @@ public class ProfitWarehousingInfo extends DataEntity<ProfitWarehousingInfo> {
...
@@ -38,6 +39,27 @@ public class ProfitWarehousingInfo extends DataEntity<ProfitWarehousingInfo> {
private
List
<
Shelves
>
shelvesList
;
private
List
<
Shelves
>
shelvesList
;
private
List
<
Warehouse
>
warehouseList
;
private
List
<
Warehouse
>
warehouseList
;
/**
* 查询使用的属性-------
*/
private
Date
beginTime
;
private
Date
endTime
;
public
Date
getBeginTime
()
{
return
beginTime
;
}
public
void
setBeginTime
(
Date
beginTime
)
{
this
.
beginTime
=
beginTime
;
}
public
Date
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
Date
endTime
)
{
this
.
endTime
=
endTime
;
}
public
ProfitWarehousingInfo
(
String
id
,
ProfitWarehousing
profitWarehousing
)
{
public
ProfitWarehousingInfo
(
String
id
,
ProfitWarehousing
profitWarehousing
)
{
super
(
id
);
super
(
id
);
...
...
src/main/java/com/jeeplus/modules/warehouse/profitwarehousing/mapper/xml/ProfitWarehousingInfoMapper.xml
View file @
3a864c02
...
@@ -55,6 +55,12 @@
...
@@ -55,6 +55,12 @@
<if
test=
"profitWarehousing != null and profitWarehousing.id != null and profitWarehousing.id != ''"
>
<if
test=
"profitWarehousing != null and profitWarehousing.id != null and profitWarehousing.id != ''"
>
AND a.profit_warehousing_id = #{profitWarehousing.id}
AND a.profit_warehousing_id = #{profitWarehousing.id}
</if>
</if>
<if
test=
"type != null and type.id != null and type.id != ''"
>
AND a.type = #{type.id}
</if>
<if
test=
"beginTime != null and beginTime != '' and endTime != null and endTime != ''"
>
AND profitWarehousing.time
>
= #{beginTime} AND profitWarehousing.time
<
= #{endTime} AND (qrCode.state = '2')
</if>
</where>
</where>
<choose>
<choose>
<when
test=
"page !=null and page.orderBy != null and page.orderBy != ''"
>
<when
test=
"page !=null and page.orderBy != null and page.orderBy != ''"
>
...
...
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