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
dfdb4183
Commit
dfdb4183
authored
Sep 30, 2025
by
杨浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug调整
parent
4a29505e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
5 deletions
+14
-5
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/controller/admin/purchase/vo/supplier/ErpSupplierRespVO.java
+1
-1
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/dal/dataobject/purchase/ErpSupplierDO.java
+2
-1
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/dal/dataobject/sale/ErpCustomerDO.java
+2
-1
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/service/purchase/ErpSupplierServiceImpl.java
+1
-0
foodnexus-module-mall/foodnexus-module-order/src/main/java/cn/iocoder/foodnexus/module/order/service/checktask/CheckTaskServiceImpl.java
+2
-0
foodnexus-module-mall/foodnexus-module-order/src/main/java/cn/iocoder/foodnexus/module/order/service/customerorder/CustomerOrderServiceImpl.java
+2
-0
foodnexus-module-system/src/main/java/cn/iocoder/foodnexus/module/system/service/dept/DeptServiceImpl.java
+4
-2
No files found.
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/controller/admin/purchase/vo/supplier/ErpSupplierRespVO.java
View file @
dfdb4183
...
...
@@ -135,5 +135,5 @@ public class ErpSupplierRespVO {
/**
* 关联部门id
*/
private
Stri
ng
systemDeptId
;
private
Lo
ng
systemDeptId
;
}
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/dal/dataobject/purchase/ErpSupplierDO.java
View file @
dfdb4183
...
...
@@ -175,6 +175,6 @@ public class ErpSupplierDO extends BaseDO {
/**
* 关联部门id
*/
private
Stri
ng
systemDeptId
;
private
Lo
ng
systemDeptId
;
}
\ No newline at end of file
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/dal/dataobject/sale/ErpCustomerDO.java
View file @
dfdb4183
...
...
@@ -125,6 +125,6 @@ public class ErpCustomerDO extends BaseDO {
/**
* 关联部门id
*/
private
Stri
ng
systemDeptId
;
private
Lo
ng
systemDeptId
;
}
\ No newline at end of file
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/service/purchase/ErpSupplierServiceImpl.java
View file @
dfdb4183
...
...
@@ -193,6 +193,7 @@ public class ErpSupplierServiceImpl implements ErpSupplierService, ErpSupplierAp
supplierMapper
.
delete
(
ErpSupplierDO:
:
getSystemDeptId
,
deptId
);
}
@Override
public
Long
querySupplierIdByUserId
(
Long
userId
)
{
AdminUserDO
user
=
userService
.
getUser
(
userId
);
if
(!
UserSystemEnum
.
SUPPLIER
.
getKey
().
equals
(
user
.
getUserSystem
()))
{
...
...
foodnexus-module-mall/foodnexus-module-order/src/main/java/cn/iocoder/foodnexus/module/order/service/checktask/CheckTaskServiceImpl.java
View file @
dfdb4183
...
...
@@ -74,6 +74,7 @@ public class CheckTaskServiceImpl implements CheckTaskService, CheckTaskApi {
private
ErpPurchaseOrderService
purchaseOrderService
;
@Autowired
@Lazy
private
ErpPurchaseOrderMapper
purchaseOrderMapper
;
@Autowired
...
...
@@ -91,6 +92,7 @@ public class CheckTaskServiceImpl implements CheckTaskService, CheckTaskApi {
private
CustomerOrderService
customerOrderService
;
@Autowired
@Lazy
private
ErpSaleOrderService
saleOrderService
;
@Autowired
...
...
foodnexus-module-mall/foodnexus-module-order/src/main/java/cn/iocoder/foodnexus/module/order/service/customerorder/CustomerOrderServiceImpl.java
View file @
dfdb4183
...
...
@@ -113,9 +113,11 @@ public class CustomerOrderServiceImpl implements CustomerOrderService, CustomerO
private
ErpSaleOutService
saleOutService
;
@Autowired
@Lazy
private
ErpSaleReturnService
saleReturnService
;
@Autowired
@Lazy
private
ErpSaleOrderService
saleOrderService
;
@Autowired
...
...
foodnexus-module-system/src/main/java/cn/iocoder/foodnexus/module/system/service/dept/DeptServiceImpl.java
View file @
dfdb4183
...
...
@@ -6,6 +6,7 @@ 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.datapermission.core.annotation.DataPermission
;
import
cn.iocoder.foodnexus.framework.datapermission.core.rule.DataPermissionRule
;
import
cn.iocoder.foodnexus.module.erp.api.service.ErpCustomerApi
;
import
cn.iocoder.foodnexus.module.erp.api.service.ErpSupplierApi
;
import
cn.iocoder.foodnexus.module.system.controller.admin.dept.vo.dept.DeptListReqVO
;
...
...
@@ -269,9 +270,10 @@ public class DeptServiceImpl implements DeptService {
}
@Override
@DataPermission
(
enable
=
false
)
public
DeptDO
getTopDept
(
Long
deptId
)
{
DeptDO
deptDO
=
deptMapper
.
select
ById
(
deptId
);
if
(
CommonUtil
.
isNotEmpty
(
deptDO
)
&&
!
DeptDO
.
PARENT_ID_ROOT
.
equals
(
deptDO
.
getParentId
()))
{
DeptDO
deptDO
=
deptMapper
.
select
One
(
DeptDO:
:
getId
,
deptId
);
if
(!
DeptDO
.
PARENT_ID_ROOT
.
equals
(
deptDO
.
getParentId
()))
{
return
this
.
getTopDept
(
deptDO
.
getParentId
());
}
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