|
@@ -242,6 +242,27 @@
|
|
|
</foreach>
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getInformationAvailableByUserIdsB" parameterType="java.util.List" resultType="com.diagbot.dto.UserAndProdutDTO">
|
|
|
+ SELECT
|
|
|
+ a.id as Id,
|
|
|
+ a.product_id as productId,
|
|
|
+ a.user_id as userId,
|
|
|
+ a.start_time as startTime,
|
|
|
+ a.end_time as endTime,
|
|
|
+ a.service_status as serviceStatus,
|
|
|
+ b.access_type as accessType,
|
|
|
+ b.charge_type as chargeType,
|
|
|
+ b.name as productName
|
|
|
+ FROM diag_opened_products a JOIN diag_lantone_product b
|
|
|
+ ON a.product_id=b.id
|
|
|
+ WHERE
|
|
|
+ a.is_deleted = "N"
|
|
|
+ AND a.user_id in
|
|
|
+ <foreach collection="list" item="ids" open="(" close=")" separator=",">
|
|
|
+ #{ids}
|
|
|
+ </foreach>
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="getOpendCountByUserId" resultType="java.lang.Long">
|
|
|
SELECT a.product_id FROM diag_opened_products a WHERE a.is_deleted ='N' and a.user_id = #{userId}
|
|
|
</select>
|