|
|
|
@ -9,6 +9,7 @@ import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import cn.hutool.json.JSONArray; |
|
|
|
|
import cn.hutool.json.JSONUtil; |
|
|
|
|
import com.alibaba.druid.support.json.JSONUtils; |
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.extension.api.R; |
|
|
|
@ -51,6 +52,7 @@ import com.jianshui.system.service.ICompanyserviceService; |
|
|
|
|
import com.jianshui.system.service.IServiceManageService; |
|
|
|
|
import io.swagger.annotations.*; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.apache.ibatis.annotations.Param; |
|
|
|
|
import org.apache.pdfbox.pdmodel.PDDocument; |
|
|
|
|
import org.apache.pdfbox.rendering.PDFRenderer; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -2264,10 +2266,10 @@ public class InvoiceController { |
|
|
|
|
@ApiImplicitParam(name = "identity", value = "身份认证", dataType = "java.lang.Void", example = "1130", required = true), |
|
|
|
|
@ApiImplicitParam(name = "order", value = "请求体", dataType = "java.lang.Void", required = true)}) |
|
|
|
|
@PostMapping({"/api/invoice/v1/saveInvoice", "/api/invoice/v1/saveInvoice/{identity}", "/invoice/saveInvoice"}) |
|
|
|
|
public Object saveInvoice(HttpServletRequest request |
|
|
|
|
, String identity,String billInfoId,JSONObject resultJSON) throws Exception { |
|
|
|
|
public Object saveInvoice(@Param("identity") String identity, @Param("billInfoId") String billInfoId, @Param("resultJSON") String resultJSON) throws Exception { |
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(resultJSON); |
|
|
|
|
IInvoiceApiService invoiceService = invoiceServiceFactory.getService("aisinoZhongQi_console_invoice"); |
|
|
|
|
return invoiceService.saveInvoice(identity,billInfoId,resultJSON); |
|
|
|
|
return invoiceService.saveInvoice(billInfoId,identity,jsonObject); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|