去除单据多余的字段
This commit is contained in:
@@ -13,18 +13,11 @@
|
||||
<result column="tax_unit_price" jdbcType="DECIMAL" property="taxUnitPrice" />
|
||||
<result column="all_price" jdbcType="DECIMAL" property="allPrice" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="img" jdbcType="VARCHAR" property="img" />
|
||||
<result column="incidentals" jdbcType="DECIMAL" property="incidentals" />
|
||||
<result column="depot_id" jdbcType="BIGINT" property="depotId" />
|
||||
<result column="another_depot_id" jdbcType="BIGINT" property="anotherDepotId" />
|
||||
<result column="tax_rate" jdbcType="DECIMAL" property="taxRate" />
|
||||
<result column="tax_money" jdbcType="DECIMAL" property="taxMoney" />
|
||||
<result column="tax_last_money" jdbcType="DECIMAL" property="taxLastMoney" />
|
||||
<result column="other_field1" jdbcType="VARCHAR" property="otherField1" />
|
||||
<result column="other_field2" jdbcType="VARCHAR" property="otherField2" />
|
||||
<result column="other_field3" jdbcType="VARCHAR" property="otherField3" />
|
||||
<result column="other_field4" jdbcType="VARCHAR" property="otherField4" />
|
||||
<result column="other_field5" jdbcType="VARCHAR" property="otherField5" />
|
||||
<result column="material_type" jdbcType="VARCHAR" property="materialType" />
|
||||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
||||
<result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag" />
|
||||
@@ -89,9 +82,8 @@
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, header_id, material_id, material_extend_id, material_unit, oper_number, basic_number,
|
||||
unit_price, tax_unit_price, all_price, remark, img, incidentals, depot_id, another_depot_id,
|
||||
tax_rate, tax_money, tax_last_money, other_field1, other_field2, other_field3, other_field4,
|
||||
other_field5, material_type, tenant_id, delete_flag
|
||||
unit_price, tax_unit_price, all_price, remark, depot_id, another_depot_id, tax_rate,
|
||||
tax_money, tax_last_money, material_type, tenant_id, delete_flag
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="BaseResultMap">
|
||||
select
|
||||
@@ -127,21 +119,17 @@
|
||||
insert into jsh_depot_item (id, header_id, material_id,
|
||||
material_extend_id, material_unit, oper_number,
|
||||
basic_number, unit_price, tax_unit_price,
|
||||
all_price, remark, img,
|
||||
incidentals, depot_id, another_depot_id,
|
||||
tax_rate, tax_money, tax_last_money,
|
||||
other_field1, other_field2, other_field3,
|
||||
other_field4, other_field5, material_type,
|
||||
tenant_id, delete_flag)
|
||||
all_price, remark, depot_id,
|
||||
another_depot_id, tax_rate, tax_money,
|
||||
tax_last_money, material_type, tenant_id,
|
||||
delete_flag)
|
||||
values (#{id,jdbcType=BIGINT}, #{headerId,jdbcType=BIGINT}, #{materialId,jdbcType=BIGINT},
|
||||
#{materialExtendId,jdbcType=BIGINT}, #{materialUnit,jdbcType=VARCHAR}, #{operNumber,jdbcType=DECIMAL},
|
||||
#{basicNumber,jdbcType=DECIMAL}, #{unitPrice,jdbcType=DECIMAL}, #{taxUnitPrice,jdbcType=DECIMAL},
|
||||
#{allPrice,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR},
|
||||
#{incidentals,jdbcType=DECIMAL}, #{depotId,jdbcType=BIGINT}, #{anotherDepotId,jdbcType=BIGINT},
|
||||
#{taxRate,jdbcType=DECIMAL}, #{taxMoney,jdbcType=DECIMAL}, #{taxLastMoney,jdbcType=DECIMAL},
|
||||
#{otherField1,jdbcType=VARCHAR}, #{otherField2,jdbcType=VARCHAR}, #{otherField3,jdbcType=VARCHAR},
|
||||
#{otherField4,jdbcType=VARCHAR}, #{otherField5,jdbcType=VARCHAR}, #{materialType,jdbcType=VARCHAR},
|
||||
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR})
|
||||
#{allPrice,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, #{depotId,jdbcType=BIGINT},
|
||||
#{anotherDepotId,jdbcType=BIGINT}, #{taxRate,jdbcType=DECIMAL}, #{taxMoney,jdbcType=DECIMAL},
|
||||
#{taxLastMoney,jdbcType=DECIMAL}, #{materialType,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT},
|
||||
#{deleteFlag,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.DepotItem">
|
||||
insert into jsh_depot_item
|
||||
@@ -179,12 +167,6 @@
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
<if test="img != null">
|
||||
img,
|
||||
</if>
|
||||
<if test="incidentals != null">
|
||||
incidentals,
|
||||
</if>
|
||||
<if test="depotId != null">
|
||||
depot_id,
|
||||
</if>
|
||||
@@ -200,21 +182,6 @@
|
||||
<if test="taxLastMoney != null">
|
||||
tax_last_money,
|
||||
</if>
|
||||
<if test="otherField1 != null">
|
||||
other_field1,
|
||||
</if>
|
||||
<if test="otherField2 != null">
|
||||
other_field2,
|
||||
</if>
|
||||
<if test="otherField3 != null">
|
||||
other_field3,
|
||||
</if>
|
||||
<if test="otherField4 != null">
|
||||
other_field4,
|
||||
</if>
|
||||
<if test="otherField5 != null">
|
||||
other_field5,
|
||||
</if>
|
||||
<if test="materialType != null">
|
||||
material_type,
|
||||
</if>
|
||||
@@ -259,12 +226,6 @@
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="img != null">
|
||||
#{img,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="incidentals != null">
|
||||
#{incidentals,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="depotId != null">
|
||||
#{depotId,jdbcType=BIGINT},
|
||||
</if>
|
||||
@@ -280,21 +241,6 @@
|
||||
<if test="taxLastMoney != null">
|
||||
#{taxLastMoney,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="otherField1 != null">
|
||||
#{otherField1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherField2 != null">
|
||||
#{otherField2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherField3 != null">
|
||||
#{otherField3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherField4 != null">
|
||||
#{otherField4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherField5 != null">
|
||||
#{otherField5,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="materialType != null">
|
||||
#{materialType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -348,12 +294,6 @@
|
||||
<if test="record.remark != null">
|
||||
remark = #{record.remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.img != null">
|
||||
img = #{record.img,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.incidentals != null">
|
||||
incidentals = #{record.incidentals,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.depotId != null">
|
||||
depot_id = #{record.depotId,jdbcType=BIGINT},
|
||||
</if>
|
||||
@@ -369,21 +309,6 @@
|
||||
<if test="record.taxLastMoney != null">
|
||||
tax_last_money = #{record.taxLastMoney,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.otherField1 != null">
|
||||
other_field1 = #{record.otherField1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.otherField2 != null">
|
||||
other_field2 = #{record.otherField2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.otherField3 != null">
|
||||
other_field3 = #{record.otherField3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.otherField4 != null">
|
||||
other_field4 = #{record.otherField4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.otherField5 != null">
|
||||
other_field5 = #{record.otherField5,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.materialType != null">
|
||||
material_type = #{record.materialType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -411,18 +336,11 @@
|
||||
tax_unit_price = #{record.taxUnitPrice,jdbcType=DECIMAL},
|
||||
all_price = #{record.allPrice,jdbcType=DECIMAL},
|
||||
remark = #{record.remark,jdbcType=VARCHAR},
|
||||
img = #{record.img,jdbcType=VARCHAR},
|
||||
incidentals = #{record.incidentals,jdbcType=DECIMAL},
|
||||
depot_id = #{record.depotId,jdbcType=BIGINT},
|
||||
another_depot_id = #{record.anotherDepotId,jdbcType=BIGINT},
|
||||
tax_rate = #{record.taxRate,jdbcType=DECIMAL},
|
||||
tax_money = #{record.taxMoney,jdbcType=DECIMAL},
|
||||
tax_last_money = #{record.taxLastMoney,jdbcType=DECIMAL},
|
||||
other_field1 = #{record.otherField1,jdbcType=VARCHAR},
|
||||
other_field2 = #{record.otherField2,jdbcType=VARCHAR},
|
||||
other_field3 = #{record.otherField3,jdbcType=VARCHAR},
|
||||
other_field4 = #{record.otherField4,jdbcType=VARCHAR},
|
||||
other_field5 = #{record.otherField5,jdbcType=VARCHAR},
|
||||
material_type = #{record.materialType,jdbcType=VARCHAR},
|
||||
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
||||
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
||||
@@ -463,12 +381,6 @@
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="img != null">
|
||||
img = #{img,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="incidentals != null">
|
||||
incidentals = #{incidentals,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="depotId != null">
|
||||
depot_id = #{depotId,jdbcType=BIGINT},
|
||||
</if>
|
||||
@@ -484,21 +396,6 @@
|
||||
<if test="taxLastMoney != null">
|
||||
tax_last_money = #{taxLastMoney,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="otherField1 != null">
|
||||
other_field1 = #{otherField1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherField2 != null">
|
||||
other_field2 = #{otherField2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherField3 != null">
|
||||
other_field3 = #{otherField3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherField4 != null">
|
||||
other_field4 = #{otherField4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherField5 != null">
|
||||
other_field5 = #{otherField5,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="materialType != null">
|
||||
material_type = #{materialType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
@@ -523,18 +420,11 @@
|
||||
tax_unit_price = #{taxUnitPrice,jdbcType=DECIMAL},
|
||||
all_price = #{allPrice,jdbcType=DECIMAL},
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
img = #{img,jdbcType=VARCHAR},
|
||||
incidentals = #{incidentals,jdbcType=DECIMAL},
|
||||
depot_id = #{depotId,jdbcType=BIGINT},
|
||||
another_depot_id = #{anotherDepotId,jdbcType=BIGINT},
|
||||
tax_rate = #{taxRate,jdbcType=DECIMAL},
|
||||
tax_money = #{taxMoney,jdbcType=DECIMAL},
|
||||
tax_last_money = #{taxLastMoney,jdbcType=DECIMAL},
|
||||
other_field1 = #{otherField1,jdbcType=VARCHAR},
|
||||
other_field2 = #{otherField2,jdbcType=VARCHAR},
|
||||
other_field3 = #{otherField3,jdbcType=VARCHAR},
|
||||
other_field4 = #{otherField4,jdbcType=VARCHAR},
|
||||
other_field5 = #{otherField5,jdbcType=VARCHAR},
|
||||
material_type = #{materialType,jdbcType=VARCHAR},
|
||||
tenant_id = #{tenantId,jdbcType=BIGINT},
|
||||
delete_flag = #{deleteFlag,jdbcType=VARCHAR}
|
||||
|
||||
Reference in New Issue
Block a user