|
@@ -20,6 +20,27 @@
|
|
|
<result column="trial_url" property="trialUrl" />
|
|
|
<result column="access_type" property="accessType" />
|
|
|
</resultMap>
|
|
|
+ <!-- 通用查询映射结果 -->
|
|
|
+ <resultMap id="BaseResultWrapperMap" type="com.diagbot.entity.wrapper.LantoneProductWrapper">
|
|
|
+ <id column="id" property="id" />
|
|
|
+ <result column="is_deleted" property="isDeleted" />
|
|
|
+ <result column="gmt_create" property="gmtCreate" />
|
|
|
+ <result column="gmt_modified" property="gmtModified" />
|
|
|
+ <result column="creator" property="creator" />
|
|
|
+ <result column="modifier" property="modifier" />
|
|
|
+ <result column="name" property="name" />
|
|
|
+ <result column="decription" property="decription" />
|
|
|
+ <result column="charge_type" property="chargeType" />
|
|
|
+ <result column="url" property="url" />
|
|
|
+ <result column="open_num" property="openNum" />
|
|
|
+ <result column="service_status" property="serviceStatus" />
|
|
|
+ <result column="trial_status" property="trialStatus" />
|
|
|
+ <result column="trial_url" property="trialUrl" />
|
|
|
+ <result column="access_type" property="accessType" />
|
|
|
+ <result column="start_time" property="startTime" />
|
|
|
+ <result column="end_time" property="endTime" />
|
|
|
+ <result column="service_status" property="serviceStatus" />
|
|
|
+ </resultMap>
|
|
|
|
|
|
<!--根据用户id查询用户是否有开通产品-->
|
|
|
<select id="productLine" resultMap="BaseResultMap">
|
|
@@ -46,4 +67,10 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
+ <!--根据用户查询已开通产品-->
|
|
|
+ <select id="opendedProductByUserId" resultMap="BaseResultWrapperMap" parameterType="java.lang.Long">
|
|
|
+ select a.*,b.start_time,b.end_time,b.service_status from diag_lantone_product a,diag_opened_products b
|
|
|
+ where a.id=b.product_id and a.is_deleted='N' and b.is_deleted='N'
|
|
|
+ and b.user_id=#{userId}
|
|
|
+ </select>
|
|
|
</mapper>
|