From be9c161551ec27ebe756085a901baf4f81940990 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Tue, 22 Oct 2024 11:22:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A7=E7=89=88=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E5=9B=BD=E7=A8=8E=E5=8F=91=E7=A5=A8=EF=BC=88?= =?UTF-8?q?=E9=87=87=E8=B4=AD=EF=BC=89=E5=AF=B9=E8=B1=A1=20tax=5Finvoice?= =?UTF-8?q?=5Fpurchase=5Fproduct=E5=92=8C=E7=B3=BB=E7=BB=9F=E4=B8=AD?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E7=9A=84=E5=89=8D=E7=AB=AF=E6=89=80=E6=9C=89?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=92=8C=E5=90=8E=E7=AB=AF=E6=89=80=E6=9C=89?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=20=E5=92=8C=E5=AF=B9=E5=BA=94=E7=9A=84?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=8F=9C=E5=8D=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaxInvoicePurchaseProductController.java | 126 --------------- .../domain/TaxInvoicePurchaseProduct.java | 149 ----------------- .../TaxInvoicePurchaseProductDto.java | 151 ------------------ .../TaxInvoicePurchaseProductMapper.java | 61 ------- .../ITaxInvoicePurchaseProductService.java | 61 ------- .../TaxInvoicePurchaseProductServiceImpl.java | 94 ----------- .../taxInvoice/utils/CNNumberFormat.java | 120 -------------- .../TaxInvoicePurchaseProductMapper.xml | 87 ---------- .../taxInvoicePurchaseProduct/add.html | 75 --------- .../taxInvoicePurchaseProduct/edit.html | 76 --------- .../taxInvoicePurchaseProduct.html | 149 ----------------- 11 files changed, 1149 deletions(-) delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoicePurchaseProductController.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseProduct.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseProductDto.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseProductMapper.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseProductService.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseProductServiceImpl.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/utils/CNNumberFormat.java delete mode 100644 ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoicePurchaseProductMapper.xml delete mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/add.html delete mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/edit.html delete mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/taxInvoicePurchaseProduct.html 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 deleted file mode 100644 index 7fe4bc76..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoicePurchaseProductController.java +++ /dev/null @@ -1,126 +0,0 @@ -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/TaxInvoicePurchaseProduct.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseProduct.java deleted file mode 100644 index e1a73ff9..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoicePurchaseProduct.java +++ /dev/null @@ -1,149 +0,0 @@ -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/TaxInvoicePurchaseProductDto.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseProductDto.java deleted file mode 100644 index 2d82bed7..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoicePurchaseProductDto.java +++ /dev/null @@ -1,151 +0,0 @@ -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/TaxInvoicePurchaseProductMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseProductMapper.java deleted file mode 100644 index de7330df..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoicePurchaseProductMapper.java +++ /dev/null @@ -1,61 +0,0 @@ -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/ITaxInvoicePurchaseProductService.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseProductService.java deleted file mode 100644 index af007454..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoicePurchaseProductService.java +++ /dev/null @@ -1,61 +0,0 @@ -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/TaxInvoicePurchaseProductServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseProductServiceImpl.java deleted file mode 100644 index 8acb424e..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoicePurchaseProductServiceImpl.java +++ /dev/null @@ -1,94 +0,0 @@ -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/java/com/ruoyi/taxInvoice/utils/CNNumberFormat.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/utils/CNNumberFormat.java deleted file mode 100644 index 0ee5d603..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/utils/CNNumberFormat.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.ruoyi.taxInvoice.utils; - -import java.math.BigDecimal; -import java.text.DecimalFormat; -import java.text.NumberFormat; - -/* -* 数字大小写转化 -* */ -public class CNNumberFormat { - - /** - * 中文数字正写 - */ - private static final char[] cnNumbers = {'零', '壹', '贰', '叁', '肆', '伍', - '陆', '柒', '捌', '玖'}; - - private static final char[] stdNumbers = {'0', '1', '2', '3', '4', '5', - '6', '7', '8', '9'}; - - /** - * 货币单位 - */ -// 顺序不能变,否则下面的实现代码页需要同步修改 - private static final char[] units = {'厘', '分', '角', '元', '拾', '佰', - '仟', '万', '拾', '佰', '仟', '亿', '拾', '佰', '仟'}; - - /** - * 是否输出货币单位元角分的完整格式,简单格式通常用于套打纸张上已印有货币单位的情形。 - */ - private boolean fullFormat = true; - - public CNNumberFormat() { - - } - - public CNNumberFormat(boolean fullFormat) { - this.fullFormat = fullFormat; - } - - /** - * 取得大写形式的字符串 - * - * @return 中文正写的数字字符串 - */ - public String format(double d) { - NumberFormat nf = new DecimalFormat("#.###"); - String original = String.valueOf(nf.format(d)); - return this.transform(original); - } - - public String format(long ln) { - return this.transform(String.valueOf(ln)); - } - - private String transform(String original) { - String integerPart = ""; - String floatPart = ""; - - if (original.indexOf(".") > -1) { - int dotIndex = original.indexOf("."); - integerPart = original.substring(0, dotIndex); - floatPart = original.substring(dotIndex + 1); - } else { - integerPart = original; - } - StringBuffer sb = new StringBuffer(); - -// 整数部分处理 - for (int i = 0; i < integerPart.length(); i++) { - int number = Integer - .parseInt(String.valueOf(integerPart.charAt(i))); - sb.append(cnNumbers[number]); - if (fullFormat) { - sb.append(units[integerPart.length() + 2 - i]); - } - } - -// 小数部分处理 - if (floatPart.length() >= 1) { - for (int i = 0; i < floatPart.length(); i++) { - int number = Integer.parseInt(String.valueOf(floatPart - .charAt(i))); - sb.append(cnNumbers[number]); - if (fullFormat && i < 3) { - sb.append(units[2 - i]); - } - } - } else if (fullFormat) { - sb.append('整'); - } - - return sb.toString(); - - } - - /** - * 将中文大写数字字符串转换成对应的数字类型 - * - * @param cnNumStr - * @return Java Number类型对象 - */ - public Number parse(String cnNumStr) { - if (null == cnNumStr || "".equals(cnNumStr.trim())) { - return null; - } - cnNumStr = cnNumStr.replaceAll("整", ""); - if (!cnNumStr.endsWith("元")) { - cnNumStr = cnNumStr.replaceAll("元", "."); - } - for (int i = 0; i < cnNumbers.length; i++) { - cnNumStr = cnNumStr.replace(cnNumbers[i], stdNumbers[i]); - } - for (int j = 0; j < units.length; j++) { - cnNumStr = cnNumStr.replaceAll(units[j] + "", ""); - } - BigDecimal b = new BigDecimal(cnNumStr); - return b; - } -} \ 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 deleted file mode 100644 index abf83132..00000000 --- a/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoicePurchaseProductMapper.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - 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/taxInvoicePurchaseProduct/add.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/add.html deleted file mode 100644 index 767f6c43..00000000 --- a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/add.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/edit.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/edit.html deleted file mode 100644 index 2d4dc77f..00000000 --- a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/edit.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/taxInvoicePurchaseProduct.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/taxInvoicePurchaseProduct.html deleted file mode 100644 index 54cead0e..00000000 --- a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoicePurchaseProduct/taxInvoicePurchaseProduct.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -
-
-
-
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- - -
-
-
-
-
- - - - \ No newline at end of file