Browse Source

[feat]财务管理:

国税发票物料
新增国税发票物料数据库表
新增国税发票物料domain
新增国税发票物料Mapper
新增国税发票物料Mapper.xml
新增国税发票物料Service
新增国税发票物料ServiceImpl
dev
liuxiaoxu 3 months ago
parent
commit
a5eeeaca4c
  1. 332
      ruoyi-admin/src/main/java/com/ruoyi/financial/domain/FinancialTaxInvoiceMaterial.java
  2. 77
      ruoyi-admin/src/main/java/com/ruoyi/financial/mapper/FinancialTaxInvoiceMaterialMapper.java
  3. 75
      ruoyi-admin/src/main/java/com/ruoyi/financial/service/IFinancialTaxInvoiceMaterialService.java
  4. 126
      ruoyi-admin/src/main/java/com/ruoyi/financial/service/impl/FinancialTaxInvoiceMaterialServiceImpl.java
  5. 164
      ruoyi-admin/src/main/resources/mapper/financial/FinancialTaxInvoiceMaterialMapper.xml

332
ruoyi-admin/src/main/java/com/ruoyi/financial/domain/FinancialTaxInvoiceMaterial.java

@ -0,0 +1,332 @@
package com.ruoyi.financial.domain;
import java.math.BigDecimal;
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_material
*
* @author 刘晓旭
* @date 2024-08-13
*/
public class FinancialTaxInvoiceMaterial extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 国税发票物料ID */
private Long invoiceMaterialId;
/** 国税发票单号 */
private String taxInvoiceCode;
/** 销售订单编号 */
private String salesOrderCode;
/** 物料编号 */
@Excel(name = "物料编号")
private String materialCode;
/** 物料名称 */
@Excel(name = "物料名称")
private String materialName;
/** 物料类型 */
@Excel(name = "物料类型")
private String materialType;
/** 物料加工方式 */
@Excel(name = "物料加工方式")
private String materialProcessMethod;
/** 物料品牌 */
@Excel(name = "物料品牌")
private String materialBrand;
/** 物料图片 */
@Excel(name = "物料图片")
private String materialPhotourl;
/** 物料单位 */
@Excel(name = "物料单位")
private String materialUnit;
/** 物料描述 */
@Excel(name = "物料描述")
private String materialDescribe;
/** 入库部门 */
private String warehouseDept;
/** 物料的数量(也是订单数量) */
@Excel(name = "物料的数量", readConverterExp = "也=是订单数量")
private Integer materialNum;
/** 物料的含税单价(RMB) */
@Excel(name = "物料的含税单价(RMB)")
private BigDecimal taxRmb;
/** 物料的不含税单价(RMB) */
@Excel(name = "物料的不含税单价(RMB)")
private BigDecimal noTaxRmb;
/** 物料的含税单价(美元) */
@Excel(name = "物料的含税单价(美元)")
private BigDecimal taxUsd;
/** 物料的不含税单价(美元) */
@Excel(name = "物料的不含税单价(美元)")
private BigDecimal noTaxUsd;
/** 已出库数量 */
@Excel(name = "已出库数量")
private Integer outBoundQuantity;
/** 已验收数 */
@Excel(name = "已验收数")
private Integer hasCheckNum;
/** 退货数 */
@Excel(name = "退货数")
private Integer refundsNum;
/** 使用状态(1是、0否、2已作废) */
private String useStatus;
/** 删除标志 0正常 1删除 */
private String delFlag;
public void setInvoiceMaterialId(Long invoiceMaterialId)
{
this.invoiceMaterialId = invoiceMaterialId;
}
public Long getInvoiceMaterialId()
{
return invoiceMaterialId;
}
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 setMaterialCode(String materialCode)
{
this.materialCode = materialCode;
}
public String getMaterialCode()
{
return materialCode;
}
public void setMaterialName(String materialName)
{
this.materialName = materialName;
}
public String getMaterialName()
{
return materialName;
}
public void setMaterialType(String materialType)
{
this.materialType = materialType;
}
public String getMaterialType()
{
return materialType;
}
public void setMaterialProcessMethod(String materialProcessMethod)
{
this.materialProcessMethod = materialProcessMethod;
}
public String getMaterialProcessMethod()
{
return materialProcessMethod;
}
public void setMaterialBrand(String materialBrand)
{
this.materialBrand = materialBrand;
}
public String getMaterialBrand()
{
return materialBrand;
}
public void setMaterialPhotourl(String materialPhotourl)
{
this.materialPhotourl = materialPhotourl;
}
public String getMaterialPhotourl()
{
return materialPhotourl;
}
public void setMaterialUnit(String materialUnit)
{
this.materialUnit = materialUnit;
}
public String getMaterialUnit()
{
return materialUnit;
}
public void setMaterialDescribe(String materialDescribe)
{
this.materialDescribe = materialDescribe;
}
public String getMaterialDescribe()
{
return materialDescribe;
}
public void setWarehouseDept(String warehouseDept)
{
this.warehouseDept = warehouseDept;
}
public String getWarehouseDept()
{
return warehouseDept;
}
public void setMaterialNum(Integer materialNum)
{
this.materialNum = materialNum;
}
public Integer getMaterialNum()
{
return materialNum;
}
public void setTaxRmb(BigDecimal taxRmb)
{
this.taxRmb = taxRmb;
}
public BigDecimal getTaxRmb()
{
return taxRmb;
}
public void setNoTaxRmb(BigDecimal noTaxRmb)
{
this.noTaxRmb = noTaxRmb;
}
public BigDecimal getNoTaxRmb()
{
return noTaxRmb;
}
public void setTaxUsd(BigDecimal taxUsd)
{
this.taxUsd = taxUsd;
}
public BigDecimal getTaxUsd()
{
return taxUsd;
}
public void setNoTaxUsd(BigDecimal noTaxUsd)
{
this.noTaxUsd = noTaxUsd;
}
public BigDecimal getNoTaxUsd()
{
return noTaxUsd;
}
public void setOutBoundQuantity(Integer outBoundQuantity)
{
this.outBoundQuantity = outBoundQuantity;
}
public Integer getOutBoundQuantity()
{
return outBoundQuantity;
}
public void setHasCheckNum(Integer hasCheckNum)
{
this.hasCheckNum = hasCheckNum;
}
public Integer getHasCheckNum()
{
return hasCheckNum;
}
public void setRefundsNum(Integer refundsNum)
{
this.refundsNum = refundsNum;
}
public Integer getRefundsNum()
{
return refundsNum;
}
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("invoiceMaterialId", getInvoiceMaterialId())
.append("taxInvoiceCode", getTaxInvoiceCode())
.append("salesOrderCode", getSalesOrderCode())
.append("materialCode", getMaterialCode())
.append("materialName", getMaterialName())
.append("materialType", getMaterialType())
.append("materialProcessMethod", getMaterialProcessMethod())
.append("materialBrand", getMaterialBrand())
.append("materialPhotourl", getMaterialPhotourl())
.append("materialUnit", getMaterialUnit())
.append("materialDescribe", getMaterialDescribe())
.append("warehouseDept", getWarehouseDept())
.append("materialNum", getMaterialNum())
.append("taxRmb", getTaxRmb())
.append("noTaxRmb", getNoTaxRmb())
.append("taxUsd", getTaxUsd())
.append("noTaxUsd", getNoTaxUsd())
.append("outBoundQuantity", getOutBoundQuantity())
.append("hasCheckNum", getHasCheckNum())
.append("refundsNum", getRefundsNum())
.append("useStatus", getUseStatus())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.append("delFlag", getDelFlag())
.toString();
}
}

