嗨森逛服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hai-server/hai-service/src/main/java/com/hai/service/impl/HighAgentServiceImpl.java

49 lines
1.3 KiB

4 years ago
package com.hai.service.impl;
import com.hai.dao.HighAgentMapper;
import com.hai.entity.HighAgent;
import com.hai.entity.HighAgentExample;
import com.hai.service.HighAgentService;
import org.apache.commons.lang3.StringUtils;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
public class HighAgentServiceImpl implements HighAgentService {
@Resource
private HighAgentMapper highAgentMapper;
@Override
public List<HighAgent> getListAgentMsg(Map<String, String> map) throws Exception {
HighAgentExample example = new HighAgentExample();
HighAgentExample.Criteria criteria = example.createCriteria();
if (StringUtils.isNotBlank(map.get("userName"))) {
criteria.andAgentNameLike("%" + map.get("userName") + "%");
}
if (StringUtils.isNotBlank(map.get("agentName"))) {
criteria.andAgentNameLike("%" + map.get("agentName") + "%");
}
return highAgentMapper.selectByExample(example);
}
@Override
public HighAgent findByAgentMsgId(Long agentMsgId) {
return highAgentMapper.selectByPrimaryKey(agentMsgId);
}
@Override
public void updateAgentMsg(HighAgent highAgent) {
}
@Override
public void insertAgentMsg(HighAgent highAgent) {
}
}