Blame view

parking-module-system/src/main/java/com/zteits/sys/dao/impl/WxcpMsgSendConfigDaoImpl.java 1.38 KB
55f68655   王彪总   新项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  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<TdWxcpMsgSendConfig> queryWxcpMsgSendByAgentMsgType(QueryWxcpMsgSendByAgentReq request) {
          TdWxcpMsgSendConfigExample example = new TdWxcpMsgSendConfigExample();
          example.createCriteria().andDataStateEqualTo(1)
                  .andAgentMsgTypeEqualTo(request.getAgentMsgType());
          return tdWxcpMsgSendConfigMapper.selectByExample(example);
      }
  }