|
|
@@ -49,10 +49,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="description" column="description" />
|
|
|
<result property="solarTerm" column="solar_term" />
|
|
|
<result property="appIds" column="app_ids" />
|
|
|
+ <result property="showName" column="show_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsPackageVo">
|
|
|
- select package_id,description,usage_per_use_count,icd_code,images,doctor_remark,second_name,follow_temp_id,product_cost_price,inquiry_cost_price,total_cost_price,follow_num,`explain`,indication,store_id,private_type,recipe_type,counts,usage_frequency_unit, package_name,img_url,is_show,total_price,cycle,duration,`desc`,product_type,price,tags,sales,disease_type,num,package_sub_type,describe_json,pay_type,package_type, sort, product_json, status, create_time, update_time, is_del,solar_term,app_ids from fs_package
|
|
|
+ select package_id,description,usage_per_use_count,icd_code,images,doctor_remark,second_name,follow_temp_id,product_cost_price,inquiry_cost_price,total_cost_price,follow_num,`explain`,indication,store_id,private_type,recipe_type,counts,usage_frequency_unit, package_name,img_url,is_show,total_price,cycle,duration,`desc`,product_type,price,tags,sales,disease_type,num,package_sub_type,describe_json,pay_type,package_type, sort, product_json, status, create_time, update_time, is_del,solar_term,app_ids,show_name from fs_package
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsPackageList" parameterType="FsPackage" resultMap="FsPackageResult">
|
|
|
@@ -71,6 +72,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where package_id = #{packageId}
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectFsPackage" parameterType="Long" resultMap="FsPackageResult">
|
|
|
+ select fp.*
|
|
|
+ from fs_package fp
|
|
|
+ join fs_store_order fso on fp.package_id = fso.package_id
|
|
|
+ where fso.order_id = #{orderId}
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectIcdNameByPackageId" resultType="java.lang.String">
|
|
|
SELECT i.icd_name
|
|
|
FROM fs_package p
|
|
|
@@ -179,6 +187,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="description != null">description,</if>
|
|
|
<if test="solarTerm != null">solar_term,</if>
|
|
|
<if test="appIds != null">app_ids,</if>
|
|
|
+ <if test="showName != null">show_name,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="packageName != null">#{packageName},</if>
|
|
|
@@ -224,6 +233,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="description != null">#{description},</if>
|
|
|
<if test="solarTerm != null">#{solarTerm},</if>
|
|
|
<if test="appIds != null">#{appIds},</if>
|
|
|
+ <if test="showName != null">#{showName},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -273,6 +283,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="description != null">description = #{description},</if>
|
|
|
<if test="solarTerm != null">solar_term = #{solarTerm},</if>
|
|
|
<if test="appIds != null ">app_ids = #{appIds},</if>
|
|
|
+ <if test="showName != null ">show_name = #{showName},</if>
|
|
|
</trim>
|
|
|
where package_id = #{packageId}
|
|
|
</update>
|