Browse Source

1.修改循环依赖

training
pref_mail@163.com 1 year ago
parent
commit
86c4a715f2
  1. 30
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java
  2. 14
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientUserServiceImpl.java
  3. 29
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java

30
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java

@ -38,6 +38,7 @@ import org.springblade.system.cache.DictBizCache;
import org.springblade.system.entity.DictBiz;
import org.springblade.system.feign.ISysClient;
import org.springblade.system.feign.IUserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -53,22 +54,29 @@ import java.util.stream.Collectors;
*/
@Slf4j
@Service
@AllArgsConstructor
public class BasicdataClientServiceImpl extends BaseServiceImpl<BasicdataClientMapper, BasicdataClientEntity> implements IBasicdataClientService {
private final IBasicdataHistoricalContractService basicdataHistoricalContractService;
private final IBasicdataStoreContactService basicdataStoreContactService; //联系人
private final IBasicdataStoreBusinessService basicdataStoreBusinessService;
private final IBasicdataTripartiteMallService basicdataTripartiteMallService; //三方商场
private final IBasicdataStorageServicesService basicdataStorageServicesService; //服务仓
private final IBasicdataBrandService basicdataBrandService; //品牌
private final IBasicdataStoreBrandService basicdataStoreBrandService; //品牌
private final IBasicdataWarehouseService warehouseService;
@Autowired
private IBasicdataHistoricalContractService basicdataHistoricalContractService;
@Autowired
private IBasicdataStoreContactService basicdataStoreContactService; //联系人
@Autowired
private IBasicdataStoreBusinessService basicdataStoreBusinessService;
@Autowired
private IBasicdataTripartiteMallService basicdataTripartiteMallService; //三方商场
@Autowired
private IBasicdataStorageServicesService basicdataStorageServicesService; //服务仓
@Autowired
private IBasicdataBrandService basicdataBrandService; //品牌
@Autowired
private IBasicdataStoreBrandService basicdataStoreBrandService; //品牌
@Autowired
private IBasicdataWarehouseService warehouseService;
// private final IBasicdataClientUserService basicdataClientUserService;
private final IUserClient userClient;
@Autowired
private IUserClient userClient;
@Override
public IPage<BasicdataClientVO> selectBasicdataClientPage(IPage<BasicdataClientVO> page, BasicdataClientVO basicdataClient) {

14
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientUserServiceImpl.java

@ -25,6 +25,7 @@ import org.springblade.system.cache.DictBizCache;
import org.springblade.system.entity.User;
import org.springblade.system.entity.UserInfo;
import org.springblade.system.feign.IUserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.security.NoSuchAlgorithmException;
@ -33,16 +34,19 @@ import java.util.List;
@Slf4j
@Service
@AllArgsConstructor
public class BasicdataClientUserServiceImpl extends BaseServiceImpl<BasicdataClientUserMapper, BasicdataClientUserEntity> implements IBasicdataClientUserService {
private final IUserClient userClient;
@Autowired
private IUserClient userClient;
private final IBasicdataClientService basicdataClientService;
@Autowired
private IBasicdataClientService basicdataClientService;
private final IBasicdataStorageServicesService basicdataStorageServicesService;
@Autowired
private IBasicdataStorageServicesService basicdataStorageServicesService;
private final IBasicdataWarehouseService basicdataWarehouseService;
@Autowired
private IBasicdataWarehouseService basicdataWarehouseService;
@Override
public List<BasicdataClientUserEntity> getBasicdataClientUserEntityListByUserId(Long userId) {

29
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java

@ -50,6 +50,7 @@ import org.springblade.core.tool.utils.StringUtil;
import org.springblade.system.cache.DictBizCache;
import org.springblade.system.entity.Dept;
import org.springblade.system.feign.IDeptClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -63,23 +64,23 @@ import java.util.stream.Collectors;
* @since 2023-05-15
*/
@Service
@AllArgsConstructor
@Log4j2
public class BasicdataWarehouseServiceImpl extends BaseServiceImpl<BasicdataWarehouseMapper, BasicdataWarehouseEntity> implements IBasicdataWarehouseService {
private final BasicdataWarehouseMapper warehouseMapper;
private final BasicdataGoodsAreaMapper goodsAreaMapper;
private final IBasicdataWarehouseClient basicdataWarehouseService;
private final IDeptClient deptClient;
private final BladeRedis redis;
private final IBasicdataClientUserService basicdataClientUserService;
private final BasicdataStorageServicesMapper basicdataStorageServicesMapper;
@Autowired
private BasicdataWarehouseMapper warehouseMapper;
@Autowired
private BasicdataGoodsAreaMapper goodsAreaMapper;
@Autowired
private IBasicdataWarehouseClient basicdataWarehouseService;
@Autowired
private IDeptClient deptClient;
@Autowired
private BladeRedis redis;
@Autowired
private IBasicdataClientUserService basicdataClientUserService;
@Autowired
private BasicdataStorageServicesMapper basicdataStorageServicesMapper;
// private

Loading…
Cancel
Save