package com.hzya.frame.seeyon.makeinvoice.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.seeyon.makeinvoice.dao.IMakeInvoiceDao;
import com.hzya.frame.seeyon.makeinvoice.entity.MakeInvoiceEntity;
import com.hzya.frame.seeyon.makeinvoice.service.IMakeInvoiceService;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("MakeInvoiceServiceImpl")
public class MakeInvoiceServiceImpl extends BaseService<MakeInvoiceEntity, String> implements IMakeInvoiceService {

@Autowired
private IMakeInvoiceDao makeInvoiceDao;
    @Override
    public JsonResultEntity sendMakeInvoiceSw(JSONObject requestJson) {
        MakeInvoiceEntity makeInvoice = new MakeInvoiceEntity();
        makeInvoice.setDataSourceCode("HT_OA");
        List<MakeInvoiceEntity> makeInvoiceEntityList = makeInvoiceDao.getMakeInvoiceByState(makeInvoice);
        return  BaseResult.getSuccessMessageEntity("操作成功");
    }
}