77
ruoyi-admin/src/main/java/com/ruoyi/financial/mapper/FinancialTaxInvoiceMaterialMapper.java

@ -0,0 +1,77 @@
package com.ruoyi.financial.mapper;
import java.util.List;
import com.ruoyi.financial.domain.FinancialTaxInvoiceMaterial;
/**
* 国税发票物料Mapper接口
*
* @author 刘晓旭
* @date 2024-08-13
*/
public interface FinancialTaxInvoiceMaterialMapper
{
/**
* 查询国税发票物料
*
* @param invoiceMaterialId 国税发票物料ID
* @return 国税发票物料
*/
public FinancialTaxInvoiceMaterial selectFinancialTaxInvoiceMaterialById(Long invoiceMaterialId);
/**
* 查询国税发票物料列表
*
* @param financialTaxInvoiceMaterial 国税发票物料
* @return 国税发票物料集合
*/
public List<FinancialTaxInvoiceMaterial> selectFinancialTaxInvoiceMaterialList(FinancialTaxInvoiceMaterial financialTaxInvoiceMaterial);
/**
* 新增国税发票物料
*
* @param financialTaxInvoiceMaterial 国税发票物料
* @return 结果
*/
public int insertFinancialTaxInvoiceMaterial(FinancialTaxInvoiceMaterial financialTaxInvoiceMaterial);
/**
* 修改国税发票物料
*
* @param financialTaxInvoiceMaterial 国税发票物料
* @return 结果
*/
public int updateFinancialTaxInvoiceMaterial(FinancialTaxInvoiceMaterial financialTaxInvoiceMaterial);
/**
* 删除国税发票物料
*
* @param invoiceMaterialId 国税发票物料ID
* @return 结果
*/
public int deleteFinancialTaxInvoiceMaterialById(Long invoiceMaterialId);
/**
* 批量删除国税发票物料
*
* @param invoiceMaterialIds 需要删除的数据ID
* @return 结果
*/
public int deleteFinancialTaxInvoiceMaterialByIds(String[] invoiceMaterialIds);
/**
* 作废国税发票物料
*
* @param invoiceMaterialId 国税发票物料ID
* @return 结果
*/
public int cancelFinancialTaxInvoiceMaterialById(Long invoiceMaterialId);
/**
* 恢复国税发票物料
*
* @param invoiceMaterialId 国税发票物料ID
* @return 结果
*/
public int restoreFinancialTaxInvoiceMaterialById(Long invoiceMaterialId);
}

