package com.huatek.busi.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.huatek.busi.entity.LabBlqReportBasisData;
import com.huatek.busi.entity.LabDlReportBasisData;
import com.huatek.busi.entity.LabReportBasisData;
import com.huatek.busi.service.IRBlqBasisDataService;
import com.huatek.busi.service.IRDlBasisDataService;
import com.huatek.frame.base.util.BeanUtils;
import com.huatek.torch.sql.dao.impl.BaseDao;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Service(interfaceClass = IRDlBasisDataService.class)
@Transactional(rollbackFor = Exception.class)
public class LabDlReportBasisDataServiceImpl extends BaseDao<LabDlReportBasisData, String> implements IRDlBasisDataService {

    @Override
    public int insert(LabReportBasisData labReportBasisData){
        LabDlReportBasisData labDlReportBasisData = new LabDlReportBasisData();
        BeanUtils.copyProperties(labReportBasisData, labDlReportBasisData);
        return this.addLocal(labDlReportBasisData);
    }
}
