增加字段:是否需要开票,对单据进行标记

This commit is contained in:
jishenghua
2025-05-26 23:01:23 +08:00
parent 4699bf22fd
commit 57e1bd60c0
5 changed files with 113 additions and 8 deletions

View File

@@ -60,6 +60,8 @@ public class DepotHead {
private String source;
private String needInvoice;
private String linkNumber;
private String linkApply;
@@ -292,6 +294,14 @@ public class DepotHead {
this.source = source == null ? null : source.trim();
}
public String getNeedInvoice() {
return needInvoice;
}
public void setNeedInvoice(String needInvoice) {
this.needInvoice = needInvoice == null ? null : needInvoice.trim();
}
public String getLinkNumber() {
return linkNumber;
}

View File

@@ -1926,6 +1926,76 @@ public class DepotHeadExample {
return (Criteria) this;
}
public Criteria andNeedInvoiceIsNull() {
addCriterion("need_invoice is null");
return (Criteria) this;
}
public Criteria andNeedInvoiceIsNotNull() {
addCriterion("need_invoice is not null");
return (Criteria) this;
}
public Criteria andNeedInvoiceEqualTo(String value) {
addCriterion("need_invoice =", value, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceNotEqualTo(String value) {
addCriterion("need_invoice <>", value, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceGreaterThan(String value) {
addCriterion("need_invoice >", value, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceGreaterThanOrEqualTo(String value) {
addCriterion("need_invoice >=", value, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceLessThan(String value) {
addCriterion("need_invoice <", value, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceLessThanOrEqualTo(String value) {
addCriterion("need_invoice <=", value, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceLike(String value) {
addCriterion("need_invoice like", value, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceNotLike(String value) {
addCriterion("need_invoice not like", value, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceIn(List<String> values) {
addCriterion("need_invoice in", values, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceNotIn(List<String> values) {
addCriterion("need_invoice not in", values, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceBetween(String value1, String value2) {
addCriterion("need_invoice between", value1, value2, "needInvoice");
return (Criteria) this;
}
public Criteria andNeedInvoiceNotBetween(String value1, String value2) {
addCriterion("need_invoice not between", value1, value2, "needInvoice");
return (Criteria) this;
}
public Criteria andLinkNumberIsNull() {
addCriterion("link_number is null");
return (Criteria) this;

View File

@@ -30,6 +30,7 @@
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="purchase_status" jdbcType="VARCHAR" property="purchaseStatus" />
<result column="source" jdbcType="VARCHAR" property="source" />
<result column="need_invoice" jdbcType="VARCHAR" property="needInvoice" />
<result column="link_number" jdbcType="VARCHAR" property="linkNumber" />
<result column="link_apply" jdbcType="VARCHAR" property="linkApply" />
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
@@ -97,8 +98,8 @@
id, type, sub_type, default_number, number, create_time, oper_time, organ_id, creator,
account_id, change_amount, back_amount, total_price, pay_type, bill_type, remark,
file_name, sales_man, account_id_list, account_money_list, discount, discount_money,
discount_last_money, other_money, deposit, status, purchase_status, source, link_number,
link_apply, tenant_id, delete_flag
discount_last_money, other_money, deposit, status, purchase_status, source, need_invoice,
link_number, link_apply, tenant_id, delete_flag
</sql>
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.DepotHeadExample" resultMap="BaseResultMap">
select
@@ -140,8 +141,9 @@
account_id_list, account_money_list, discount,
discount_money, discount_last_money, other_money,
deposit, status, purchase_status,
source, link_number, link_apply,
tenant_id, delete_flag)
source, need_invoice, link_number,
link_apply, tenant_id, delete_flag
)
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{subType,jdbcType=VARCHAR},
#{defaultNumber,jdbcType=VARCHAR}, #{number,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{operTime,jdbcType=TIMESTAMP}, #{organId,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT},
@@ -151,8 +153,9 @@
#{accountIdList,jdbcType=VARCHAR}, #{accountMoneyList,jdbcType=VARCHAR}, #{discount,jdbcType=DECIMAL},
#{discountMoney,jdbcType=DECIMAL}, #{discountLastMoney,jdbcType=DECIMAL}, #{otherMoney,jdbcType=DECIMAL},
#{deposit,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR}, #{purchaseStatus,jdbcType=VARCHAR},
#{source,jdbcType=VARCHAR}, #{linkNumber,jdbcType=VARCHAR}, #{linkApply,jdbcType=VARCHAR},
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR})
#{source,jdbcType=VARCHAR}, #{needInvoice,jdbcType=VARCHAR}, #{linkNumber,jdbcType=VARCHAR},
#{linkApply,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.DepotHead">
insert into jsh_depot_head
@@ -241,6 +244,9 @@
<if test="source != null">
source,
</if>
<if test="needInvoice != null">
need_invoice,
</if>
<if test="linkNumber != null">
link_number,
</if>
@@ -339,6 +345,9 @@
<if test="source != null">
#{source,jdbcType=VARCHAR},
</if>
<if test="needInvoice != null">
#{needInvoice,jdbcType=VARCHAR},
</if>
<if test="linkNumber != null">
#{linkNumber,jdbcType=VARCHAR},
</if>
@@ -446,6 +455,9 @@
<if test="record.source != null">
source = #{record.source,jdbcType=VARCHAR},
</if>
<if test="record.needInvoice != null">
need_invoice = #{record.needInvoice,jdbcType=VARCHAR},
</if>
<if test="record.linkNumber != null">
link_number = #{record.linkNumber,jdbcType=VARCHAR},
</if>
@@ -493,6 +505,7 @@
status = #{record.status,jdbcType=VARCHAR},
purchase_status = #{record.purchaseStatus,jdbcType=VARCHAR},
source = #{record.source,jdbcType=VARCHAR},
need_invoice = #{record.needInvoice,jdbcType=VARCHAR},
link_number = #{record.linkNumber,jdbcType=VARCHAR},
link_apply = #{record.linkApply,jdbcType=VARCHAR},
tenant_id = #{record.tenantId,jdbcType=BIGINT},
@@ -585,6 +598,9 @@
<if test="source != null">
source = #{source,jdbcType=VARCHAR},
</if>
<if test="needInvoice != null">
need_invoice = #{needInvoice,jdbcType=VARCHAR},
</if>
<if test="linkNumber != null">
link_number = #{linkNumber,jdbcType=VARCHAR},
</if>
@@ -629,6 +645,7 @@
status = #{status,jdbcType=VARCHAR},
purchase_status = #{purchaseStatus,jdbcType=VARCHAR},
source = #{source,jdbcType=VARCHAR},
need_invoice = #{needInvoice,jdbcType=VARCHAR},
link_number = #{linkNumber,jdbcType=VARCHAR},
link_apply = #{linkApply,jdbcType=VARCHAR},
tenant_id = #{tenantId,jdbcType=BIGINT},