Blame view

parking-module-system/src/main/java/com/zteits/sys/biz/WxcpMsgSendConfigServiceImpl.java 1.87 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
39
40
41
42
43
44
45
  package com.zteits.sys.biz;
  
  import org.apache.commons.collections4.CollectionUtils;
  import com.clouds.common.utils.ListCopyUtil;
  import com.zteits.clouds.api.apibase.bean.BizResult;
  import com.zteits.clouds.api.dto.sys.TdWxcpMsgSendConfigDTO;
  import com.zteits.clouds.api.dto.sys.param.QueryWxcpMsgSendByAgentReq;
  import com.zteits.clouds.api.service.sys.WxcpMsgSendConfigService;
  import com.zteits.sys.dao.WxcpMsgSendConfigDao;
  import com.zteits.sys.domain.TdWxcpMsgSendConfig;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.stereotype.Service;
  
  import java.util.ArrayList;
  import java.util.List;
  
  /**
   * Copyright: Copyright (c) 2017  zteits
   *
   * @ClassName: WxcpMsgSendConfigServiceImpl.java
   * @Description:
   * @version: v1.0.0
   * @author: wangfs
   * @date: 2019-03-13 16:05
   * Modification History:
   * Date             Author          Version            Description
   * ---------------------------------------------------------*
   * 2019-03-13     wangfs              v1.0.0               创建
   */
  @Service("com.zteits.clouds.api.service.sys.WxcpMsgSendConfigService.WxcpMsgSendConfigServiceImpl")
  public class WxcpMsgSendConfigServiceImpl implements WxcpMsgSendConfigService {
  
      @Autowired
      private WxcpMsgSendConfigDao wxcpMsgSendConfigDao;
      @Override
      public BizResult<List<TdWxcpMsgSendConfigDTO>> queryWxcpMsgSendByAgentMsgType(QueryWxcpMsgSendByAgentReq request) {
          List<TdWxcpMsgSendConfigDTO> wxcpMsgSendConfigList= new ArrayList<>();
          List<TdWxcpMsgSendConfig> tdWxcpMsgSendConfigs = wxcpMsgSendConfigDao.queryWxcpMsgSendByAgentMsgType(request);
          if(CollectionUtils.isNotEmpty(tdWxcpMsgSendConfigs)){
              ListCopyUtil.listCopyProperties(tdWxcpMsgSendConfigs,wxcpMsgSendConfigList,TdWxcpMsgSendConfigDTO.class);
          }
  
          return new BizResult<List<TdWxcpMsgSendConfigDTO>> (wxcpMsgSendConfigList);
      }
  }