package com.xzx.gc.order.service;
|
|
import com.xzx.gc.entity.UserTargetInfo;
|
import com.xzx.gc.order.mapper.UserTargetInfoMapper;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import org.springframework.transaction.annotation.Transactional;
|
import tk.mybatis.mapper.entity.Example;
|
|
import java.util.List;
|
|
@Service
|
@Transactional
|
public class UserTargetInfoService {
|
|
@Autowired
|
private UserTargetInfoMapper userTargetInfoMapper;
|
|
|
public List<UserTargetInfo> findByMobiles(List<String> mobile) {
|
Example example=new Example(UserTargetInfo.class);
|
Example.Criteria criteria = example.createCriteria();
|
criteria.andIn("mobile", mobile);
|
criteria.andEqualTo("regsterType",3);
|
criteria.andIsNotNull("realUserId");
|
criteria.andEqualTo("delFlag",0);
|
return userTargetInfoMapper.selectByExample(example);
|
}
|
}
|