| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.moral.common.util.MyBatisBaseMapUtil;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | | import org.springframework.util.ObjectUtils;
|
| | |
| | |
|
| | | @Service
|
| | | public class OperateUserServiceImpl implements OperateUserService {
|
| | |
|
| | | private static Class ENTITY_CLASS = OperateUser.class;
|
| | | @Resource
|
| | | private OperateUserMapper operateUserMapper;
|
| | |
|
| | | @Override
|
| | | public boolean isUniqueProperty(String propertyName, Object value){
|
| | | Example example = new Example(ENTITY_CLASS);
|
| | | example.or().andEqualTo(propertyName,value);
|
| | | return operateUserMapper.selectCountByExample(example)==0;
|
| | | }
|
| | | @Override
|
| | | public OperateUser getOperateUserByMobile(String mobile) {
|
| | | OperateUser operateUser = new OperateUser();
|
| | |
| | | example.or().andIn("id", ids);
|
| | | return operateUserMapper.updateByExampleSelective(operateUser, example);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public PageBean queryByPageBean(PageBean pageBean) {
|
| | | return MyBatisBaseMapUtil.queryPage(operateUserMapper,pageBean,ENTITY_CLASS);
|
| | | }
|
| | | }
|