package com.zteits.sys.dao.impl; import com.zteits.clouds.api.dto.sys.param.QueryWxcpMsgSendByAgentReq; import com.zteits.sys.dao.WxcpMsgSendConfigDao; import com.zteits.sys.domain.TdWxcpMsgSendConfig; import com.zteits.sys.domain.TdWxcpMsgSendConfigExample; import com.zteits.sys.mapper.TdWxcpMsgSendConfigMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.List; /** * Copyright: Copyright (c) 2017 zteits * * @ClassName: WxcpMsgSendConfigDaoImpl.java * @Description: * @version: v1.0.0 * @author: wangfs * @date: 2019-03-13 16:25 * Modification History: * Date Author Version Description * ---------------------------------------------------------* * 2019-03-13 wangfs v1.0.0 创建 */ @Component public class WxcpMsgSendConfigDaoImpl implements WxcpMsgSendConfigDao { @Autowired private TdWxcpMsgSendConfigMapper tdWxcpMsgSendConfigMapper; @Override public List queryWxcpMsgSendByAgentMsgType(QueryWxcpMsgSendByAgentReq request) { TdWxcpMsgSendConfigExample example = new TdWxcpMsgSendConfigExample(); example.createCriteria().andDataStateEqualTo(1) .andAgentMsgTypeEqualTo(request.getAgentMsgType()); return tdWxcpMsgSendConfigMapper.selectByExample(example); } }