75
ruoyi-admin/src/main/java/com/ruoyi/financial/service/IFinancialTaxInvoiceMaterialService.java

@ -0,0 +1,75 @@
package com.ruoyi.financial.service;
import java.util.List;
import com.ruoyi.financial.domain.FinancialTaxInvoiceMaterial;
/**
* 国税发票物料Service接口
*
* @author 刘晓旭
* @date 2024-08-13
*/
public interface IFinancialTaxInvoiceMaterialService
{
/**
* 查询国税发票物料
*
* @param invoiceMaterialId 国税发票物料ID
* @return 国税发票物料
*/
public FinancialTaxInvoiceMaterial selectFinancialTaxInvoiceMaterialById(Long invoiceMaterialId);
/**
* 查询国税发票物料列表
*
* @param financialTaxInvoiceMaterial 国税发票物料
* @return 国税发票物料集合
*/
public List<FinancialTaxInvoiceMaterial> selectFinancialTaxInvoiceMaterialList(FinancialTaxInvoiceMaterial financialTaxInvoiceMaterial);
/**
* 新增国税发票物料
*
* @param financialTaxInvoiceMaterial 国税发票物料
* @return 结果
*/
public int insertFinancialTaxInvoiceMaterial(FinancialTaxInvoiceMaterial financialTaxInvoiceMaterial);
/**
* 修改国税发票物料
*
* @param financialTaxInvoiceMaterial 国税发票物料
* @return 结果
*/
public int updateFinancialTaxInvoiceMaterial(FinancialTaxInvoiceMaterial financialTaxInvoiceMaterial);
/**
* 批量删除国税发票物料
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteFinancialTaxInvoiceMaterialByIds(String ids);
/**
* 删除国税发票物料信息
*
* @param invoiceMaterialId 国税发票物料ID
* @return 结果
*/
public int deleteFinancialTaxInvoiceMaterialById(Long invoiceMaterialId);
/**
* 作废国税发票物料
* @param invoiceMaterialId 国税发票物料ID
* @return
*/
int cancelFinancialTaxInvoiceMaterialById(Long invoiceMaterialId);
/**
* 恢复国税发票物料
* @param invoiceMaterialId 国税发票物料ID
* @return
*/
int restoreFinancialTaxInvoiceMaterialById(Long invoiceMaterialId);
}

