王晓迪
3 months ago
24 changed files with 1788 additions and 112 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,85 @@ |
|||
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); |
|||
|
|||
/** |
|||
* 根据销售订单编号查询发票历史记录集合 |
|||
* |
|||
* @param salesOrderCode 销售订单编号 |
|||
* @return 结果 |
|||
*/ |
|||
List<FinancialTaxInvoiceHistory> selectInvoiceHistoryListBySalesOrderCode(String salesOrderCode); |
|||
} |
@ -0,0 +1,82 @@ |
|||
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); |
|||
|
|||
/** |
|||
* 根据销售订单编号查询发票历史记录集合 |
|||
* @param salesOrderCode 销售订单编号 |
|||
* @return |
|||
*/ |
|||
List<FinancialTaxInvoiceHistory> selectInvoiceHistoryListBySalesOrderCode(String salesOrderCode); |
|||
} |
@ -0,0 +1,140 @@ |
|||
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); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 根据销售订单编号查询历史记录集合 |
|||
* |
|||
* @param salesOrderCode 销售订单编号 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public List<FinancialTaxInvoiceHistory> selectInvoiceHistoryListBySalesOrderCode(String salesOrderCode) { |
|||
|
|||
List<FinancialTaxInvoiceHistory> list = financialTaxInvoiceHistoryMapper.selectInvoiceHistoryListBySalesOrderCode(salesOrderCode); |
|||
return list; |
|||
} |
|||
} |
@ -0,0 +1,129 @@ |
|||
<?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> |
|||
|
|||
<select id="selectInvoiceHistoryListBySalesOrderCode" parameterType="String" resultMap="FinancialTaxInvoiceHistoryResult"> |
|||
<include refid="selectFinancialTaxInvoiceHistoryVo"/> |
|||
where sales_order_code = #{salesOrderCode} |
|||
</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> |
@ -0,0 +1,129 @@ |
|||
<!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('消息提醒')" /> |
|||
<th:block th:include="include :: select2-css" /> |
|||
</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="params[materialNo]"/> |
|||
</li> |
|||
<li> |
|||
<label>物料名称:</label> |
|||
<input type="text" name="materialName"/> |
|||
</li> |
|||
<li> |
|||
<label>审核状态:</label> |
|||
<select name="auditStatus" th:with="type=${@dict.getType('auditStatus')}"> |
|||
<option value="">所有</option> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</li> |
|||
<li> |
|||
<label>使用状态:</label> |
|||
<select name="useStatus" th:with="type=${@dict.getType('useStatus')}"> |
|||
<option value="">所有</option> |
|||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|||
</select> |
|||
</li> |
|||
<li> |
|||
<label>工程员:</label> |
|||
<select id="createBySel" name="businessMembers"> |
|||
<option value="">所有</option> |
|||
</select> |
|||
</li> |
|||
<li class="select-time"> |
|||
<label>时间区间:</label> |
|||
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateTime]"/> |
|||
<span>-</span> |
|||
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreateTime]"/> |
|||
</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"> |
|||
</div> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: select2-js" /> |
|||
<script th:src="@{/js/activiti.js}"></script> |
|||
<script th:inline="javascript"> |
|||
var userName = [[${@permission.getPrincipalProperty('userName')}]]; |
|||
var prefix = ctx + "remind"; |
|||
$(function() { |
|||
var options = { |
|||
url: prefix + "/list", |
|||
createUrl: prefix + "/add", |
|||
itemUrl: prefix + "/item", |
|||
updateUrl: prefix + "/edit/{id}", |
|||
removeUrl: prefix + "/remove", |
|||
cancelUrl: prefix + "/cancel/{id}", |
|||
restoreUrl: prefix + "/restore/{id}", |
|||
detailUrl: prefix + "/detail/{id}", |
|||
pageList: [10, 25, 50], |
|||
pageSize: 10, |
|||
showColumns: true, |
|||
modalName: "消息提醒", |
|||
fixedColumns: true, // 启用冻结列 |
|||
fixedRightNumber: 1, // 冻结右列个数 |
|||
height: $(window).height() - 100, |
|||
columns: [ |
|||
{checkbox: true}, |
|||
{field: 'id', title: '序号', align: 'center'}, |
|||
{field: 'remindName', title: '提醒人', align: 'center'}, |
|||
{field: 'remindDeptName', title: '提醒人部门', align: 'center'}, |
|||
{field: 'remindDate', title: '提醒时间', align: 'center'}, |
|||
{field: 'formUrl', title: '表单地址', align: 'center', visible: false}, |
|||
{field: 'formName', title: '表单', align: 'center'}, |
|||
{ |
|||
field: 'remindContent', title: '提醒内容', align: 'center', |
|||
cellStyle: 'colStyle', //缩放 |
|||
formatter: 'hoverShow', //鼠标停留显示 |
|||
}, |
|||
{field: 'receiverName', title: '接收人', align: 'center'}, |
|||
{ |
|||
field: 'isView', title: '是否查看', align: 'center', |
|||
formatter: function (value, row, index) { |
|||
if (value == "0") { |
|||
return "否"; |
|||
} |
|||
return "是"; |
|||
} |
|||
}, |
|||
{ |
|||
title: '操作', align: 'center', |
|||
formatter: function (value, row, index) { |
|||
var actions = []; |
|||
actions.push('<a class="btn btn-success btn-xs" href="' + ctx + "remind/view/" + row.id + '"><i class="fa fa-user"></i> 表单数据</a> '); |
|||
return actions.join(''); |
|||
} |
|||
} |
|||
], |
|||
onLoadError: function (status, res) { |
|||
window.location.href = "/login"; |
|||
}, |
|||
onClickRow: function (row, $element) { |
|||
} |
|||
}; |
|||
$.table.init(options); |
|||
}); |
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,180 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org"> |
|||
<head> |
|||
<th:block th:include="include :: header('我的提醒')" /> |
|||
|
|||
<th:block th:include="include :: select2-css" /> |
|||
<th:block th:include="include :: theme" /> |
|||
<th:block th:include="include :: bootstrap-datepicker-css" /> |
|||
<th:block th:include="include :: bootstrap-table-css" /> |
|||
<th:block th:include="include :: bootstrap-table-editable-css" /> |
|||
<th:block th:include="include :: fileinput-css" /> |
|||
<style type="text/css"> |
|||
html, body { |
|||
height: 100%; |
|||
} |
|||
</style> |
|||
</head> |
|||
<body style="overflow-x: hidden;"> |
|||
<div style="background-color: #eff3f8; padding-top: 1px; height: 100%;"> |
|||
<div class="modal fade" id="portlet-config" tabindex="-1" |
|||
role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
|||
<div class="modal-dialog"> |
|||
<div class="modal-content"> |
|||
<div class="modal-header"> |
|||
<button type="button" class="close" data-dismiss="modal" |
|||
aria-hidden="true"></button> |
|||
<h4 class="modal-title">Modal title</h4> |
|||
</div> |
|||
<div class="modal-body">Widget settings form goes here</div> |
|||
<div class="modal-footer"> |
|||
<button type="button" class="btn blue">Save changes</button> |
|||
<button type="button" class="btn default" data-dismiss="modal">Close</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<div class="portlet light bordered"> |
|||
<div class="portlet-title"> |
|||
<div class="caption"> |
|||
<i class="icon-equalizer font-red-sunglo"></i> <span |
|||
class="caption-subject font-red-sunglo bold uppercase">我的提醒</span> |
|||
</div> |
|||
<div class="tools"> |
|||
<a href="" class="collapse" data-original-title="" title=""> |
|||
</a> <a href="#portlet-config" data-toggle="modal" class="config" |
|||
data-original-title="" title=""> </a> <a href="" class="reload" |
|||
data-original-title="" title=""> </a> <a href="" class="remove" |
|||
data-original-title="" title=""> </a> |
|||
</div> |
|||
</div> |
|||
<div class="portlet-body form"> |
|||
<form th:action="@{/remind/add}" id="remindForm" |
|||
name="remindForm" method="post" enctype="multipart/form-data"> |
|||
<div class="form-body"> |
|||
<input type="hidden" name="table1" id="table1"> |
|||
<div class="row"> |
|||
<div class="col-md-12" align="center"> |
|||
<h1>我的提醒</h1> |
|||
</div> |
|||
</div> |
|||
<div class="row" style="display: none"> |
|||
<div class="col-md-12" align="center"> |
|||
<input type="text" class="form-control" name="id" |
|||
id="id"> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="row"> |
|||
<div class="col-md-2" align="center">提醒人</div> |
|||
<div class="col-md-2"> |
|||
<input type="text" class="form-control" name="remindName" |
|||
id="remindName" readOnly> |
|||
</div> |
|||
|
|||
<div class="col-md-2" align="center">提醒人部门</div> |
|||
<div class="col-md-2"> |
|||
<input type="text" class="form-control" name="remindDeptName" |
|||
id="remindDeptName" readOnly> |
|||
</div> |
|||
|
|||
<div class="col-md-2" align="center">提醒时间</div> |
|||
<div class="col-md-2"> |
|||
<input |
|||
class="form-control form-control-inline input-medium date-picker" |
|||
size="16" type="text" data-date-format="yyyy-mm-dd" disabled |
|||
name="remindDate" id="remindDate" /> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="row"> |
|||
<div class="col-md-2" align="center">表单</div> |
|||
<div class="col-md-2"> |
|||
<a class="form-control" id="formUrl" name="formUrl"></a> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="row"> |
|||
<div class="col-md-2" align="center">提醒内容</div> |
|||
<div class="col-md-10"> |
|||
<textarea rows="8" cols="10" class="form-control" name="remindContent" |
|||
id="remindContent" readOnly></textarea> |
|||
</div> |
|||
</div> |
|||
<div class="form-actions"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<div class="row"> |
|||
<div align="center"> |
|||
<button type="button" class="btn gray-haze" id="cancel"> |
|||
取消</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<th:block th:include="include :: select2-js" /> |
|||
<th:block th:include="include :: page-js" /> |
|||
<th:block th:include="include :: bootstrap-datepicker-js" /> |
|||
<th:block th:include="include :: bootstrap-table-js" /> |
|||
<th:block th:include="include :: fileinput-js" /> |
|||
<th:block th:include="include :: bootstrap-table-editable-js" /> |
|||
<script th:inline="javascript">id = [[${id}]];</script> |
|||
<script th:src="@{/assets/admin/pages/scripts/components-pickers.js}" |
|||
type="text/javascript"></script> |
|||
<script> |
|||
var prefix = ctx + "remind"; |
|||
jQuery(document).ready(function() { |
|||
Metronic.init(); // init metronic core components |
|||
Layout.init(); // init current layout |
|||
Demo.init(); // init demo features |
|||
ComponentsPickers.init(); |
|||
}); |
|||
|
|||
$.ajax({ |
|||
url : prefix + '/edit', |
|||
data : { |
|||
id : id |
|||
}, |
|||
success : function(data) { |
|||
console.log(data); |
|||
} |
|||
}); |
|||
|
|||
$.ajax({ |
|||
url : prefix + '/getRemind', |
|||
data : { |
|||
id : id |
|||
}, |
|||
success : function(data) { |
|||
//赋值 |
|||
$('#id').val(data.id); |
|||
$('#remindName').val(data.remindName); |
|||
$('#remindDeptName').val(data.remindDeptName); |
|||
$('#remindDate').val(data.remindDate); |
|||
$('#formUrl').attr("href",ctx+data.formUrl); |
|||
$('#formUrl').text(data.formName); |
|||
$('#remindContent').val(data.remindContent); |
|||
} |
|||
}); |
|||
|
|||
$("#cancel").click(function() { |
|||
//拦截器拦截session失效登录跳转 |
|||
window.history.back(); |
|||
}) |
|||
|
|||
|
|||
</script> |
|||
<!-- END JAVASCRIPTS --> |
|||
</body> |
|||
<!-- END BODY --> |
|||
</html> |
Loading…
Reference in new issue