LymsDoctorWorktimeMapper.xml 1.4 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.lyms.talkonlineweb.mapper.LymsDoctorWorktimeMapper">

<resultMap id="BaseResultMap" type="com.lyms.talkonlineweb.domain.LymsDoctorWorkTime">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="did" column="did" jdbcType="INTEGER"/>
<result property="startTime" column="start_time" jdbcType="VARCHAR"/>
<result property="endTime" column="end_time" jdbcType="VARCHAR"/>
<result property="status" column="status" jdbcType="INTEGER"/>
<result property="createdtime" column="createdtime" jdbcType="TIMESTAMP"/>
<result property="updatedtime" column="updatedtime" jdbcType="TIMESTAMP"/>
</resultMap>

<select id = "selectDoctorChatCount" parameterType="java.lang.String" resultType="com.lyms.talkonlineweb.domain.DoctorChatCount">

select
d.did,
d.dlogin,
d.dpasswd,
d.dname,
d.mobile,
d.gzopenid,
c.count
from
lyms_doctor d,
lyms_doctor_worktime w,
v_doctor_chat_count c
where d.did = w.did
and d.did = c.did
and w.start_time = #{startTime}
and c.count > 0

</select>

</mapper>