package com.moral.monitor.service.impl;
|
|
import java.util.List;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import com.moral.monitor.dao.AccountEntityMapper;
|
import com.moral.monitor.entity.AccountEntity;
|
import com.moral.monitor.entity.AccountEntityExample;
|
import com.moral.monitor.service.ScreenService;
|
|
@Service
|
public class ScreenServiceImpl implements ScreenService {
|
|
@Autowired
|
private AccountEntityMapper accountDao;
|
|
public List<AccountEntity> getAccountLists(String account, String password) {
|
AccountEntityExample example = new AccountEntityExample();
|
example.or().andAccountEqualTo(account).andPasswordEqualTo(password);
|
return accountDao.selectByExample(example);
|
}
|
|
}
|