|
@@ -66,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="contraindications" column="contraindications"/>
|
|
|
<result property="precautions" column="precautions"/>
|
|
|
<result property="isAudit" column="is_audit"/>
|
|
|
+ <result property="storeId" column="store_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsStoreProductVo">
|
|
@@ -76,7 +77,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
|
|
|
+ adverse_reactions,contraindications,precautions,is_audit,store_id
|
|
|
from fs_store_product_scrm
|
|
|
</sql>
|
|
|
|
|
@@ -88,7 +89,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.adverse_reactions,p.contraindications,p.precautions,p.is_audit,p.store_id
|
|
|
from fs_store_product_scrm p
|
|
|
</sql>
|
|
|
|
|
@@ -156,7 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contraindications != null and contraindications != ''">and contraindications = #{contraindications} ,</if>
|
|
|
<if test="precautions != null and precautions != ''">and precautions = #{precautions} ,</if>
|
|
|
<if test="isAudit != null and isAudit != ''">and is_audit = #{isAudit} ,</if>
|
|
|
-
|
|
|
+ <if test="storeId != null and storeId != ''">and store_id = #{storeId} ,</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -250,6 +251,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contraindications != null and contraindications != ''">contraindications ,</if>
|
|
|
<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>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
@@ -312,6 +314,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contraindications != null and contraindications != ''">#{contraindications} ,</if>
|
|
|
<if test="precautions != null and precautions != ''">#{precautions} ,</if>
|
|
|
<if test="isAudit != null and isAudit != ''">#{isAudit} ,</if>
|
|
|
+ <if test="storeId != null and storeId != ''">#{storeId} ,</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -378,6 +381,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="contraindications != null and contraindications != ''">contraindications = #{contraindications} ,</if>
|
|
|
<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>
|
|
|
|
|
|
</trim>
|
|
|
where product_id = #{productId}
|