liuxiaoxu
1 month ago
11 changed files with 0 additions and 1608 deletions
@ -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<TaxInvoiceProduct> 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<TaxInvoiceProduct> list = taxInvoiceProductService.selectTaxInvoiceProductList(taxInvoiceProduct); |
|||
ExcelUtil<TaxInvoiceProduct> util = new ExcelUtil<TaxInvoiceProduct>(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<TaxInvoiceProduct> taxInvoiceProductList = JSONObject.parseArray(data, TaxInvoiceProduct.class); |
|||
|
|||
int i=0; |
|||
for(;i<taxInvoiceProductList.size();i++){ |
|||
|
|||
String listLength= String.valueOf(taxInvoiceProductService.selectTaxInvoiceProductById(taxInvoiceProductList.get(i).getTaxInvoiceProductId())); |
|||
if (listLength.length()>4){ |
|||
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<TaxInvoiceProduct> taxInvoiceProductList = JSONObject.parseArray(data, TaxInvoiceProduct.class); |
|||
|
|||
int i=0; |
|||
for(;i<taxInvoiceProductList.size();i++){ |
|||
|
|||
taxInvoiceProductService.updateTaxInvoiceProduct(taxInvoiceProductList.get(i)); |
|||
} |
|||
return new AjaxResult(SUCCESS, "test done"); |
|||
} |
|||
|
|||
// //删除
|
|||
// @PostMapping("/removeProduct")
|
|||
// @ResponseBody
|
|||
// public AjaxResult removeProduct(@RequestParam(value = "ids") String ids) {
|
|||
//// System.out.println(ids);
|
|||
// ids=ids.replace("[","").replace("]","");
|
|||
// return toAjax(taxInvoiceProductService.deleteTaxInvoiceProductByIds(ids));
|
|||
// }
|
|||
|
|||
/** |
|||
* 删除国税发票产品 |
|||
*/ |
|||
@RequiresPermissions("taxInvoice:taxInvoiceProduct:remove") |
|||
@Log(title = "国税发票产品", businessType = BusinessType.DELETE) |
|||
@PostMapping( "/remove") |
|||
@ResponseBody |
|||
public AjaxResult remove(String ids) |
|||
{ |
|||
return toAjax(taxInvoiceProductService.deleteTaxInvoiceProductByIds(ids)); |
|||
} |
|||
} |
@ -1,203 +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_product |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-02-13 |
|||
*/ |
|||
public class TaxInvoiceProduct extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 国税产品id */ |
|||
private Long taxInvoiceProductId; |
|||
|
|||
/** 发票编号 */ |
|||
@Excel(name = "发票编号") |
|||
private String taxInvoiceCode; |
|||
|
|||
/** 发票号码 */ |
|||
@Excel(name = "发票号码") |
|||
private String taxInvoiceNumber; |
|||
|
|||
/** 成品代码 */ |
|||
@Excel(name = "成品代码") |
|||
private String finishProductCode; |
|||
|
|||
/** 成品名称 */ |
|||
@Excel(name = "成品名称") |
|||
private String finishProductName; |
|||
|
|||
/** 规格型号 */ |
|||
@Excel(name = "规格型号") |
|||
private String specificationModel; |
|||
|
|||
/** 单位 */ |
|||
@Excel(name = "单位") |
|||
private String inventoryUnit; |
|||
|
|||
/** 币别 */ |
|||
@Excel(name = "币别") |
|||
private String commonCurrency; |
|||
|
|||
/** 数量 */ |
|||
@Excel(name = "数量") |
|||
private String quantity; |
|||
|
|||
/** 单价 */ |
|||
@Excel(name = "单价") |
|||
private String processPrice; |
|||
|
|||
/** 金额 */ |
|||
@Excel(name = "金额") |
|||
private String amountOfMoney; |
|||
|
|||
/** 备用一 */ |
|||
private String standbyOne; |
|||
|
|||
/** 备用二 */ |
|||
private String standbyTwo; |
|||
|
|||
public void setTaxInvoiceProductId(Long taxInvoiceProductId) |
|||
{ |
|||
this.taxInvoiceProductId = taxInvoiceProductId; |
|||
} |
|||
|
|||
public Long getTaxInvoiceProductId() |
|||
{ |
|||
return taxInvoiceProductId; |
|||
} |
|||
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 setFinishProductCode(String finishProductCode) |
|||
{ |
|||
this.finishProductCode = finishProductCode; |
|||
} |
|||
|
|||
public String getFinishProductCode() |
|||
{ |
|||
return finishProductCode; |
|||
} |
|||
public void setFinishProductName(String finishProductName) |
|||
{ |
|||
this.finishProductName = finishProductName; |
|||
} |
|||
|
|||
public String getFinishProductName() |
|||
{ |
|||
return finishProductName; |
|||
} |
|||
public void setSpecificationModel(String specificationModel) |
|||
{ |
|||
this.specificationModel = specificationModel; |
|||
} |
|||
|
|||
public String getSpecificationModel() |
|||
{ |
|||
return specificationModel; |
|||
} |
|||
public void setInventoryUnit(String inventoryUnit) |
|||
{ |
|||
this.inventoryUnit = inventoryUnit; |
|||
} |
|||
|
|||
public String getInventoryUnit() |
|||
{ |
|||
return inventoryUnit; |
|||
} |
|||
public void setCommonCurrency(String commonCurrency) |
|||
{ |
|||
this.commonCurrency = commonCurrency; |
|||
} |
|||
|
|||
public String getCommonCurrency() |
|||
{ |
|||
return commonCurrency; |
|||
} |
|||
public void setQuantity(String quantity) |
|||
{ |
|||
this.quantity = quantity; |
|||
} |
|||
|
|||
public String getQuantity() |
|||
{ |
|||
return quantity; |
|||
} |
|||
public void setProcessPrice(String processPrice) |
|||
{ |
|||
this.processPrice = processPrice; |
|||
} |
|||
|
|||
public String getProcessPrice() |
|||
{ |
|||
return processPrice; |
|||
} |
|||
public void setAmountOfMoney(String amountOfMoney) |
|||
{ |
|||
this.amountOfMoney = amountOfMoney; |
|||
} |
|||
|
|||
public String getAmountOfMoney() |
|||
{ |
|||
return amountOfMoney; |
|||
} |
|||
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; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("taxInvoiceProductId", getTaxInvoiceProductId()) |
|||
.append("taxInvoiceCode", getTaxInvoiceCode()) |
|||
.append("taxInvoiceNumber", getTaxInvoiceNumber()) |
|||
.append("finishProductCode", getFinishProductCode()) |
|||
.append("finishProductName", getFinishProductName()) |
|||
.append("specificationModel", getSpecificationModel()) |
|||
.append("inventoryUnit", getInventoryUnit()) |
|||
.append("commonCurrency", getCommonCurrency()) |
|||
.append("quantity", getQuantity()) |
|||
.append("processPrice", getProcessPrice()) |
|||
.append("amountOfMoney", getAmountOfMoney()) |
|||
.append("standbyOne", getStandbyOne()) |
|||
.append("standbyTwo", getStandbyTwo()) |
|||
.toString(); |
|||
} |
|||
} |
@ -1,359 +0,0 @@ |
|||
package com.ruoyi.taxInvoice.domain.exportDto; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
|
|||
/** |
|||
* 国税发票对象 tax_invoice_info |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-02-09 |
|||
*/ |
|||
public class TaxInvoiceInfoDto extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 国税发票id */ |
|||
private Long taxInvoiceId; |
|||
|
|||
/** 发票编号 */ |
|||
@ExcelProperty("发票编号") |
|||
private String taxInvoiceCode; |
|||
|
|||
/** 发票号码 */ |
|||
@ExcelProperty("发票号码") |
|||
private String taxInvoiceNumber; |
|||
|
|||
/** 送货单号 */ |
|||
@ExcelProperty("送货单号") |
|||
private String deliveryNoteNumber; |
|||
|
|||
/** 客户代码 */ |
|||
@ExcelProperty("客户代码") |
|||
private String enterpriseCode; |
|||
|
|||
/** 客户名称 */ |
|||
@ExcelProperty("客户名称") |
|||
private String enterpriseName; |
|||
|
|||
/** 合同号码 */ |
|||
@ExcelProperty("合同号码") |
|||
private String contractNumber; |
|||
|
|||
/** 付款条件 */ |
|||
@ExcelProperty("付款条件") |
|||
private String paymentTerm; |
|||
|
|||
/** 开票日期 */ |
|||
@ExcelProperty("开票日期") |
|||
private String billingDate; |
|||
|
|||
/** 运输方式 */ |
|||
@ExcelProperty("运输方式") |
|||
private String transportWay; |
|||
|
|||
/** 运输工具 */ |
|||
@ExcelProperty("运输工具") |
|||
private String transportMeans; |
|||
|
|||
/** 离境日期 */ |
|||
@ExcelProperty("离境日期") |
|||
private String departureDate; |
|||
|
|||
/** 出口海关 */ |
|||
@ExcelProperty("出口海关") |
|||
private String exportCustoms; |
|||
|
|||
/** 币别 */ |
|||
@ExcelProperty("币别") |
|||
private String billCommonCurrency; |
|||
|
|||
/** 件数(箱数) */ |
|||
@ExcelProperty("件数") |
|||
private String packagesNumber; |
|||
|
|||
/** 抵运国(地区) */ |
|||
@ExcelProperty("抵运国(地区)") |
|||
private String arrivalArea; |
|||
|
|||
/** 指运港 */ |
|||
@ExcelProperty("指运港") |
|||
private String portOfDestination; |
|||
|
|||
/** 提运单号 */ |
|||
@ExcelProperty("提运单号") |
|||
private String hoistingNumber; |
|||
|
|||
/** 发票印字版号 */ |
|||
@ExcelProperty("发票印字版号") |
|||
private String printVersionNumber; |
|||
|
|||
/** 备注 */ |
|||
@ExcelProperty("备注") |
|||
private String billRemarks; |
|||
|
|||
/** 国税发票编号 */ |
|||
@ExcelProperty("国税发票编号") |
|||
private String taxInvoiceNo; |
|||
|
|||
/** 是否收到款 */ |
|||
@ExcelProperty("是否收到款") |
|||
private String getmoneyFlag; |
|||
|
|||
/** 备用一 */ |
|||
@ExcelProperty("备用一") |
|||
private String standbyOne; |
|||
|
|||
/** 备用二 */ |
|||
@ExcelProperty("备用二") |
|||
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; |
|||
} |
|||
|
|||
@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("standbyOne", getStandbyOne()) |
|||
.append("standbyTwo", getStandbyTwo()) |
|||
.toString(); |
|||
} |
|||
} |
@ -1,203 +0,0 @@ |
|||
package com.ruoyi.taxInvoice.domain.exportDto; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
|
|||
/** |
|||
* 国税发票产品对象 tax_invoice_product |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-02-13 |
|||
*/ |
|||
public class TaxInvoiceProductDto extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 国税产品id */ |
|||
private Long taxInvoiceProductId; |
|||
|
|||
/** 发票编号 */ |
|||
@ExcelProperty("发票编号") |
|||
private String taxInvoiceCode; |
|||
|
|||
/** 发票号码 */ |
|||
@ExcelProperty("发票号码") |
|||
private String taxInvoiceNumber; |
|||
|
|||
/** 成品代码 */ |
|||
@ExcelProperty("成品代码") |
|||
private String finishProductCode; |
|||
|
|||
/** 成品名称 */ |
|||
@ExcelProperty("成品名称") |
|||
private String finishProductName; |
|||
|
|||
/** 规格型号 */ |
|||
@ExcelProperty("规格型号") |
|||
private String specificationModel; |
|||
|
|||
/** 单位 */ |
|||
@ExcelProperty("单位") |
|||
private String inventoryUnit; |
|||
|
|||
/** 币别 */ |
|||
@ExcelProperty("币别") |
|||
private String commonCurrency; |
|||
|
|||
/** 数量 */ |
|||
@ExcelProperty("数量") |
|||
private String quantity; |
|||
|
|||
/** 单价 */ |
|||
@ExcelProperty("单价") |
|||
private String processPrice; |
|||
|
|||
/** 金额 */ |
|||
@ExcelProperty("金额") |
|||
private String amountOfMoney; |
|||
|
|||
/** 备用一 */ |
|||
private String standbyOne; |
|||
|
|||
/** 备用二 */ |
|||
private String standbyTwo; |
|||
|
|||
public void setTaxInvoiceProductId(Long taxInvoiceProductId) |
|||
{ |
|||
this.taxInvoiceProductId = taxInvoiceProductId; |
|||
} |
|||
|
|||
public Long getTaxInvoiceProductId() |
|||
{ |
|||
return taxInvoiceProductId; |
|||
} |
|||
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 setFinishProductCode(String finishProductCode) |
|||
{ |
|||
this.finishProductCode = finishProductCode; |
|||
} |
|||
|
|||
public String getFinishProductCode() |
|||
{ |
|||
return finishProductCode; |
|||
} |
|||
public void setFinishProductName(String finishProductName) |
|||
{ |
|||
this.finishProductName = finishProductName; |
|||
} |
|||
|
|||
public String getFinishProductName() |
|||
{ |
|||
return finishProductName; |
|||
} |
|||
public void setSpecificationModel(String specificationModel) |
|||
{ |
|||
this.specificationModel = specificationModel; |
|||
} |
|||
|
|||
public String getSpecificationModel() |
|||
{ |
|||
return specificationModel; |
|||
} |
|||
public void setInventoryUnit(String inventoryUnit) |
|||
{ |
|||
this.inventoryUnit = inventoryUnit; |
|||
} |
|||
|
|||
public String getInventoryUnit() |
|||
{ |
|||
return inventoryUnit; |
|||
} |
|||
public void setCommonCurrency(String commonCurrency) |
|||
{ |
|||
this.commonCurrency = commonCurrency; |
|||
} |
|||
|
|||
public String getCommonCurrency() |
|||
{ |
|||
return commonCurrency; |
|||
} |
|||
public void setQuantity(String quantity) |
|||
{ |
|||
this.quantity = quantity; |
|||
} |
|||
|
|||
public String getQuantity() |
|||
{ |
|||
return quantity; |
|||
} |
|||
public void setProcessPrice(String processPrice) |
|||
{ |
|||
this.processPrice = processPrice; |
|||
} |
|||
|
|||
public String getProcessPrice() |
|||
{ |
|||
return processPrice; |
|||
} |
|||
public void setAmountOfMoney(String amountOfMoney) |
|||
{ |
|||
this.amountOfMoney = amountOfMoney; |
|||
} |
|||
|
|||
public String getAmountOfMoney() |
|||
{ |
|||
return amountOfMoney; |
|||
} |
|||
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; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("taxInvoiceProductId", getTaxInvoiceProductId()) |
|||
.append("taxInvoiceCode", getTaxInvoiceCode()) |
|||
.append("taxInvoiceNumber", getTaxInvoiceNumber()) |
|||
.append("finishProductCode", getFinishProductCode()) |
|||
.append("finishProductName", getFinishProductName()) |
|||
.append("specificationModel", getSpecificationModel()) |
|||
.append("inventoryUnit", getInventoryUnit()) |
|||
.append("commonCurrency", getCommonCurrency()) |
|||
.append("quantity", getQuantity()) |
|||
.append("processPrice", getProcessPrice()) |
|||
.append("amountOfMoney", getAmountOfMoney()) |
|||
.append("standbyOne", getStandbyOne()) |
|||
.append("standbyTwo", getStandbyTwo()) |
|||
.toString(); |
|||
} |
|||
} |
@ -1,65 +0,0 @@ |
|||
package com.ruoyi.taxInvoice.mapper; |
|||
|
|||
import com.ruoyi.taxInvoice.domain.TaxInvoiceProduct; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 国税发票产品Mapper接口 |
|||
* |
|||
* @author ruoyi |
|||
* @date 2023-02-13 |
|||
*/ |
|||
public interface TaxInvoiceProductMapper |
|||
{ |
|||
/** |
|||
* 查询国税发票产品 |
|||
* |
|||
* @param taxInvoiceProductId 国税发票产品ID |
|||
* @return 国税发票产品 |
|||
*/ |
|||
public TaxInvoiceProduct selectTaxInvoiceProductById(Long taxInvoiceProductId); |
|||
|
|||
/** |
|||
* 查询国税发票产品列表 |
|||
* |
|||
* @param taxInvoiceProduct 国税发票产品 |
|||
* @return 国税发票产品集合 |
|||
*/ |
|||
public List<TaxInvoiceProduct> 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<TaxInvoiceProduct> selectTaxInvoiceByCodeAndNumber(@Param("taxInvoiceCode") String taxInvoiceCode, @Param("taxInvoiceNumber") String taxInvoiceNumber); |
|||
} |
@ -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<TaxInvoiceProduct> 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<TaxInvoiceProduct> selectTaxInvoiceByCodeAndNumber(String taxInvoiceCode,String taxInvoiceNumber); |
|||
} |
@ -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<TaxInvoiceProduct> 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<TaxInvoiceProduct> selectTaxInvoiceByCodeAndNumber(String taxInvoiceCode, String taxInvoiceNumber) { |
|||
return taxInvoiceProductMapper.selectTaxInvoiceByCodeAndNumber(taxInvoiceCode,taxInvoiceNumber); |
|||
} |
|||
} |
@ -1,109 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ruoyi.taxInvoice.mapper.TaxInvoiceProductMapper"> |
|||
|
|||
<resultMap type="TaxInvoiceProduct" id="TaxInvoiceProductResult"> |
|||
<result property="taxInvoiceProductId" column="tax_invoice_product_id" /> |
|||
<result property="taxInvoiceCode" column="tax_invoice_code" /> |
|||
<result property="taxInvoiceNumber" column="tax_invoice_number" /> |
|||
<result property="finishProductCode" column="finish_product_code" /> |
|||
<result property="finishProductName" column="finish_product_name" /> |
|||
<result property="specificationModel" column="specification_model" /> |
|||
<result property="inventoryUnit" column="inventory_unit" /> |
|||
<result property="commonCurrency" column="common_currency" /> |
|||
<result property="quantity" column="quantity" /> |
|||
<result property="processPrice" column="process_price" /> |
|||
<result property="amountOfMoney" column="amount_of_money" /> |
|||
<result property="standbyOne" column="standby_one" /> |
|||
<result property="standbyTwo" column="standby_two" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectTaxInvoiceProductVo"> |
|||
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 |
|||
</sql> |
|||
|
|||
<select id="selectTaxInvoiceProductList" parameterType="TaxInvoiceProduct" resultMap="TaxInvoiceProductResult"> |
|||
<include refid="selectTaxInvoiceProductVo"/> |
|||
<where> |
|||
<if test="taxInvoiceCode != null and taxInvoiceCode != ''"> and tax_invoice_code like concat('%', #{taxInvoiceCode}, '%')</if> |
|||
<if test="taxInvoiceNumber != null and taxInvoiceNumber != ''"> and tax_invoice_number like concat('%', #{taxInvoiceNumber}, '%')</if> |
|||
<if test="finishProductCode != null and finishProductCode != ''"> and finish_product_code like concat('%', #{finishProductCode}, '%')</if> |
|||
<if test="finishProductName != null and finishProductName != ''"> and finish_product_name like concat('%', #{finishProductName}, '%')</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectTaxInvoiceProductById" parameterType="Long" resultMap="TaxInvoiceProductResult"> |
|||
<include refid="selectTaxInvoiceProductVo"/> |
|||
where tax_invoice_product_id = #{taxInvoiceProductId} |
|||
</select> |
|||
|
|||
<select id="selectTaxInvoiceByCodeAndNumber" resultMap="TaxInvoiceProductResult"> |
|||
<include refid="selectTaxInvoiceProductVo"/> |
|||
where tax_invoice_code = #{taxInvoiceCode} AND tax_invoice_number = #{taxInvoiceNumber} |
|||
</select> |
|||
|
|||
<insert id="insertTaxInvoiceProduct" parameterType="TaxInvoiceProduct" useGeneratedKeys="true" keyProperty="taxInvoiceProductId"> |
|||
insert into tax_invoice_product |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="taxInvoiceCode != null">tax_invoice_code,</if> |
|||
<if test="taxInvoiceNumber != null">tax_invoice_number,</if> |
|||
<if test="finishProductCode != null">finish_product_code,</if> |
|||
<if test="finishProductName != null">finish_product_name,</if> |
|||
<if test="specificationModel != null">specification_model,</if> |
|||
<if test="inventoryUnit != null">inventory_unit,</if> |
|||
<if test="commonCurrency != null">common_currency,</if> |
|||
<if test="quantity != null">quantity,</if> |
|||
<if test="processPrice != null">process_price,</if> |
|||
<if test="amountOfMoney != null">amount_of_money,</if> |
|||
<if test="standbyOne != null">standby_one,</if> |
|||
<if test="standbyTwo != null">standby_two,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="taxInvoiceCode != null">#{taxInvoiceCode},</if> |
|||
<if test="taxInvoiceNumber != null">#{taxInvoiceNumber},</if> |
|||
<if test="finishProductCode != null">#{finishProductCode},</if> |
|||
<if test="finishProductName != null">#{finishProductName},</if> |
|||
<if test="specificationModel != null">#{specificationModel},</if> |
|||
<if test="inventoryUnit != null">#{inventoryUnit},</if> |
|||
<if test="commonCurrency != null">#{commonCurrency},</if> |
|||
<if test="quantity != null">#{quantity},</if> |
|||
<if test="processPrice != null">#{processPrice},</if> |
|||
<if test="amountOfMoney != null">#{amountOfMoney},</if> |
|||
<if test="standbyOne != null">#{standbyOne},</if> |
|||
<if test="standbyTwo != null">#{standbyTwo},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateTaxInvoiceProduct" parameterType="TaxInvoiceProduct"> |
|||
update tax_invoice_product |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="taxInvoiceCode != null">tax_invoice_code = #{taxInvoiceCode},</if> |
|||
<if test="taxInvoiceNumber != null">tax_invoice_number = #{taxInvoiceNumber},</if> |
|||
<if test="finishProductCode != null">finish_product_code = #{finishProductCode},</if> |
|||
<if test="finishProductName != null">finish_product_name = #{finishProductName},</if> |
|||
<if test="specificationModel != null">specification_model = #{specificationModel},</if> |
|||
<if test="inventoryUnit != null">inventory_unit = #{inventoryUnit},</if> |
|||
<if test="commonCurrency != null">common_currency = #{commonCurrency},</if> |
|||
<if test="quantity != null">quantity = #{quantity},</if> |
|||
<if test="processPrice != null">process_price = #{processPrice},</if> |
|||
<if test="amountOfMoney != null">amount_of_money = #{amountOfMoney},</if> |
|||
<if test="standbyOne != null">standby_one = #{standbyOne},</if> |
|||
<if test="standbyTwo != null">standby_two = #{standbyTwo},</if> |
|||
</trim> |
|||
where tax_invoice_product_id = #{taxInvoiceProductId} |
|||
</update> |
|||
|
|||
<delete id="deleteTaxInvoiceProductById" parameterType="Long"> |
|||
delete from tax_invoice_product where tax_invoice_product_id = #{taxInvoiceProductId} |
|||
</delete> |
|||
|
|||
<delete id="deleteTaxInvoiceProductByIds" parameterType="String"> |
|||
delete from tax_invoice_product where tax_invoice_product_id in |
|||
<foreach item="taxInvoiceProductId" collection="array" open="(" separator="," close=")"> |
|||
#{taxInvoiceProductId} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
</mapper> |
@ -1,99 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('新增国税发票产品')" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-taxInvoiceProduct-add"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">发票编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="taxInvoiceCode" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">发票号码:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="taxInvoiceNumber" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">成品代码:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="finishProductCode" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">成品名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="finishProductName" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">规格型号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="specificationModel" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">单位:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="inventoryUnit" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">币别:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="commonCurrency" class="form-control m-b" th:with="type=${@dict.getType('sys_coin_class')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">数量:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="quantity" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">单价:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="processPrice" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">金额:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="amountOfMoney" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">备用一:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="standbyOne" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">备用二:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="standbyTwo" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "taxInvoice/taxInvoiceProduct" |
|||
$("#form-taxInvoiceProduct-add").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/add", $('#form-taxInvoiceProduct-add').serialize()); |
|||
} |
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,100 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
|||
<head> |
|||
<th:block th:include="include :: header('修改国税发票产品')" /> |
|||
</head> |
|||
<body class="white-bg"> |
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
|||
<form class="form-horizontal m" id="form-taxInvoiceProduct-edit" th:object="${taxInvoiceProduct}"> |
|||
<input name="taxInvoiceProductId" th:field="*{taxInvoiceProductId}" type="hidden"> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">发票编号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="taxInvoiceCode" th:field="*{taxInvoiceCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">发票号码:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="taxInvoiceNumber" th:field="*{taxInvoiceNumber}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">成品代码:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="finishProductCode" th:field="*{finishProductCode}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">成品名称:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="finishProductName" th:field="*{finishProductName}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">规格型号:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="specificationModel" th:field="*{specificationModel}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">单位:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="inventoryUnit" th:field="*{inventoryUnit}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">币别:</label> |
|||
<div class="col-sm-8"> |
|||
<select name="commonCurrency" class="form-control m-b" th:with="type=${@dict.getType('sys_coin_class')}"> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{commonCurrency}"></option> |
|||
</select> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">数量:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="quantity" th:field="*{quantity}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">单价:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="processPrice" th:field="*{processPrice}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">金额:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="amountOfMoney" th:field="*{amountOfMoney}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">备用一:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="standbyOne" th:field="*{standbyOne}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-sm-3 control-label">备用二:</label> |
|||
<div class="col-sm-8"> |
|||
<input name="standbyTwo" th:field="*{standbyTwo}" class="form-control" type="text"> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "taxInvoice/taxInvoiceProduct"; |
|||
$("#form-taxInvoiceProduct-edit").validate({ |
|||
focusCleanup: true |
|||
}); |
|||
|
|||
function submitHandler() { |
|||
if ($.validate.form()) { |
|||
$.operate.save(prefix + "/edit", $('#form-taxInvoiceProduct-edit').serialize()); |
|||
} |
|||
} |
|||
</script> |
|||
</body> |
|||
</html> |
@ -1,138 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> |
|||
<head> |
|||
<th:block th:include="include :: header('国税发票产品列表')" /> |
|||
</head> |
|||
<body class="gray-bg"> |
|||
<div class="container-div"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 search-collapse"> |
|||
<form id="formId"> |
|||
<div class="select-list"> |
|||
<ul> |
|||
<li> |
|||
<label>发票编号:</label> |
|||
<input type="text" name="taxInvoiceCode"/> |
|||
</li> |
|||
<li> |
|||
<label>发票号码:</label> |
|||
<input type="text" name="taxInvoiceNumber"/> |
|||
</li> |
|||
<li> |
|||
<label>成品代码:</label> |
|||
<input type="text" name="finishProductCode"/> |
|||
</li> |
|||
<li> |
|||
<label>成品名称:</label> |
|||
<input type="text" name="finishProductName"/> |
|||
</li> |
|||
<li> |
|||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
|||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
|
|||
<div class="btn-group-sm" id="toolbar" role="group"> |
|||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="taxInvoice:taxInvoiceProduct:add"> |
|||
<i class="fa fa-plus"></i> 添加 |
|||
</a> |
|||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="taxInvoice:taxInvoiceProduct:edit"> |
|||
<i class="fa fa-edit"></i> 修改 |
|||
</a> |
|||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="taxInvoice:taxInvoiceProduct:remove"> |
|||
<i class="fa fa-remove"></i> 删除 |
|||
</a> |
|||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="taxInvoice:taxInvoiceProduct:export"> |
|||
<i class="fa fa-download"></i> 导出 |
|||
</a> |
|||
</div> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var editFlag = [[${@permission.hasPermi('taxInvoice:taxInvoiceProduct:edit')}]]; |
|||
var removeFlag = [[${@permission.hasPermi('taxInvoice:taxInvoiceProduct:remove')}]]; |
|||
var commonCurrencyDatas = [[${@dict.getType('sys_coin_class')}]]; |
|||
var prefix = ctx + "taxInvoice/taxInvoiceProduct"; |
|||
|
|||
$(function() { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
exportUrl: prefix + "/export", |
|||
modalName: "国税发票产品", |
|||
columns: [{ |
|||
checkbox: true |
|||
}, |
|||
{ |
|||
field: 'taxInvoiceProductId', |
|||
title: '国税产品id', |
|||
visible: false |
|||
}, |
|||
{ |
|||
field: 'taxInvoiceCode', |
|||
title: '发票编号' |
|||
}, |
|||
{ |
|||
field: 'taxInvoiceNumber', |
|||
title: '发票号码' |
|||
}, |
|||
{ |
|||
field: 'finishProductCode', |
|||
title: '成品代码' |
|||
}, |
|||
{ |
|||
field: 'finishProductName', |
|||
title: '成品名称' |
|||
}, |
|||
{ |
|||
field: 'specificationModel', |
|||
title: '规格型号' |
|||
}, |
|||
{ |
|||
field: 'inventoryUnit', |
|||
title: '单位' |
|||
}, |
|||
{ |
|||
field: 'commonCurrency', |
|||
title: '币别', |
|||
formatter: function(value, row, index) { |
|||
return $.table.selectDictLabel(commonCurrencyDatas, value); |
|||
} |
|||
}, |
|||
{ |
|||
field: 'quantity', |
|||
title: '数量' |
|||
}, |
|||
{ |
|||
field: 'processPrice', |
|||
title: '单价' |
|||
}, |
|||
{ |
|||
field: 'amountOfMoney', |
|||
title: '金额' |
|||
}, |
|||
{ |
|||
title: '操作', |
|||
align: 'center', |
|||
formatter: function(value, row, index) { |
|||
var actions = []; |
|||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.taxInvoiceProductId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
|||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.taxInvoiceProductId + '\')"><i class="fa fa-remove"></i>删除</a>'); |
|||
return actions.join(''); |
|||
} |
|||
}] |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue