|
|
@ -5,6 +5,7 @@ import com.epmet.dataaggre.constant.DataSourceConstant; |
|
|
|
import com.epmet.dataaggre.dao.opercrm.CustomerRelationDao; |
|
|
|
import com.epmet.dataaggre.service.opercrm.CustomerRelation; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -27,4 +28,18 @@ public class CustomerRelationImpl implements CustomerRelation { |
|
|
|
public List<String> selectUsedAreaCodeList(String areaCode) { |
|
|
|
return customerRelationDao.selectUsedAreaCodeList(areaCode); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 是否有子客户 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @return boolean |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2021/6/29 11:06 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public boolean haveSubCustomer(String customerId) { |
|
|
|
List<String> list = customerRelationDao.selectAllSubCustomerIds(customerId); |
|
|
|
return CollectionUtils.isNotEmpty(list); |
|
|
|
} |
|
|
|
} |
|
|
|