| | |
| | | import com.mzl.flower.dto.response.partner.PartnerDTO; |
| | | import com.mzl.flower.entity.customer.Customer; |
| | | import com.mzl.flower.entity.partner.Partner; |
| | | import com.mzl.flower.enums.TrueOrFalseEnum; |
| | | import com.mzl.flower.mapper.customer.CustomerMapper; |
| | | import com.mzl.flower.mapper.partner.PartnerMapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | @Service |
| | | @Transactional |
| | | @Slf4j |
| | | public class CustomerService { |
| | | |
| | | |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 根据会员等级获取等级下的customer信息 |
| | | * @param levelId |
| | | * @return |
| | | */ |
| | | public List<Customer> getCustomerListByLevelId(Integer levelId){ |
| | | if(null != levelId){ |
| | | QueryWrapper<Customer> customerQueryWrapper=new QueryWrapper<>(); |
| | | customerQueryWrapper.lambda() |
| | | .eq(Customer::getDeleted, TrueOrFalseEnum.FALSE.isFlag()) |
| | | .eq(Customer::getLevelId,levelId); |
| | | return customerMapper.selectList(customerQueryWrapper); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |