parent
a7e9b55c23
commit
c2b26af978
@ -1,41 +0,0 @@
|
||||
package com.djy.basic.Invoice.controller;
|
||||
|
||||
import com.djy.basic.Invoice.service.InvoiceRecordService;
|
||||
import com.djy.basic.Invoice.service.ParameterRecordService;
|
||||
import com.djy.basic.Invoice.vo.req.InvoiceReq;
|
||||
import com.djy.core.http.HttpResult;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/invoice")
|
||||
@Tag(name = "InvoiceRecordController",description = "发票Controller")
|
||||
public class InvoiceRecordController {
|
||||
|
||||
private final InvoiceRecordService invoiceRecordService;
|
||||
|
||||
@Autowired
|
||||
private ParameterRecordService parameterRecordService;
|
||||
|
||||
public InvoiceRecordController(InvoiceRecordService invoiceRecordService) {
|
||||
this.invoiceRecordService = invoiceRecordService;
|
||||
}
|
||||
|
||||
@Operation(description = "获取发票详细信息")
|
||||
@GetMapping("getInvoiceInfo")
|
||||
public HttpResult<Void> getInvoiceInfo(InvoiceReq invoiceReq){
|
||||
this.invoiceRecordService.getInvoiceInfo(invoiceReq);
|
||||
return HttpResult.ok();
|
||||
}
|
||||
|
||||
@PostMapping("getParameter")
|
||||
public HttpResult getParameter(@RequestBody String companyId){
|
||||
String amount = parameterRecordService.getAmount(companyId);
|
||||
System.out.println(amount);
|
||||
return HttpResult.ok(amount);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,262 +0,0 @@
|
||||
package com.djy.basic.Invoice.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description invoiceRecord
|
||||
* @author
|
||||
* @date 2022-05-11
|
||||
*/
|
||||
@Data
|
||||
public class InvoiceRecord {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* gid
|
||||
*/
|
||||
private String gid;
|
||||
|
||||
/**
|
||||
* fromid
|
||||
*/
|
||||
private String fromid;
|
||||
|
||||
/**
|
||||
* fromsystem
|
||||
*/
|
||||
private String fromsystem;
|
||||
|
||||
/**
|
||||
* compid
|
||||
*/
|
||||
private String compid;
|
||||
|
||||
/**
|
||||
* buyername
|
||||
*/
|
||||
private String buyername;
|
||||
|
||||
/**
|
||||
* buyertaxnum
|
||||
*/
|
||||
private String buyertaxnum;
|
||||
|
||||
/**
|
||||
* buyertel
|
||||
*/
|
||||
private String buyertel;
|
||||
|
||||
/**
|
||||
* buyeraddress
|
||||
*/
|
||||
private String buyeraddress;
|
||||
|
||||
/**
|
||||
* buyeraccount
|
||||
*/
|
||||
private String buyeraccount;
|
||||
|
||||
/**
|
||||
* invoicedate
|
||||
*/
|
||||
private Date invoicedate;
|
||||
|
||||
/**
|
||||
* invoicetype
|
||||
*/
|
||||
private String invoicetype;
|
||||
|
||||
/**
|
||||
* salername
|
||||
*/
|
||||
private String salername;
|
||||
|
||||
/**
|
||||
* salertaxnum
|
||||
*/
|
||||
private String salertaxnum;
|
||||
|
||||
/**
|
||||
* salertel
|
||||
*/
|
||||
private String salertel;
|
||||
|
||||
/**
|
||||
* saleraddress
|
||||
*/
|
||||
private String saleraddress;
|
||||
|
||||
/**
|
||||
* saleraccount
|
||||
*/
|
||||
private String saleraccount;
|
||||
|
||||
/**
|
||||
* invoicecode
|
||||
*/
|
||||
private String invoicecode;
|
||||
|
||||
/**
|
||||
* invoicenum
|
||||
*/
|
||||
private String invoicenum;
|
||||
|
||||
/**
|
||||
* pushmode
|
||||
*/
|
||||
private String pushmode;
|
||||
|
||||
/**
|
||||
* buyerphone
|
||||
*/
|
||||
private String buyerphone;
|
||||
|
||||
/**
|
||||
* email
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* invoiceline
|
||||
*/
|
||||
private String invoiceline;
|
||||
|
||||
/**
|
||||
* payee
|
||||
*/
|
||||
private String payee;
|
||||
|
||||
/**
|
||||
* checker
|
||||
*/
|
||||
private String checker;
|
||||
|
||||
/**
|
||||
* clerk
|
||||
*/
|
||||
private String clerk;
|
||||
|
||||
/**
|
||||
* orderno
|
||||
*/
|
||||
private String orderno;
|
||||
|
||||
/**
|
||||
* remark
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* createtime
|
||||
*/
|
||||
private Date createtime;
|
||||
|
||||
/**
|
||||
* createuser
|
||||
*/
|
||||
private String createuser;
|
||||
|
||||
/**
|
||||
* modifytime
|
||||
*/
|
||||
private Date modifytime;
|
||||
|
||||
/**
|
||||
* modifyuser
|
||||
*/
|
||||
private String modifyuser;
|
||||
|
||||
/**
|
||||
* status
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* serialno
|
||||
*/
|
||||
private String serialno;
|
||||
|
||||
/**
|
||||
* invcode
|
||||
*/
|
||||
private String invcode;
|
||||
|
||||
/**
|
||||
* invnum
|
||||
*/
|
||||
private String invnum;
|
||||
|
||||
/**
|
||||
* total
|
||||
*/
|
||||
private Double total;
|
||||
|
||||
/**
|
||||
* totalwords
|
||||
*/
|
||||
private String totalwords;
|
||||
|
||||
/**
|
||||
* pdfurl
|
||||
*/
|
||||
private String pdfurl;
|
||||
|
||||
/**
|
||||
* pictureurl
|
||||
*/
|
||||
private String pictureurl;
|
||||
|
||||
/**
|
||||
* resultjson
|
||||
*/
|
||||
private String resultjson;
|
||||
|
||||
/**
|
||||
* requireremark
|
||||
*/
|
||||
private String requireremark;
|
||||
|
||||
/**
|
||||
* amountusd
|
||||
*/
|
||||
private Double amountusd;
|
||||
|
||||
/**
|
||||
* pdfnasurl
|
||||
*/
|
||||
private String pdfnasurl;
|
||||
|
||||
/**
|
||||
* extenddata
|
||||
*/
|
||||
private String extenddata;
|
||||
|
||||
/**
|
||||
* apisendtime
|
||||
*/
|
||||
private Date apisendtime;
|
||||
|
||||
/**
|
||||
* apireadtime
|
||||
*/
|
||||
private Date apireadtime;
|
||||
|
||||
/**
|
||||
* applyuser
|
||||
*/
|
||||
private String applyuser;
|
||||
|
||||
/**
|
||||
* clerkid
|
||||
*/
|
||||
private String clerkid;
|
||||
|
||||
/**
|
||||
* mblno
|
||||
*/
|
||||
private String mblno;
|
||||
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
package com.djy.basic.Invoice.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @description invoiceRecord
|
||||
* @author
|
||||
* @date 2022-05-11
|
||||
*/
|
||||
@Data
|
||||
public class ParameterRecord {
|
||||
|
||||
private String amount;
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
package com.djy.basic.Invoice.model.mapper;
|
||||
|
||||
import com.djy.basic.Invoice.model.InvoiceRecord;
|
||||
import com.djy.core.cmapper.CommonMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface InvoiceRecordMapper extends CommonMapper<InvoiceRecord> {
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
package com.djy.basic.Invoice.model.mapper;
|
||||
|
||||
import com.djy.basic.Invoice.model.InvoiceRecord;
|
||||
import com.djy.basic.Invoice.model.ParameterRecord;
|
||||
import com.djy.core.cmapper.CommonMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface ParameterMapper extends CommonMapper<ParameterRecord> {
|
||||
|
||||
String getAmount(String companyId);
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
package com.djy.basic.Invoice.service;
|
||||
|
||||
import com.djy.basic.Invoice.vo.req.InvoiceReq;
|
||||
|
||||
public interface InvoiceRecordService {
|
||||
|
||||
/**
|
||||
* 获取发票信息
|
||||
* @param invoiceReq
|
||||
*/
|
||||
void getInvoiceInfo(InvoiceReq invoiceReq);
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
package com.djy.basic.Invoice.service;
|
||||
|
||||
import com.djy.basic.Invoice.vo.req.InvoiceReq;
|
||||
|
||||
public interface ParameterRecordService {
|
||||
|
||||
String getAmount(String companyId);
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package com.djy.basic.Invoice.service.impl;
|
||||
|
||||
import com.djy.basic.Invoice.model.mapper.InvoiceRecordMapper;
|
||||
import com.djy.basic.Invoice.service.InvoiceRecordService;
|
||||
import com.djy.basic.Invoice.vo.req.InvoiceReq;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class InvoiceRecordServiceImpl implements InvoiceRecordService {
|
||||
|
||||
@Autowired
|
||||
private InvoiceRecordMapper invoiceRecordMapper;
|
||||
|
||||
@Override
|
||||
public void getInvoiceInfo(InvoiceReq invoiceReq) {
|
||||
|
||||
}
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
package com.djy.basic.Invoice.service.impl;
|
||||
|
||||
import com.djy.basic.Invoice.model.mapper.InvoiceRecordMapper;
|
||||
import com.djy.basic.Invoice.model.mapper.ParameterMapper;
|
||||
import com.djy.basic.Invoice.service.InvoiceRecordService;
|
||||
import com.djy.basic.Invoice.service.ParameterRecordService;
|
||||
import com.djy.basic.Invoice.vo.req.InvoiceReq;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class ParameterRecordServiceImpl implements ParameterRecordService {
|
||||
|
||||
@Autowired
|
||||
private ParameterMapper parameterMapper;
|
||||
|
||||
|
||||
@Override
|
||||
public String getAmount(String companyId) {
|
||||
return parameterMapper.getAmount(companyId);
|
||||
}
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
package com.djy.basic.Invoice.vo.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class Bill {
|
||||
|
||||
private String BSNO;
|
||||
|
||||
private String MBLNO;
|
||||
|
||||
private String Yard;
|
||||
|
||||
private String Vessel;
|
||||
|
||||
private String Voyno;
|
||||
|
||||
private String ETD;
|
||||
|
||||
private String PortLoadId;
|
||||
|
||||
private String PortLoad;
|
||||
|
||||
private String PortDischargeId;
|
||||
|
||||
private String PortDischarge;
|
||||
|
||||
private String CntrTotal;
|
||||
|
||||
private String PlaceReceiptId;
|
||||
|
||||
private String PlaceReceipt;
|
||||
|
||||
private String PlaceDeliveryId;
|
||||
|
||||
private String PlaceDelivery;
|
||||
|
||||
private String DestinationId;
|
||||
|
||||
private String Destination;
|
||||
|
||||
private List<Fee> feeList;
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
package com.djy.basic.Invoice.vo.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Fee {
|
||||
|
||||
private String FeeId;
|
||||
|
||||
private String FeeName;
|
||||
|
||||
private String CustomerName;
|
||||
|
||||
private String Unit;
|
||||
|
||||
private int UnitPrice;
|
||||
|
||||
private int Quantity;
|
||||
|
||||
private int Amount;
|
||||
|
||||
private String Currency;
|
||||
|
||||
private int ExchangeRate;
|
||||
|
||||
private String Remark;
|
||||
|
||||
private int Sort;
|
||||
|
||||
private int TaxRate;
|
||||
|
||||
private int NoTaxAmount;
|
||||
|
||||
private int Tax;
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
package com.djy.basic.Invoice.vo.req;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class InvoiceReq {
|
||||
|
||||
private String LinkId;
|
||||
|
||||
private String CompanyId;
|
||||
|
||||
private String Email;
|
||||
|
||||
private String BuyerName;
|
||||
|
||||
private String BuyerTaxNum;
|
||||
|
||||
private String BuyerTel;
|
||||
|
||||
private String BuyerAddress;
|
||||
|
||||
private String BuyerAccount;
|
||||
|
||||
private String SalerName;
|
||||
|
||||
private String SalerTaxNum;
|
||||
|
||||
private String SalerTel;
|
||||
|
||||
private String SalerAddress;
|
||||
|
||||
private String SalerAccount;
|
||||
|
||||
private String Payee;
|
||||
|
||||
private String Checker;
|
||||
|
||||
private String Clerk;
|
||||
|
||||
private String RemarkTemplate;
|
||||
|
||||
private List<Bill> billList;
|
||||
}
|
Loading…
Reference in New Issue