package cn.superdesk.uniorder.dubbo.provider.invoice.customer.invoiced;

import cn.superdesk.uniorder.common.security.dto.LoginSysUser;
import cn.superdesk.uniorder.dao.entity.invoice.customer.invoiced.InvoiceInvoiced;
import cn.superdesk.uniorder.dubbo.facade.invoice.customer.invoiced.DubboInvoiceInvoicedFieldDeletedService;
import cn.superdesk.uniorder.service.invoice.customer.invoiced.InvoiceInvoicedFieldDeletedService;
import com.alibaba.dubbo.config.annotation.Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 简易状态机 星型结构
 * @Author: linjinyu
 * @CreateDate: 10/12/20 4:28 PM
 * @UpdateUser: linjinyu
 * @UpdateDate: 10/12/20 4:28 PM
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@Slf4j
@Service(version = "1.0.0", retries = -1, timeout = 10000)
public class DubboInvoiceInvoicedFieldDeletedServiceImpl implements DubboInvoiceInvoicedFieldDeletedService {

	@Autowired
	private InvoiceInvoicedFieldDeletedService invoiceInvoicedFieldDeletedService;

	/****************************************** 状态机 外部使用 类门面 start ******************************************/
	// 状态流转为 正常(0, "正常")
	@Override
	public void opInit(InvoiceInvoiced entity, LoginSysUser loginSysUser) {
		invoiceInvoicedFieldDeletedService.opInit(entity, loginSysUser);
	}

	// 状态流转为 删除(1, "删除")
	@Override
	public void opDelete(InvoiceInvoiced entity, LoginSysUser loginSysUser) {
		invoiceInvoicedFieldDeletedService.opDelete(entity, loginSysUser);
	}

	/****************************************** 状态机 外部使用 类门面   end ******************************************/


}
