嗨森逛服务
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

56 lines
1.4 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;
4 years ago
import org.springframework.stereotype.Service;
4 years ago
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
4 years ago
/**
* @Auther: 袁野
* @Description:
* @Date: 2021/3/14 20:47
*/
@Service("highAgentService")
4 years ago
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) {
}
}