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> queryWxcpMsgSendByAgentMsgType(QueryWxcpMsgSendByAgentReq request) { List wxcpMsgSendConfigList= new ArrayList<>(); List tdWxcpMsgSendConfigs = wxcpMsgSendConfigDao.queryWxcpMsgSendByAgentMsgType(request); if(CollectionUtils.isNotEmpty(tdWxcpMsgSendConfigs)){ ListCopyUtil.listCopyProperties(tdWxcpMsgSendConfigs,wxcpMsgSendConfigList,TdWxcpMsgSendConfigDTO.class); } return new BizResult> (wxcpMsgSendConfigList); } }