package com.huigou.topsun.customer.application.Impl;

import com.huigou.data.query.model.QueryDescriptor;
import com.huigou.topsun.customer.application.CustomerContactApplication;
import com.huigou.topsun.customer.domain.CustomerContact;
import com.huigou.uasp.bmp.common.application.BaseApplication;
import org.springframework.stereotype.Service;

@Service
public class CustomerContactApplicationImpl extends BaseApplication implements CustomerContactApplication {
    public static final String QUERY_XML_FILE_PATH = "config/topsun/customer/customerMapper.xml";

    @Override
    public void deleteByCustomerId(String customerId) {
        QueryDescriptor queryDescriptor = sqlExecutorDao.getQuery(QUERY_XML_FILE_PATH, "deleteContact");
        sqlExecutorDao.executeUpdate(queryDescriptor.getSql(), customerId);

    }
}
