|
|
@@ -91,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isLicensePermanent" column="is_license_permanent"/>
|
|
|
<result property="isCertificatePermanent" column="is_certificate_permanent"/>
|
|
|
<result property="isGmpAuthPermanent" column="is_gmp_auth_permanent"/>
|
|
|
+ <result property="platformProductId" column="platform_product_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsStoreProductVo">
|
|
|
@@ -107,7 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
certificate, certificate_start, certificate_end,
|
|
|
voucher, voucher_start, voucher_end,
|
|
|
gmp_auth, gmp_auth_start, gmp_auth_end,business_link,medical_device_code,
|
|
|
- is_business_permanent,is_license_permanent,is_certificate_permanent,is_gmp_auth_permanent
|
|
|
+ is_business_permanent,is_license_permanent,is_certificate_permanent,is_gmp_auth_permanent,platform_product_id
|
|
|
from fs_store_product_scrm
|
|
|
</sql>
|
|
|
|
|
|
@@ -120,9 +121,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
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.ingredient,p.dosage,
|
|
|
p.adverse_reactions,p.contraindications,p.precautions,p.is_audit,p.store_id,p.medical_device_code,
|
|
|
- p.is_business_permanent,p.is_license_permanent,p.is_certificate_permanent,p.is_gmp_auth_permanent
|
|
|
+ p.is_business_permanent,p.is_license_permanent,p.is_certificate_permanent,p.is_gmp_auth_permanent,p.platform_product_id
|
|
|
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
|
|
|
+ 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, platform_product_id from fs_store_product_scrm
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsStoreProductByProductId" parameterType="Long" resultMap="FsStoreProductResult">
|
|
|
@@ -312,6 +313,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isLicensePermanent != null">is_license_permanent ,</if>
|
|
|
<if test="isCertificatePermanent != null">is_certificate_permanent ,</if>
|
|
|
<if test="isGmpAuthPermanent != null">is_gmp_auth_permanent ,</if>
|
|
|
+ <if test="platformProductId != null">platform_product_id ,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
|
@@ -403,6 +405,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isLicensePermanent != null">#{isLicensePermanent} ,</if>
|
|
|
<if test="isCertificatePermanent != null">#{isCertificatePermanent} ,</if>
|
|
|
<if test="isGmpAuthPermanent != null">#{isGmpAuthPermanent} ,</if>
|
|
|
+ <if test="platformProductId != null">#{platformProductId} ,</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -882,7 +885,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND p.is_show = 0
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="maps.isAudit != null">
|
|
|
+ <if test="maps.isAudit != null" >
|
|
|
+ <if test="maps.isAudit == '0' or maps.isAudit == 0 ">
|
|
|
+ AND p.is_show = 1
|
|
|
+ </if>
|
|
|
AND p.is_audit = #{maps.isAudit}
|
|
|
</if>
|
|
|
<if test="maps.commentContent != null and maps.commentContent.trim() != ''">
|