diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoiceInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoiceInfoController.java deleted file mode 100644 index e490713a..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/TaxInvoiceInfoController.java +++ /dev/null @@ -1,244 +0,0 @@ -package com.ruoyi.taxInvoice.controller; - -import com.alibaba.excel.EasyExcel; -import com.alibaba.excel.ExcelWriter; -import com.alibaba.excel.util.MapUtils; -import com.alibaba.excel.write.metadata.WriteSheet; -import com.alibaba.excel.write.metadata.fill.FillConfig; -import com.alibaba.fastjson.JSONArray; -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.system.domain.SysCustomer; -import com.ruoyi.system.domain.SysCustomerVo; -import com.ruoyi.system.service.ISysCustomerService; -import com.ruoyi.taxInvoice.domain.TaxInvoiceInfo; -import com.ruoyi.taxInvoice.domain.TaxInvoiceProduct; -import com.ruoyi.taxInvoice.domain.exportDto.TaxInvoiceInfoDto; -import com.ruoyi.taxInvoice.domain.exportDto.TaxInvoiceProductDto; -import com.ruoyi.taxInvoice.service.ITaxInvoiceInfoService; -import com.ruoyi.taxInvoice.service.ITaxInvoiceProductService; -import com.ruoyi.taxInvoice.utils.CNNumberFormat; -import org.apache.shiro.authz.annotation.RequiresPermissions; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.*; - -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.net.URLEncoder; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import static com.ruoyi.common.config.datasource.DynamicDataSourceContextHolder.log; - -/** - * 国税发票Controller - * - * @author ruoyi - * @date 2023-02-09 - */ -@Controller -@RequestMapping("/taxInvoice/taxInvoiceInfo") -public class TaxInvoiceInfoController extends BaseController -{ - private String prefix = "taxInvoice/taxInvoiceInfo"; - - @Autowired - private ITaxInvoiceInfoService taxInvoiceInfoService; - @Autowired - private ITaxInvoiceProductService taxInvoiceProductService; - - @Autowired - private ISysCustomerService customerService; - - @RequiresPermissions("taxInvoice:taxInvoiceInfo:view") - @GetMapping() - public String taxInvoiceInfo() - { - return prefix + "/taxInvoiceInfo"; - } - - /** - * 查询国税发票列表 - */ - @RequiresPermissions("taxInvoice:taxInvoiceInfo:list") - @PostMapping("/list") - @ResponseBody - public TableDataInfo list(TaxInvoiceInfo taxInvoiceInfo) - { - startPage(); - List list = taxInvoiceInfoService.selectTaxInvoiceInfoList(taxInvoiceInfo); - return getDataTable(list); - } - - /** - * 导出国税发票列表 - */ - /*@RequiresPermissions("taxInvoice:taxInvoiceInfo:export") - @Log(title = "国税发票", businessType = BusinessType.EXPORT) - @PostMapping("/export") - @ResponseBody - public AjaxResult export(TaxInvoiceInfo taxInvoiceInfo) - { - List list = taxInvoiceInfoService.selectTaxInvoiceInfoList(taxInvoiceInfo); - ExcelUtil util = new ExcelUtil(TaxInvoiceInfo.class); - return util.exportExcel(list, "国税发票数据"); - }*/ - - /** - * 新增国税发票 - */ - @GetMapping("/add") - public String add() - { - return prefix + "/add"; - } - - /** - * 新增保存国税发票 - */ - @RequiresPermissions("taxInvoice:taxInvoiceInfo:add") - @Log(title = "国税发票", businessType = BusinessType.INSERT) - @PostMapping("/add") - @ResponseBody - public AjaxResult addSave(TaxInvoiceInfo taxInvoiceInfo) - { - return toAjax(taxInvoiceInfoService.insertTaxInvoiceInfo(taxInvoiceInfo)); - } - - /** - * 修改国税发票 - */ - @GetMapping("/edit/{taxInvoiceId}") - public String edit(@PathVariable("taxInvoiceId") Long taxInvoiceId, ModelMap mmap) - { - TaxInvoiceInfo taxInvoiceInfo = taxInvoiceInfoService.selectTaxInvoiceInfoById(taxInvoiceId); - mmap.put("taxInvoiceInfo", taxInvoiceInfo); - return prefix + "/edit"; - } - - /** - * 修改保存国税发票 - */ - @RequiresPermissions("taxInvoice:taxInvoiceInfo:edit") - @Log(title = "国税发票", businessType = BusinessType.UPDATE) - @PostMapping("/edit") - @ResponseBody - public AjaxResult editSave(TaxInvoiceInfo taxInvoiceInfo) - { - return toAjax(taxInvoiceInfoService.updateTaxInvoiceInfo(taxInvoiceInfo)); - } - - /** - * 删除国税发票 - */ - @RequiresPermissions("taxInvoice:taxInvoiceInfo:removeSelectedInvoice") - @Log(title = "国税发票", businessType = BusinessType.DELETE) - @PostMapping( "/remove") - @ResponseBody - public AjaxResult remove(String ids) - { - return toAjax(taxInvoiceInfoService.deleteTaxInvoiceInfoByIds(ids)); - } - - //获取客户信息 - @PostMapping("/getCustomerList") - @ResponseBody - public List getCustomerList(SysCustomerVo customer) { - List list = customerService.selectSysCustomerList(customer); - return list; - } - - - @RequiresPermissions("taxInvoice:taxInvoiceInfo:exportInvoice") - @Log(title = "国税发票", businessType = BusinessType.EXPORT) - @RequestMapping("/exportInvoice") - @ResponseBody - public void exportInvoice(@RequestBody String selectData, HttpServletResponse response) throws IOException { - - //数据处理 - JSONObject jsonObject = (JSONObject) JSONObject.parse(selectData); - JSONArray jsonArray = jsonObject.getJSONArray("selectData"); - List selectDataList = JSONObject.parseArray(String.valueOf(jsonArray), TaxInvoiceInfoDto.class); - - - //获取发票基础信息 - TaxInvoiceInfo taxInvoiceInfo = taxInvoiceInfoService.selectTaxInvoiceInfoById(selectDataList.get(0).getTaxInvoiceId()); - TaxInvoiceInfoDto taxInvoiceInfoDto = new TaxInvoiceInfoDto(); - BeanUtils.copyProperties(taxInvoiceInfo,taxInvoiceInfoDto); - - //发票内产品信息 - List taxInvoiceProductList = taxInvoiceProductService.selectTaxInvoiceByCodeAndNumber(selectDataList.get(0).getTaxInvoiceCode(),selectDataList.get(0).getTaxInvoiceNumber()); - List taxInvoiceProductDtoList = new ArrayList<>(); - try { - Iterator values= taxInvoiceProductList.iterator(); - while(values.hasNext()) { - Object source = values.next(); - TaxInvoiceProductDto target = TaxInvoiceProductDto.class.newInstance(); - BeanUtils.copyProperties(source, target); - taxInvoiceProductDtoList.add(target); - } - }catch (Exception e) { - log.error(">>>>>>异常<<<<<<", e); - } - - //合计数量、金额 - int totalQuantity = 0; - double totalMoney = 0; - for (int i = 0;i map = MapUtils.newHashMap(); -// map.put("date", DateTimeFormatter.ofPattern("yyyy/MM/dd").format(LocalDateTime.now())); - map.put("deliveryNoteNumber", taxInvoiceInfoDto.getDeliveryNoteNumber()); - map.put("taxInvoiceNumber", taxInvoiceInfoDto.getTaxInvoiceNumber()); - map.put("contractNumber", taxInvoiceInfoDto.getContractNumber()); - map.put("enterpriseCode", taxInvoiceInfoDto.getEnterpriseCode()); - map.put("enterpriseName", taxInvoiceInfoDto.getEnterpriseName()); - map.put("arrivalArea", taxInvoiceInfoDto.getArrivalArea()); - map.put("paymentTerm", taxInvoiceInfoDto.getPaymentTerm()); - map.put("billingDate", taxInvoiceInfoDto.getBillingDate()); - map.put("totalQuantity", totalQuantity); - map.put("totalMoney", totalMoney); - map.put("moneyUpCase", moneyUpCase); - excelWriter.fill(map, writeSheet); - } - } - - - /* - 数字转大写 - */ - @RequestMapping("/getMoneyUpCase") - @ResponseBody - public String getMoneyUpCase(@RequestParam("totalMoney") double totalMoney) { - CNNumberFormat cnFmt = new CNNumberFormat(true); - String moneyUpCase = cnFmt.format(totalMoney); - return moneyUpCase; - } - - -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoiceInfo.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoiceInfo.java deleted file mode 100644 index fce0d61e..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/TaxInvoiceInfo.java +++ /dev/null @@ -1,387 +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_info - * - * @author ruoyi - * @date 2023-02-09 - */ -public class TaxInvoiceInfo extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** 国税发票id */ - private Long taxInvoiceId; - - /** 发票编号 */ - @Excel(name = "发票编号") - private String taxInvoiceCode; - - /** 发票号码 */ - @Excel(name = "发票号码") - private String taxInvoiceNumber; - - /** 送货单号 */ - @Excel(name = "送货单号") - private String deliveryNoteNumber; - - /** 客户代码 */ - @Excel(name = "客户代码") - private String enterpriseCode; - - /** 客户名称 */ - @Excel(name = "客户名称") - private String enterpriseName; - - /** 合同号码 */ - @Excel(name = "合同号码") - private String contractNumber; - - /** 付款条件 */ - @Excel(name = "付款条件") - private String paymentTerm; - - /** 开票日期 */ - @Excel(name = "开票日期") - private String billingDate; - - /** 运输方式 */ - @Excel(name = "运输方式") - private String transportWay; - - /** 运输工具 */ - @Excel(name = "运输工具") - private String transportMeans; - - /** 离境日期 */ - @Excel(name = "离境日期") - private String departureDate; - - /** 出口海关 */ - @Excel(name = "出口海关") - private String exportCustoms; - - /** 币别 */ - @Excel(name = "币别") - private String billCommonCurrency; - - /** 件数(箱数) */ - @Excel(name = "件数", readConverterExp = "箱=数") - private String packagesNumber; - - /** 抵运国(地区) */ - @Excel(name = "抵运国", readConverterExp = "地=区") - private String arrivalArea; - - /** 指运港 */ - @Excel(name = "指运港") - private String portOfDestination; - - /** 提运单号 */ - @Excel(name = "提运单号") - private String hoistingNumber; - - /** 发票印字版号 */ - @Excel(name = "发票印字版号") - private String printVersionNumber; - - /** 备注 */ - @Excel(name = "备注") - private String billRemarks; - - /** 国税发票编号 */ - @Excel(name = "国税发票编号") - private String taxInvoiceNo; - - /** 是否收到款 */ - @Excel(name = "是否收到款") - private String getmoneyFlag; - - - /** 录入时间 */ - @Excel(name = "录入时间") - private String firstAddTime; - - /** 修改时间 */ - @Excel(name = "修改时间") - private String updateInfoTime; - - - /** 备用一 */ - @Excel(name = "备用一") - private String standbyOne; - - /** 备用二 */ - @Excel(name = "备用二") - private String standbyTwo; - - public void setTaxInvoiceId(Long taxInvoiceId) - { - this.taxInvoiceId = taxInvoiceId; - } - - public Long getTaxInvoiceId() - { - return taxInvoiceId; - } - public void setTaxInvoiceCode(String taxInvoiceCode) - { - this.taxInvoiceCode = taxInvoiceCode; - } - - public String getTaxInvoiceCode() - { - return taxInvoiceCode; - } - public void setTaxInvoiceNumber(String taxInvoiceNumber) - { - this.taxInvoiceNumber = taxInvoiceNumber; - } - - public String getTaxInvoiceNumber() - { - return taxInvoiceNumber; - } - public void setDeliveryNoteNumber(String deliveryNoteNumber) - { - this.deliveryNoteNumber = deliveryNoteNumber; - } - - public String getDeliveryNoteNumber() - { - return deliveryNoteNumber; - } - public void setEnterpriseCode(String enterpriseCode) - { - this.enterpriseCode = enterpriseCode; - } - - public String getEnterpriseCode() - { - return enterpriseCode; - } - public void setEnterpriseName(String enterpriseName) - { - this.enterpriseName = enterpriseName; - } - - public String getEnterpriseName() - { - return enterpriseName; - } - public void setContractNumber(String contractNumber) - { - this.contractNumber = contractNumber; - } - - public String getContractNumber() - { - return contractNumber; - } - public void setPaymentTerm(String paymentTerm) - { - this.paymentTerm = paymentTerm; - } - - public String getPaymentTerm() - { - return paymentTerm; - } - public void setBillingDate(String billingDate) - { - this.billingDate = billingDate; - } - - public String getBillingDate() - { - return billingDate; - } - public void setTransportWay(String transportWay) - { - this.transportWay = transportWay; - } - - public String getTransportWay() - { - return transportWay; - } - public void setTransportMeans(String transportMeans) - { - this.transportMeans = transportMeans; - } - - public String getTransportMeans() - { - return transportMeans; - } - public void setDepartureDate(String departureDate) - { - this.departureDate = departureDate; - } - - public String getDepartureDate() - { - return departureDate; - } - public void setExportCustoms(String exportCustoms) - { - this.exportCustoms = exportCustoms; - } - - public String getExportCustoms() - { - return exportCustoms; - } - public void setBillCommonCurrency(String billCommonCurrency) - { - this.billCommonCurrency = billCommonCurrency; - } - - public String getBillCommonCurrency() - { - return billCommonCurrency; - } - public void setPackagesNumber(String packagesNumber) - { - this.packagesNumber = packagesNumber; - } - - public String getPackagesNumber() - { - return packagesNumber; - } - public void setArrivalArea(String arrivalArea) - { - this.arrivalArea = arrivalArea; - } - - public String getArrivalArea() - { - return arrivalArea; - } - public void setPortOfDestination(String portOfDestination) - { - this.portOfDestination = portOfDestination; - } - - public String getPortOfDestination() - { - return portOfDestination; - } - public void setHoistingNumber(String hoistingNumber) - { - this.hoistingNumber = hoistingNumber; - } - - public String getHoistingNumber() - { - return hoistingNumber; - } - public void setPrintVersionNumber(String printVersionNumber) - { - this.printVersionNumber = printVersionNumber; - } - - public String getPrintVersionNumber() - { - return printVersionNumber; - } - public void setBillRemarks(String billRemarks) - { - this.billRemarks = billRemarks; - } - - public String getBillRemarks() - { - return billRemarks; - } - public void setTaxInvoiceNo(String taxInvoiceNo) - { - this.taxInvoiceNo = taxInvoiceNo; - } - - public String getTaxInvoiceNo() - { - return taxInvoiceNo; - } - public void setGetmoneyFlag(String getmoneyFlag) - { - this.getmoneyFlag = getmoneyFlag; - } - - public String getGetmoneyFlag() - { - return getmoneyFlag; - } - public void setStandbyOne(String standbyOne) - { - this.standbyOne = standbyOne; - } - - public String getStandbyOne() - { - return standbyOne; - } - public void setStandbyTwo(String standbyTwo) - { - this.standbyTwo = standbyTwo; - } - - public String getStandbyTwo() - { - return standbyTwo; - } - - public String getFirstAddTime() { - return firstAddTime; - } - - public void setFirstAddTime(String firstAddTime) { - this.firstAddTime = firstAddTime; - } - - public String getUpdateInfoTime() { - return updateInfoTime; - } - - public void setUpdateInfoTime(String updateInfoTime) { - this.updateInfoTime = updateInfoTime; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("taxInvoiceId", getTaxInvoiceId()) - .append("taxInvoiceCode", getTaxInvoiceCode()) - .append("taxInvoiceNumber", getTaxInvoiceNumber()) - .append("deliveryNoteNumber", getDeliveryNoteNumber()) - .append("enterpriseCode", getEnterpriseCode()) - .append("enterpriseName", getEnterpriseName()) - .append("contractNumber", getContractNumber()) - .append("paymentTerm", getPaymentTerm()) - .append("billingDate", getBillingDate()) - .append("transportWay", getTransportWay()) - .append("transportMeans", getTransportMeans()) - .append("departureDate", getDepartureDate()) - .append("exportCustoms", getExportCustoms()) - .append("billCommonCurrency", getBillCommonCurrency()) - .append("packagesNumber", getPackagesNumber()) - .append("arrivalArea", getArrivalArea()) - .append("portOfDestination", getPortOfDestination()) - .append("hoistingNumber", getHoistingNumber()) - .append("printVersionNumber", getPrintVersionNumber()) - .append("billRemarks", getBillRemarks()) - .append("taxInvoiceNo", getTaxInvoiceNo()) - .append("getmoneyFlag", getGetmoneyFlag()) - .append("firstAddTime", getFirstAddTime()) - .append("updateInfoTime", getUpdateInfoTime()) - .append("standbyOne", getStandbyOne()) - .append("standbyTwo", getStandbyTwo()) - .toString(); - } -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoiceInfoMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoiceInfoMapper.java deleted file mode 100644 index b6e31f18..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/TaxInvoiceInfoMapper.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.taxInvoice.mapper; - -import java.util.List; -import com.ruoyi.taxInvoice.domain.TaxInvoiceInfo; - -/** - * 国税发票Mapper接口 - * - * @author ruoyi - * @date 2023-02-09 - */ -public interface TaxInvoiceInfoMapper -{ - /** - * 查询国税发票 - * - * @param taxInvoiceId 国税发票ID - * @return 国税发票 - */ - public TaxInvoiceInfo selectTaxInvoiceInfoById(Long taxInvoiceId); - - /** - * 查询国税发票列表 - * - * @param taxInvoiceInfo 国税发票 - * @return 国税发票集合 - */ - public List selectTaxInvoiceInfoList(TaxInvoiceInfo taxInvoiceInfo); - - /** - * 新增国税发票 - * - * @param taxInvoiceInfo 国税发票 - * @return 结果 - */ - public int insertTaxInvoiceInfo(TaxInvoiceInfo taxInvoiceInfo); - - /** - * 修改国税发票 - * - * @param taxInvoiceInfo 国税发票 - * @return 结果 - */ - public int updateTaxInvoiceInfo(TaxInvoiceInfo taxInvoiceInfo); - - /** - * 删除国税发票 - * - * @param taxInvoiceId 国税发票ID - * @return 结果 - */ - public int deleteTaxInvoiceInfoById(Long taxInvoiceId); - - /** - * 批量删除国税发票 - * - * @param taxInvoiceIds 需要删除的数据ID - * @return 结果 - */ - public int deleteTaxInvoiceInfoByIds(String[] taxInvoiceIds); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoiceInfoService.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoiceInfoService.java deleted file mode 100644 index 85eb4c7d..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/ITaxInvoiceInfoService.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.taxInvoice.service; - -import java.util.List; -import com.ruoyi.taxInvoice.domain.TaxInvoiceInfo; - -/** - * 国税发票Service接口 - * - * @author ruoyi - * @date 2023-02-09 - */ -public interface ITaxInvoiceInfoService -{ - /** - * 查询国税发票 - * - * @param taxInvoiceId 国税发票ID - * @return 国税发票 - */ - public TaxInvoiceInfo selectTaxInvoiceInfoById(Long taxInvoiceId); - - /** - * 查询国税发票列表 - * - * @param taxInvoiceInfo 国税发票 - * @return 国税发票集合 - */ - public List selectTaxInvoiceInfoList(TaxInvoiceInfo taxInvoiceInfo); - - /** - * 新增国税发票 - * - * @param taxInvoiceInfo 国税发票 - * @return 结果 - */ - public int insertTaxInvoiceInfo(TaxInvoiceInfo taxInvoiceInfo); - - /** - * 修改国税发票 - * - * @param taxInvoiceInfo 国税发票 - * @return 结果 - */ - public int updateTaxInvoiceInfo(TaxInvoiceInfo taxInvoiceInfo); - - /** - * 批量删除国税发票 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - public int deleteTaxInvoiceInfoByIds(String ids); - - /** - * 删除国税发票信息 - * - * @param taxInvoiceId 国税发票ID - * @return 结果 - */ - public int deleteTaxInvoiceInfoById(Long taxInvoiceId); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoiceInfoServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoiceInfoServiceImpl.java deleted file mode 100644 index 838ee162..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/TaxInvoiceInfoServiceImpl.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.TaxInvoiceInfoMapper; -import com.ruoyi.taxInvoice.domain.TaxInvoiceInfo; -import com.ruoyi.taxInvoice.service.ITaxInvoiceInfoService; -import com.ruoyi.common.core.text.Convert; - -/** - * 国税发票Service业务层处理 - * - * @author ruoyi - * @date 2023-02-09 - */ -@Service -public class TaxInvoiceInfoServiceImpl implements ITaxInvoiceInfoService -{ - @Autowired - private TaxInvoiceInfoMapper taxInvoiceInfoMapper; - - /** - * 查询国税发票 - * - * @param taxInvoiceId 国税发票ID - * @return 国税发票 - */ - @Override - public TaxInvoiceInfo selectTaxInvoiceInfoById(Long taxInvoiceId) - { - return taxInvoiceInfoMapper.selectTaxInvoiceInfoById(taxInvoiceId); - } - - /** - * 查询国税发票列表 - * - * @param taxInvoiceInfo 国税发票 - * @return 国税发票 - */ - @Override - public List selectTaxInvoiceInfoList(TaxInvoiceInfo taxInvoiceInfo) - { - return taxInvoiceInfoMapper.selectTaxInvoiceInfoList(taxInvoiceInfo); - } - - /** - * 新增国税发票 - * - * @param taxInvoiceInfo 国税发票 - * @return 结果 - */ - @Override - public int insertTaxInvoiceInfo(TaxInvoiceInfo taxInvoiceInfo) - { - return taxInvoiceInfoMapper.insertTaxInvoiceInfo(taxInvoiceInfo); - } - - /** - * 修改国税发票 - * - * @param taxInvoiceInfo 国税发票 - * @return 结果 - */ - @Override - public int updateTaxInvoiceInfo(TaxInvoiceInfo taxInvoiceInfo) - { - return taxInvoiceInfoMapper.updateTaxInvoiceInfo(taxInvoiceInfo); - } - - /** - * 删除国税发票对象 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - @Override - public int deleteTaxInvoiceInfoByIds(String ids) - { - return taxInvoiceInfoMapper.deleteTaxInvoiceInfoByIds(Convert.toStrArray(ids)); - } - - /** - * 删除国税发票信息 - * - * @param taxInvoiceId 国税发票ID - * @return 结果 - */ - @Override - public int deleteTaxInvoiceInfoById(Long taxInvoiceId) - { - return taxInvoiceInfoMapper.deleteTaxInvoiceInfoById(taxInvoiceId); - } -} diff --git a/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoiceInfoMapper.xml b/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoiceInfoMapper.xml deleted file mode 100644 index 57973dfe..00000000 --- a/ruoyi-admin/src/main/resources/mapper/taxInvoice/TaxInvoiceInfoMapper.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - select tax_invoice_id, tax_invoice_code, tax_invoice_number, delivery_note_number, enterprise_code, enterprise_name, contract_number, payment_term, billing_date, transport_way, transport_means, departure_date, export_customs, bill_common_currency, packages_number, arrival_area, port_of_destination, hoisting_number, print_version_number, bill_remarks, tax_invoice_no, getMoney_flag, first_add_time, update_info_time, standby_one, standby_two from tax_invoice_info - - - - - - - - insert into tax_invoice_info - - tax_invoice_code, - tax_invoice_number, - delivery_note_number, - enterprise_code, - enterprise_name, - contract_number, - payment_term, - billing_date, - transport_way, - transport_means, - departure_date, - export_customs, - bill_common_currency, - packages_number, - arrival_area, - port_of_destination, - hoisting_number, - print_version_number, - bill_remarks, - tax_invoice_no, - getMoney_flag, - standby_one, - standby_two, - first_add_time, - - - #{taxInvoiceCode}, - #{taxInvoiceNumber}, - #{deliveryNoteNumber}, - #{enterpriseCode}, - #{enterpriseName}, - #{contractNumber}, - #{paymentTerm}, - #{billingDate}, - #{transportWay}, - #{transportMeans}, - #{departureDate}, - #{exportCustoms}, - #{billCommonCurrency}, - #{packagesNumber}, - #{arrivalArea}, - #{portOfDestination}, - #{hoistingNumber}, - #{printVersionNumber}, - #{billRemarks}, - #{taxInvoiceNo}, - #{getmoneyFlag}, - #{standbyOne}, - #{standbyTwo}, - now(), - - - - - update tax_invoice_info - - tax_invoice_code = #{taxInvoiceCode}, - tax_invoice_number = #{taxInvoiceNumber}, - delivery_note_number = #{deliveryNoteNumber}, - enterprise_code = #{enterpriseCode}, - enterprise_name = #{enterpriseName}, - contract_number = #{contractNumber}, - payment_term = #{paymentTerm}, - billing_date = #{billingDate}, - transport_way = #{transportWay}, - transport_means = #{transportMeans}, - departure_date = #{departureDate}, - export_customs = #{exportCustoms}, - bill_common_currency = #{billCommonCurrency}, - packages_number = #{packagesNumber}, - arrival_area = #{arrivalArea}, - port_of_destination = #{portOfDestination}, - hoisting_number = #{hoistingNumber}, - print_version_number = #{printVersionNumber}, - bill_remarks = #{billRemarks}, - tax_invoice_no = #{taxInvoiceNo}, - getMoney_flag = #{getmoneyFlag}, - standby_one = #{standbyOne}, - standby_two = #{standbyTwo}, - update_info_time = CONCAT_WS(',',NOW(),update_info_time), - - where tax_invoice_id = #{taxInvoiceId} - - - - delete from tax_invoice_info where tax_invoice_id = #{taxInvoiceId} - - - - delete from tax_invoice_info where tax_invoice_id in - - #{taxInvoiceId} - - - - \ 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 deleted file mode 100644 index 8434a49e..00000000 --- a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/add.html +++ /dev/null @@ -1,792 +0,0 @@ - - - - - - - - - - - - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
-
-
-

选择产品信息

-  选择产品 -
-
-
-
- -
- - - - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/edit.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/edit.html deleted file mode 100644 index e525a552..00000000 --- a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/edit.html +++ /dev/null @@ -1,864 +0,0 @@ - - - - - - - - - - - -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
-
-
-

成品信息

-  选择成品 -  删除成品 -
-
-
-
- -
- - - - - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/taxInvoiceInfo.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/taxInvoiceInfo.html deleted file mode 100644 index 7669a2e6..00000000 --- a/ruoyi-admin/src/main/resources/templates/taxInvoice/taxInvoiceInfo/taxInvoiceInfo.html +++ /dev/null @@ -1,753 +0,0 @@ - - - - - - - - - - - - -
-
-
-
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- - -
-
-
-
-
- - - - - - - - - \ No newline at end of file