Commit dfdb4183 by 杨浩

bug调整

parent 4a29505e
......@@ -135,5 +135,5 @@ public class ErpSupplierRespVO {
/**
* 关联部门id
*/
private String systemDeptId;
private Long systemDeptId;
}
......@@ -175,6 +175,6 @@ public class ErpSupplierDO extends BaseDO {
/**
* 关联部门id
*/
private String systemDeptId;
private Long systemDeptId;
}
\ No newline at end of file
......@@ -125,6 +125,6 @@ public class ErpCustomerDO extends BaseDO {
/**
* 关联部门id
*/
private String systemDeptId;
private Long systemDeptId;
}
\ No newline at end of file
......@@ -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())) {
......
......@@ -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
......
......@@ -113,9 +113,11 @@ public class CustomerOrderServiceImpl implements CustomerOrderService, CustomerO
private ErpSaleOutService saleOutService;
@Autowired
@Lazy
private ErpSaleReturnService saleReturnService;
@Autowired
@Lazy
private ErpSaleOrderService saleOrderService;
@Autowired
......
......@@ -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.selectById(deptId);
if (CommonUtil.isNotEmpty(deptDO) && !DeptDO.PARENT_ID_ROOT.equals(deptDO.getParentId())) {
DeptDO deptDO = deptMapper.selectOne(DeptDO::getId, deptId);
if (!DeptDO.PARENT_ID_ROOT.equals(deptDO.getParentId())) {
return this.getTopDept(deptDO.getParentId());
}
return deptDO;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment