|
@@ -92,6 +92,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isCertificatePermanent" column="is_certificate_permanent"/>
|
|
<result property="isCertificatePermanent" column="is_certificate_permanent"/>
|
|
|
<result property="isGmpAuthPermanent" column="is_gmp_auth_permanent"/>
|
|
<result property="isGmpAuthPermanent" column="is_gmp_auth_permanent"/>
|
|
|
<result property="platformProductId" column="platform_product_id"/>
|
|
<result property="platformProductId" column="platform_product_id"/>
|
|
|
|
|
+ <result property="medicalRegCertNo" column="medical_reg_cert_no"/>
|
|
|
|
|
+ <result property="registrantInfo" column="registrant_info"/>
|
|
|
|
|
+ <result property="prodLicenseNo" column="prod_license_no"/>
|
|
|
|
|
+ <result property="prodTechReqNo" column="prod_tech_req_no"/>
|
|
|
|
|
+ <result property="productStructure" column="product_structure"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsStoreProductVo">
|
|
<sql id="selectFsStoreProductVo">
|
|
@@ -108,7 +113,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
certificate, certificate_start, certificate_end,
|
|
certificate, certificate_start, certificate_end,
|
|
|
voucher, voucher_start, voucher_end,
|
|
voucher, voucher_start, voucher_end,
|
|
|
gmp_auth, gmp_auth_start, gmp_auth_end,business_link,medical_device_code,
|
|
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,platform_product_id
|
|
|
|
|
|
|
+ is_business_permanent,is_license_permanent,is_certificate_permanent,is_gmp_auth_permanent,platform_product_id,
|
|
|
|
|
+ medicalRegCertNo,
|
|
|
|
|
+ registrantInfo,
|
|
|
|
|
+ prodLicenseNo,
|
|
|
|
|
+ prodTechReqNo,
|
|
|
|
|
+ productStructure
|
|
|
from fs_store_product_scrm
|
|
from fs_store_product_scrm
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -122,8 +132,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
p.unit_price,p.batch_number,p.mah,p.mah_address,p.manufacturer,p.manufacturer_address,p.indications,p.ingredient,p.dosage,
|
|
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.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.platform_product_id
|
|
p.is_business_permanent,p.is_license_permanent,p.is_certificate_permanent,p.is_gmp_auth_permanent,p.platform_product_id
|
|
|
|
|
+ p.medical_reg_cert_no, p.registrant_info,p.prod_license_no,p.prod_tech_req_no,p.product_structure
|
|
|
from fs_store_product_scrm p
|
|
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, platform_product_id 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,
|
|
|
|
|
+ medical_reg_cert_no, registrant_info,prod_license_no,prod_tech_req_no,product_structure
|
|
|
|
|
+ from fs_store_product_scrm
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsStoreProductByProductId" parameterType="Long" resultMap="FsStoreProductResult">
|
|
<select id="selectFsStoreProductByProductId" parameterType="Long" resultMap="FsStoreProductResult">
|
|
@@ -314,6 +333,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isCertificatePermanent != null">is_certificate_permanent ,</if>
|
|
<if test="isCertificatePermanent != null">is_certificate_permanent ,</if>
|
|
|
<if test="isGmpAuthPermanent != null">is_gmp_auth_permanent ,</if>
|
|
<if test="isGmpAuthPermanent != null">is_gmp_auth_permanent ,</if>
|
|
|
<if test="platformProductId != null">platform_product_id ,</if>
|
|
<if test="platformProductId != null">platform_product_id ,</if>
|
|
|
|
|
+ <if test="medicalRegCertNo != null">medical_reg_cert_no ,</if>
|
|
|
|
|
+ <if test="registrantInfo != null">registrant_info ,</if>
|
|
|
|
|
+ <if test="prodLicenseNo != null">prod_license_no ,</if>
|
|
|
|
|
+ <if test="prodTechReqNo != null">prod_tech_req_no ,</if>
|
|
|
|
|
+ <if test="productStructure != null">product_structure ,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
@@ -406,6 +430,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isCertificatePermanent != null">#{isCertificatePermanent} ,</if>
|
|
<if test="isCertificatePermanent != null">#{isCertificatePermanent} ,</if>
|
|
|
<if test="isGmpAuthPermanent != null">#{isGmpAuthPermanent} ,</if>
|
|
<if test="isGmpAuthPermanent != null">#{isGmpAuthPermanent} ,</if>
|
|
|
<if test="platformProductId != null">#{platformProductId} ,</if>
|
|
<if test="platformProductId != null">#{platformProductId} ,</if>
|
|
|
|
|
+ <if test="medicalRegCertNo != null">#{medicalRegCertNo} ,</if>
|
|
|
|
|
+ <if test="registrantInfo != null">#{registrantInfo} ,</if>
|
|
|
|
|
+ <if test="prodLicenseNo != null"> #{prodLicenseNo} ,</if>
|
|
|
|
|
+ <if test="prodTechReqNo != null">#{prodTechReqNo} ,</if>
|
|
|
|
|
+ <if test="productStructure != null">#{productStructure} ,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -501,6 +530,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isLicensePermanent != null">is_license_permanent = #{isLicensePermanent} ,</if>
|
|
<if test="isLicensePermanent != null">is_license_permanent = #{isLicensePermanent} ,</if>
|
|
|
<if test="isCertificatePermanent != null">is_certificate_permanent = #{isCertificatePermanent} ,</if>
|
|
<if test="isCertificatePermanent != null">is_certificate_permanent = #{isCertificatePermanent} ,</if>
|
|
|
<if test="isGmpAuthPermanent != null">is_gmp_auth_permanent = #{isGmpAuthPermanent} ,</if>
|
|
<if test="isGmpAuthPermanent != null">is_gmp_auth_permanent = #{isGmpAuthPermanent} ,</if>
|
|
|
|
|
+ <if test="medicalRegCertNo != null and medicalRegCertNo != ''">
|
|
|
|
|
+ medical_reg_cert_no = #{medicalRegCertNo},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="registrantInfo != null">
|
|
|
|
|
+ registrant_info = #{registrantInfo},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="prodLicenseNo != null and prodLicenseNo != ''">
|
|
|
|
|
+ prod_license_no = #{prodLicenseNo},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="prodTechReqNo != null and prodTechReqNo != ''">
|
|
|
|
|
+ prod_tech_req_no = #{prodTechReqNo},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="productStructure != null">
|
|
|
|
|
+ product_structure = #{productStructure},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where product_id = #{productId}
|
|
where product_id = #{productId}
|
|
|
</update>
|
|
</update>
|