|
@@ -38,7 +38,8 @@
|
|
|
<result column="access_type" property="accessType"/>
|
|
|
<result column="start_time" property="startTime"/>
|
|
|
<result column="end_time" property="endTime"/>
|
|
|
- <result column="service_status" property="serviceStatus"/>
|
|
|
+ <result column="opened_service_status" property="openedServiceStatus"/>
|
|
|
+ <result column="time" property="time"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!--根据用户id查询用户是否有开通产品-->
|
|
@@ -73,10 +74,11 @@
|
|
|
</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 id="opendedProductByUserId" resultMap="BaseResultWrapperMap" parameterType="java.lang.Long">
|
|
|
+ select a.*,b.start_time,b.end_time,b.service_status as opened_service_status,c.time from diag_lantone_product a,diag_opened_products b,diag_product_order c,diag_order_details d
|
|
|
+ where a.id=b.product_id and a.id=d.product_id and c.num=d.order_num
|
|
|
+ and d.audit_status=1
|
|
|
+ and a.is_deleted='N' and b.is_deleted='N' and c.is_deleted='N' and d.is_deleted='N'
|
|
|
+ and b.user_id=#{userId} and c.user_id=#{userId} and d.user_id=#{userId}
|
|
|
</select>
|
|
|
</mapper>
|