Browse Source
国税发票物料 新增国税发票历史记录数据库表 新增国税发票历史记录domain 新增国税发票历史记录Mapper 新增国税发票历史记录Mapper.xml 新增国税发票历史记录Service 新增国税发票历史记录ServiceImpldev
5 changed files with 599 additions and 0 deletions
@ -0,0 +1,197 @@ |
|||||
|
package com.ruoyi.financial.domain; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* 国税发票历史记录对象 financial_tax_invoice_history |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-08-14 |
||||
|
*/ |
||||
|
public class FinancialTaxInvoiceHistory extends BaseEntity |
||||
|
{ |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** 国税发票历史id */ |
||||
|
private Long invoiceHistoryId; |
||||
|
|
||||
|
/** 国税发票单号 */ |
||||
|
@Excel(name = "国税发票单号") |
||||
|
private String taxInvoiceCode; |
||||
|
|
||||
|
/** 销售订单编号 */ |
||||
|
private String salesOrderCode; |
||||
|
|
||||
|
/** 发票状态(0待审核、1待开具、2已开具、3审核拒绝) */ |
||||
|
@Excel(name = "发票状态(0待审核、1待开具、2已开具、3审核拒绝)") |
||||
|
private String taxInvoiceStatus; |
||||
|
|
||||
|
/** 申请时间 */ |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
|
@Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
|
private Date applyTime; |
||||
|
|
||||
|
/** 财务员 */ |
||||
|
@Excel(name = "财务员") |
||||
|
private String financeMembers; |
||||
|
|
||||
|
/** 开票额度比例 */ |
||||
|
@Excel(name = "开票额度比例") |
||||
|
private BigDecimal invoiceQuotaRatio; |
||||
|
|
||||
|
/** 开票金额(RMB) */ |
||||
|
@Excel(name = "开票金额(RMB)") |
||||
|
private BigDecimal invoiceAmountRmb; |
||||
|
|
||||
|
/** 开票金额(美元) */ |
||||
|
@Excel(name = "开票金额(美元)") |
||||
|
private BigDecimal invoiceAmountUsd; |
||||
|
|
||||
|
/** 开票用途 */ |
||||
|
@Excel(name = "开票用途") |
||||
|
private String invoicePurpose; |
||||
|
|
||||
|
/** 使用状态(1是、0否、2已作废) */ |
||||
|
private String useStatus; |
||||
|
|
||||
|
/** 删除标志 0正常 1删除 */ |
||||
|
private String delFlag; |
||||
|
|
||||
|
public void setInvoiceHistoryId(Long invoiceHistoryId) |
||||
|
{ |
||||
|
this.invoiceHistoryId = invoiceHistoryId; |
||||
|
} |
||||
|
|
||||
|
public Long getInvoiceHistoryId() |
||||
|
{ |
||||
|
return invoiceHistoryId; |
||||
|
} |
||||
|
public void setTaxInvoiceCode(String taxInvoiceCode) |
||||
|
{ |
||||
|
this.taxInvoiceCode = taxInvoiceCode; |
||||
|
} |
||||
|
|
||||
|
public String getTaxInvoiceCode() |
||||
|
{ |
||||
|
return taxInvoiceCode; |
||||
|
} |
||||
|
public void setSalesOrderCode(String salesOrderCode) |
||||
|
{ |
||||
|
this.salesOrderCode = salesOrderCode; |
||||
|
} |
||||
|
|
||||
|
public String getSalesOrderCode() |
||||
|
{ |
||||
|
return salesOrderCode; |
||||
|
} |
||||
|
public void setTaxInvoiceStatus(String taxInvoiceStatus) |
||||
|
{ |
||||
|
this.taxInvoiceStatus = taxInvoiceStatus; |
||||
|
} |
||||
|
|
||||
|
public String getTaxInvoiceStatus() |
||||
|
{ |
||||
|
return taxInvoiceStatus; |
||||
|
} |
||||
|
public void setApplyTime(Date applyTime) |
||||
|
{ |
||||
|
this.applyTime = applyTime; |
||||
|
} |
||||
|
|
||||
|
public Date getApplyTime() |
||||
|
{ |
||||
|
return applyTime; |
||||
|
} |
||||
|
public void setFinanceMembers(String financeMembers) |
||||
|
{ |
||||
|
this.financeMembers = financeMembers; |
||||
|
} |
||||
|
|
||||
|
public String getFinanceMembers() |
||||
|
{ |
||||
|
return financeMembers; |
||||
|
} |
||||
|
public void setInvoiceQuotaRatio(BigDecimal invoiceQuotaRatio) |
||||
|
{ |
||||
|
this.invoiceQuotaRatio = invoiceQuotaRatio; |
||||
|
} |
||||
|
|
||||
|
public BigDecimal getInvoiceQuotaRatio() |
||||
|
{ |
||||
|
return invoiceQuotaRatio; |
||||
|
} |
||||
|
public void setInvoiceAmountRmb(BigDecimal invoiceAmountRmb) |
||||
|
{ |
||||
|
this.invoiceAmountRmb = invoiceAmountRmb; |
||||
|
} |
||||
|
|
||||
|
public BigDecimal getInvoiceAmountRmb() |
||||
|
{ |
||||
|
return invoiceAmountRmb; |
||||
|
} |
||||
|
public void setInvoiceAmountUsd(BigDecimal invoiceAmountUsd) |
||||
|
{ |
||||
|
this.invoiceAmountUsd = invoiceAmountUsd; |
||||
|
} |
||||
|
|
||||
|
public BigDecimal getInvoiceAmountUsd() |
||||
|
{ |
||||
|
return invoiceAmountUsd; |
||||
|
} |
||||
|
public void setInvoicePurpose(String invoicePurpose) |
||||
|
{ |
||||
|
this.invoicePurpose = invoicePurpose; |
||||
|
} |
||||
|
|
||||
|
public String getInvoicePurpose() |
||||
|
{ |
||||
|
return invoicePurpose; |
||||
|
} |
||||
|
public void setUseStatus(String useStatus) |
||||
|
{ |
||||
|
this.useStatus = useStatus; |
||||
|
} |
||||
|
|
||||
|
public String getUseStatus() |
||||
|
{ |
||||
|
return useStatus; |
||||
|
} |
||||
|
public void setDelFlag(String delFlag) |
||||
|
{ |
||||
|
this.delFlag = delFlag; |
||||
|
} |
||||
|
|
||||
|
public String getDelFlag() |
||||
|
{ |
||||
|
return delFlag; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
||||
|
.append("invoiceHistoryId", getInvoiceHistoryId()) |
||||
|
.append("taxInvoiceCode", getTaxInvoiceCode()) |
||||
|
.append("salesOrderCode", getSalesOrderCode()) |
||||
|
.append("taxInvoiceStatus", getTaxInvoiceStatus()) |
||||
|
.append("applyTime", getApplyTime()) |
||||
|
.append("financeMembers", getFinanceMembers()) |
||||
|
.append("invoiceQuotaRatio", getInvoiceQuotaRatio()) |
||||
|
.append("invoiceAmountRmb", getInvoiceAmountRmb()) |
||||
|
.append("invoiceAmountUsd", getInvoiceAmountUsd()) |
||||
|
.append("invoicePurpose", getInvoicePurpose()) |
||||
|
.append("createBy", getCreateBy()) |
||||
|
.append("createTime", getCreateTime()) |
||||
|
.append("updateBy", getUpdateBy()) |
||||
|
.append("updateTime", getUpdateTime()) |
||||
|
.append("remark", getRemark()) |
||||
|
.append("useStatus", getUseStatus()) |
||||
|
.append("delFlag", getDelFlag()) |
||||
|
.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
package com.ruoyi.financial.mapper; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.ruoyi.financial.domain.FinancialTaxInvoiceHistory; |
||||
|
|
||||
|
/** |
||||
|
* 国税发票历史记录Mapper接口 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-08-14 |
||||
|
*/ |
||||
|
public interface FinancialTaxInvoiceHistoryMapper |
||||
|
{ |
||||
|
/** |
||||
|
* 查询国税发票历史记录 |
||||
|
* |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return 国税发票历史记录 |
||||
|
*/ |
||||
|
public FinancialTaxInvoiceHistory selectFinancialTaxInvoiceHistoryById(Long invoiceHistoryId); |
||||
|
|
||||
|
/** |
||||
|
* 查询国税发票历史记录列表 |
||||
|
* |
||||
|
* @param financialTaxInvoiceHistory 国税发票历史记录 |
||||
|
* @return 国税发票历史记录集合 |
||||
|
*/ |
||||
|
public List<FinancialTaxInvoiceHistory> selectFinancialTaxInvoiceHistoryList(FinancialTaxInvoiceHistory financialTaxInvoiceHistory); |
||||
|
|
||||
|
/** |
||||
|
* 新增国税发票历史记录 |
||||
|
* |
||||
|
* @param financialTaxInvoiceHistory 国税发票历史记录 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertFinancialTaxInvoiceHistory(FinancialTaxInvoiceHistory financialTaxInvoiceHistory); |
||||
|
|
||||
|
/** |
||||
|
* 修改国税发票历史记录 |
||||
|
* |
||||
|
* @param financialTaxInvoiceHistory 国税发票历史记录 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateFinancialTaxInvoiceHistory(FinancialTaxInvoiceHistory financialTaxInvoiceHistory); |
||||
|
|
||||
|
/** |
||||
|
* 删除国税发票历史记录 |
||||
|
* |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteFinancialTaxInvoiceHistoryById(Long invoiceHistoryId); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除国税发票历史记录 |
||||
|
* |
||||
|
* @param invoiceHistoryIds 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteFinancialTaxInvoiceHistoryByIds(String[] invoiceHistoryIds); |
||||
|
|
||||
|
/** |
||||
|
* 作废国税发票历史记录 |
||||
|
* |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int cancelFinancialTaxInvoiceHistoryById(Long invoiceHistoryId); |
||||
|
|
||||
|
/** |
||||
|
* 恢复国税发票历史记录 |
||||
|
* |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int restoreFinancialTaxInvoiceHistoryById(Long invoiceHistoryId); |
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
package com.ruoyi.financial.service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.ruoyi.financial.domain.FinancialTaxInvoiceHistory; |
||||
|
|
||||
|
/** |
||||
|
* 国税发票历史记录Service接口 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-08-14 |
||||
|
*/ |
||||
|
public interface IFinancialTaxInvoiceHistoryService |
||||
|
{ |
||||
|
/** |
||||
|
* 查询国税发票历史记录 |
||||
|
* |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return 国税发票历史记录 |
||||
|
*/ |
||||
|
public FinancialTaxInvoiceHistory selectFinancialTaxInvoiceHistoryById(Long invoiceHistoryId); |
||||
|
|
||||
|
/** |
||||
|
* 查询国税发票历史记录列表 |
||||
|
* |
||||
|
* @param financialTaxInvoiceHistory 国税发票历史记录 |
||||
|
* @return 国税发票历史记录集合 |
||||
|
*/ |
||||
|
public List<FinancialTaxInvoiceHistory> selectFinancialTaxInvoiceHistoryList(FinancialTaxInvoiceHistory financialTaxInvoiceHistory); |
||||
|
|
||||
|
/** |
||||
|
* 新增国税发票历史记录 |
||||
|
* |
||||
|
* @param financialTaxInvoiceHistory 国税发票历史记录 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertFinancialTaxInvoiceHistory(FinancialTaxInvoiceHistory financialTaxInvoiceHistory); |
||||
|
|
||||
|
/** |
||||
|
* 修改国税发票历史记录 |
||||
|
* |
||||
|
* @param financialTaxInvoiceHistory 国税发票历史记录 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateFinancialTaxInvoiceHistory(FinancialTaxInvoiceHistory financialTaxInvoiceHistory); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除国税发票历史记录 |
||||
|
* |
||||
|
* @param ids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteFinancialTaxInvoiceHistoryByIds(String ids); |
||||
|
|
||||
|
/** |
||||
|
* 删除国税发票历史记录信息 |
||||
|
* |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteFinancialTaxInvoiceHistoryById(Long invoiceHistoryId); |
||||
|
|
||||
|
/** |
||||
|
* 作废国税发票历史记录 |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return |
||||
|
*/ |
||||
|
int cancelFinancialTaxInvoiceHistoryById(Long invoiceHistoryId); |
||||
|
|
||||
|
/** |
||||
|
* 恢复国税发票历史记录 |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return |
||||
|
*/ |
||||
|
int restoreFinancialTaxInvoiceHistoryById(Long invoiceHistoryId); |
||||
|
} |
@ -0,0 +1,126 @@ |
|||||
|
package com.ruoyi.financial.service.impl; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.ruoyi.common.utils.DateUtils; |
||||
|
import com.ruoyi.common.utils.ShiroUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import com.ruoyi.financial.mapper.FinancialTaxInvoiceHistoryMapper; |
||||
|
import com.ruoyi.financial.domain.FinancialTaxInvoiceHistory; |
||||
|
import com.ruoyi.financial.service.IFinancialTaxInvoiceHistoryService; |
||||
|
import com.ruoyi.common.core.text.Convert; |
||||
|
|
||||
|
/** |
||||
|
* 国税发票历史记录Service业务层处理 |
||||
|
* |
||||
|
* @author 刘晓旭 |
||||
|
* @date 2024-08-14 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class FinancialTaxInvoiceHistoryServiceImpl implements IFinancialTaxInvoiceHistoryService |
||||
|
{ |
||||
|
@Autowired |
||||
|
private FinancialTaxInvoiceHistoryMapper financialTaxInvoiceHistoryMapper; |
||||
|
|
||||
|
/** |
||||
|
* 查询国税发票历史记录 |
||||
|
* |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return 国税发票历史记录 |
||||
|
*/ |
||||
|
@Override |
||||
|
public FinancialTaxInvoiceHistory selectFinancialTaxInvoiceHistoryById(Long invoiceHistoryId) |
||||
|
{ |
||||
|
return financialTaxInvoiceHistoryMapper.selectFinancialTaxInvoiceHistoryById(invoiceHistoryId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询国税发票历史记录列表 |
||||
|
* |
||||
|
* @param financialTaxInvoiceHistory 国税发票历史记录 |
||||
|
* @return 国税发票历史记录 |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<FinancialTaxInvoiceHistory> selectFinancialTaxInvoiceHistoryList(FinancialTaxInvoiceHistory financialTaxInvoiceHistory) |
||||
|
{ |
||||
|
return financialTaxInvoiceHistoryMapper.selectFinancialTaxInvoiceHistoryList(financialTaxInvoiceHistory); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增国税发票历史记录 |
||||
|
* |
||||
|
* @param financialTaxInvoiceHistory 国税发票历史记录 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int insertFinancialTaxInvoiceHistory(FinancialTaxInvoiceHistory financialTaxInvoiceHistory) |
||||
|
{ |
||||
|
String loginName = ShiroUtils.getLoginName(); |
||||
|
financialTaxInvoiceHistory.setCreateBy(loginName); |
||||
|
financialTaxInvoiceHistory.setCreateTime(DateUtils.getNowDate()); |
||||
|
return financialTaxInvoiceHistoryMapper.insertFinancialTaxInvoiceHistory(financialTaxInvoiceHistory); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改国税发票历史记录 |
||||
|
* |
||||
|
* @param financialTaxInvoiceHistory 国税发票历史记录 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int updateFinancialTaxInvoiceHistory(FinancialTaxInvoiceHistory financialTaxInvoiceHistory) |
||||
|
{ |
||||
|
String loginName = ShiroUtils.getLoginName(); |
||||
|
financialTaxInvoiceHistory.setUpdateBy(loginName); |
||||
|
financialTaxInvoiceHistory.setUpdateTime(DateUtils.getNowDate()); |
||||
|
return financialTaxInvoiceHistoryMapper.updateFinancialTaxInvoiceHistory(financialTaxInvoiceHistory); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除国税发票历史记录对象 |
||||
|
* |
||||
|
* @param ids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int deleteFinancialTaxInvoiceHistoryByIds(String ids) |
||||
|
{ |
||||
|
return financialTaxInvoiceHistoryMapper.deleteFinancialTaxInvoiceHistoryByIds(Convert.toStrArray(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除国税发票历史记录信息 |
||||
|
* |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int deleteFinancialTaxInvoiceHistoryById(Long invoiceHistoryId) |
||||
|
{ |
||||
|
return financialTaxInvoiceHistoryMapper.deleteFinancialTaxInvoiceHistoryById(invoiceHistoryId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 作废国税发票历史记录 |
||||
|
* |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int cancelFinancialTaxInvoiceHistoryById(Long invoiceHistoryId) |
||||
|
{ |
||||
|
return financialTaxInvoiceHistoryMapper.cancelFinancialTaxInvoiceHistoryById(invoiceHistoryId); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 恢复国税发票历史记录信息 |
||||
|
* |
||||
|
* @param invoiceHistoryId 国税发票历史记录ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int restoreFinancialTaxInvoiceHistoryById(Long invoiceHistoryId) |
||||
|
{ |
||||
|
return financialTaxInvoiceHistoryMapper.restoreFinancialTaxInvoiceHistoryById(invoiceHistoryId); |
||||
|
} |
||||
|
} |
@ -0,0 +1,124 @@ |
|||||
|
<?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.financial.mapper.FinancialTaxInvoiceHistoryMapper"> |
||||
|
|
||||
|
<resultMap type="FinancialTaxInvoiceHistory" id="FinancialTaxInvoiceHistoryResult"> |
||||
|
<result property="invoiceHistoryId" column="invoice_history_id" /> |
||||
|
<result property="taxInvoiceCode" column="tax_invoice_code" /> |
||||
|
<result property="salesOrderCode" column="sales_order_code" /> |
||||
|
<result property="taxInvoiceStatus" column="tax_invoice_status" /> |
||||
|
<result property="applyTime" column="apply_time" /> |
||||
|
<result property="financeMembers" column="finance_members" /> |
||||
|
<result property="invoiceQuotaRatio" column="invoice_quota_ratio" /> |
||||
|
<result property="invoiceAmountRmb" column="invoice_amount_rmb" /> |
||||
|
<result property="invoiceAmountUsd" column="invoice_amount_usd" /> |
||||
|
<result property="invoicePurpose" column="invoice_purpose" /> |
||||
|
<result property="createBy" column="create_by" /> |
||||
|
<result property="createTime" column="create_time" /> |
||||
|
<result property="updateBy" column="update_by" /> |
||||
|
<result property="updateTime" column="update_time" /> |
||||
|
<result property="remark" column="remark" /> |
||||
|
<result property="useStatus" column="use_status" /> |
||||
|
<result property="delFlag" column="del_flag" /> |
||||
|
</resultMap> |
||||
|
|
||||
|
<sql id="selectFinancialTaxInvoiceHistoryVo"> |
||||
|
select invoice_history_id, tax_invoice_code, sales_order_code, tax_invoice_status, apply_time, finance_members, invoice_quota_ratio, invoice_amount_rmb, invoice_amount_usd, invoice_purpose, create_by, create_time, update_by, update_time, remark, use_status, del_flag from financial_tax_invoice_history |
||||
|
</sql> |
||||
|
|
||||
|
<select id="selectFinancialTaxInvoiceHistoryList" parameterType="FinancialTaxInvoiceHistory" resultMap="FinancialTaxInvoiceHistoryResult"> |
||||
|
<include refid="selectFinancialTaxInvoiceHistoryVo"/> |
||||
|
<where> |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectFinancialTaxInvoiceHistoryById" parameterType="Long" resultMap="FinancialTaxInvoiceHistoryResult"> |
||||
|
<include refid="selectFinancialTaxInvoiceHistoryVo"/> |
||||
|
where invoice_history_id = #{invoiceHistoryId} |
||||
|
</select> |
||||
|
|
||||
|
<insert id="insertFinancialTaxInvoiceHistory" parameterType="FinancialTaxInvoiceHistory" useGeneratedKeys="true" keyProperty="invoiceHistoryId"> |
||||
|
insert into financial_tax_invoice_history |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="taxInvoiceCode != null">tax_invoice_code,</if> |
||||
|
<if test="salesOrderCode != null">sales_order_code,</if> |
||||
|
<if test="taxInvoiceStatus != null">tax_invoice_status,</if> |
||||
|
<if test="applyTime != null">apply_time,</if> |
||||
|
<if test="financeMembers != null">finance_members,</if> |
||||
|
<if test="invoiceQuotaRatio != null">invoice_quota_ratio,</if> |
||||
|
<if test="invoiceAmountRmb != null">invoice_amount_rmb,</if> |
||||
|
<if test="invoiceAmountUsd != null">invoice_amount_usd,</if> |
||||
|
<if test="invoicePurpose != null">invoice_purpose,</if> |
||||
|
<if test="createBy != null">create_by,</if> |
||||
|
<if test="createTime != null">create_time,</if> |
||||
|
<if test="updateBy != null">update_by,</if> |
||||
|
<if test="updateTime != null">update_time,</if> |
||||
|
<if test="remark != null">remark,</if> |
||||
|
<if test="useStatus != null">use_status,</if> |
||||
|
<if test="delFlag != null">del_flag,</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="taxInvoiceCode != null">#{taxInvoiceCode},</if> |
||||
|
<if test="salesOrderCode != null">#{salesOrderCode},</if> |
||||
|
<if test="taxInvoiceStatus != null">#{taxInvoiceStatus},</if> |
||||
|
<if test="applyTime != null">#{applyTime},</if> |
||||
|
<if test="financeMembers != null">#{financeMembers},</if> |
||||
|
<if test="invoiceQuotaRatio != null">#{invoiceQuotaRatio},</if> |
||||
|
<if test="invoiceAmountRmb != null">#{invoiceAmountRmb},</if> |
||||
|
<if test="invoiceAmountUsd != null">#{invoiceAmountUsd},</if> |
||||
|
<if test="invoicePurpose != null">#{invoicePurpose},</if> |
||||
|
<if test="createBy != null">#{createBy},</if> |
||||
|
<if test="createTime != null">#{createTime},</if> |
||||
|
<if test="updateBy != null">#{updateBy},</if> |
||||
|
<if test="updateTime != null">#{updateTime},</if> |
||||
|
<if test="remark != null">#{remark},</if> |
||||
|
<if test="useStatus != null">#{useStatus},</if> |
||||
|
<if test="delFlag != null">#{delFlag},</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
|
||||
|
<update id="updateFinancialTaxInvoiceHistory" parameterType="FinancialTaxInvoiceHistory"> |
||||
|
update financial_tax_invoice_history |
||||
|
<trim prefix="SET" suffixOverrides=","> |
||||
|
<if test="taxInvoiceCode != null">tax_invoice_code = #{taxInvoiceCode},</if> |
||||
|
<if test="salesOrderCode != null">sales_order_code = #{salesOrderCode},</if> |
||||
|
<if test="taxInvoiceStatus != null">tax_invoice_status = #{taxInvoiceStatus},</if> |
||||
|
<if test="applyTime != null">apply_time = #{applyTime},</if> |
||||
|
<if test="financeMembers != null">finance_members = #{financeMembers},</if> |
||||
|
<if test="invoiceQuotaRatio != null">invoice_quota_ratio = #{invoiceQuotaRatio},</if> |
||||
|
<if test="invoiceAmountRmb != null">invoice_amount_rmb = #{invoiceAmountRmb},</if> |
||||
|
<if test="invoiceAmountUsd != null">invoice_amount_usd = #{invoiceAmountUsd},</if> |
||||
|
<if test="invoicePurpose != null">invoice_purpose = #{invoicePurpose},</if> |
||||
|
<if test="createBy != null">create_by = #{createBy},</if> |
||||
|
<if test="createTime != null">create_time = #{createTime},</if> |
||||
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
||||
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
|
<if test="remark != null">remark = #{remark},</if> |
||||
|
<if test="useStatus != null">use_status = #{useStatus},</if> |
||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if> |
||||
|
</trim> |
||||
|
where invoice_history_id = #{invoiceHistoryId} |
||||
|
</update> |
||||
|
|
||||
|
<delete id="deleteFinancialTaxInvoiceHistoryById" parameterType="Long"> |
||||
|
delete from financial_tax_invoice_history where invoice_history_id = #{invoiceHistoryId} |
||||
|
</delete> |
||||
|
|
||||
|
<delete id="deleteFinancialTaxInvoiceHistoryByIds" parameterType="String"> |
||||
|
delete from financial_tax_invoice_history where invoice_history_id in |
||||
|
<foreach item="invoiceHistoryId" collection="array" open="(" separator="," close=")"> |
||||
|
#{invoiceHistoryId} |
||||
|
</foreach> |
||||
|
</delete> |
||||
|
|
||||
|
<update id="cancelFinancialTaxInvoiceHistoryById" parameterType="Long"> |
||||
|
update financial_tax_invoice_history set del_flag = '1' where invoice_history_id = #{invoiceHistoryId} |
||||
|
</update> |
||||
|
|
||||
|
<update id="restoreFinancialTaxInvoiceHistoryById" parameterType="Long"> |
||||
|
update financial_tax_invoice_history set del_flag = '0' where invoice_history_id = #{invoiceHistoryId} |
||||
|
</update> |
||||
|
|
||||
|
</mapper> |
Loading…
Reference in new issue