|
@@ -13,19 +13,23 @@
|
|
<result column="name" property="name" />
|
|
<result column="name" property="name" />
|
|
<result column="description" property="description" />
|
|
<result column="description" property="description" />
|
|
<result column="user_id" property="userId" />
|
|
<result column="user_id" property="userId" />
|
|
|
|
+ <result column="type" property="type" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
+ <!-- 通过名称查询 -->
|
|
<select id="findByName" resultMap="BaseResultMap" parameterType="java.lang.String">
|
|
<select id="findByName" resultMap="BaseResultMap" parameterType="java.lang.String">
|
|
select * from diag_service_info
|
|
select * from diag_service_info
|
|
where name = #{name} and is_deleted = 'N'
|
|
where name = #{name} and is_deleted = 'N'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <!-- 通过用户id查询服务列表 -->
|
|
<select id="getListByUserId" resultMap="BaseResultMap" parameterType="java.lang.Long">
|
|
<select id="getListByUserId" resultMap="BaseResultMap" parameterType="java.lang.Long">
|
|
select * from diag_service_info
|
|
select * from diag_service_info
|
|
- where user_id = #{userId} and is_deleted = 'N'
|
|
|
|
|
|
+ where user_id = #{userId} and is_deleted = 'N' and type=1;
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <!-- 通过用户id查询服务分页列表 -->
|
|
<select id="selectServiceListPage" resultMap="BaseResultMap">
|
|
<select id="selectServiceListPage" resultMap="BaseResultMap">
|
|
- select * from diag_service_info where user_id=#{serviceInfo.userId} and is_deleted='N';
|
|
|
|
|
|
+ select * from diag_service_info where user_id=#{serviceInfo.userId} and is_deleted='N' and type=1;
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|