126
ruoyi-admin/src/main/java/com/ruoyi/financial/service/impl/FinancialTaxInvoiceMaterialServiceImpl.java

@ -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.FinancialTaxInvoiceMaterialMapper;
import com.ruoyi.financial.domain.FinancialTaxInvoiceMaterial;
import com.ruoyi.financial.service.IFinancialTaxInvoiceMaterialService;
import com.ruoyi.common.core.text.Convert;
/**
* 国税发票物料Service业务层处理
*
* @author 刘晓旭
* @date 2024-08-13
*/
@Service
public class FinancialTaxInvoiceMaterialServiceImpl implements IFinancialTaxInvoiceMaterialService
{
@Autowired
private FinancialTaxInvoiceMaterialMapper financialTaxInvoiceMaterialMapper;
/**
* 查询国税发票物料
*
* @param invoiceMaterialId 国税发票物料ID
* @return 国税发票物料
*/
@Override
public FinancialTaxInvoiceMaterial selectFinancialTaxInvoiceMaterialById(Long invoiceMaterialId)
{
return financialTaxInvoiceMaterialMapper.selectFinancialTaxInvoiceMaterialById(invoiceMaterialId);
}
/**
* 查询国税发票物料列表
*
* @param financialTaxInvoiceMaterial 国税发票物料
* @return 国税发票物料
*/
@Override
public List<FinancialTaxInvoiceMaterial> selectFinancialTaxInvoiceMaterialList(FinancialTaxInvoiceMaterial financialTaxInvoiceMaterial)
{
return financialTaxInvoiceMaterialMapper.selectFinancialTaxInvoiceMaterialList(financialTaxInvoiceMaterial);
}
/**
* 新增国税发票物料
*
* @param financialTaxInvoiceMaterial 国税发票物料
* @return 结果
*/
@Override
public int insertFinancialTaxInvoiceMaterial(FinancialTaxInvoiceMaterial financialTaxInvoiceMaterial)
{
String loginName = ShiroUtils.getLoginName();
financialTaxInvoiceMaterial.setCreateBy(loginName);
financialTaxInvoiceMaterial.setCreateTime(DateUtils.getNowDate());
return financialTaxInvoiceMaterialMapper.insertFinancialTaxInvoiceMaterial(financialTaxInvoiceMaterial);
}
/**
* 修改国税发票物料
*
* @param financialTaxInvoiceMaterial 国税发票物料
* @return 结果
*/
@Override
public int updateFinancialTaxInvoiceMaterial(FinancialTaxInvoiceMaterial financialTaxInvoiceMaterial)
{
String loginName = ShiroUtils.getLoginName();
financialTaxInvoiceMaterial.setUpdateBy(loginName);
financialTaxInvoiceMaterial.setUpdateTime(DateUtils.getNowDate());
return financialTaxInvoiceMaterialMapper.updateFinancialTaxInvoiceMaterial(financialTaxInvoiceMaterial);
}
/**
* 删除国税发票物料对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteFinancialTaxInvoiceMaterialByIds(String ids)
{
return financialTaxInvoiceMaterialMapper.deleteFinancialTaxInvoiceMaterialByIds(Convert.toStrArray(ids));
}
/**
* 删除国税发票物料信息
*
* @param invoiceMaterialId 国税发票物料ID
* @return 结果
*/
@Override
public int deleteFinancialTaxInvoiceMaterialById(Long invoiceMaterialId)
{
return financialTaxInvoiceMaterialMapper.deleteFinancialTaxInvoiceMaterialById(invoiceMaterialId);
}
/**
* 作废国税发票物料
*
* @param invoiceMaterialId 国税发票物料ID
* @return 结果
*/
@Override
public int cancelFinancialTaxInvoiceMaterialById(Long invoiceMaterialId)
{
return financialTaxInvoiceMaterialMapper.cancelFinancialTaxInvoiceMaterialById(invoiceMaterialId);
}
/**
* 恢复国税发票物料信息
*
* @param invoiceMaterialId 国税发票物料ID
* @return 结果
*/
@Override
public int restoreFinancialTaxInvoiceMaterialById(Long invoiceMaterialId)
{
return financialTaxInvoiceMaterialMapper.restoreFinancialTaxInvoiceMaterialById(invoiceMaterialId);
}
}

