|
|
@@ -68,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="precautions" column="precautions"/>
|
|
|
<result property="isAudit" column="is_audit"/>
|
|
|
<result property="storeId" column="store_id"/>
|
|
|
+ <result property="erpType" column="erp_type"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsStoreProductVo">
|
|
|
@@ -78,7 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
integral, product_type, prescribe_code, prescribe_spec, prescribe_factory, prescribe_name,
|
|
|
is_display,tui_cate_id,company_ids,is_drug,drug_image,drug_reg_cert_no,common_name,dosage_form,
|
|
|
unit_price,batch_number,mah,mah_address,manufacturer,manufacturer_address,indications,dosage,
|
|
|
- adverse_reactions,contraindications,precautions,is_audit,store_id
|
|
|
+ adverse_reactions,contraindications,precautions,is_audit,store_id,erp_type
|
|
|
from fs_store_product_scrm
|
|
|
</sql>
|
|
|
|
|
|
@@ -90,7 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
p.integral, p.product_type, p.prescribe_code, p.prescribe_spec, p.prescribe_factory, p.prescribe_name,
|
|
|
p.is_display,p.tui_cate_id,p.company_ids,p.is_drug,p.drug_image,p.drug_reg_cert_no,p.common_name,p.dosage_form,
|
|
|
p.unit_price,p.batch_number,p.mah,p.mah_address,p.manufacturer,p.manufacturer_address,p.indications,p.dosage,
|
|
|
- p.adverse_reactions,p.contraindications,p.precautions,p.is_audit,p.store_id
|
|
|
+ p.adverse_reactions,p.contraindications,p.precautions,p.is_audit,p.store_id,p.erp_type
|
|
|
from fs_store_product_scrm p
|
|
|
select product_id, video, image, slider_image, product_name, product_info, keyword, bar_code, cate_id, price, vip_price, ot_price, agent_price, postage, unit_name, sort, sales, stock, is_show, is_hot, is_benefit, is_best, is_new, description, create_time, update_time, is_postage, is_del, give_integral, cost, is_good, browse, code_path, temp_id, spec_type, is_integral, integral, product_type, prescribe_code, prescribe_spec, prescribe_factory, prescribe_name, is_display, tui_cate_id, company_ids, store_id, is_drug, drug_image, drug_reg_cert_no, common_name, dosage_form, unit_price, batch_number, mah, mah_address, manufacturer, manufacturer_address, indications, dosage, adverse_reactions, contraindications, precautions, is_audit from fs_store_product_scrm
|
|
|
</sql>
|
|
|
@@ -255,6 +256,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="precautions != null and precautions != ''">precautions ,</if>
|
|
|
<if test="isAudit != null and isAudit != ''">is_audit ,</if>
|
|
|
<if test="storeId != null and storeId != ''">store_id ,</if>
|
|
|
+ <if test="erpType != null and erpType != ''">erp_type ,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
|
@@ -319,6 +321,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="precautions != null and precautions != ''">#{precautions} ,</if>
|
|
|
<if test="isAudit != null and isAudit != ''">#{isAudit} ,</if>
|
|
|
<if test="storeId != null and storeId != ''">#{storeId} ,</if>
|
|
|
+ <if test="erpType != null and storeId != ''">#{erpType} ,</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -387,6 +390,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="precautions != null and precautions != ''">precautions = #{precautions} ,</if>
|
|
|
<if test="isAudit != null and isAudit != ''">is_audit = #{isAudit} ,</if>
|
|
|
<if test="storeId != null and storeId != ''">store_id = #{storeId} ,</if>
|
|
|
+ <if test="erpType != null and erpType != ''">erp_type = #{erpType} ,</if>
|
|
|
|
|
|
</trim>
|
|
|
where product_id = #{productId}
|