Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
foodNexus-admin
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
副食品筹措管理平台
foodNexus-admin
Commits
d9ebf0d1
Commit
d9ebf0d1
authored
Sep 30, 2025
by
杨浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
1c55d8f9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/service/finance/ErpFinanceReceiptServiceImpl.java
+1
-1
foodnexus-module-system/src/main/java/cn/iocoder/foodnexus/module/system/service/dept/DeptServiceImpl.java
+2
-1
No files found.
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/service/finance/ErpFinanceReceiptServiceImpl.java
View file @
d9ebf0d1
...
@@ -167,7 +167,7 @@ public class ErpFinanceReceiptServiceImpl implements ErpFinanceReceiptService {
...
@@ -167,7 +167,7 @@ public class ErpFinanceReceiptServiceImpl implements ErpFinanceReceiptService {
}
else
if
(
ObjectUtil
.
equal
(
item
.
getBizType
(),
ErpBizTypeEnum
.
SALE_RETURN
.
getType
()))
{
}
else
if
(
ObjectUtil
.
equal
(
item
.
getBizType
(),
ErpBizTypeEnum
.
SALE_RETURN
.
getType
()))
{
ErpSaleReturnDO
saleReturn
=
saleReturnService
.
validateSaleReturn
(
item
.
getBizId
());
ErpSaleReturnDO
saleReturn
=
saleReturnService
.
validateSaleReturn
(
item
.
getBizId
());
Assert
.
equals
(
saleReturn
.
getCustomerId
(),
customerId
,
"客户必须相同"
);
Assert
.
equals
(
saleReturn
.
getCustomerId
(),
customerId
,
"客户必须相同"
);
item
.
setTotalPrice
(
saleReturn
.
getTotalPrice
(
).
negate
()).
setBizNo
(
saleReturn
.
getNo
());
item
.
setTotalPrice
(
BigDecimal
.
valueOf
(
saleReturn
.
getTotalPrice
()
).
negate
()).
setBizNo
(
saleReturn
.
getNo
());
}
else
{
}
else
{
throw
new
IllegalArgumentException
(
"业务类型不正确:"
+
item
.
getBizType
());
throw
new
IllegalArgumentException
(
"业务类型不正确:"
+
item
.
getBizType
());
}
}
...
...
foodnexus-module-system/src/main/java/cn/iocoder/foodnexus/module/system/service/dept/DeptServiceImpl.java
View file @
d9ebf0d1
...
@@ -3,6 +3,7 @@ package cn.iocoder.foodnexus.module.system.service.dept;
...
@@ -3,6 +3,7 @@ package cn.iocoder.foodnexus.module.system.service.dept;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.iocoder.foodnexus.framework.common.enums.CommonStatusEnum
;
import
cn.iocoder.foodnexus.framework.common.enums.CommonStatusEnum
;
import
cn.iocoder.foodnexus.framework.common.util.CommonUtil
;
import
cn.iocoder.foodnexus.framework.common.util.object.BeanUtils
;
import
cn.iocoder.foodnexus.framework.common.util.object.BeanUtils
;
import
cn.iocoder.foodnexus.framework.datapermission.core.annotation.DataPermission
;
import
cn.iocoder.foodnexus.framework.datapermission.core.annotation.DataPermission
;
import
cn.iocoder.foodnexus.module.erp.api.service.ErpCustomerApi
;
import
cn.iocoder.foodnexus.module.erp.api.service.ErpCustomerApi
;
...
@@ -270,7 +271,7 @@ public class DeptServiceImpl implements DeptService {
...
@@ -270,7 +271,7 @@ public class DeptServiceImpl implements DeptService {
@Override
@Override
public
DeptDO
getTopDept
(
Long
deptId
)
{
public
DeptDO
getTopDept
(
Long
deptId
)
{
DeptDO
deptDO
=
deptMapper
.
selectById
(
deptId
);
DeptDO
deptDO
=
deptMapper
.
selectById
(
deptId
);
if
(!
DeptDO
.
PARENT_ID_ROOT
.
equals
(
deptDO
.
getParentId
()))
{
if
(
CommonUtil
.
isNotEmpty
(
deptDO
)
&&
!
DeptDO
.
PARENT_ID_ROOT
.
equals
(
deptDO
.
getParentId
()))
{
return
this
.
getTopDept
(
deptDO
.
getParentId
());
return
this
.
getTopDept
(
deptDO
.
getParentId
());
}
}
return
deptDO
;
return
deptDO
;
...
...
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