|
@@ -71,6 +71,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="returnAddress" column="return_address" />
|
|
<result property="returnAddress" column="return_address" />
|
|
|
<result property="brand" column="brand" />
|
|
<result property="brand" column="brand" />
|
|
|
<result property="foodProductionLicenseCode" column="food_production_license_code" />
|
|
<result property="foodProductionLicenseCode" column="food_production_license_code" />
|
|
|
|
|
+ <result property="originPlace" column="origin_place" />
|
|
|
|
|
+ <result property="netContent" column="net_content" />
|
|
|
|
|
+ <result property="shelfLife" column="shelf_life" />
|
|
|
|
|
+ <result property="domesticImported" column="domestic_imported" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsStoreProductVo">
|
|
<sql id="selectFsStoreProductVo">
|
|
@@ -81,7 +85,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
integral, product_type, prescribe_code, prescribe_spec, prescribe_factory, prescribe_name,
|
|
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,
|
|
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,
|
|
unit_price,batch_number,mah,mah_address,manufacturer,manufacturer_address,indications,dosage,
|
|
|
- adverse_reactions,contraindications,precautions,is_audit,store_id,return_address,brand,food_production_license_code
|
|
|
|
|
|
|
+ adverse_reactions,contraindications,precautions,is_audit,store_id,return_address,brand,food_production_license_code,
|
|
|
|
|
+ origin_place,net_content,shelf_life,domestic_imported
|
|
|
from fs_store_product_scrm
|
|
from fs_store_product_scrm
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -93,7 +98,8 @@ 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.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.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.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.return_address,p.brand,p.food_production_license_code
|
|
|
|
|
|
|
+ p.adverse_reactions,p.contraindications,p.precautions,p.is_audit,p.store_id,p.return_address,p.brand,p.food_production_license_code,
|
|
|
|
|
+ p.origin_place,p.net_content,p.shelf_life,p.domestic_imported
|
|
|
from fs_store_product_scrm p
|
|
from fs_store_product_scrm p
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -164,6 +170,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="storeId != null and storeId != ''">and store_id = #{storeId} </if>
|
|
<if test="storeId != null and storeId != ''">and store_id = #{storeId} </if>
|
|
|
<if test="brand != null and brand != ''">and brand = #{brand} </if>
|
|
<if test="brand != null and brand != ''">and brand = #{brand} </if>
|
|
|
<if test="foodProductionLicenseCode != null and foodProductionLicenseCode != ''">and food_production_license_code = #{foodProductionLicenseCode} </if>
|
|
<if test="foodProductionLicenseCode != null and foodProductionLicenseCode != ''">and food_production_license_code = #{foodProductionLicenseCode} </if>
|
|
|
|
|
+ <if test="originPlace != null and originPlace != ''">and origin_place like concat('%', #{originPlace}, '%') </if>
|
|
|
|
|
+ <if test="netContent != null and netContent != ''">and net_content = #{netContent} </if>
|
|
|
|
|
+ <if test="shelfLife != null">and shelf_life = #{shelfLife} </if>
|
|
|
|
|
+ <if test="domesticImported != null and domesticImported != ''">and domestic_imported = #{domesticImported} </if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -262,6 +272,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="returnAddress != null">return_address,</if>
|
|
<if test="returnAddress != null">return_address,</if>
|
|
|
<if test="brand != null and brand != ''">brand,</if>
|
|
<if test="brand != null and brand != ''">brand,</if>
|
|
|
<if test="foodProductionLicenseCode != null and foodProductionLicenseCode != ''">food_production_license_code,</if>
|
|
<if test="foodProductionLicenseCode != null and foodProductionLicenseCode != ''">food_production_license_code,</if>
|
|
|
|
|
+ <if test="originPlace != null and originPlace != ''">origin_place,</if>
|
|
|
|
|
+ <if test="netContent != null and netContent != ''">net_content,</if>
|
|
|
|
|
+ <if test="shelfLife != null">shelf_life,</if>
|
|
|
|
|
+ <if test="domesticImported != null and domesticImported != ''">domestic_imported,</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>
|
|
@@ -329,6 +343,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="returnAddress != null">#{returnAddress},</if>
|
|
<if test="returnAddress != null">#{returnAddress},</if>
|
|
|
<if test="brand != null and brand != ''">#{brand},</if>
|
|
<if test="brand != null and brand != ''">#{brand},</if>
|
|
|
<if test="foodProductionLicenseCode != null and foodProductionLicenseCode != ''">#{foodProductionLicenseCode},</if>
|
|
<if test="foodProductionLicenseCode != null and foodProductionLicenseCode != ''">#{foodProductionLicenseCode},</if>
|
|
|
|
|
+ <if test="originPlace != null and originPlace != ''">#{originPlace},</if>
|
|
|
|
|
+ <if test="netContent != null and netContent != ''">#{netContent},</if>
|
|
|
|
|
+ <if test="shelfLife != null">#{shelfLife},</if>
|
|
|
|
|
+ <if test="domesticImported != null and domesticImported != ''">#{domesticImported},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -400,6 +418,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="returnAddress != null">return_address = #{returnAddress},</if>
|
|
<if test="returnAddress != null">return_address = #{returnAddress},</if>
|
|
|
<if test="brand != null and brand != ''">brand = #{brand},</if>
|
|
<if test="brand != null and brand != ''">brand = #{brand},</if>
|
|
|
<if test="foodProductionLicenseCode != null and foodProductionLicenseCode != ''">food_production_license_code = #{foodProductionLicenseCode},</if>
|
|
<if test="foodProductionLicenseCode != null and foodProductionLicenseCode != ''">food_production_license_code = #{foodProductionLicenseCode},</if>
|
|
|
|
|
+ <if test="originPlace != null">origin_place = #{originPlace},</if>
|
|
|
|
|
+ <if test="netContent != null">net_content = #{netContent},</if>
|
|
|
|
|
+ <if test="shelfLife != null">shelf_life = #{shelfLife},</if>
|
|
|
|
|
+ <if test="domesticImported != null">domestic_imported = #{domesticImported},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where product_id = #{productId}
|
|
where product_id = #{productId}
|
|
|
</update>
|
|
</update>
|