Blame view

parking-module-pay/src/main/java/com/zteits/pay/biz/TdCMsgTemplateServiceImpl.java 1.12 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
  package com.zteits.pay.biz;
  
  import org.springframework.beans.BeanUtils;
  import org.springframework.beans.factory.annotation.Autowired;
  
  import com.zteits.clouds.api.apibase.bean.BizResult;
  import com.zteits.clouds.api.dto.pay.TdCMsgTemplateDTO;
  import com.zteits.clouds.api.dto.pay.param.TdCMsgTemplateRequest;
  import com.zteits.clouds.api.service.pay.TdCMsgTemplateService;
  import com.zteits.pay.dao.TdCMsgTemplateDao;
  import com.zteits.pay.domain.TdCMsgTemplate;
  import org.springframework.stereotype.Service;
  
  @Service("com.zteits.pay.biz.TdCMsgTemplateServiceImpl")
  public class TdCMsgTemplateServiceImpl implements TdCMsgTemplateService{
  	@Autowired
  	private TdCMsgTemplateDao tdCMsgTemplateDao;
  	@Override
  	public BizResult<TdCMsgTemplateDTO> queryMsgTempleteByTempleteId(TdCMsgTemplateRequest request) {
  		TdCMsgTemplateDTO tdCMsgTemplateDTO = new TdCMsgTemplateDTO();
  		TdCMsgTemplate tdCMsgTemplate = tdCMsgTemplateDao.queryMsgTempleteByTempleteId(request.getTemplateId());
  		if(tdCMsgTemplate !=null){
  			BeanUtils.copyProperties(tdCMsgTemplate, tdCMsgTemplateDTO);
  		}
  		return new BizResult<TdCMsgTemplateDTO>(tdCMsgTemplateDTO);
  	}
  
  }