From 1cee141815f9f9558f691916491376f92f8639da Mon Sep 17 00:00:00 2001 From: qianyu <617189624@qq.com> Date: Mon, 10 Jul 2023 08:40:42 +0800 Subject: [PATCH] =?UTF-8?q?230710=20=E5=9B=BD=E7=A8=8E=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E9=87=87=E8=B4=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaxInvoicePurchaseInfoController.java | 126 ++++ .../TaxInvoicePurchaseProductController.java | 126 ++++ .../domain/TaxInvoicePurchaseInfo.java | 289 +++++++++ .../domain/TaxInvoicePurchaseProduct.java | 149 +++++ .../exportDto/TaxInvoicePurchaseInfoDto.java | 290 +++++++++ .../TaxInvoicePurchaseProductDto.java | 151 +++++ .../mapper/TaxInvoicePurchaseInfoMapper.java | 61 ++ .../TaxInvoicePurchaseProductMapper.java | 61 ++ .../ITaxInvoicePurchaseInfoService.java | 61 ++ .../ITaxInvoicePurchaseProductService.java | 61 ++ .../TaxInvoicePurchaseInfoServiceImpl.java | 94 +++ .../TaxInvoicePurchaseProductServiceImpl.java | 94 +++ .../TaxInvoicePurchaseInfoMapper.xml | 147 +++++ .../TaxInvoicePurchaseProductMapper.xml | 87 +++ .../taxInvoice/taxInvoiceInfo/add.html | 6 +- .../taxInvoicePurchaseInfo/add.html | 567 ++++++++++++++++++ .../taxInvoicePurchaseInfo/edit.html | 454 ++++++++++++++ .../taxInvoicePurchaseInfo.html | 186 ++++++ .../taxInvoicePurchaseProduct/add.html | 75 +++ .../taxInvoicePurchaseProduct/edit.html | 76 +++ .../taxInvoicePurchaseProduct.html | 149 +++++ 21 files changed, 3305 insertions(+), 5 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoicePurchaseInfoController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoicePurchaseProductController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseInfo.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseProduct.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseInfoDto.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseProductDto.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseInfoMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseProductMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseInfoService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseProductService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseInfoServiceImpl.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseProductServiceImpl.java create mode 100644 ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoicePurchaseInfoMapper.xml create mode 100644 ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoicePurchaseProductMapper.xml create mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseInfo/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseInfo/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseInfo/taxInvoicePurchaseInfo.html create mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/taxInvoicePurchaseProduct.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoicePurchaseInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoicePurchaseInfoController.java new file mode 100644 index 00000000..14f345e3 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoicePurchaseInfoController.java @@ -0,0 +1,126 @@ +package com.ruoyi.taxInvoice.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.taxInvoice.domain.TaxInvoicePurchaseInfo; +import com.ruoyi.taxInvoice.service.ITaxInvoicePurchaseInfoService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 国税发票明细(采购)Controller + * + * @author ruoyi + * @date 2023-07-06 + */ +@Controller +@RequestMapping("/taxInvoice/taxInvoicePurchaseInfo") +public class TaxInvoicePurchaseInfoController extends BaseController +{ + private String prefix = "taxInvoice/taxInvoicePurchaseInfo"; + + @Autowired + private ITaxInvoicePurchaseInfoService taxInvoicePurchaseInfoService; + + @RequiresPermissions("taxInvoice:taxInvoicePurchaseInfo:view") + @GetMapping() + public String taxInvoicePurchaseInfo() + { + return prefix + "/taxInvoicePurchaseInfo"; + } + + /** + * 查询国税发票明细(采购)列表 + */ + @RequiresPermissions("taxInvoice:taxInvoicePurchaseInfo:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo) + { + startPage(); + List list = taxInvoicePurchaseInfoService.selectTaxInvoicePurchaseInfoList(taxInvoicePurchaseInfo); + return getDataTable(list); + } + + /** + * 导出国税发票明细(采购)列表 + */ + @RequiresPermissions("taxInvoice:taxInvoicePurchaseInfo:export") + @Log(title = "国税发票明细(采购)", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo) + { + List list = taxInvoicePurchaseInfoService.selectTaxInvoicePurchaseInfoList(taxInvoicePurchaseInfo); + ExcelUtil util = new ExcelUtil(TaxInvoicePurchaseInfo.class); + return util.exportExcel(list, "国税发票明细(采购)数据"); + } + + /** + * 新增国税发票明细(采购) + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存国税发票明细(采购) + */ + @RequiresPermissions("taxInvoice:taxInvoicePurchaseInfo:add") + @Log(title = "国税发票明细(采购)", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo) + { + return toAjax(taxInvoicePurchaseInfoService.insertTaxInvoicePurchaseInfo(taxInvoicePurchaseInfo)); + } + + /** + * 修改国税发票明细(采购) + */ + @GetMapping("/edit/{taxPurchaseInfoId}") + public String edit(@PathVariable("taxPurchaseInfoId") Long taxPurchaseInfoId, ModelMap mmap) + { + TaxInvoicePurchaseInfo taxInvoicePurchaseInfo = taxInvoicePurchaseInfoService.selectTaxInvoicePurchaseInfoById(taxPurchaseInfoId); + mmap.put("taxInvoicePurchaseInfo", taxInvoicePurchaseInfo); + return prefix + "/edit"; + } + + /** + * 修改保存国税发票明细(采购) + */ + @RequiresPermissions("taxInvoice:taxInvoicePurchaseInfo:edit") + @Log(title = "国税发票明细(采购)", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo) + { + return toAjax(taxInvoicePurchaseInfoService.updateTaxInvoicePurchaseInfo(taxInvoicePurchaseInfo)); + } + + /** + * 删除国税发票明细(采购) + */ + @RequiresPermissions("taxInvoice:taxInvoicePurchaseInfo:remove") + @Log(title = "国税发票明细(采购)", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(taxInvoicePurchaseInfoService.deleteTaxInvoicePurchaseInfoByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoicePurchaseProductController.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoicePurchaseProductController.java new file mode 100644 index 00000000..7fe4bc76 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoicePurchaseProductController.java @@ -0,0 +1,126 @@ +package com.ruoyi.taxInvoice.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.taxInvoice.domain.TaxInvoicePurchaseProduct; +import com.ruoyi.taxInvoice.service.ITaxInvoicePurchaseProductService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 国税发票(采购)Controller + * + * @author ruoyi + * @date 2023-07-10 + */ +@Controller +@RequestMapping("/taxInvoice/taxInvoicePurchaseProduct") +public class TaxInvoicePurchaseProductController extends BaseController +{ + private String prefix = "taxInvoice/taxInvoicePurchaseProduct"; + + @Autowired + private ITaxInvoicePurchaseProductService taxInvoicePurchaseProductService; + + @RequiresPermissions("taxInvoice:taxInvoicePurchaseProduct:view") + @GetMapping() + public String taxInvoicePurchaseProduct() + { + return prefix + "/taxInvoicePurchaseProduct"; + } + + /** + * 查询国税发票(采购)列表 + */ + @RequiresPermissions("taxInvoice:taxInvoicePurchaseProduct:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct) + { + startPage(); + List list = taxInvoicePurchaseProductService.selectTaxInvoicePurchaseProductList(taxInvoicePurchaseProduct); + return getDataTable(list); + } + + /** + * 导出国税发票(采购)列表 + */ + @RequiresPermissions("taxInvoice:taxInvoicePurchaseProduct:export") + @Log(title = "国税发票(采购)", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct) + { + List list = taxInvoicePurchaseProductService.selectTaxInvoicePurchaseProductList(taxInvoicePurchaseProduct); + ExcelUtil util = new ExcelUtil(TaxInvoicePurchaseProduct.class); + return util.exportExcel(list, "国税发票(采购)数据"); + } + + /** + * 新增国税发票(采购) + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存国税发票(采购) + */ + @RequiresPermissions("taxInvoice:taxInvoicePurchaseProduct:add") + @Log(title = "国税发票(采购)", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct) + { + return toAjax(taxInvoicePurchaseProductService.insertTaxInvoicePurchaseProduct(taxInvoicePurchaseProduct)); + } + + /** + * 修改国税发票(采购) + */ + @GetMapping("/edit/{taxPurchaseProductId}") + public String edit(@PathVariable("taxPurchaseProductId") Long taxPurchaseProductId, ModelMap mmap) + { + TaxInvoicePurchaseProduct taxInvoicePurchaseProduct = taxInvoicePurchaseProductService.selectTaxInvoicePurchaseProductById(taxPurchaseProductId); + mmap.put("taxInvoicePurchaseProduct", taxInvoicePurchaseProduct); + return prefix + "/edit"; + } + + /** + * 修改保存国税发票(采购) + */ + @RequiresPermissions("taxInvoice:taxInvoicePurchaseProduct:edit") + @Log(title = "国税发票(采购)", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct) + { + return toAjax(taxInvoicePurchaseProductService.updateTaxInvoicePurchaseProduct(taxInvoicePurchaseProduct)); + } + + /** + * 删除国税发票(采购) + */ + @RequiresPermissions("taxInvoice:taxInvoicePurchaseProduct:remove") + @Log(title = "国税发票(采购)", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(taxInvoicePurchaseProductService.deleteTaxInvoicePurchaseProductByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseInfo.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseInfo.java new file mode 100644 index 00000000..9486d3c8 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseInfo.java @@ -0,0 +1,289 @@ +package com.ruoyi.taxInvoice.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 国税发票明细(采购)对象 tax_invoice_purchase_info + * + * @author ruoyi + * @date 2023-07-06 + */ +public class TaxInvoicePurchaseInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private Long taxPurchaseInfoId; + + /** 厂商名称 */ + @Excel(name = "厂商名称") + private String supplierName; + + /** 厂商代码 */ + @Excel(name = "厂商代码") + private String supplierCode; + + /** 发票号码 */ + @Excel(name = "发票号码") + private String taxPurchaseCode; + + /** 合同号码 */ + @Excel(name = "合同号码") + private String contractCode; + + /** 付款方式 */ + @Excel(name = "付款方式") + private String paymentMethod; + + /** 到票日期 */ + @Excel(name = "到票日期") + private String arrivalDate; + + /** 离境日期 */ + @Excel(name = "离境日期") + private String departureDate; + + /** 运输方式 */ + @Excel(name = "运输方式") + private String modeOfTransport; + + /** 出口海关 */ + @Excel(name = "出口海关") + private String exportCustoms; + + /** 运输工具名称 */ + @Excel(name = "运输工具名称") + private String conveyance; + + /** 币种 */ + @Excel(name = "币种") + private String currency; + + /** 件数(箱数) */ + @Excel(name = "件数", readConverterExp = "箱=数") + private Long packageNumber; + + /** 抵运国(地区) */ + @Excel(name = "抵运国", readConverterExp = "地=区") + private String arrivalOuntry; + + /** 指运港 */ + @Excel(name = "指运港") + private String destinationPort; + + /** 提运单号 */ + @Excel(name = "提运单号") + private String deliveryNumber; + + /** 国税发票编号 */ + @Excel(name = "国税发票编号") + private String nationalTaxInvoiceNumber; + + /** 发票印字版号 */ + @Excel(name = "发票印字版号") + private String invoicePrintingVersionNumber; + + /** 备注 */ + @Excel(name = "备注") + private String notes; + + public void setTaxPurchaseInfoId(Long taxPurchaseInfoId) + { + this.taxPurchaseInfoId = taxPurchaseInfoId; + } + + public Long getTaxPurchaseInfoId() + { + return taxPurchaseInfoId; + } + public void setSupplierName(String supplierName) + { + this.supplierName = supplierName; + } + + public String getSupplierName() + { + return supplierName; + } + public void setSupplierCode(String supplierCode) + { + this.supplierCode = supplierCode; + } + + public String getSupplierCode() + { + return supplierCode; + } + public void setTaxPurchaseCode(String taxPurchaseCode) + { + this.taxPurchaseCode = taxPurchaseCode; + } + + public String getTaxPurchaseCode() + { + return taxPurchaseCode; + } + public void setContractCode(String contractCode) + { + this.contractCode = contractCode; + } + + public String getContractCode() + { + return contractCode; + } + public void setPaymentMethod(String paymentMethod) + { + this.paymentMethod = paymentMethod; + } + + public String getPaymentMethod() + { + return paymentMethod; + } + public void setArrivalDate(String arrivalDate) + { + this.arrivalDate = arrivalDate; + } + + public String getArrivalDate() + { + return arrivalDate; + } + public void setDepartureDate(String departureDate) + { + this.departureDate = departureDate; + } + + public String getDepartureDate() + { + return departureDate; + } + public void setModeOfTransport(String modeOfTransport) + { + this.modeOfTransport = modeOfTransport; + } + + public String getModeOfTransport() + { + return modeOfTransport; + } + public void setExportCustoms(String exportCustoms) + { + this.exportCustoms = exportCustoms; + } + + public String getExportCustoms() + { + return exportCustoms; + } + public void setConveyance(String conveyance) + { + this.conveyance = conveyance; + } + + public String getConveyance() + { + return conveyance; + } + public void setCurrency(String currency) + { + this.currency = currency; + } + + public String getCurrency() + { + return currency; + } + public void setPackageNumber(Long packageNumber) + { + this.packageNumber = packageNumber; + } + + public Long getPackageNumber() + { + return packageNumber; + } + public void setArrivalOuntry(String arrivalOuntry) + { + this.arrivalOuntry = arrivalOuntry; + } + + public String getArrivalOuntry() + { + return arrivalOuntry; + } + public void setDestinationPort(String destinationPort) + { + this.destinationPort = destinationPort; + } + + public String getDestinationPort() + { + return destinationPort; + } + public void setDeliveryNumber(String deliveryNumber) + { + this.deliveryNumber = deliveryNumber; + } + + public String getDeliveryNumber() + { + return deliveryNumber; + } + public void setNationalTaxInvoiceNumber(String nationalTaxInvoiceNumber) + { + this.nationalTaxInvoiceNumber = nationalTaxInvoiceNumber; + } + + public String getNationalTaxInvoiceNumber() + { + return nationalTaxInvoiceNumber; + } + public void setInvoicePrintingVersionNumber(String invoicePrintingVersionNumber) + { + this.invoicePrintingVersionNumber = invoicePrintingVersionNumber; + } + + public String getInvoicePrintingVersionNumber() + { + return invoicePrintingVersionNumber; + } + public void setNotes(String notes) + { + this.notes = notes; + } + + public String getNotes() + { + return notes; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("taxPurchaseInfoId", getTaxPurchaseInfoId()) + .append("supplierName", getSupplierName()) + .append("supplierCode", getSupplierCode()) + .append("taxPurchaseCode", getTaxPurchaseCode()) + .append("contractCode", getContractCode()) + .append("paymentMethod", getPaymentMethod()) + .append("arrivalDate", getArrivalDate()) + .append("departureDate", getDepartureDate()) + .append("modeOfTransport", getModeOfTransport()) + .append("exportCustoms", getExportCustoms()) + .append("conveyance", getConveyance()) + .append("currency", getCurrency()) + .append("packageNumber", getPackageNumber()) + .append("arrivalOuntry", getArrivalOuntry()) + .append("destinationPort", getDestinationPort()) + .append("deliveryNumber", getDeliveryNumber()) + .append("nationalTaxInvoiceNumber", getNationalTaxInvoiceNumber()) + .append("invoicePrintingVersionNumber", getInvoicePrintingVersionNumber()) + .append("notes", getNotes()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseProduct.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseProduct.java new file mode 100644 index 00000000..e1a73ff9 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseProduct.java @@ -0,0 +1,149 @@ +package com.ruoyi.taxInvoice.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 国税发票(采购)对象 tax_invoice_purchase_product + * + * @author ruoyi + * @date 2023-07-10 + */ +public class TaxInvoicePurchaseProduct extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private Long taxPurchaseProductId; + + /** 发票编号 */ + @Excel(name = "发票编号") + private String taxPurchaseCode; + + /** 料号 */ + @Excel(name = "料号") + private String productCode; + + /** 品名 */ + @Excel(name = "品名") + private String productName; + + /** 单位 */ + @Excel(name = "单位") + private String inventoryUnit; + + /** 数量 */ + @Excel(name = "数量") + private Long count; + + /** 币种 */ + @Excel(name = "币种") + private String commonCurrency; + + /** 单价 */ + @Excel(name = "单价") + private String monovalent; + + /** 金额 */ + @Excel(name = "金额") + private String amount; + + public void setTaxPurchaseProductId(Long taxPurchaseProductId) + { + this.taxPurchaseProductId = taxPurchaseProductId; + } + + public Long getTaxPurchaseProductId() + { + return taxPurchaseProductId; + } + public void setTaxPurchaseCode(String taxPurchaseCode) + { + this.taxPurchaseCode = taxPurchaseCode; + } + + public String getTaxPurchaseCode() + { + return taxPurchaseCode; + } + public void setProductCode(String productCode) + { + this.productCode = productCode; + } + + public String getProductCode() + { + return productCode; + } + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + public void setInventoryUnit(String inventoryUnit) + { + this.inventoryUnit = inventoryUnit; + } + + public String getInventoryUnit() + { + return inventoryUnit; + } + public void setCount(Long count) + { + this.count = count; + } + + public Long getCount() + { + return count; + } + public void setCommonCurrency(String commonCurrency) + { + this.commonCurrency = commonCurrency; + } + + public String getCommonCurrency() + { + return commonCurrency; + } + public void setMonovalent(String monovalent) + { + this.monovalent = monovalent; + } + + public String getMonovalent() + { + return monovalent; + } + public void setAmount(String amount) + { + this.amount = amount; + } + + public String getAmount() + { + return amount; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("taxPurchaseProductId", getTaxPurchaseProductId()) + .append("taxPurchaseCode", getTaxPurchaseCode()) + .append("productCode", getProductCode()) + .append("productName", getProductName()) + .append("inventoryUnit", getInventoryUnit()) + .append("count", getCount()) + .append("commonCurrency", getCommonCurrency()) + .append("monovalent", getMonovalent()) + .append("amount", getAmount()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseInfoDto.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseInfoDto.java new file mode 100644 index 00000000..c596c5ec --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseInfoDto.java @@ -0,0 +1,290 @@ +package com.ruoyi.taxInvoice.domain.exportDto; + +import com.alibaba.excel.annotation.ExcelProperty; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 国税发票明细(采购)对象 tax_invoice_purchase_info + * + * @author ruoyi + * @date 2023-07-06 + */ +public class TaxInvoicePurchaseInfoDto extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private Long taxPurchaseInfoId; + + /** 厂商名称 */ + @ExcelProperty("厂商名称") + private String supplierName; + + /** 厂商代码 */ + @ExcelProperty("厂商代码") + private String supplierCode; + + /** 发票号码 */ + @ExcelProperty("发票号码") + private String taxPurchaseCode; + + /** 合同号码 */ + @ExcelProperty("合同号码") + private String contractCode; + + /** 付款方式 */ + @ExcelProperty("付款方式") + private String paymentMethod; + + /** 到票日期 */ + @ExcelProperty("到票日期") + private String arrivalDate; + + /** 离境日期 */ + @ExcelProperty("离境日期") + private String departureDate; + + /** 运输方式 */ + @ExcelProperty("运输方式") + private String modeOfTransport; + + /** 出口海关 */ + @ExcelProperty("出口海关") + private String exportCustoms; + + /** 运输工具名称 */ + @ExcelProperty("运输工具名称") + private String conveyance; + + /** 币种 */ + @ExcelProperty("币种") + private String currency; + + /** 件数(箱数) */ + @ExcelProperty("件数") + private Long packageNumber; + + /** 抵运国(地区) */ + @ExcelProperty("抵运国") + private String arrivalOuntry; + + /** 指运港 */ + @ExcelProperty("指运港") + private String destinationPort; + + /** 提运单号 */ + @ExcelProperty("提运单号") + private String deliveryNumber; + + /** 国税发票编号 */ + @ExcelProperty("国税发票编号") + private String nationalTaxInvoiceNumber; + + /** 发票印字版号 */ + @ExcelProperty("发票印字版号") + private String invoicePrintingVersionNumber; + + /** 备注 */ + @ExcelProperty("备注") + private String notes; + + public void setTaxPurchaseInfoId(Long taxPurchaseInfoId) + { + this.taxPurchaseInfoId = taxPurchaseInfoId; + } + + public Long getTaxPurchaseInfoId() + { + return taxPurchaseInfoId; + } + public void setSupplierName(String supplierName) + { + this.supplierName = supplierName; + } + + public String getSupplierName() + { + return supplierName; + } + public void setSupplierCode(String supplierCode) + { + this.supplierCode = supplierCode; + } + + public String getSupplierCode() + { + return supplierCode; + } + public void setTaxPurchaseCode(String taxPurchaseCode) + { + this.taxPurchaseCode = taxPurchaseCode; + } + + public String getTaxPurchaseCode() + { + return taxPurchaseCode; + } + public void setContractCode(String contractCode) + { + this.contractCode = contractCode; + } + + public String getContractCode() + { + return contractCode; + } + public void setPaymentMethod(String paymentMethod) + { + this.paymentMethod = paymentMethod; + } + + public String getPaymentMethod() + { + return paymentMethod; + } + public void setArrivalDate(String arrivalDate) + { + this.arrivalDate = arrivalDate; + } + + public String getArrivalDate() + { + return arrivalDate; + } + public void setDepartureDate(String departureDate) + { + this.departureDate = departureDate; + } + + public String getDepartureDate() + { + return departureDate; + } + public void setModeOfTransport(String modeOfTransport) + { + this.modeOfTransport = modeOfTransport; + } + + public String getModeOfTransport() + { + return modeOfTransport; + } + public void setExportCustoms(String exportCustoms) + { + this.exportCustoms = exportCustoms; + } + + public String getExportCustoms() + { + return exportCustoms; + } + public void setConveyance(String conveyance) + { + this.conveyance = conveyance; + } + + public String getConveyance() + { + return conveyance; + } + public void setCurrency(String currency) + { + this.currency = currency; + } + + public String getCurrency() + { + return currency; + } + public void setPackageNumber(Long packageNumber) + { + this.packageNumber = packageNumber; + } + + public Long getPackageNumber() + { + return packageNumber; + } + public void setArrivalOuntry(String arrivalOuntry) + { + this.arrivalOuntry = arrivalOuntry; + } + + public String getArrivalOuntry() + { + return arrivalOuntry; + } + public void setDestinationPort(String destinationPort) + { + this.destinationPort = destinationPort; + } + + public String getDestinationPort() + { + return destinationPort; + } + public void setDeliveryNumber(String deliveryNumber) + { + this.deliveryNumber = deliveryNumber; + } + + public String getDeliveryNumber() + { + return deliveryNumber; + } + public void setNationalTaxInvoiceNumber(String nationalTaxInvoiceNumber) + { + this.nationalTaxInvoiceNumber = nationalTaxInvoiceNumber; + } + + public String getNationalTaxInvoiceNumber() + { + return nationalTaxInvoiceNumber; + } + public void setInvoicePrintingVersionNumber(String invoicePrintingVersionNumber) + { + this.invoicePrintingVersionNumber = invoicePrintingVersionNumber; + } + + public String getInvoicePrintingVersionNumber() + { + return invoicePrintingVersionNumber; + } + public void setNotes(String notes) + { + this.notes = notes; + } + + public String getNotes() + { + return notes; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("taxPurchaseInfoId", getTaxPurchaseInfoId()) + .append("supplierName", getSupplierName()) + .append("supplierCode", getSupplierCode()) + .append("taxPurchaseCode", getTaxPurchaseCode()) + .append("contractCode", getContractCode()) + .append("paymentMethod", getPaymentMethod()) + .append("arrivalDate", getArrivalDate()) + .append("departureDate", getDepartureDate()) + .append("modeOfTransport", getModeOfTransport()) + .append("exportCustoms", getExportCustoms()) + .append("conveyance", getConveyance()) + .append("currency", getCurrency()) + .append("packageNumber", getPackageNumber()) + .append("arrivalOuntry", getArrivalOuntry()) + .append("destinationPort", getDestinationPort()) + .append("deliveryNumber", getDeliveryNumber()) + .append("nationalTaxInvoiceNumber", getNationalTaxInvoiceNumber()) + .append("invoicePrintingVersionNumber", getInvoicePrintingVersionNumber()) + .append("notes", getNotes()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseProductDto.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseProductDto.java new file mode 100644 index 00000000..2d82bed7 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseProductDto.java @@ -0,0 +1,151 @@ +package com.ruoyi.taxInvoice.domain.exportDto; + +import com.alibaba.excel.annotation.ExcelProperty; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 国税发票(采购)对象 tax_invoice_purchase_product + * + * @author ruoyi + * @date 2023-07-06 + */ +public class TaxInvoicePurchaseProductDto extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private Long taxPurchaseProductId; + + /** 发票编号 */ + @ExcelProperty("发票编号") + private String taxPurchaseCode; + + /** 料号 */ + @ExcelProperty("料号") + private String productCode; + + /** 品名 */ + @ExcelProperty("品名") + private String productName; + + /** 单位 */ + @ExcelProperty("单位") + private String inventoryUnit; + + /** 数量 */ + @ExcelProperty("数量") + private Long count; + + /** 币种 */ + @ExcelProperty("币种") + private String commonCurrency; + + /** 单价 */ + @ExcelProperty("单价") + private String monovalent; + + /** 金额 */ + @ExcelProperty("金额") + private String amount; + + public void setTaxPurchaseCode(String taxPurchaseCode) + { + this.taxPurchaseCode = taxPurchaseCode; + } + + public String getTaxPurchaseCode() + { + return taxPurchaseCode; + } + + public void setTaxPurchaseProductId(Long taxPurchaseProductId) + { + this.taxPurchaseProductId = taxPurchaseProductId; + } + + public Long getTaxPurchaseProductId() + { + return taxPurchaseProductId; + } + public void setProductCode(String productCode) + { + this.productCode = productCode; + } + + public String getProductCode() + { + return productCode; + } + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + public void setInventoryUnit(String inventoryUnit) + { + this.inventoryUnit = inventoryUnit; + } + + public String getInventoryUnit() + { + return inventoryUnit; + } + public void setCount(Long count) + { + this.count = count; + } + + public Long getCount() + { + return count; + } + public void setCommonCurrency(String commonCurrency) + { + this.commonCurrency = commonCurrency; + } + + public String getCommonCurrency() + { + return commonCurrency; + } + public void setMonovalent(String monovalent) + { + this.monovalent = monovalent; + } + + public String getMonovalent() + { + return monovalent; + } + public void setAmount(String amount) + { + this.amount = amount; + } + + public String getAmount() + { + return amount; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("taxPurchaseProductId", getTaxPurchaseProductId()) + .append("taxPurchaseCode", getTaxPurchaseCode()) + .append("productCode", getProductCode()) + .append("productName", getProductName()) + .append("inventoryUnit", getInventoryUnit()) + .append("count", getCount()) + .append("commonCurrency", getCommonCurrency()) + .append("monovalent", getMonovalent()) + .append("amount", getAmount()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseInfoMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseInfoMapper.java new file mode 100644 index 00000000..7b62a6ce --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseInfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.taxInvoice.mapper; + +import java.util.List; +import com.ruoyi.taxInvoice.domain.TaxInvoicePurchaseInfo; + +/** + * 国税发票明细(采购)Mapper接口 + * + * @author ruoyi + * @date 2023-07-06 + */ +public interface TaxInvoicePurchaseInfoMapper +{ + /** + * 查询国税发票明细(采购) + * + * @param taxPurchaseInfoId 国税发票明细(采购)ID + * @return 国税发票明细(采购) + */ + public TaxInvoicePurchaseInfo selectTaxInvoicePurchaseInfoById(Long taxPurchaseInfoId); + + /** + * 查询国税发票明细(采购)列表 + * + * @param taxInvoicePurchaseInfo 国税发票明细(采购) + * @return 国税发票明细(采购)集合 + */ + public List selectTaxInvoicePurchaseInfoList(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo); + + /** + * 新增国税发票明细(采购) + * + * @param taxInvoicePurchaseInfo 国税发票明细(采购) + * @return 结果 + */ + public int insertTaxInvoicePurchaseInfo(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo); + + /** + * 修改国税发票明细(采购) + * + * @param taxInvoicePurchaseInfo 国税发票明细(采购) + * @return 结果 + */ + public int updateTaxInvoicePurchaseInfo(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo); + + /** + * 删除国税发票明细(采购) + * + * @param taxPurchaseInfoId 国税发票明细(采购)ID + * @return 结果 + */ + public int deleteTaxInvoicePurchaseInfoById(Long taxPurchaseInfoId); + + /** + * 批量删除国税发票明细(采购) + * + * @param taxPurchaseInfoIds 需要删除的数据ID + * @return 结果 + */ + public int deleteTaxInvoicePurchaseInfoByIds(String[] taxPurchaseInfoIds); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseProductMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseProductMapper.java new file mode 100644 index 00000000..de7330df --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseProductMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.taxInvoice.mapper; + +import java.util.List; +import com.ruoyi.taxInvoice.domain.TaxInvoicePurchaseProduct; + +/** + * 国税发票(采购)Mapper接口 + * + * @author ruoyi + * @date 2023-07-10 + */ +public interface TaxInvoicePurchaseProductMapper +{ + /** + * 查询国税发票(采购) + * + * @param taxPurchaseProductId 国税发票(采购)ID + * @return 国税发票(采购) + */ + public TaxInvoicePurchaseProduct selectTaxInvoicePurchaseProductById(Long taxPurchaseProductId); + + /** + * 查询国税发票(采购)列表 + * + * @param taxInvoicePurchaseProduct 国税发票(采购) + * @return 国税发票(采购)集合 + */ + public List selectTaxInvoicePurchaseProductList(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct); + + /** + * 新增国税发票(采购) + * + * @param taxInvoicePurchaseProduct 国税发票(采购) + * @return 结果 + */ + public int insertTaxInvoicePurchaseProduct(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct); + + /** + * 修改国税发票(采购) + * + * @param taxInvoicePurchaseProduct 国税发票(采购) + * @return 结果 + */ + public int updateTaxInvoicePurchaseProduct(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct); + + /** + * 删除国税发票(采购) + * + * @param taxPurchaseProductId 国税发票(采购)ID + * @return 结果 + */ + public int deleteTaxInvoicePurchaseProductById(Long taxPurchaseProductId); + + /** + * 批量删除国税发票(采购) + * + * @param taxPurchaseProductIds 需要删除的数据ID + * @return 结果 + */ + public int deleteTaxInvoicePurchaseProductByIds(String[] taxPurchaseProductIds); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseInfoService.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseInfoService.java new file mode 100644 index 00000000..0ffb17ae --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseInfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.taxInvoice.service; + +import java.util.List; +import com.ruoyi.taxInvoice.domain.TaxInvoicePurchaseInfo; + +/** + * 国税发票明细(采购)Service接口 + * + * @author ruoyi + * @date 2023-07-06 + */ +public interface ITaxInvoicePurchaseInfoService +{ + /** + * 查询国税发票明细(采购) + * + * @param taxPurchaseInfoId 国税发票明细(采购)ID + * @return 国税发票明细(采购) + */ + public TaxInvoicePurchaseInfo selectTaxInvoicePurchaseInfoById(Long taxPurchaseInfoId); + + /** + * 查询国税发票明细(采购)列表 + * + * @param taxInvoicePurchaseInfo 国税发票明细(采购) + * @return 国税发票明细(采购)集合 + */ + public List selectTaxInvoicePurchaseInfoList(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo); + + /** + * 新增国税发票明细(采购) + * + * @param taxInvoicePurchaseInfo 国税发票明细(采购) + * @return 结果 + */ + public int insertTaxInvoicePurchaseInfo(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo); + + /** + * 修改国税发票明细(采购) + * + * @param taxInvoicePurchaseInfo 国税发票明细(采购) + * @return 结果 + */ + public int updateTaxInvoicePurchaseInfo(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo); + + /** + * 批量删除国税发票明细(采购) + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTaxInvoicePurchaseInfoByIds(String ids); + + /** + * 删除国税发票明细(采购)信息 + * + * @param taxPurchaseInfoId 国税发票明细(采购)ID + * @return 结果 + */ + public int deleteTaxInvoicePurchaseInfoById(Long taxPurchaseInfoId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseProductService.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseProductService.java new file mode 100644 index 00000000..af007454 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseProductService.java @@ -0,0 +1,61 @@ +package com.ruoyi.taxInvoice.service; + +import java.util.List; +import com.ruoyi.taxInvoice.domain.TaxInvoicePurchaseProduct; + +/** + * 国税发票(采购)Service接口 + * + * @author ruoyi + * @date 2023-07-10 + */ +public interface ITaxInvoicePurchaseProductService +{ + /** + * 查询国税发票(采购) + * + * @param taxPurchaseProductId 国税发票(采购)ID + * @return 国税发票(采购) + */ + public TaxInvoicePurchaseProduct selectTaxInvoicePurchaseProductById(Long taxPurchaseProductId); + + /** + * 查询国税发票(采购)列表 + * + * @param taxInvoicePurchaseProduct 国税发票(采购) + * @return 国税发票(采购)集合 + */ + public List selectTaxInvoicePurchaseProductList(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct); + + /** + * 新增国税发票(采购) + * + * @param taxInvoicePurchaseProduct 国税发票(采购) + * @return 结果 + */ + public int insertTaxInvoicePurchaseProduct(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct); + + /** + * 修改国税发票(采购) + * + * @param taxInvoicePurchaseProduct 国税发票(采购) + * @return 结果 + */ + public int updateTaxInvoicePurchaseProduct(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct); + + /** + * 批量删除国税发票(采购) + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTaxInvoicePurchaseProductByIds(String ids); + + /** + * 删除国税发票(采购)信息 + * + * @param taxPurchaseProductId 国税发票(采购)ID + * @return 结果 + */ + public int deleteTaxInvoicePurchaseProductById(Long taxPurchaseProductId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseInfoServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseInfoServiceImpl.java new file mode 100644 index 00000000..cd345bfa --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseInfoServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.taxInvoice.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.taxInvoice.mapper.TaxInvoicePurchaseInfoMapper; +import com.ruoyi.taxInvoice.domain.TaxInvoicePurchaseInfo; +import com.ruoyi.taxInvoice.service.ITaxInvoicePurchaseInfoService; +import com.ruoyi.common.core.text.Convert; + +/** + * 国税发票明细(采购)Service业务层处理 + * + * @author ruoyi + * @date 2023-07-06 + */ +@Service +public class TaxInvoicePurchaseInfoServiceImpl implements ITaxInvoicePurchaseInfoService +{ + @Autowired + private TaxInvoicePurchaseInfoMapper taxInvoicePurchaseInfoMapper; + + /** + * 查询国税发票明细(采购) + * + * @param taxPurchaseInfoId 国税发票明细(采购)ID + * @return 国税发票明细(采购) + */ + @Override + public TaxInvoicePurchaseInfo selectTaxInvoicePurchaseInfoById(Long taxPurchaseInfoId) + { + return taxInvoicePurchaseInfoMapper.selectTaxInvoicePurchaseInfoById(taxPurchaseInfoId); + } + + /** + * 查询国税发票明细(采购)列表 + * + * @param taxInvoicePurchaseInfo 国税发票明细(采购) + * @return 国税发票明细(采购) + */ + @Override + public List selectTaxInvoicePurchaseInfoList(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo) + { + return taxInvoicePurchaseInfoMapper.selectTaxInvoicePurchaseInfoList(taxInvoicePurchaseInfo); + } + + /** + * 新增国税发票明细(采购) + * + * @param taxInvoicePurchaseInfo 国税发票明细(采购) + * @return 结果 + */ + @Override + public int insertTaxInvoicePurchaseInfo(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo) + { + return taxInvoicePurchaseInfoMapper.insertTaxInvoicePurchaseInfo(taxInvoicePurchaseInfo); + } + + /** + * 修改国税发票明细(采购) + * + * @param taxInvoicePurchaseInfo 国税发票明细(采购) + * @return 结果 + */ + @Override + public int updateTaxInvoicePurchaseInfo(TaxInvoicePurchaseInfo taxInvoicePurchaseInfo) + { + return taxInvoicePurchaseInfoMapper.updateTaxInvoicePurchaseInfo(taxInvoicePurchaseInfo); + } + + /** + * 删除国税发票明细(采购)对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteTaxInvoicePurchaseInfoByIds(String ids) + { + return taxInvoicePurchaseInfoMapper.deleteTaxInvoicePurchaseInfoByIds(Convert.toStrArray(ids)); + } + + /** + * 删除国税发票明细(采购)信息 + * + * @param taxPurchaseInfoId 国税发票明细(采购)ID + * @return 结果 + */ + @Override + public int deleteTaxInvoicePurchaseInfoById(Long taxPurchaseInfoId) + { + return taxInvoicePurchaseInfoMapper.deleteTaxInvoicePurchaseInfoById(taxPurchaseInfoId); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseProductServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseProductServiceImpl.java new file mode 100644 index 00000000..8acb424e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseProductServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.taxInvoice.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.taxInvoice.mapper.TaxInvoicePurchaseProductMapper; +import com.ruoyi.taxInvoice.domain.TaxInvoicePurchaseProduct; +import com.ruoyi.taxInvoice.service.ITaxInvoicePurchaseProductService; +import com.ruoyi.common.core.text.Convert; + +/** + * 国税发票(采购)Service业务层处理 + * + * @author ruoyi + * @date 2023-07-10 + */ +@Service +public class TaxInvoicePurchaseProductServiceImpl implements ITaxInvoicePurchaseProductService +{ + @Autowired + private TaxInvoicePurchaseProductMapper taxInvoicePurchaseProductMapper; + + /** + * 查询国税发票(采购) + * + * @param taxPurchaseProductId 国税发票(采购)ID + * @return 国税发票(采购) + */ + @Override + public TaxInvoicePurchaseProduct selectTaxInvoicePurchaseProductById(Long taxPurchaseProductId) + { + return taxInvoicePurchaseProductMapper.selectTaxInvoicePurchaseProductById(taxPurchaseProductId); + } + + /** + * 查询国税发票(采购)列表 + * + * @param taxInvoicePurchaseProduct 国税发票(采购) + * @return 国税发票(采购) + */ + @Override + public List selectTaxInvoicePurchaseProductList(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct) + { + return taxInvoicePurchaseProductMapper.selectTaxInvoicePurchaseProductList(taxInvoicePurchaseProduct); + } + + /** + * 新增国税发票(采购) + * + * @param taxInvoicePurchaseProduct 国税发票(采购) + * @return 结果 + */ + @Override + public int insertTaxInvoicePurchaseProduct(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct) + { + return taxInvoicePurchaseProductMapper.insertTaxInvoicePurchaseProduct(taxInvoicePurchaseProduct); + } + + /** + * 修改国税发票(采购) + * + * @param taxInvoicePurchaseProduct 国税发票(采购) + * @return 结果 + */ + @Override + public int updateTaxInvoicePurchaseProduct(TaxInvoicePurchaseProduct taxInvoicePurchaseProduct) + { + return taxInvoicePurchaseProductMapper.updateTaxInvoicePurchaseProduct(taxInvoicePurchaseProduct); + } + + /** + * 删除国税发票(采购)对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteTaxInvoicePurchaseProductByIds(String ids) + { + return taxInvoicePurchaseProductMapper.deleteTaxInvoicePurchaseProductByIds(Convert.toStrArray(ids)); + } + + /** + * 删除国税发票(采购)信息 + * + * @param taxPurchaseProductId 国税发票(采购)ID + * @return 结果 + */ + @Override + public int deleteTaxInvoicePurchaseProductById(Long taxPurchaseProductId) + { + return taxInvoicePurchaseProductMapper.deleteTaxInvoicePurchaseProductById(taxPurchaseProductId); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoicePurchaseInfoMapper.xml b/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoicePurchaseInfoMapper.xml new file mode 100644 index 00000000..484c3607 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoicePurchaseInfoMapper.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + select tax_purchase_info_id, supplier_name, supplier_code, tax_purchase_code, contract_code, payment_method, arrival_date, departure_date, mode_of_transport, export_customs, conveyance, currency, package_number, arrival_ountry, destination_port, delivery_number, +national_tax_invoice_number, invoice_printing_version_number, notes from tax_invoice_purchase_info + + + + + + + + insert into tax_invoice_purchase_info + + supplier_name, + supplier_code, + tax_purchase_code, + contract_code, + payment_method, + arrival_date, + departure_date, + mode_of_transport, + export_customs, + conveyance, + currency, + package_number, + arrival_ountry, + destination_port, + delivery_number, + +national_tax_invoice_number, + invoice_printing_version_number, + notes, + + + #{supplierName}, + #{supplierCode}, + #{taxPurchaseCode}, + #{contractCode}, + #{paymentMethod}, + #{arrivalDate}, + #{departureDate}, + #{modeOfTransport}, + #{exportCustoms}, + #{conveyance}, + #{currency}, + #{packageNumber}, + #{arrivalOuntry}, + #{destinationPort}, + #{deliveryNumber}, + #{nationalTaxInvoiceNumber}, + #{invoicePrintingVersionNumber}, + #{notes}, + + + + + update tax_invoice_purchase_info + + supplier_name = #{supplierName}, + supplier_code = #{supplierCode}, + tax_purchase_code = #{taxPurchaseCode}, + contract_code = #{contractCode}, + payment_method = #{paymentMethod}, + arrival_date = #{arrivalDate}, + departure_date = #{departureDate}, + mode_of_transport = #{modeOfTransport}, + export_customs = #{exportCustoms}, + conveyance = #{conveyance}, + currency = #{currency}, + package_number = #{packageNumber}, + arrival_ountry = #{arrivalOuntry}, + destination_port = #{destinationPort}, + delivery_number = #{deliveryNumber}, + +national_tax_invoice_number = #{nationalTaxInvoiceNumber}, + invoice_printing_version_number = #{invoicePrintingVersionNumber}, + notes = #{notes}, + + where tax_purchase_info_id = #{taxPurchaseInfoId} + + + + delete from tax_invoice_purchase_info where tax_purchase_info_id = #{taxPurchaseInfoId} + + + + delete from tax_invoice_purchase_info where tax_purchase_info_id in + + #{taxPurchaseInfoId} + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoicePurchaseProductMapper.xml b/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoicePurchaseProductMapper.xml new file mode 100644 index 00000000..abf83132 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoicePurchaseProductMapper.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + select tax_purchase_product_id, product_code, product_name, inventory_unit, count, commonCurrency, monovalent, amount from tax_invoice_purchase_product + + + + + + + + insert into tax_invoice_purchase_product + + product_code, + product_name, + inventory_unit, + count, + commonCurrency, + monovalent, + amount, + + + #{productCode}, + #{productName}, + #{inventoryUnit}, + #{count}, + #{commonCurrency}, + #{monovalent}, + #{amount}, + + + + + update tax_invoice_purchase_product + + product_code = #{productCode}, + product_name = #{productName}, + inventory_unit = #{inventoryUnit}, + count = #{count}, + commonCurrency = #{commonCurrency}, + monovalent = #{monovalent}, + amount = #{amount}, + + where tax_purchase_product_id = #{taxPurchaseProductId} + + + + delete from tax_invoice_purchase_product where tax_purchase_product_id = #{taxPurchaseProductId} + + + + delete from tax_invoice_purchase_product where tax_purchase_product_id in + + #{taxPurchaseProductId} + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/add.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/add.html index 5c7d18d7..8434a49e 100644 --- a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/add.html +++ b/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/add.html @@ -203,14 +203,10 @@
-