|
|
|
@ -64,10 +64,11 @@
|
|
|
|
|
<result property="pvc" column="pvc"/>
|
|
|
|
|
<result property="supportPlate" column="support_plate"/>
|
|
|
|
|
<result property="other" column="other"/>
|
|
|
|
|
<result property="reportRate" column="report_rate"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseProductVo">
|
|
|
|
|
select product_id, product_code, product_desc_zh, product_model,product_desc_en, rule_code, old_product_code, parts_product_code, sku_barcode, length, width, height, gross_weight, net_weight, tare_weight, volume, unit_price, product_group, product_group_name, user_defined1, user_defined2, user_defined3, user_defined4, user_defined5, user_defined6, create_by, create_time, update_by, update_time, factory_code, active_flag, sync_flag, primary_uom, del_flag, bstme, basic_order, conv_order, ausme, basic_issue, conv_issue, append_flag, append_percent,mtart from base_product
|
|
|
|
|
select product_id, product_code, product_desc_zh, product_model,product_desc_en, rule_code, old_product_code, parts_product_code, sku_barcode, length, width, height, gross_weight, net_weight, tare_weight, volume, unit_price, product_group, product_group_name, user_defined1, user_defined2, user_defined3, user_defined4, user_defined5, user_defined6, create_by, create_time, update_by, update_time, factory_code, active_flag, sync_flag, primary_uom, del_flag, bstme, basic_order, conv_order, ausme, basic_issue, conv_issue, append_flag, append_percent, mtart, report_rate from base_product
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseProductList" parameterType="BaseProduct" resultMap="BaseProductResult">
|
|
|
|
@ -110,6 +111,7 @@
|
|
|
|
|
<if test="appendFlag != null and appendFlag != ''">and append_flag = #{appendFlag}</if>
|
|
|
|
|
<if test="appendPercent != null and appendPercent != ''">and append_percent = #{appendPercent}</if>
|
|
|
|
|
<if test="mtart != null and mtart != ''">and mtart = #{mtart}</if>
|
|
|
|
|
<if test="reportRate != null and reportRate != ''">and report_rate = #{reportRate}</if>
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
</where>
|
|
|
|
|
order by product_code asc
|
|
|
|
@ -160,6 +162,7 @@
|
|
|
|
|
bp.append_flag,
|
|
|
|
|
bp.append_percent,
|
|
|
|
|
bp.mtart,
|
|
|
|
|
bp.report_rate,
|
|
|
|
|
bpa.category,
|
|
|
|
|
bpa.pc,
|
|
|
|
|
bpa.iei,
|
|
|
|
@ -229,6 +232,7 @@
|
|
|
|
|
<if test="appendFlag != null">append_flag,</if>
|
|
|
|
|
<if test="appendPercent != null">append_percent,</if>
|
|
|
|
|
<if test="mtart != null">mtart,</if>
|
|
|
|
|
<if test="reportRate != null">report_rate,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="productId != null">#{productId},</if>
|
|
|
|
@ -274,6 +278,7 @@
|
|
|
|
|
<if test="appendFlag != null">#{appendFlag},</if>
|
|
|
|
|
<if test="appendPercent != null">#{appendPercent},</if>
|
|
|
|
|
<if test="mtart != null">#{mtart},</if>
|
|
|
|
|
<if test="reportRate != null">#{reportRate},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -321,6 +326,7 @@
|
|
|
|
|
<if test="appendFlag != null">append_flag = #{appendFlag},</if>
|
|
|
|
|
<if test="appendPercent != null">append_percent = #{appendPercent},</if>
|
|
|
|
|
<if test="mtart != null and mtart != ''">mtart = #{mtart},</if>
|
|
|
|
|
<if test="reportRate != null and reportRate != ''">report_rate = #{reportRate},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where product_id = #{productId}
|
|
|
|
|
</update>
|
|
|
|
@ -398,6 +404,7 @@
|
|
|
|
|
bp.append_flag,
|
|
|
|
|
bp.append_percent,
|
|
|
|
|
bp.mtart,
|
|
|
|
|
bp.report_rate,
|
|
|
|
|
bpa.category,
|
|
|
|
|
bpa.pc,
|
|
|
|
|
bpa.iei,
|
|
|
|
|