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
aa821799
Commit
aa821799
authored
Aug 10, 2023
by
zhanglt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品名代码保存接口bug
台账明细导出bug 盘亏删除bug
parent
7e783147
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
12 deletions
+51
-12
LedgerService.java
...eplus/modules/warehouse/ledger/service/LedgerService.java
+6
-6
MaterialLossService.java
...s/warehouse/materialloss/service/MaterialLossService.java
+36
-1
MaterialTypeService.java
...s/warehouse/materialtype/service/MaterialTypeService.java
+2
-2
MaterialTypeController.java
...es/warehouse/materialtype/web/MaterialTypeController.java
+1
-1
OutboundInfoMapper.xml
...ules/warehouse/outbound/mapper/xml/OutboundInfoMapper.xml
+3
-1
ProfitWarehousingInfoMapper.xml
...fitwarehousing/mapper/xml/ProfitWarehousingInfoMapper.xml
+1
-0
StorageInfoMapper.xml
...odules/warehouse/storage/mapper/xml/StorageInfoMapper.xml
+2
-1
No files found.
src/main/java/com/jeeplus/modules/warehouse/ledger/service/LedgerService.java
View file @
aa821799
...
...
@@ -230,8 +230,8 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
List
<
ExcelExportInfo
>
excelExportInfoList
=
new
ArrayList
<>();
for
(
StorageInfo
si
:
storageInfoList
)
{
ExcelExportInfo
eei
=
new
ExcelExportInfo
();
eei
.
setMonth
(
DateUtil
.
getMonth
(
si
.
get
CreateDat
e
())
+
""
);
eei
.
setDay
(
DateUtil
.
getDay
(
si
.
get
CreateDat
e
())
+
""
);
eei
.
setMonth
(
DateUtil
.
getMonth
(
si
.
get
Storage
().
getTim
e
())
+
""
);
eei
.
setDay
(
DateUtil
.
getDay
(
si
.
get
Storage
().
getTim
e
())
+
""
);
eei
.
setBatch
(
si
.
getStorage
().
getBatchNum
());
eei
.
setRemarks
(
si
.
getRemarks
());
eei
.
setTaskOrSend
(
0
);
...
...
@@ -251,8 +251,8 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
}
for
(
ProfitWarehousingInfo
si
:
profitWarehousingInfoList
)
{
ExcelExportInfo
eei
=
new
ExcelExportInfo
();
eei
.
setMonth
(
DateUtil
.
getMonth
(
si
.
get
CreateDat
e
())
+
""
);
eei
.
setDay
(
DateUtil
.
getDay
(
si
.
get
CreateDat
e
())
+
""
);
eei
.
setMonth
(
DateUtil
.
getMonth
(
si
.
get
ProfitWarehousing
().
getTim
e
())
+
""
);
eei
.
setDay
(
DateUtil
.
getDay
(
si
.
get
ProfitWarehousing
().
getTim
e
())
+
""
);
eei
.
setBatch
(
si
.
getProfitWarehousing
().
getNumber
()+
"[盘盈]"
);
eei
.
setRemarks
(
si
.
getRemarks
());
eei
.
setTaskOrSend
(
0
);
...
...
@@ -272,8 +272,8 @@ public class LedgerService extends CrudService<LedgerMapper, Ledger> {
}
for
(
OutboundInfo
oi
:
outboundInfoList
)
{
ExcelExportInfo
eei
=
new
ExcelExportInfo
();
eei
.
setMonth
(
DateUtil
.
getMonth
(
oi
.
get
CreateDat
e
())
+
""
);
eei
.
setDay
(
DateUtil
.
getDay
(
oi
.
get
CreateDat
e
())
+
""
);
eei
.
setMonth
(
DateUtil
.
getMonth
(
oi
.
get
Outbound
().
getOutboundTim
e
())
+
""
);
eei
.
setDay
(
DateUtil
.
getDay
(
oi
.
get
Outbound
().
getOutboundTim
e
())
+
""
);
eei
.
setBatch
(
oi
.
getLedgerInfo
().
getBatchNum
());
eei
.
setRemarks
(
oi
.
getRemarks
());
eei
.
setTaskOrSend
(
1
);
...
...
src/main/java/com/jeeplus/modules/warehouse/materialloss/service/MaterialLossService.java
View file @
aa821799
...
...
@@ -176,8 +176,43 @@ public class MaterialLossService extends CrudService<MaterialLossMapper, Materia
@Transactional
(
readOnly
=
false
)
public
void
delete
(
MaterialLoss
materialLoss
)
{
Outbound
outbound
=
new
Outbound
();
//设置相关表单id为物资盘亏主表的ID
outbound
.
setRelationId
(
materialLoss
.
getId
());
List
<
Outbound
>
list
=
outboundService
.
findList
(
outbound
);
if
(
list
!=
null
&&
list
.
size
()>
0
){
outbound
.
setId
(
list
.
get
(
0
).
getId
());
outboundService
.
deleteInfo
(
outbound
);
outboundService
.
delete
(
outbound
);
}
if
(
materialLoss
.
getMaterialLossInfoList
()!=
null
&&
materialLoss
.
getMaterialLossInfoList
().
size
()>
0
){
for
(
MaterialLossInfo
materialLossInfo:
materialLoss
.
getMaterialLossInfoList
())
{
materialLossInfoMapper
.
delete
(
materialLossInfo
);
String
ledgerInfoId
=
materialLossInfo
.
getLedgerInfo
().
getId
();
LedgerInfo
ledgerInfo
=
ledgerInfoMapper
.
get
(
ledgerInfoId
);
// ledgerInfoMapper.updateByLedgerInfo(ledgerInfoId);
ledgerInfo
.
setNum
(
ledgerInfo
.
getNum
()
+
1
);
ledgerInfoMapper
.
updateNum
(
ledgerInfo
);
if
(
ledgerInfo
.
getQr
()
!=
null
){
QrCode
qrCode
=
qrCodeService
.
get
(
ledgerInfo
.
getQr
().
getId
());
if
(
qrCode
!=
null
){
qrCode
.
setState
(
"2"
);
qrCodeService
.
save
(
qrCode
);
}
}
Ledger
ledger
=
ledgerService
.
get
(
ledgerInfo
.
getLedger
().
getId
());
if
(
ledger
!=
null
){
ledger
.
setNum
(
ledger
.
getNum
()
+
1
);
try
{
ledger
.
setSum
(
ledger
.
getSum
().
add
(
ledgerInfo
.
getAmount
()));
}
catch
(
Exception
e
){
System
.
out
.
println
(
e
.
getMessage
());
}
ledgerService
.
lowerLedger
(
ledger
);
}
}
}
super
.
delete
(
materialLoss
);
materialLossInfoMapper
.
delete
(
new
MaterialLossInfo
(
materialLoss
));
}
@Transactional
(
readOnly
=
false
)
public
String
createPKDH
()
{
...
...
src/main/java/com/jeeplus/modules/warehouse/materialtype/service/MaterialTypeService.java
View file @
aa821799
...
...
@@ -37,7 +37,7 @@ public class MaterialTypeService extends TreeService<MaterialTypeMapper, Materia
public
void
save
(
MaterialType
materialType
)
{
if
(
null
!=
materialType
.
getParentIds
())
{
String
[]
parentIdsArr
=
materialType
.
getParentIds
().
split
(
","
);
if
(
parentIdsArr
.
length
>
=
2
)
{
if
(
parentIdsArr
.
length
>
2
)
{
materialType
.
setLast
(
1
);
}
else
{
materialType
.
setLast
(
0
);
...
...
@@ -49,7 +49,7 @@ public class MaterialTypeService extends TreeService<MaterialTypeMapper, Materia
@Transactional
(
readOnly
=
false
)
public
void
insert
(
MaterialType
materialType
)
{
String
[]
parentIdsArr
=
materialType
.
getParentIds
().
split
(
","
);
if
(
parentIdsArr
.
length
>
=
2
)
{
if
(
parentIdsArr
.
length
>
2
)
{
materialType
.
setLast
(
1
);
}
else
{
materialType
.
setLast
(
0
);
...
...
src/main/java/com/jeeplus/modules/warehouse/materialtype/web/MaterialTypeController.java
View file @
aa821799
...
...
@@ -121,7 +121,7 @@ public class MaterialTypeController extends BaseController {
materialTypeService
.
save
(
materialType
);
//保存
j
.
setSuccess
(
true
);
j
.
put
(
"parentIds"
,
materialType
.
getParentIds
());
j
.
setMsg
(
"保存
物资类型
成功"
);
j
.
setMsg
(
"保存
品名代码
成功"
);
return
j
;
}
...
...
src/main/java/com/jeeplus/modules/warehouse/outbound/mapper/xml/OutboundInfoMapper.xml
View file @
aa821799
...
...
@@ -5,6 +5,7 @@
<sql
id=
"outboundInfoColumns"
>
a.id AS "id",
a.outbound_id AS "outbound.id",
outbound.outbound_time AS "outbound.outboundTime",
a.ledger_info_id AS "ledgerInfo.id",
ledgerInfo.code AS "ledgerInfo.code",
ledgerInfo.batch_num AS "ledgerInfo.batchNum",
...
...
@@ -34,6 +35,7 @@
</sql>
<sql
id=
"outboundInfoJoins"
>
left join t_wh_outbound outbound on a.outbound_id = outbound.id
left join t_wh_ledger_info ledgerInfo on a.ledger_info_id = ledgerInfo.id
LEFT JOIN t_wh_material_type tpye ON ledgerInfo.type_id = tpye.id
</sql>
...
...
@@ -69,7 +71,7 @@
AND tpye.id = #{ledgerInfo.type.id}
</if>
<if
test=
"beginTime != null and beginTime != '' and endTime != null and endTime != ''"
>
AND
a.create_date
>
= #{beginTime} AND a.create_dat
e
<
= #{endTime}
AND
outbound.outbound_time
>
= #{beginTime} AND outbound.outbound_tim
e
<
= #{endTime}
</if>
</where>
<choose>
...
...
src/main/java/com/jeeplus/modules/warehouse/profitwarehousing/mapper/xml/ProfitWarehousingInfoMapper.xml
View file @
aa821799
...
...
@@ -6,6 +6,7 @@
a.id AS "id",
a.profit_warehousing_id AS "profitWarehousing.id",
profitWarehousing.number AS "profitWarehousing.number",
profitWarehousing.time AS "profitWarehousing.time",
a.name AS "name",
a.type AS "type.id",
type.name AS "type.name",
...
...
src/main/java/com/jeeplus/modules/warehouse/storage/mapper/xml/StorageInfoMapper.xml
View file @
aa821799
...
...
@@ -5,6 +5,7 @@
<sql
id=
"storageInfoColumns"
>
a.id AS "id",
a.storage_id AS "storage.id",
s.time AS "storage.time",
a.name AS "name",
a.type_id AS "type.id",
a.model AS "model",
...
...
@@ -86,7 +87,7 @@
<if
test=
"dbName == 'mysql'"
>
concat('%',#{model},'%')
</if>
</if>
<if
test=
"beginTime != null and beginTime != '' and endTime != null and endTime != ''"
>
AND
a.create_date
>
= #{beginTime} AND a.create_dat
e
<
= #{endTime} AND qr.state
<>
'1'
AND
s.time >= #{beginTime} AND s.tim
e
<
= #{endTime} AND qr.state
<>
'1'
</if>
</where>
<choose>
...
...
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