164
ruoyi-admin/src/main/resources/mapper/financial/FinancialTaxInvoiceMaterialMapper.xml

@ -0,0 +1,164 @@
<?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.FinancialTaxInvoiceMaterialMapper">
<resultMap type="FinancialTaxInvoiceMaterial" id="FinancialTaxInvoiceMaterialResult">
<result property="invoiceMaterialId" column="invoice_material_id" />
<result property="taxInvoiceCode" column="tax_invoice_code" />
<result property="salesOrderCode" column="sales_order_code" />
<result property="materialCode" column="material_code" />
<result property="materialName" column="material_name" />
<result property="materialType" column="material_type" />
<result property="materialProcessMethod" column="material_process_method" />
<result property="materialBrand" column="material_brand" />
<result property="materialPhotourl" column="material_photoUrl" />
<result property="materialUnit" column="material_unit" />
<result property="materialDescribe" column="material_describe" />
<result property="warehouseDept" column="warehouse_dept" />
<result property="materialNum" column="material_num" />
<result property="taxRmb" column="tax_rmb" />
<result property="noTaxRmb" column="no_tax_rmb" />
<result property="taxUsd" column="tax_usd" />
<result property="noTaxUsd" column="no_tax_usd" />
<result property="outBoundQuantity" column="out_bound_quantity" />
<result property="hasCheckNum" column="has_check_num" />
<result property="refundsNum" column="refunds_num" />
<result property="useStatus" column="use_status" />
<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="delFlag" column="del_flag" />
</resultMap>
<sql id="selectFinancialTaxInvoiceMaterialVo">
select invoice_material_id, tax_invoice_code, sales_order_code, material_code, material_name, material_type, material_process_method, material_brand, material_photoUrl, material_unit, material_describe, warehouse_dept, material_num, tax_rmb, no_tax_rmb, tax_usd, no_tax_usd, out_bound_quantity, has_check_num, refunds_num, use_status, create_by, create_time, update_by, update_time, remark, del_flag from financial_tax_invoice_material
</sql>
<select id="selectFinancialTaxInvoiceMaterialList" parameterType="FinancialTaxInvoiceMaterial" resultMap="FinancialTaxInvoiceMaterialResult">
<include refid="selectFinancialTaxInvoiceMaterialVo"/>
<where>
</where>
</select>
<select id="selectFinancialTaxInvoiceMaterialById" parameterType="Long" resultMap="FinancialTaxInvoiceMaterialResult">
<include refid="selectFinancialTaxInvoiceMaterialVo"/>
where invoice_material_id = #{invoiceMaterialId}
</select>
<insert id="insertFinancialTaxInvoiceMaterial" parameterType="FinancialTaxInvoiceMaterial" useGeneratedKeys="true" keyProperty="invoiceMaterialId">
insert into financial_tax_invoice_material
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taxInvoiceCode != null">tax_invoice_code,</if>
<if test="salesOrderCode != null">sales_order_code,</if>
<if test="materialCode != null">material_code,</if>
<if test="materialName != null">material_name,</if>
<if test="materialType != null">material_type,</if>
<if test="materialProcessMethod != null">material_process_method,</if>
<if test="materialBrand != null">material_brand,</if>
<if test="materialPhotourl != null">material_photoUrl,</if>
<if test="materialUnit != null">material_unit,</if>
<if test="materialDescribe != null">material_describe,</if>
<if test="warehouseDept != null">warehouse_dept,</if>
<if test="materialNum != null">material_num,</if>
<if test="taxRmb != null">tax_rmb,</if>
<if test="noTaxRmb != null">no_tax_rmb,</if>
<if test="taxUsd != null">tax_usd,</if>
<if test="noTaxUsd != null">no_tax_usd,</if>
<if test="outBoundQuantity != null">out_bound_quantity,</if>
<if test="hasCheckNum != null">has_check_num,</if>
<if test="refundsNum != null">refunds_num,</if>
<if test="useStatus != null">use_status,</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="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="materialCode != null">#{materialCode},</if>
<if test="materialName != null">#{materialName},</if>
<if test="materialType != null">#{materialType},</if>
<if test="materialProcessMethod != null">#{materialProcessMethod},</if>
<if test="materialBrand != null">#{materialBrand},</if>
<if test="materialPhotourl != null">#{materialPhotourl},</if>
<if test="materialUnit != null">#{materialUnit},</if>
<if test="materialDescribe != null">#{materialDescribe},</if>
<if test="warehouseDept != null">#{warehouseDept},</if>
<if test="materialNum != null">#{materialNum},</if>
<if test="taxRmb != null">#{taxRmb},</if>
<if test="noTaxRmb != null">#{noTaxRmb},</if>
<if test="taxUsd != null">#{taxUsd},</if>
<if test="noTaxUsd != null">#{noTaxUsd},</if>
<if test="outBoundQuantity != null">#{outBoundQuantity},</if>
<if test="hasCheckNum != null">#{hasCheckNum},</if>
<if test="refundsNum != null">#{refundsNum},</if>
<if test="useStatus != null">#{useStatus},</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="delFlag != null">#{delFlag},</if>
</trim>
</insert>
<update id="updateFinancialTaxInvoiceMaterial" parameterType="FinancialTaxInvoiceMaterial">
update financial_tax_invoice_material
<trim prefix="SET" suffixOverrides=",">
<if test="taxInvoiceCode != null">tax_invoice_code = #{taxInvoiceCode},</if>
<if test="salesOrderCode != null">sales_order_code = #{salesOrderCode},</if>
<if test="materialCode != null">material_code = #{materialCode},</if>
<if test="materialName != null">material_name = #{materialName},</if>
<if test="materialType != null">material_type = #{materialType},</if>
<if test="materialProcessMethod != null">material_process_method = #{materialProcessMethod},</if>
<if test="materialBrand != null">material_brand = #{materialBrand},</if>
<if test="materialPhotourl != null">material_photoUrl = #{materialPhotourl},</if>
<if test="materialUnit != null">material_unit = #{materialUnit},</if>
<if test="materialDescribe != null">material_describe = #{materialDescribe},</if>
<if test="warehouseDept != null">warehouse_dept = #{warehouseDept},</if>
<if test="materialNum != null">material_num = #{materialNum},</if>
<if test="taxRmb != null">tax_rmb = #{taxRmb},</if>
<if test="noTaxRmb != null">no_tax_rmb = #{noTaxRmb},</if>
<if test="taxUsd != null">tax_usd = #{taxUsd},</if>
<if test="noTaxUsd != null">no_tax_usd = #{noTaxUsd},</if>
<if test="outBoundQuantity != null">out_bound_quantity = #{outBoundQuantity},</if>
<if test="hasCheckNum != null">has_check_num = #{hasCheckNum},</if>
<if test="refundsNum != null">refunds_num = #{refundsNum},</if>
<if test="useStatus != null">use_status = #{useStatus},</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="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where invoice_material_id = #{invoiceMaterialId}
</update>
<delete id="deleteFinancialTaxInvoiceMaterialById" parameterType="Long">
delete from financial_tax_invoice_material where invoice_material_id = #{invoiceMaterialId}
</delete>
<delete id="deleteFinancialTaxInvoiceMaterialByIds" parameterType="String">
delete from financial_tax_invoice_material where invoice_material_id in
<foreach item="invoiceMaterialId" collection="array" open="(" separator="," close=")">
#{invoiceMaterialId}
</foreach>
</delete>
<update id="cancelFinancialTaxInvoiceMaterialById" parameterType="Long">
update financial_tax_invoice_material set del_flag = '1' where invoice_material_id = #{invoiceMaterialId}
</update>
<update id="restoreFinancialTaxInvoiceMaterialById" parameterType="Long">
update financial_tax_invoice_material set del_flag = '0' where invoice_material_id = #{invoiceMaterialId}
</update>
</mapper>
Loading…
Cancel
Save