From 3392acdb5399ac327dfc92ddfa6f1b78fbbbc7d5 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Tue, 22 Oct 2024 11:11:53 +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=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E5=AF=B9=E8=B1=A1=20tax=5Finvoice=5Fproduct=E5=92=8C?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E4=B8=AD=E5=AF=B9=E5=BA=94=E7=9A=84=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E6=89=80=E6=9C=89=E4=BB=A3=E7=A0=81=E5=92=8C=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E6=89=80=E6=9C=89=E4=BB=A3=E7=A0=81=20=E5=92=8C?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E7=9A=84=E7=B3=BB=E7=BB=9F=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaxInvoiceProductController.java | 168 -------- .../taxInvoice/domain/TaxInvoiceProduct.java | 203 ---------- .../domain/exportDto/TaxInvoiceInfoDto.java | 359 ------------------ .../exportDto/TaxInvoiceProductDto.java | 203 ---------- .../mapper/TaxInvoiceProductMapper.java | 65 ---- .../service/ITaxInvoiceProductService.java | 64 ---- .../impl/TaxInvoiceProductServiceImpl.java | 100 ----- .../taxInvoice/TaxInvoiceProductMapper.xml | 109 ------ .../taxInvoice/taxInvoiceProduct/add.html | 99 ----- .../taxInvoice/taxInvoiceProduct/edit.html | 100 ----- .../taxInvoiceProduct/taxInvoiceProduct.html | 138 ------- 11 files changed, 1608 deletions(-) delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoiceProductController.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoiceProduct.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoiceInfoDto.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/exportDto/TaxInvoiceProductDto.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoiceProductMapper.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoiceProductService.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoiceProductServiceImpl.java delete mode 100644 ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoiceProductMapper.xml delete mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/add.html delete mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/edit.html delete mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/taxInvoiceProduct.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoiceProductController.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoiceProductController.java deleted file mode 100644 index 20868651..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoiceProductController.java +++ /dev/null @@ -1,168 +0,0 @@ -package com.ruoyi.taxInvoice.controller; - -import com.alibaba.fastjson.JSONObject; -import com.ruoyi.common.annotation.Log; -import com.ruoyi.common.core.controller.BaseController; -import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.common.core.page.TableDataInfo; -import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.taxInvoice.domain.TaxInvoiceProduct; -import com.ruoyi.taxInvoice.service.ITaxInvoiceProductService; -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.*; - -import java.util.List; - -import static com.ruoyi.common.core.domain.AjaxResult.Type.SUCCESS; - -/** - * 国税发票产品Controller - * - * @author ruoyi - * @date 2023-02-13 - */ -@Controller -@RequestMapping("/taxInvoice/taxInvoiceProduct") -public class TaxInvoiceProductController extends BaseController -{ - private String prefix = "taxInvoice/taxInvoiceProduct"; - - @Autowired - private ITaxInvoiceProductService taxInvoiceProductService; - - @RequiresPermissions("taxInvoice:taxInvoiceProduct:view") - @GetMapping() - public String taxInvoiceProduct() - { - return prefix + "/taxInvoiceProduct"; - } - - /** - * 查询国税发票产品列表 - */ - @RequiresPermissions("taxInvoice:taxInvoiceProduct:list") - @RequestMapping ("/list") - @ResponseBody - public TableDataInfo list(TaxInvoiceProduct taxInvoiceProduct) - { - startPage(); - List list = taxInvoiceProductService.selectTaxInvoiceProductList(taxInvoiceProduct); - return getDataTable(list); - } - - /** - * 导出国税发票产品列表 - */ - @RequiresPermissions("taxInvoice:taxInvoiceProduct:export") - @Log(title = "国税发票产品", businessType = BusinessType.EXPORT) - @PostMapping("/export") - @ResponseBody - public AjaxResult export(TaxInvoiceProduct taxInvoiceProduct) - { - List list = taxInvoiceProductService.selectTaxInvoiceProductList(taxInvoiceProduct); - ExcelUtil util = new ExcelUtil(TaxInvoiceProduct.class); - return util.exportExcel(list, "国税发票产品数据"); - } - - /** - * 新增国税发票产品 - */ - @GetMapping("/add") - public String add() - { - return prefix + "/add"; - } - - /** - * 新增保存国税发票产品 - */ - @RequiresPermissions("taxInvoice:taxInvoiceProduct:add") - @Log(title = "国税发票产品", businessType = BusinessType.INSERT) - @PostMapping("/add") - @ResponseBody - public AjaxResult addSave(@RequestParam(value = "data") String data) - { - // 反序列化 - List taxInvoiceProductList = JSONObject.parseArray(data, TaxInvoiceProduct.class); - - int i=0; - for(;i4){ - taxInvoiceProductService.updateTaxInvoiceProduct(taxInvoiceProductList.get(i)); - }else { - taxInvoiceProductService.insertTaxInvoiceProduct(taxInvoiceProductList.get(i)); - } - - } - return new AjaxResult(SUCCESS, "test done"); - } -// public AjaxResult addSave(TaxInvoiceProduct taxInvoiceProduct) -// { -// return toAjax(taxInvoiceProductService.insertTaxInvoiceProduct(taxInvoiceProduct)); -// } - - /** - * 修改国税发票产品 - */ - @GetMapping("/edit/{taxInvoiceProductId}") - public String edit(@PathVariable("taxInvoiceProductId") Long taxInvoiceProductId, ModelMap mmap) - { - TaxInvoiceProduct taxInvoiceProduct = taxInvoiceProductService.selectTaxInvoiceProductById(taxInvoiceProductId); - mmap.put("taxInvoiceProduct", taxInvoiceProduct); - return prefix + "/edit"; - } - - /** - * 修改保存国税发票产品 - */ - @RequiresPermissions("taxInvoice:taxInvoiceProduct:edit") - @Log(title = "国税发票产品", businessType = BusinessType.UPDATE) - @PostMapping("/edit") - @ResponseBody - public AjaxResult editSave(TaxInvoiceProduct taxInvoiceProduct) - { - return toAjax(taxInvoiceProductService.updateTaxInvoiceProduct(taxInvoiceProduct)); - } - - @PostMapping("/updateProduct") - @ResponseBody - public AjaxResult updateProduct(@RequestParam(value = "data") String data) { - -// 反序列化 - List taxInvoiceProductList = JSONObject.parseArray(data, TaxInvoiceProduct.class); - - int i=0; - for(;i selectTaxInvoiceProductList(TaxInvoiceProduct taxInvoiceProduct); - - /** - * 新增国税发票产品 - * - * @param taxInvoiceProduct 国税发票产品 - * @return 结果 - */ - public int insertTaxInvoiceProduct(TaxInvoiceProduct taxInvoiceProduct); - - /** - * 修改国税发票产品 - * - * @param taxInvoiceProduct 国税发票产品 - * @return 结果 - */ - public int updateTaxInvoiceProduct(TaxInvoiceProduct taxInvoiceProduct); - - /** - * 删除国税发票产品 - * - * @param taxInvoiceProductId 国税发票产品ID - * @return 结果 - */ - public int deleteTaxInvoiceProductById(Long taxInvoiceProductId); - - /** - * 批量删除国税发票产品 - * - * @param taxInvoiceProductIds 需要删除的数据ID - * @return 结果 - */ - public int deleteTaxInvoiceProductByIds(String[] taxInvoiceProductIds); - - public List selectTaxInvoiceByCodeAndNumber(@Param("taxInvoiceCode") String taxInvoiceCode, @Param("taxInvoiceNumber") String taxInvoiceNumber); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoiceProductService.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoiceProductService.java deleted file mode 100644 index 766b3aae..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoiceProductService.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.ruoyi.taxInvoice.service; - -import com.ruoyi.taxInvoice.domain.TaxInvoiceProduct; - -import java.util.List; - -/** - * 国税发票产品Service接口 - * - * @author ruoyi - * @date 2023-02-13 - */ -public interface ITaxInvoiceProductService -{ - /** - * 查询国税发票产品 - * - * @param taxInvoiceProductId 国税发票产品ID - * @return 国税发票产品 - */ - public TaxInvoiceProduct selectTaxInvoiceProductById(Long taxInvoiceProductId); - - /** - * 查询国税发票产品列表 - * - * @param taxInvoiceProduct 国税发票产品 - * @return 国税发票产品集合 - */ - public List selectTaxInvoiceProductList(TaxInvoiceProduct taxInvoiceProduct); - - /** - * 新增国税发票产品 - * - * @param taxInvoiceProduct 国税发票产品 - * @return 结果 - */ - public int insertTaxInvoiceProduct(TaxInvoiceProduct taxInvoiceProduct); - - /** - * 修改国税发票产品 - * - * @param taxInvoiceProduct 国税发票产品 - * @return 结果 - */ - public int updateTaxInvoiceProduct(TaxInvoiceProduct taxInvoiceProduct); - - /** - * 批量删除国税发票产品 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - public int deleteTaxInvoiceProductByIds(String ids); - - /** - * 删除国税发票产品信息 - * - * @param taxInvoiceProductId 国税发票产品ID - * @return 结果 - */ - public int deleteTaxInvoiceProductById(Long taxInvoiceProductId); - - public List selectTaxInvoiceByCodeAndNumber(String taxInvoiceCode,String taxInvoiceNumber); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoiceProductServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoiceProductServiceImpl.java deleted file mode 100644 index 8f3d2644..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoiceProductServiceImpl.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.ruoyi.taxInvoice.service.impl; - -import com.ruoyi.common.core.text.Convert; -import com.ruoyi.taxInvoice.domain.TaxInvoiceProduct; -import com.ruoyi.taxInvoice.mapper.TaxInvoiceProductMapper; -import com.ruoyi.taxInvoice.service.ITaxInvoiceProductService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * 国税发票产品Service业务层处理 - * - * @author ruoyi - * @date 2023-02-13 - */ -@Service -public class TaxInvoiceProductServiceImpl implements ITaxInvoiceProductService -{ - @Autowired - private TaxInvoiceProductMapper taxInvoiceProductMapper; - - /** - * 查询国税发票产品 - * - * @param taxInvoiceProductId 国税发票产品ID - * @return 国税发票产品 - */ - @Override - public TaxInvoiceProduct selectTaxInvoiceProductById(Long taxInvoiceProductId) - { - return taxInvoiceProductMapper.selectTaxInvoiceProductById(taxInvoiceProductId); - } - - /** - * 查询国税发票产品列表 - * - * @param taxInvoiceProduct 国税发票产品 - * @return 国税发票产品 - */ - @Override - public List selectTaxInvoiceProductList(TaxInvoiceProduct taxInvoiceProduct) - { - return taxInvoiceProductMapper.selectTaxInvoiceProductList(taxInvoiceProduct); - } - - /** - * 新增国税发票产品 - * - * @param taxInvoiceProduct 国税发票产品 - * @return 结果 - */ - @Override - public int insertTaxInvoiceProduct(TaxInvoiceProduct taxInvoiceProduct) - { - return taxInvoiceProductMapper.insertTaxInvoiceProduct(taxInvoiceProduct); - } - - /** - * 修改国税发票产品 - * - * @param taxInvoiceProduct 国税发票产品 - * @return 结果 - */ - @Override - public int updateTaxInvoiceProduct(TaxInvoiceProduct taxInvoiceProduct) - { - return taxInvoiceProductMapper.updateTaxInvoiceProduct(taxInvoiceProduct); - } - - /** - * 删除国税发票产品对象 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - @Override - public int deleteTaxInvoiceProductByIds(String ids) - { - return taxInvoiceProductMapper.deleteTaxInvoiceProductByIds(Convert.toStrArray(ids)); - } - - /** - * 删除国税发票产品信息 - * - * @param taxInvoiceProductId 国税发票产品ID - * @return 结果 - */ - @Override - public int deleteTaxInvoiceProductById(Long taxInvoiceProductId) - { - return taxInvoiceProductMapper.deleteTaxInvoiceProductById(taxInvoiceProductId); - } - - @Override - public List selectTaxInvoiceByCodeAndNumber(String taxInvoiceCode, String taxInvoiceNumber) { - return taxInvoiceProductMapper.selectTaxInvoiceByCodeAndNumber(taxInvoiceCode,taxInvoiceNumber); - } -} diff --git a/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoiceProductMapper.xml b/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoiceProductMapper.xml deleted file mode 100644 index 370d75db..00000000 --- a/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoiceProductMapper.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - select tax_invoice_product_id, tax_invoice_code, tax_invoice_number, finish_product_code, finish_product_name, specification_model, inventory_unit, common_currency, quantity, process_price, amount_of_money, standby_one, standby_two from tax_invoice_product - - - - - - - - - - insert into tax_invoice_product - - tax_invoice_code, - tax_invoice_number, - finish_product_code, - finish_product_name, - specification_model, - inventory_unit, - common_currency, - quantity, - process_price, - amount_of_money, - standby_one, - standby_two, - - - #{taxInvoiceCode}, - #{taxInvoiceNumber}, - #{finishProductCode}, - #{finishProductName}, - #{specificationModel}, - #{inventoryUnit}, - #{commonCurrency}, - #{quantity}, - #{processPrice}, - #{amountOfMoney}, - #{standbyOne}, - #{standbyTwo}, - - - - - update tax_invoice_product - - tax_invoice_code = #{taxInvoiceCode}, - tax_invoice_number = #{taxInvoiceNumber}, - finish_product_code = #{finishProductCode}, - finish_product_name = #{finishProductName}, - specification_model = #{specificationModel}, - inventory_unit = #{inventoryUnit}, - common_currency = #{commonCurrency}, - quantity = #{quantity}, - process_price = #{processPrice}, - amount_of_money = #{amountOfMoney}, - standby_one = #{standbyOne}, - standby_two = #{standbyTwo}, - - where tax_invoice_product_id = #{taxInvoiceProductId} - - - - delete from tax_invoice_product where tax_invoice_product_id = #{taxInvoiceProductId} - - - - delete from tax_invoice_product where tax_invoice_product_id in - - #{taxInvoiceProductId} - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/add.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/add.html deleted file mode 100644 index b1e6720f..00000000 --- a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/add.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/edit.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/edit.html deleted file mode 100644 index 4d9b2001..00000000 --- a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/edit.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/taxInvoiceProduct.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/taxInvoiceProduct.html deleted file mode 100644 index af72c7f5..00000000 --- a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceProduct/taxInvoiceProduct.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - -
-
-
-
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- - -
-
-
-
-
- - - - \ No newline at end of file