| | |
| | | <module name="ruoyi-quartz" /> |
| | | </profile> |
| | | </annotationProcessing> |
| | | <bytecodeTargetLevel> |
| | | <module name="ruoyi" target="1.8" /> |
| | | </bytecodeTargetLevel> |
| | | </component> |
| | | </project> |
| | |
| | | <option value="$PROJECT_DIR$/pom.xml" /> |
| | | </list> |
| | | </option> |
| | | <option name="ignoredFiles"> |
| | | <set> |
| | | <option value="$PROJECT_DIR$/pom.xml" /> |
| | | </set> |
| | | </option> |
| | | </component> |
| | | <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" /> |
| | | </project> |
| | | </project> |
| | |
| | | <module fileurl="file://$PROJECT_DIR$/ruoyi-admin/ruoyi-admin.iml" filepath="$PROJECT_DIR$/ruoyi-admin/ruoyi-admin.iml" /> |
| | | </modules> |
| | | </component> |
| | | </project> |
| | | </project> |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <project version="4"> |
| | | <component name="VcsDirectoryMappings"> |
| | | <mapping directory="$PROJECT_DIR$" vcs="Git" /> |
| | | <mapping directory="" vcs="Git" /> |
| | | </component> |
| | | </project> |
| | |
| | | select user_id, role_id, orgid |
| | | FROM healthy_user_role |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="hisUserId != null "> |
| | | AND user_id = #{hisUserId} |
| | | </if> |
| | |
| | | select user_id , user_code , dept_type ,dept_code,dept_name,deptparent,del_flag,orgid |
| | | FROM healthy_user_dept |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | AND user_id != 'admin' |
| | | <if test="hisUserId != null "> |
| | | AND user_id = #{hisUserId} |
| | |
| | | <select id="selectPatArchiveList" parameterType="com.smartor.domain.PatArchive" resultMap="PatArchiveResult"> |
| | | <include refid="selectPatArchiveVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | | <if test="idcardno != null and idcardno != ''">and idcardno = #{idcardno}</if> |
| | | <if test="sourcefrom != null ">and sourcefrom = #{sourcefrom}</if> |
| | |
| | | FROM |
| | | healthy_inhosp b |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="startOutHospTime != null "> |
| | | and to_char(b.endtime, 'YYYY-MM-DD HH24:MI:SS') >=to_char(#{startOutHospTime},'YYYY-MM-DD HH24:MI:SS') |
| | | </if> |
| | |
| | | mainsuit |
| | | from healthy_outhosp |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="beginTime != null "> |
| | | and to_char(admitdate, 'YYYY-MM-DD HH24:MI:SS') >= to_char(#{beginTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | </if> |
| | |
| | | </if> |
| | | <if test="lastEndTime != null and lastEndTime != ''"> |
| | | and to_char(last_Update_Time, 'YYYY-MM-DD HH24:MI:SS') <= #{lastEndTime} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND orgid = #{orgid} |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | icdpym |
| | | from healthy_disease |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="icdcode != null and icdcode != ''">and icdcode = #{icdcode}</if> |
| | | <if test="lastflag != null and lastflag != ''">and lastflag = #{lastflag}</if> |
| | | <if test="chimedflag != null and chimedflag != ''">and chimedflag = #{chimedflag}</if> |
| | |
| | | u.birthday,u.orgid,u.job_phone,u.phonenumber, u.sex, u.status |
| | | from healthy_user u |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="userId != null and userId != 0"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | |
| | | resultMap="BaseUserInfoResult"> |
| | | <include refid="selectBaseUserInfoVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="usercode != null and usercode != ''">and usercode = #{usercode}</if> |
| | | <if test="account != null and account != ''">and account = #{account}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | |
| | | <if test="wardid != null and wardid != ''">and wardid = #{wardid}</if> |
| | | <if test="wardname != null and wardname != ''">and wardname like concat('%', #{wardname}, '%')</if> |
| | | <if test="usertype != null ">and usertype = #{usertype}</if> |
| | | <if test="usertypename != null and usertypename != ''">and usertypename like concat('%', #{usertypename}, |
| | | AND '%') |
| | | <if test="usertypename != null and usertypename != ''"> |
| | | and usertypename like concat('%', #{usertypename},'%') |
| | | </if> |
| | | <if test="dwpermission != null ">and dwpermission = #{dwpermission}</if> |
| | | <if test="isopenlowerorg != null ">and isopenlowerorg = #{isopenlowerorg}</if> |
| | | <if test="isopenshareknow != null ">and isopenshareknow = #{isopenshareknow}</if> |
| | | <if test="isopengeneraldata != null ">and isopengeneraldata = #{isopengeneraldata}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="deptpermission != null and deptpermission != ''">and deptpermission = #{deptpermission}</if> |
| | |
| | | <select id="selectEquipmentinfoList" parameterType="Equipmentinfo" resultMap="EquipmentinfoResult"> |
| | | <include refid="selectEquipmentinfoVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="devtype != null "> and devtype = #{devtype}</if> |
| | | <if test="equipmentname != null and equipmentname != ''"> and equipmentname like concat('%', #{equipmentname}, '%')</if> |
| | | <if test="modnum != null and modnum != ''"> and modnum = #{modnum}</if> |
| | |
| | | <if test="storePlace != null and storePlace != ''"> and storePlace = #{storePlace}</if> |
| | | <if test="technData != null and technData != ''"> and technData = #{technData}</if> |
| | | <if test="statusid != null "> and statusid = #{statusid}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | </select> |
| | | |
| | | <select id="selectEquipmentinfoById" parameterType="Long" resultMap="EquipmentinfoResult"> |
| | |
| | | <select id="selectSmsParamList" parameterType="SmsParam" resultMap="SmsParamResult"> |
| | | <include refid="selectSmsParamVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="paramname != null and paramname != ''"> and paramname like concat('%', #{paramname}, '%')</if> |
| | | <if test="paramval != null and paramval != ''"> and paramval = #{paramval}</if> |
| | | <if test="descirbe != null and descirbe != ''"> and descirbe = #{descirbe}</if> |
| | | <if test="usestatus != null "> and usestatus = #{usestatus}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null "> and orgid = #{orgid}</if> |
| | | </select> |
| | | |
| | | <select id="selectSmsParamByParamid" parameterType="Long" resultMap="SmsParamResult"> |
| | |
| | | <select id="selectSmsRecordsList" parameterType="com.ruoyi.system.domain.SmsRecords" resultMap="SmsRecordsResult"> |
| | | <include refid="selectSmsRecordsVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="userid != null and userid != ''">and userid = #{userid}</if> |
| | | <if test="username != null and username != ''">and username like concat('%', #{username}, '%')</if> |
| | |
| | | <select id="selectSmsTempletList" parameterType="SmsTemplet" resultMap="SmsTempletResult"> |
| | | <include refid="selectSmsTempletVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="templetno != null and templetno != ''"> and templetno = #{templetno}</if> |
| | | <if test="templetname != null and templetname != ''"> and templetname like concat('%', #{templetname}, '%')</if> |
| | | <if test="templetcontent != null and templetcontent != ''"> and templetcontent = #{templetcontent}</if> |
| | |
| | | <!-- 查询条件 --> |
| | | <sql id="sqlwhereSearch"> |
| | | WHERE 1=1 |
| | | |
| | | <if test="configId !=null"> |
| | | and config_id = #{configId} |
| | | </if> |
| | |
| | | <if test="orgid !=null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | |
| | | </sql> |
| | | |
| | | <select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult"> |
| | |
| | | <select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="configName != null and configName != ''"> |
| | | AND config_name like concat('%', #{configName}, '%') |
| | |
| | | <select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult"> |
| | | <include refid="selectDictTypeVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="dictName != null and dictName != ''"> |
| | | AND dict_name like concat('%', #{dictName}, '%') |
| | | </if> |
| | |
| | | <select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult"> |
| | | select info_id, user_name, ipaddr, login_location, browser, os, status, msg, login_time from sys_logininfor |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="ipaddr != null and ipaddr != ''"> |
| | | AND ipaddr like concat('%', #{ipaddr}, '%') |
| | | </if> |
| | |
| | | <select id="selectMenuList" parameterType="SysMenu" resultMap="SysMenuResult"> |
| | | <include refid="selectMenuVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND orgid = #{orgid} |
| | | </if> |
| | | <if test="menuName != null and menuName != ''"> |
| | | AND menu_name like concat('%', #{menuName}, '%') |
| | | </if> |
| | |
| | | <if test="status != null and status != ''"> |
| | | AND status = #{status} |
| | | </if> |
| | | |
| | | order by parent_id, order_num |
| | | </select> |
| | | |
| | |
| | | <select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult"> |
| | | <include refid="selectNoticeVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="noticeTitle != null and noticeTitle != ''"> |
| | | AND notice_title like concat('%', #{noticeTitle}, '%') |
| | | </if> |
| | |
| | | <if test="createBy != null and createBy != ''"> |
| | | AND create_by like concat('%', #{createBy}, '%') |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND orgid = #{orgid} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | <insert id="insertNotice" parameterType="SysNotice"> |
| | |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="guid != null and guid != ''">#{guid},</if> |
| | | <if test="orgid != null and orgid != ''">#{orgid},</if> |
| | | sysdate() |
| | | ) |
| | | sysdate()) |
| | | </insert> |
| | | |
| | | <update id="updateNotice" parameterType="SysNotice"> |
| | |
| | | <select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult"> |
| | | <include refid="selectOperLogVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="title != null and title != ''"> |
| | | AND title like concat('%', #{title}, '%') |
| | | </if> |
| | |
| | | <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 --> |
| | | and date_format(oper_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') |
| | | </if> |
| | | |
| | | order by oper_id desc |
| | | </select> |
| | | |
| | |
| | | <select id="selectPostList" parameterType="com.ruoyi.system.domain.SysPost" resultMap="SysPostResult"> |
| | | <include refid="selectPostVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="postCode != null and postCode != ''"> |
| | | AND post_code like concat('%', #{postCode}, '%') |
| | | </if> |
| | |
| | | <select id="selectUserByUserNameByCondition" parameterType="String" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND u.del_flag = '0' |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name = #{userName} |
| | |
| | | <if test="deptId != null and deptId != ''"> |
| | | AND u.dept_id = #{deptId} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectUserById" parameterType="Long" resultMap="SysUserResult"> |
| | |
| | | resultMap="BaseOrganizationResult"> |
| | | <include refid="selectBaseOrganizationVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="OrganizationName != null and OrganizationName != ''"> |
| | | and OrganizationName like concat('%', #{OrganizationName}, '%') |
| | |
| | | <if test="guid != null and guid != ''"> |
| | | and guid = #{guid} |
| | | </if> |
| | | <if test="orgid != null "> |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectBaseOrganizationByID" parameterType="Long" |
| | |
| | | <select id="selectBaseSmsaccountList" parameterType="BaseSmsaccount" resultMap="BaseSmsaccountResult"> |
| | | <include refid="selectBaseSmsaccountVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="smsname != null and smsname != ''">and smsname like concat('%', #{smsname}, '%')</if> |
| | | <if test="account != null and account != ''">and account = #{account}</if> |
| | | <if test="password != null and password != ''">and password = #{password}</if> |
| | |
| | | <select id="selectBaseTagList" parameterType="com.smartor.domain.BaseTag" resultMap="BaseTagResult"> |
| | | <include refid="selectBaseTagVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagname != null and tagname != ''">and tagname like concat('%', #{tagname}, '%')</if> |
| | | <if test="tagdescription != null and tagdescription != ''">and tagdescription = #{tagdescription}</if> |
| | |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="isenable != null ">and isenable = #{isenable}</if> |
| | | |
| | | </select> |
| | | <select id="selectBaseTagListByTagname" parameterType="com.smartor.domain.BaseTag" resultMap="BaseTagResult"> |
| | | <include refid="selectBaseTagVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagname != null and tagname != ''">and tagname =#{tagname}</if> |
| | | <if test="tagdescription != null and tagdescription != ''">and tagdescription = #{tagdescription}</if> |
| | |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="isenable != null ">and isenable = #{isenable}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectBaseTagByTagid" parameterType="Long" resultMap="BaseTagResult"> |
| | |
| | | resultMap="BaseTagcategoryResult"> |
| | | <include refid="selectBaseTagcategoryVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pym != null and pym != ''">and pym = #{pym}</if> |
| | | <if test="wbm != null and wbm != ''">and wbm = #{wbm}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, |
| | | AND '%') |
| | | <if test="categoryname != null and categoryname != ''"> |
| | | and categoryname |
| | | like concat('%', #{categoryname},'%') |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectBaseTagcategoryByTagcategoryid" parameterType="Long" resultMap="BaseTagcategoryResult"> |
| | |
| | | from base_tagcategory a left join base_tag b |
| | | on a.tagcategoryid = b.tagcategoryid |
| | | WHERE 1=1 |
| | | |
| | | <if test="categoryname != null and categoryname != ''">a.categoryname like concat('%', #{categoryname}, |
| | | AND '%') |
| | | </if> |
| | | |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="categoryname != null and categoryname != ''"> |
| | | and a.categoryname |
| | | like concat('%', #{categoryname}, '%') |
| | | </if> |
| | | GROUP BY a.tagcategoryid,a.categoryname |
| | | </select> |
| | | </mapper> |
| | |
| | | select user_id, role_id, orgid |
| | | FROM yhyjsxx |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="hisUserId != null ">and user_id = #{hisUserId}</if> |
| | | |
| | |
| | | dept_id,dept_name,deptparent,del_flag,orgid,create_time,create_by,update_time,update_by |
| | | FROM yhyksxx |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND user_id != 'admin' |
| | | <if test="hisUserId != null ">and user_id = #{hisUserId}</if> |
| | |
| | | <select id="selectPatArchiveList" parameterType="com.smartor.domain.PatArchive" resultMap="PatArchiveResult"> |
| | | <include refid="selectPatArchiveVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | | <if test="idcardno != null and idcardno != ''">and idcardno = #{idcardno}</if> |
| | |
| | | FROM |
| | | cryxx b |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | |
| | | <if test="startOutHospTime != null ">and to_char(b.endtime,'YYMMDD') >= |
| | |
| | | mainsuit |
| | | from mzxx |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | |
| | | <if test="beginTime != null ">and to_char( admitdate,'YYMMDD') >= |
| | |
| | | icdpym |
| | | from jbxx |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="icdcode != null and icdcode != ''">and icdcode = #{icdcode}</if> |
| | | <if test="lastflag != null and lastflag != ''">and lastflag = #{lastflag}</if> |
| | |
| | | u.login_ip, u.login_date, u.create_by, u.create_time, u.remark |
| | | from ryxx u |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="userId != null and userId != 0"> |
| | | AND u.user_id = #{userId} |
| | |
| | | <select id="selectHeCategoryList" parameterType="com.smartor.domain.HeCategory" resultMap="HeCategoryResult"> |
| | | <include refid="selectHeCategoryVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, |
| | | AND '%') |
| | | <if test="categoryname != null and categoryname != ''"> |
| | | and categoryname |
| | | like concat('%', #{categoryname},'%') |
| | | </if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="id != null">and id = #{id}</if> |
| | | <if test="pid != null">and pid = #{pid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectHeCategoryById" parameterType="Long" resultMap="HeCategoryResult"> |
| | |
| | | resultMap="HeLibraryAssortResult"> |
| | | <include refid="selectHeLibraryAssortVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag != 1 |
| | | <if test="assortname != null and assortname != ''">and assortname like concat('%', #{assortname}, '%')</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="seqno != null ">and seqno = #{seqno}</if> |
| | | <if test="hetype != null ">and hetype = #{hetype}</if> |
| | | |
| | | |
| | | order by seqno asc |
| | | </select> |
| | | |
| | |
| | | <select id="selectHeLibraryList" parameterType="com.smartor.domain.HeLibrary" resultMap="HeLibraryResult"> |
| | | <include refid="selectHeLibraryVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="classification != null and classification != ''">and classification = #{classification}</if> |
| | |
| | | <if test="richText != null and richText != ''">and rich_text = #{richText}</if> |
| | | <if test="hetype != null and hetype != ''">and hetype = #{hetype}</if> |
| | | <if test="htmlRichText != null and htmlRichText != ''">and html_rich_text = #{htmlRichText}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectHeLibraryById" parameterType="Long" resultMap="HeLibraryResult"> |
| | |
| | | <select id="selectHeLibraryTagList" parameterType="com.smartor.domain.HeLibraryTag" resultMap="HeLibraryTagResult"> |
| | | <include refid="selectHeLibraryTagVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagid != null ">and tagid = #{tagid}</if> |
| | |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="tagname != null and tagname != ''">and tagname = #{tagname}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectHeLibraryTagById" parameterType="Long" resultMap="HeLibraryTagResult"> |
| | |
| | | resultMap="HeLocallibraryResult"> |
| | | <include refid="selectHeLocallibraryVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="preachcategoryid != null ">and preachcategoryid = #{preachcategoryid}</if> |
| | | <if test="preachname != null and preachname != ''">and preachname like concat('%', #{preachname}, '%')</if> |
| | |
| | | <if test="centerlibrarycode != null and centerlibrarycode != ''">and centerlibrarycode = |
| | | #{centerlibrarycode} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectHeLocallibraryById" parameterType="Long" resultMap="HeLocallibraryResult"> |
| | |
| | | resultMap="HospitalRecordResult"> |
| | | <include refid="selectHospitalRecordVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="ID != null and ID != ''">and ID = #{ID}</if> |
| | | <if test="sourceSystem != null and sourceSystem != ''">and SourceSystem = #{sourceSystem}</if> |
| | | <if test="messageID != null and messageID != ''">and MessageID = #{messageID}</if> |
| | |
| | | </if> |
| | | <if test="encAdmSource != null and encAdmSource != ''">and EncAdmSource = #{encAdmSource}</if> |
| | | <if test="encInhostype != null and encInhostype != ''">and EncInhostype = #{encInhostype}</if> |
| | | <if test="encDietName != null and encDietName != ''">and EncDietName like concat('%', #{encDietName}, |
| | | AND '%') |
| | | <if test="encDietName != null and encDietName != ''"> |
| | | and EncDietName like concat('%', #{encDietName},'%') |
| | | </if> |
| | | <if test="encOuthostype != null and encOuthostype != ''">and EncOuthostype = #{encOuthostype}</if> |
| | | <if test="encVisitnum != null and encVisitnum != ''">and EncVisitnum = #{encVisitnum}</if> |
| | |
| | | <if test="encHavebaby != null and encHavebaby != ''">and EncHavebaby = #{encHavebaby}</if> |
| | | <if test="encDiagList != null and encDiagList != ''">and EncDiagList = #{encDiagList}</if> |
| | | <if test="directorCode != null and directorCode != ''">and DirectorCode = #{directorCode}</if> |
| | | <if test="directorName != null and directorName != ''">and DirectorName like concat('%', #{directorName}, |
| | | AND '%') |
| | | <if test="directorName != null and directorName != ''"> |
| | | and DirectorName like concat('%', #{directorName},'%') |
| | | </if> |
| | | <if test="dncDiagnosisCode != null and dncDiagnosisCode != ''">and EncDiagnosisCode = #{dncDiagnosisCode} |
| | | </if> |
| | |
| | | </if> |
| | | <if test="taskStatus != null and taskStatus != ''">and taskStatus = #{taskStatus}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectHospitalRecordByID" parameterType="String" resultMap="HospitalRecordResult"> |
| | |
| | | <select id="selectHospitalUserinfoList" parameterType="HospitalUserinfo" resultMap="HospitalUserinfoResult"> |
| | | <include refid="selectHospitalUserinfoVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="SourceSystem != null and SourceSystem != ''">and SourceSystem = #{SourceSystem}</if> |
| | | <if test="MessageID != null and MessageID != ''">and MessageID = #{MessageID}</if> |
| | | <if test="CreateTime != null and CreateTime != ''">and CreateTime = #{CreateTime}</if> |
| | |
| | | <if test="Bednur != null and Bednur != ''">and Bednur = #{Bednur}</if> |
| | | <if test="Regdoc != null and Regdoc != ''">and Regdoc = #{Regdoc}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectHospitalUserinfoByID" parameterType="Long" resultMap="HospitalUserinfoResult"> |
| | |
| | | resultMap="Icd10AssociationResult"> |
| | | <include refid="selectIcd10AssociationVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="icd10id != null ">and icd10id = #{icd10id}</if> |
| | | <if test="icd10code != null and icd10code != ''">and icd10code = #{icd10code}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | |
| | | <if test="icd10AssortCode != null ">and icd10_assort_code = #{icd10AssortCode}</if> |
| | | <if test="icd10AssortName != null and icd10AssortName != ''">and icd10_assort_name = #{icd10AssortName} |
| | | </if> |
| | | <if test="chineseMedicineDiagnoseSign != null ">and chinese_medicine_diagnose_sign = |
| | | #{chineseMedicineDiagnoseSign} |
| | | <if test="chineseMedicineDiagnoseSign != null "> |
| | | and chinese_medicine_diagnose_sign = #{chineseMedicineDiagnoseSign} |
| | | </if> |
| | | <if test="chineseMedicineDiagnoseAssortCode != null and chineseMedicineDiagnoseAssortCode != ''">and |
| | | AND chinese_medicine_diagnose_assort_code = #{chineseMedicineDiagnoseAssortCode} |
| | | <if test="chineseMedicineDiagnoseAssortCode != null and chineseMedicineDiagnoseAssortCode != ''"> |
| | | and chinese_medicine_diagnose_assort_code = #{chineseMedicineDiagnoseAssortCode} |
| | | </if> |
| | | <if test="chineseMedicineDiagnoseAssortName != null and chineseMedicineDiagnoseAssortName != ''">and |
| | | AND chinese_medicine_diagnose_assort_name = #{chineseMedicineDiagnoseAssortName} |
| | | <if test="chineseMedicineDiagnoseAssortName != null and chineseMedicineDiagnoseAssortName != ''"> |
| | | and chinese_medicine_diagnose_assort_name = #{chineseMedicineDiagnoseAssortName} |
| | | </if> |
| | | <if test="outpatientUseAssort != null">and outpatient_use_assort = #{outpatientUseAssort}</if> |
| | | <if test="inpatientUseAssort != null">and inpatient_use_assort = #{inpatientUseAssort}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIcd10AssociationById" parameterType="Long" resultMap="Icd10AssociationResult"> |
| | |
| | | <select id="selectIcd10List" parameterType="com.smartor.domain.Icd10" resultMap="Icd10Result"> |
| | | <include refid="selectIcd10Vo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="icdcode != null and icdcode != ''">and icdcode = #{icdcode}</if> |
| | | <if test="lastflag != null and lastflag != ''">and lastflag = #{lastflag}</if> |
| | |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="hisIcdid != null and hisIcdid != ''">and his_icdid = #{hisIcdid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIcd10ByIcdid" parameterType="Long" resultMap="Icd10Result"> |
| | |
| | | <select id="selectIvrLibIntentList" parameterType="IvrLibIntent" resultMap="IvrLibIntentResult"> |
| | | <include refid="selectIvrLibIntentVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="intentionname != null and intentionname != ''"> and intentionname like concat('%', #{intentionname}, '%')</if> |
| | | <if test="categoryid != null "> and categoryid = #{categoryid}</if> |
| | |
| | | <if test="intentionword != null and intentionword != ''"> and intentionword = #{intentionword}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibIntentByIntentid" parameterType="Long" resultMap="IvrLibIntentResult"> |
| | |
| | | <select id="selectIvrLibIntentcategoryList" parameterType="IvrLibIntentcategory" resultMap="IvrLibIntentcategoryResult"> |
| | | <include refid="selectIvrLibIntentcategoryVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="categoryname != null and categoryname != ''"> and categoryname like concat('%', #{categoryname}, '%')</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibIntentcategoryByIntertcatid" parameterType="Long" resultMap="IvrLibIntentcategoryResult"> |
| | |
| | | <select id="selectIvrLibScriptList" parameterType="IvrLibScript" resultMap="IvrLibScriptResult"> |
| | | <include refid="selectIvrLibScriptVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="categoryid != null "> and categoryid = #{categoryid}</if> |
| | | <if test="categoryname != null and categoryname != ''"> and categoryname like concat('%', #{categoryname}, '%')</if> |
| | |
| | | <if test="speakname != null and speakname != ''"> and speakname like concat('%', #{speakname}, '%')</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibScriptByScriptid" parameterType="Long" resultMap="IvrLibScriptResult"> |
| | |
| | | <select id="selectIvrLibScriptcategoryList" parameterType="IvrLibScriptcategory" resultMap="IvrLibScriptcategoryResult"> |
| | | <include refid="selectIvrLibScriptcategoryVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="categoryname != null and categoryname != ''"> and categoryname like concat('%', #{categoryname}, '%')</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibScriptcategoryByCategoryid" parameterType="Long" resultMap="IvrLibScriptcategoryResult"> |
| | |
| | | <select id="selectIvrLibScriptmodelList" parameterType="IvrLibScriptmodel" resultMap="IvrLibScriptmodelResult"> |
| | | <include refid="selectIvrLibScriptmodelVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="scriptid != null "> and scriptid = #{scriptid}</if> |
| | | <if test="speaktype != null "> and speaktype = #{speaktype}</if> |
| | |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | <if test="speakvariable != null and speakvariable != ''"> and speakvariable = #{speakvariable}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibScriptmodelByModelid" parameterType="Long" resultMap="IvrLibScriptmodelResult"> |
| | |
| | | resultMap="IvrLibaExtemplateCategoryResult"> |
| | | <include refid="selectIvrLibaExtemplateCategoryVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, |
| | | AND '%') |
| | | <if test="categoryname != null and categoryname != ''"> |
| | | and categoryname like concat('%', #{categoryname},'%') |
| | | </if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | |
| | | resultMap="IvrLibaExtemplateResult"> |
| | | <include refid="selectIvrLibaExtemplateVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="extName != null and extName != ''">and extName like concat('%', #{extName}, '%')</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaExtemplateByID" parameterType="String" resultMap="IvrLibaExtemplateResult"> |
| | |
| | | resultMap="IvrLibaExtemplatescriptResult"> |
| | | <include refid="selectIvrLibaExtemplatescriptVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="extID != null">and extID = #{extID}</if> |
| | | <if test="switchID != null ">and switchID = #{switchID}</if> |
| | | <if test="switchText != null and switchText != ''">and switchText = #{switchText}</if> |
| | |
| | | resultMap="IvrLibaExtemplatescriptResult"> |
| | | <include refid="selectIvrLibaExtemplatescriptVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 |
| | | <if test="IDs != null"> |
| | |
| | | resultMap="IvrLibaScriptAssortResult"> |
| | | <include refid="selectIvrLibaScriptAssortVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="indexAssortName != null and indexAssortName != ''">and index_assort_name like concat('%', |
| | | #{indexAssortName}, '%') |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="indexAssortName != null and indexAssortName != ''"> |
| | | and index_assort_name like concat('%',#{indexAssortName}, '%') |
| | | </if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | and del_flag=0 |
| | | |
| | | order by seqno asc |
| | | </select> |
| | | |
| | |
| | | resultMap="IvrLibaScriptResult"> |
| | | <include refid="selectIvrLibaScriptVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="deptIds != null and deptIds != ''">and deptIds = #{deptIds}</if> |
| | | <if test="deptNames != null and deptNames != ''">and deptNames like concat('%', #{deptNames}, '%')</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">and script_topic like concat('%', #{scriptTopic}, |
| | | AND '%') |
| | | <if test="scriptTopic != null and scriptTopic != ''"> |
| | | and script_topic like concat('%', #{scriptTopic},'%') |
| | | </if> |
| | | <if test="campus != null and campus != ''">and campus = #{campus}</if> |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaScriptByQuestionid" parameterType="String" resultMap="IvrLibaScriptResult"> |
| | |
| | | resultMap="IvrLibaScriptTagResult"> |
| | | <include refid="selectIvrLibaScriptTagVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="tagid != null ">and tagid = #{tagid}</if> |
| | |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaScriptTagById" parameterType="Long" resultMap="IvrLibaScriptTagResult"> |
| | |
| | | resultMap="IvrLibaScriptTargetResult"> |
| | | <include refid="selectIvrLibaScriptTargetVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="targetID != null ">and targetID = #{targetID}</if> |
| | | <if test="targetType != null and targetType != ''">and targetType = #{targetType}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%', #{categoryName},'%') |
| | | </if> |
| | | <if test="targetValue != null and targetValue != ''">and targetValue = #{targetValue}</if> |
| | | <if test="basicRegex != null and basicRegex != ''">and basicRegex = #{basicRegex}</if> |
| | |
| | | <if test="warnup != null ">and warnup = #{warnup}</if> |
| | | <if test="warndown != null">and warndown = #{warndown}</if> |
| | | <if test="picturePath != null and picturePath != ''">and picture_path = #{picturePath}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaScriptTargetByQuestionTargetID" parameterType="String" |
| | |
| | | resultMap="IvrLibaScriptTargetoptionResult"> |
| | | <include refid="selectIvrLibaScriptTargetoptionVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="targetid != null and targetid != ''">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname = #{targetname}</if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%', #{categoryName},'%') |
| | | </if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="targetregex != null and targetregex != ''">and targetregex = #{targetregex}</if> |
| | |
| | | <if test="appendflag != null">and appendflag = #{appendflag}</if> |
| | | <if test="appenddesc != null">and appenddesc = #{appenddesc}</if> |
| | | <if test="picturePath != null">and picture_path = #{picturePath}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaScriptTargetoptionByTargetoptionid" parameterType="String" |
| | |
| | | resultMap="IvrLibaTargetAssortResult"> |
| | | <include refid="selectIvrLibaTargetAssortVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="indexAssortName != null and indexAssortName != ''">and index_assort_name like concat('%', |
| | | #{indexAssortName}, '%') |
| | | </if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | and del_flag=0 |
| | | |
| | | order by seqno asc |
| | | </select> |
| | | |
| | |
| | | resultMap="IvrLibaTargetResult"> |
| | | <include refid="selectIvrLibaTargetVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag =0 |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if> |
| | |
| | | <if test="suitWay != null and suitWay != ''">and suitWay like concat('%', #{suitWay}, '%')</if> |
| | | <if test="parameter != null and parameter != ''">and parameter = #{parameter}</if> |
| | | <if test="optionDesc != null and optionDesc != ''">and option_desc = #{optionDesc}</if> |
| | | |
| | | |
| | | order by update_time desc |
| | | </select> |
| | | |
| | |
| | | LEFT JOIN ivr_liba_targetoption b |
| | | on a.id = b.targetid |
| | | WHERE 1=1 |
| | | |
| | | AND a.del_flag != 1 and b.del_flag != 1 |
| | | <if test="groupid != null and groupid != ''">and a.groupid = #{groupid}</if> |
| | | <if test="targettype != null and targettype != ''">and a.targettype = #{targettype}</if> |
| | |
| | | <if test="suitWay != null and suitWay != ''">a.suitWay like concat('%', #{suitWay}, '%')</if> |
| | | <if test="parameter != null and parameter != ''">a.parameter = #{parameter}</if> |
| | | <if test="optionDesc != null and optionDesc != ''">a.option_desc = #{optionDesc}</if> |
| | | |
| | | |
| | | ORDER BY a.targetID |
| | | </select> |
| | | |
| | |
| | | resultMap="IvrLibaTargetTagResult"> |
| | | <include refid="selectIvrLibaTargetTagVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagid != null ">and tagid = #{tagid}</if> |
| | |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="tagname != null ">and tagname = #{tagname}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTargetTagById" parameterType="Long" resultMap="IvrLibaTargetTagResult"> |
| | |
| | | resultMap="IvrLibaTargetoptionResult"> |
| | | <include refid="selectIvrLibaTargetoptionVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag != 1 |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%', #{categoryName},'%') |
| | | </if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="targetregex != null and targetregex != ''">and targetregex = #{targetregex}</if> |
| | |
| | | <if test="appenddesc != null">and appenddesc = #{appenddesc}</if> |
| | | <if test="picturePath != null">and picture_path = #{picturePath}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</if> |
| | | |
| | | order by guid asc |
| | | </select> |
| | | |
| | |
| | | resultMap="IvrLibaTemplateAssortResult"> |
| | | <include refid="selectIvrLibaTemplateAssortVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | AND del_flag=0 |
| | | <if test="indexAssortName != null and indexAssortName != ''">and index_assort_name like concat('%', |
| | | #{indexAssortName}, '%') |
| | | </if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | |
| | | order by seqno asc |
| | | </select> |
| | | |
| | |
| | | resultMap="IvrLibaTemplateResult"> |
| | | <include refid="selectIvrLibaTemplateVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="templateName != null and templateName != ''">and templateName like concat('%', #{templateName}, |
| | | AND '%') |
| | | <if test="templateName != null and templateName != ''"> |
| | | and templateName like concat('%', #{templateName},'%') |
| | | </if> |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="sendDay != null ">and send_day = #{sendDay}</if> |
| | |
| | | <if test="noVoiceNum != null and noVoiceNum > 0">and no_voice_num = #{noVoiceNum}</if> |
| | | <if test="silencetime != null">and silencetime = #{silencetime}</if> |
| | | <if test="deptCode != null">and dept_code = #{deptCode}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTemplateByID" parameterType="Long" resultMap="IvrLibaTemplateResult"> |
| | |
| | | resultMap="IvrLibaTemplateScriptResult"> |
| | | <include refid="selectIvrLibaTemplateScriptVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="scriptno != null ">and scriptno = #{scriptno}</if> |
| | | <if test="assortid != null ">and assortid = #{assortid}</if> |
| | |
| | | <if test="branchNextscriptno != null and branchNextscriptno != ''">and branch_nextscriptno = |
| | | #{branchNextscriptno} |
| | | </if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%',#{categoryName},'%') |
| | | </if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">and script_topic like concat('%', |
| | | #{scriptTopic}, |
| | | AND '%') |
| | | <if test="scriptTopic != null and scriptTopic != ''"> |
| | | and script_topic like concat('%',#{scriptTopic},'%') |
| | | </if> |
| | | <if test="playWavOnly != null ">and playWavOnly = #{playWavOnly}</if> |
| | | <if test="valueType != null ">and value_type = #{valueType}</if> |
| | |
| | | <if test="scriptType != null">and script_type = #{scriptType}</if> |
| | | <if test="sort != null">and sort = #{sort}</if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTemplateScriptByID" parameterType="Long" resultMap="IvrLibaTemplateScriptResult"> |
| | |
| | | resultMap="IvrLibaTemplateTagResult"> |
| | | <include refid="selectIvrLibaTemplateTagVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTemplateTagById" parameterType="Long" resultMap="IvrLibaTemplateTagResult"> |
| | |
| | | resultMap="IvrLibaTemplateTargetoptionResult"> |
| | | <include refid="selectIvrLibaTemplateTargetoptionVo"/> |
| | | WHERE 1=1 |
| | | |
| | | AND del_flag=0 |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</if> |
| | |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%', #{categoryName},'%') |
| | | </if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="targetregex != null and targetregex != ''">and targetregex = #{targetregex}</if> |
| | |
| | | <if test="optionNo != null">and option_no = #{optionNo}</if> |
| | | <if test="sendTaskid != null">and send_taskid= #{sendTaskid}</if> |
| | | <if test="sendTaskname != null">and send_taskname = #{sendTaskname}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaTemplateTargetoptionById" parameterType="Long" |
| | |
| | | <select id="selectIvrSceneExecuteconfigList" parameterType="IvrSceneExecuteconfig" resultMap="IvrSceneExecuteconfigResult"> |
| | | <include refid="selectIvrSceneExecuteconfigVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="sourcetype != null "> and sourcetype = #{sourcetype}</if> |
| | | <if test="globalid != null "> and globalid = #{globalid}</if> |
| | |
| | | <if test="executeconditionscode != null and executeconditionscode != ''"> and executeconditionscode = #{executeconditionscode}</if> |
| | | <if test="executeresultcode != null and executeresultcode != ''"> and executeresultcode = #{executeresultcode}</if> |
| | | <if test="flownodeid != null "> and flownodeid = #{flownodeid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrSceneExecuteconfigByScenecfgid" parameterType="Long" resultMap="IvrSceneExecuteconfigResult"> |
| | |
| | | <select id="selectIvrSceneFlowList" parameterType="IvrSceneFlow" resultMap="IvrSceneFlowResult"> |
| | | <include refid="selectIvrSceneFlowVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | |
| | | <if test="sort != null "> and sort = #{sort}</if> |
| | | <if test="startnode != null "> and startnode = #{startnode}</if> |
| | | <if test="oldid != null "> and oldid = #{oldid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrSceneFlowByFlowid" parameterType="Long" resultMap="IvrSceneFlowResult"> |
| | |
| | | <select id="selectIvrSceneFlownodeList" parameterType="IvrSceneFlownode" resultMap="IvrSceneFlownodeResult"> |
| | | <include refid="selectIvrSceneFlownodeVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | |
| | | <if test="flowcode != null and flowcode != ''"> and flowcode = #{flowcode}</if> |
| | | <if test="targetid != null "> and targetid = #{targetid}</if> |
| | | <if test="oldid != null "> and oldid = #{oldid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrSceneFlownodeByFlownodeid" parameterType="Long" resultMap="IvrSceneFlownodeResult"> |
| | |
| | | <select id="selectIvrSceneFlownodebranchList" parameterType="IvrSceneFlownodebranch" resultMap="IvrSceneFlownodebranchResult"> |
| | | <include refid="selectIvrSceneFlownodebranchVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | |
| | | <if test="nodetype != null "> and nodetype = #{nodetype}</if> |
| | | <if test="targetid != null "> and targetid = #{targetid}</if> |
| | | <if test="oldid != null "> and oldid = #{oldid}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrSceneFlownodebranchByBranchid" parameterType="Long" resultMap="IvrSceneFlownodebranchResult"> |
| | |
| | | <select id="selectIvrSceneGlobalconfigList" parameterType="IvrSceneGlobalconfig" resultMap="IvrSceneGlobalconfigResult"> |
| | | <include refid="selectIvrSceneGlobalconfigVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="sceneid != null "> and sceneid = #{sceneid}</if> |
| | | <if test="configname != null and configname != ''"> and configname like concat('%', #{configname}, '%')</if> |
| | | <if test="description != null and description != ''"> and description = #{description}</if> |
| | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrSceneGlobalconfigByGblconfigid" parameterType="Long" resultMap="IvrSceneGlobalconfigResult"> |
| | |
| | | <select id="selectIvrSceneIntentList" parameterType="IvrSceneIntent" resultMap="IvrSceneIntentResult"> |
| | | <include refid="selectIvrSceneIntentVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="sourcetype != null ">and sourcetype = #{sourcetype}</if> |
| | | <if test="gbiconfigid != null ">and gbiconfigid = #{gbiconfigid}</if> |
| | |
| | | <if test="conditionstype != null ">and conditionstype = #{conditionstype}</if> |
| | | <if test="verifyrule != null and verifyrule != ''">and verifyrule = #{verifyrule}</if> |
| | | <if test="orand != null ">and orand = #{orand}</if> |
| | | <if test="parentresultconditionsid != null and parentresultconditionsid != ''">and parentresultconditionsid |
| | | AND = #{parentresultconditionsid} |
| | | <if test="parentresultconditionsid != null and parentresultconditionsid != ''"> |
| | | and parentresultconditionsid = #{parentresultconditionsid} |
| | | </if> |
| | | <if test="groupnumber != null ">and groupnumber = #{groupnumber}</if> |
| | | <if test="grouporand != null ">and grouporand = #{grouporand}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrSceneIntentBySceneintentid" parameterType="Long" resultMap="IvrSceneIntentResult"> |
| | |
| | | <select id="selectIvrSceneList" parameterType="IvrScene" resultMap="IvrSceneResult"> |
| | | <include refid="selectIvrSceneVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="categoryid != null and categoryid != ''"> and categoryid = #{categoryid}</if> |
| | | <if test="scenename != null and scenename != ''"> and scenename like concat('%', #{scenename}, '%')</if> |
| | |
| | | <select id="selectIvrSceneRecallList" parameterType="IvrSceneRecall" resultMap="IvrSceneRecallResult"> |
| | | <include refid="selectIvrSceneRecallVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="sceneid != null "> and sceneid = #{sceneid}</if> |
| | |
| | | <select id="selectIvrSceneScriptList" parameterType="IvrSceneScript" resultMap="IvrSceneScriptResult"> |
| | | <include refid="selectIvrSceneScriptVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="sourcetype != null "> and sourcetype = #{sourcetype}</if> |
| | |
| | | <select id="selectIvrSceneScriptmodelList" parameterType="IvrSceneScriptmodel" resultMap="IvrSceneScriptmodelResult"> |
| | | <include refid="selectIvrSceneScriptmodelVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="scenescrid != null "> and scenescrid = #{scenescrid}</if> |
| | |
| | | <select id="selectIvrScenecategoryList" parameterType="IvrScenecategory" resultMap="IvrScenecategoryResult"> |
| | | <include refid="selectIvrScenecategoryVo"/> |
| | | WHERE 1=1 |
| | | |
| | | <if test="categoryname != null and categoryname != ''"> and categoryname like concat('%', #{categoryname}, '%')</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectIvrScenecategoryByScenecatid" parameterType="Long" resultMap="IvrScenecategoryResult"> |
| | |
| | | resultMap="IvrTaskTemplateResult"> |
| | | <include refid="selectIvrTaskTemplateVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | |
| | | <if test="taskname != null and taskname != ''">and taskname like concat('%', #{taskname}, '%')</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="templateName != null and templateName != ''">and templateName like concat('%', #{templateName}, |
| | | AND '%') |
| | | <if test="templateName != null and templateName != ''"> |
| | | and templateName like concat('%', #{templateName},'%') |
| | | </if> |
| | | <if test="silencetime != null ">and silencetime = #{silencetime}</if> |
| | | <if test="recallcount != null ">and recallcount = #{recallcount}</if> |
| | |
| | | resultMap="IvrTaskTemplateScriptResult"> |
| | | <include refid="selectIvrTaskTemplateScriptVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | |
| | | <if test="submoduleVoice != null and submoduleVoice != ''">and submoduleVoice = #{submoduleVoice}</if> |
| | | <if test="noClearlyText != null and noClearlyText != ''">and noClearlyText = #{noClearlyText}</if> |
| | | <if test="noClearlyVoice != null and noClearlyVoice != ''">and noClearlyVoice = #{noClearlyVoice}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%', #{categoryName},'%') |
| | | </if> |
| | | <if test="targetOptions != null and targetOptions != ''">and targetOptions = #{targetOptions}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | |
| | | resultMap="IvrTaskTemplateTargetoptionResult"> |
| | | <include refid="selectIvrTaskTemplateTargetoptionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</if> |
| | |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%', #{categoryName},'%') |
| | | </if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="targetregex2 != null and targetregex2 != ''">and targetregex2 = #{targetregex2}</if> |
| | |
| | | resultMap="IvrTaskVisitResultResult"> |
| | | <include refid="selectIvrTaskVisitResultVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="sendname != null and sendname != ''">and sendname like concat('%', #{sendname}, '%')</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | |
| | | <if test="type != null and type != ''">and type = #{type}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | AND '%') |
| | | <if test="templatename != null and templatename != ''"> |
| | | and templatename like concat('%', #{templatename},'%') |
| | | </if> |
| | | <if test="senddate != null ">and senddate = #{senddate}</if> |
| | | <if test="userid != null and userid != ''">and userid = #{userid}</if> |
| | |
| | | resultMap="IvrTaskcallrecordResult"> |
| | | <include refid="selectIvrTaskcallrecordVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="displayno != null and displayno != ''">and displayno = #{displayno}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | |
| | | <select id="selectIvrTasksmsList" parameterType="com.smartor.domain.IvrTasksms" resultMap="IvrTasksmsResult"> |
| | | <include refid="selectIvrTasksmsVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="type != null ">and type = #{type}</if> |
| | |
| | | <select id="selectMedicalHistoryList" parameterType="com.smartor.domain.MedicalHistory" resultMap="MedicalHistoryResult"> |
| | | <include refid="selectMedicalHistoryVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="pastIllnesses != null and pastIllnesses != ''"> and past_illnesses = #{pastIllnesses}</if> |
| | | <if test="drugAllergy != null and drugAllergy != ''"> and drug_allergy = #{drugAllergy}</if> |
| | |
| | | <select id="selectMinioFileList" parameterType="com.smartor.domain.MinioFile" resultMap="MinioFileResult"> |
| | | <include refid="selectMinioFileVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="originalFileName != null and originalFileName != ''">and original_file_name like concat('%', |
| | | #{originalFileName}, '%') |
| | | </if> |
| | | <if test="fileExtName != null and fileExtName != ''">and file_ext_name like concat('%', #{fileExtName}, |
| | | AND '%') |
| | | <if test="fileExtName != null and fileExtName != ''"> |
| | | and file_ext_name like concat('%', #{fileExtName},'%') |
| | | </if> |
| | | <if test="fileSize != null ">and file_size = #{fileSize}</if> |
| | | <if test="orgid != null ">and orgid = #{orgid}</if> |
| | |
| | | resultMap="PatArchiveImportResult"> |
| | | <include refid="selectPatArchiveImportVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="patientno != null and patientno != ''"> |
| | |
| | | <select id="selectPatArchiveList" parameterType="com.smartor.domain.PatArchive" resultMap="PatArchiveResult"> |
| | | <include refid="selectPatArchiveVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | |
| | | a.case_person_age |
| | | from pat_archive a,pat_archivetag b ,base_tag c |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND a.del_flag=0 and |
| | | AND a.id = b.patid and b.tagid = c.tagid |
| | |
| | | pat_archive a |
| | | LEFT JOIN pat_archivetag b ON a.id = b.patid AND b.del_flag = 0 |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND a.del_flag = 0 |
| | | and a.orgid = #{orgid} |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | ) t ON t.patid = |
| | | d.patid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND d.del_flag != 1 |
| | | AND a.del_flag != 1 |
| | |
| | | resultMap="PatArchiveOutResult"> |
| | | <include refid="selectPatArchiveOutVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="patientno != null and patientno != ''">and patientno = #{patientno}</if> |
| | | <if test="pattype != null and pattype != ''">and pattype = #{pattype}</if> |
| | |
| | | from ( |
| | | SELECT "住院" as name1, count(1) as count FROM `pat_med_inhosp` |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 and endtime = null |
| | | <if test="deptIds != null ">and deptId in |
| | |
| | | union |
| | | select "出院" name1, count(1) as count FROM `pat_med_inhosp` |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 and endtime != null |
| | | <if test="deptIds != null ">and deptId in |
| | |
| | | resultMap="PatArchivecontactResult"> |
| | | <include refid="selectPatArchivecontactVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="contactname != null and contactname != ''">and contactname like concat('%', #{contactname}, |
| | | AND '%') |
| | | <if test="contactname != null and contactname != ''"> |
| | | and contactname like concat('%', #{contactname},'%') |
| | | </if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | |
| | | b.tagname |
| | | from pat_archivetag a ,base_tag b |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND a.tagid=b.tagid |
| | | <if test="tagcategoryid != null ">and a.tagcategoryid = #{tagcategoryid}</if> |
| | |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | </trim> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="tagid != null">and tagid = #{tagid}</if> |
| | | <if test="patid != null">and patid = #{patid}</if> |
| | |
| | | <select id="selectPatFilterlistList" parameterType="com.smartor.domain.PatFilterlist" resultMap="PatFilterlistResult"> |
| | | <include refid="selectPatFilterlistVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="patid != null "> and patid = #{patid}</if> |
| | | <if test="filtertype != null and filtertype != ''"> and filtertype = #{filtertype}</if> |
| | |
| | | resultMap="PatTaskRelevanceResult"> |
| | | <include refid="selectPatTaskRelevanceVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="patid != null ">and pat_id = #{patid}</if> |
| | |
| | | resultMap="PatMedBloodsugarResult"> |
| | | <include refid="selectPatMedBloodsugarVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="serialnum != null and serialnum != ''">and serialnum = #{serialnum}</if> |
| | | <if test="recordtime != null ">and recordtime = #{recordtime}</if> |
| | |
| | | <select id="selectPatMedDrugList" parameterType="com.smartor.domain.PatMedDrug" resultMap="PatMedDrugResult"> |
| | | <include refid="selectPatMedDrugVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="serialnum != null and serialnum != ''">and serialnum = #{serialnum}</if> |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | |
| | | resultMap="PatMedHypertensionResult"> |
| | | <include refid="selectPatMedHypertensionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="serialnum != null and serialnum != ''">and serialnum = #{serialnum}</if> |
| | | <if test="recordtime != null ">and recordtime = #{recordtime}</if> |
| | |
| | | LEFT JOIN |
| | | pat_archivetag c ON c.patid = a.id AND (c.del_flag = 0 OR c.del_flag IS NULL) |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND a.del_flag = 0 |
| | | AND b.del_flag = 0 |
| | |
| | | <if test="endInHospTime != null ">and date_format(b.starttime,'%y%m%d') <= |
| | | AND date_format(#{endInHospTime},'%y%m%d') |
| | | </if> |
| | | <if test="hospitalname != null and hospitalname != ''">and hospitalname like concat('%', #{hospitalname}, |
| | | AND '%') |
| | | <if test="hospitalname != null and hospitalname != ''"> |
| | | and hospitalname like concat('%', #{hospitalname},'%') |
| | | </if> |
| | | <if test="patname != null and patname != ''">and patname like concat('%', #{patname}, '%')</if> |
| | | <if test="hospitaldistrictname != null and hospitaldistrictname != ''">and hospitaldistrictname like |
| | | AND concat('%', #{hospitaldistrictname}, '%') |
| | | <if test="hospitaldistrictname != null and hospitaldistrictname != ''"> |
| | | and hospitaldistrictname like concat('%', #{hospitaldistrictname}, '%') |
| | | </if> |
| | | <if test="endtime != null ">and b.endtime = #{endtime}</if> |
| | | <if test="managementDoctor != null ">and b.management_doctor = #{managementDoctor}</if> |
| | |
| | | pat_med_inhosp b |
| | | |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="serialnum != null ">and b.serialnum = #{serialnum}</if> |
| | | |
| | |
| | | pat_med_inhosp b, |
| | | pat_archive a |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND a.del_flag=0 |
| | | and b.del_flag=0 |
| | | and a.id = b.patid |
| | | AND a.idcardno != '' |
| | | <if test="hospitalname != null and hospitalname != ''">and hospitalname like concat('%', #{hospitalname}, |
| | | AND '%') |
| | | <if test="hospitalname != null and hospitalname != ''"> |
| | | and hospitalname like concat('%', #{hospitalname},'%') |
| | | </if> |
| | | <if test="managementDoctor != null ">and b.management_doctor = #{managementDoctor}</if> |
| | | <if test="managementDoctorCode != null ">and b.management_doctor_code = #{managementDoctorCode}</if> |
| | | <if test="patname != null and patname != ''">and patname like concat('%', #{patname}, '%')</if> |
| | | <if test="hospitaldistrictname != null and hospitaldistrictname != ''">and hospitaldistrictname like |
| | | AND concat('%', #{hospitaldistrictname}, '%') |
| | | <if test="hospitaldistrictname != null and hospitaldistrictname != ''"> |
| | | and hospitaldistrictname like concat('%', #{hospitaldistrictname}, '%') |
| | | </if> |
| | | <if test="endtime != null ">and b.endtime = #{endtime}</if> |
| | | <if test="serialnum != null ">and b.serialnum = #{serialnum}</if> |
| | |
| | | SELECT deptname |
| | | FROM pat_med_outhosp |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="deptcodeList != null and deptcodeList.size() > 0"> |
| | |
| | | SELECT deptname |
| | | FROM pat_med_inhosp |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | and inhospstate=0 |
| | |
| | | SELECT deptname |
| | | FROM pat_med_inhosp |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | and inhospstate=1 |
| | |
| | | SELECT deptname |
| | | FROM pat_med_inhosp |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | and inhospstate=1 |
| | |
| | | FROM |
| | | pat_med_inhosp |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="orgid != null"> |
| | |
| | | FROM |
| | | service_subtask |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 |
| | | and service_type=2 |
| | |
| | | FROM |
| | | service_subtask |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 |
| | | and service_type=2 |
| | |
| | | FROM |
| | | service_subtask |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 |
| | | and service_type=2 |
| | |
| | | FROM |
| | | service_subtask |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 |
| | | and service_type=13 |
| | |
| | | resultMap="PatMedInspectionItemResult"> |
| | | <include refid="selectPatMedInspectionItemVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="inspectionid != null and inspectionid != ''">and inspectionid = #{inspectionid}</if> |
| | | <if test="inspectionName != null and inspectionName != ''">and inspection_name = #{inspectionName}</if> |
| | |
| | | resultMap="PatMedInspectionResult"> |
| | | <include refid="selectPatMedInspectionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="projecttype != null">and projecttype = #{projecttype}</if> |
| | | <if test="inhospno != null">and inhospno = #{inhospno}</if> |
| | |
| | | resultMap="PatMedOperationItemResult"> |
| | | <include refid="selectPatMedOperationItemVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="operationid != null "> |
| | | and operationid = #{operationid} |
| | |
| | | resultMap="PatMedOperationResult"> |
| | | <include refid="selectPatMedOperationVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag='0' |
| | | <if test="patid != null "> |
| | |
| | | pmo.mainsuit |
| | | from pat_med_outhosp pmo |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND pmo.del_flag=0 |
| | | <if test="orgid != null ">and pmo.orgid = #{orgid}</if> |
| | |
| | | <if test="serverState != null ">and pmo.server_state = #{serverState}</if> |
| | | <if test="hospitalname != null and hospitalname != ''">and pmo.hospitalname like concat('%', |
| | | #{hospitalname}, |
| | | AND '%') |
| | | '%') |
| | | </if> |
| | | <if test="deptcodes != null and deptcodes.size()>0"> |
| | | AND pmo.deptcode IN |
| | | <foreach collection="deptcodes" item="deptcode" open="(" separator="," |
| | | AND close=")"> |
| | | <foreach collection="deptcodes" item="deptcode" open="(" separator="," close=")"> |
| | | #{deptcode} |
| | | </foreach> |
| | | </if> |
| | |
| | | FROM |
| | | pat_med_outhosp |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="orgid != null"> |
| | |
| | | FROM |
| | | service_subtask |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 |
| | | and service_type=3 |
| | |
| | | SELECT deptname, COUNT(1) AS rc |
| | | FROM pat_med_outhosp |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="inhospstate != null"> |
| | |
| | | resultMap="PatMedOuthospProvisionalResult"> |
| | | <include refid="selectPatMedOuthospProvisionalVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="outhospno != null and outhospno != ''"> |
| | |
| | | <select id="selectPatMedPhysicalList" parameterType="com.smartor.domain.PatMedPhysical" resultMap="PatMedPhysicalResult"> |
| | | <include refid="selectPatMedPhysicalVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="hospitalname != null and hospitalname != ''"> and hospitalname like concat('%', #{hospitalname}, '%')</if> |
| | | <if test="physicaldate != null "> and physicaldate = #{physicaldate}</if> |
| | |
| | | resultMap="PatMedRegistrationResult"> |
| | | <include refid="selectPatMedRegistrationVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="serialnum != null and serialnum != ''">and serialnum = #{serialnum}</if> |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | | <if test="hospitalname != null and hospitalname != ''">and hospitalname like concat('%', #{hospitalname}, |
| | | AND '%') |
| | | <if test="hospitalname != null and hospitalname != ''"> |
| | | and hospitalname like concat('%', #{hospitalname},'%') |
| | | </if> |
| | | <if test="hospitalcode != null and hospitalcode != ''">and hospitalcode = #{hospitalcode}</if> |
| | | <if test="deptcode != null and deptcode != ''">and deptcode = #{deptcode}</if> |
| | |
| | | <select id="selectPatMedWeightList" parameterType="com.smartor.domain.PatMedWeight" resultMap="PatMedWeightResult"> |
| | | <include refid="selectPatMedWeightVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="serialnum != null and serialnum != ''"> and serialnum = #{serialnum}</if> |
| | | <if test="fatweight != null "> and fatweight = #{fatweight}</if> |
| | |
| | | resultMap="PatSatisfactionResult"> |
| | | <include refid="selectPatSatisfactionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="patName != null and patName != ''"> |
| | |
| | | resultMap="PatSpeciallistCategoryResult"> |
| | | <include refid="selectPatSpeciallistCategoryVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | | <if test="seqno != null ">and seqno = #{seqno}</if> |
| | |
| | | <select id="selectPatSpeciallistList" parameterType="com.smartor.domain.PatSpeciallist" resultMap="PatSpeciallistResult"> |
| | | <include refid="selectPatSpeciallistVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="patid != null "> and patid = #{patid}</if> |
| | | <if test="sdtype != null and sdtype != ''"> and sdtype = #{sdtype}</if> |
| | |
| | | <select id="selectPatWildcardList" parameterType="com.smartor.domain.PatWildcard" resultMap="PatWildcardResult"> |
| | | <include refid="selectPatWildcardVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="wildcard != null and wildcard != ''">and wildcard = #{wildcard}</if> |
| | | <if test="patField != null and patField != ''">and pat_field = #{patField}</if> |
| | |
| | | resultMap="SchemeAutofinshruleResult"> |
| | | <include refid="selectSchemeAutofinshruleVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="schemeid != null ">and schemeid = #{schemeid}</if> |
| | | <if test="ruletype != null ">and ruletype = #{ruletype}</if> |
| | |
| | | <select id="selectSchemeCategoryList" parameterType="SchemeCategory" resultMap="SchemeCategoryResult"> |
| | | <include refid="selectSchemeCategoryVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="categoryname != null and categoryname != ''"> and categoryname like concat('%', #{categoryname}, '%')</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | |
| | | <select id="selectSchemeLocallibraryList" parameterType="SchemeLocallibrary" resultMap="SchemeLocallibraryResult"> |
| | | <include refid="selectSchemeLocallibraryVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="schemecategoryid != null "> and schemecategoryid = #{schemecategoryid}</if> |
| | | <if test="schemename != null and schemename != ''"> and schemename like concat('%', #{schemename}, '%')</if> |
| | |
| | | <select id="selectSchemePlanList" parameterType="SchemePlan" resultMap="SchemePlanResult"> |
| | | <include refid="selectSchemePlanVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="schemeid != null "> and schemeid = #{schemeid}</if> |
| | | <if test="schemecode != null and schemecode != ''"> and schemecode = #{schemecode}</if> |
| | |
| | | <select id="selectSchemeTaskList" parameterType="SchemeTask" resultMap="SchemeTaskResult"> |
| | | <include refid="selectSchemeTaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="schemeid != null "> and schemeid = #{schemeid}</if> |
| | | <if test="schemeplanid != null "> and schemeplanid = #{schemeplanid}</if> |
| | |
| | | <select id="selectSchemeTaskconfigList" parameterType="SchemeTaskconfig" resultMap="SchemeTaskconfigResult"> |
| | | <include refid="selectSchemeTaskconfigVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="schemeid != null "> and schemeid = #{schemeid}</if> |
| | | <if test="triggersceneid != null "> and triggersceneid = #{triggersceneid}</if> |
| | |
| | | <select id="selectSchemeTaskrecordCalldetailList" parameterType="SchemeTaskrecordCalldetail" resultMap="SchemeTaskrecordCalldetailResult"> |
| | | <include refid="selectSchemeTaskrecordCalldetailVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="uuid != null and uuid != ''"> and uuid = #{uuid}</if> |
| | | <if test="phone != null and phone != ''"> and phone = #{phone}</if> |
| | |
| | | <select id="selectSchemeTaskrecordList" parameterType="SchemeTaskrecord" resultMap="SchemeTaskrecordResult"> |
| | | <include refid="selectSchemeTaskrecordVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="recordtype != null "> and recordtype = #{recordtype}</if> |
| | | <if test="taskid != null "> and taskid = #{taskid}</if> |
| | |
| | | <select id="selectSchemeTaskrepeatconfigList" parameterType="SchemeTaskrepeatconfig" resultMap="SchemeTaskrepeatconfigResult"> |
| | | <include refid="selectSchemeTaskrepeatconfigVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="schemeid != null "> and schemeid = #{schemeid}</if> |
| | | <if test="triggersceneid != null "> and triggersceneid = #{triggersceneid}</if> |
| | |
| | | <select id="selectSchemeTriggerruleList" parameterType="SchemeTriggerrule" resultMap="SchemeTriggerruleResult"> |
| | | <include refid="selectSchemeTriggerruleVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="conditionstype != null ">and conditionstype = #{conditionstype}</if> |
| | | <if test="orand != null ">and orand = #{orand}</if> |
| | |
| | | <select id="selectSchemeTriggersceneList" parameterType="SchemeTriggerscene" resultMap="SchemeTriggersceneResult"> |
| | | <include refid="selectSchemeTriggersceneVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="schemeid != null ">and schemeid = #{schemeid}</if> |
| | | <if test="baselinetime != null ">and baselinetime = #{baselinetime}</if> |
| | |
| | | resultMap="ServiceCheckResult"> |
| | | <include refid="selectServiceCheckVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="deptCode != null and deptCode != ''"> |
| | |
| | | resultMap="ServiceOutPathResult"> |
| | | <include refid="selectServiceOutPathVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | and orgid is null |
| | |
| | | resultMap="ServicePatientTempResult"> |
| | | <include refid="selectServicePatientTempVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="userId != null "> |
| | | and user_id = #{userId} |
| | |
| | | resultMap="ServiceSubtaskAnswerResult"> |
| | | <include refid="selectServiceSubtaskAnswerVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="patId != null ">and pat_id = #{patId}</if> |
| | |
| | | resultMap="ServiceSubtaskDetailResult"> |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="subId != null">and sub_id = #{subId}</if> |
| | | <if test="targetid != null">and targetid = #{targetid}</if> |
| | |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="questiontext != null and questiontext != ''">and questiontext = #{questiontext}</if> |
| | | <if test="questionvoice != null and questionvoice != ''">and questionvoice = #{questionvoice}</if> |
| | | <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, |
| | | AND '%') |
| | | <if test="categoryname != null and categoryname != ''"> |
| | | and categoryname like concat('%', #{categoryname},'%') |
| | | </if> |
| | | <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | |
| | | |
| | | <include refid="selectServiceSubtaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | |
| | | resultMap="ServiceSubtaskResult"> |
| | | <include refid="selectServiceSubtaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | |
| | | resultMap="ServiceSubtaskResult"> |
| | | <include refid="selectServiceSubtaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="sendname != null and sendname != ''">and sendname like concat('%', #{sendname}, '%')</if> |
| | |
| | | <if test="type != null and type != ''">and type = #{type}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | AND '%') |
| | | <if test="templatename != null and templatename != ''"> |
| | | and templatename like concat('%', #{templatename},'%') |
| | | </if> |
| | | <if test="startOutHospTime != null"> |
| | | AND date_format(endtime,'%y%m%d') >= date_format(#{startOutHospTime},'%y%m%d') |
| | |
| | | resultMap="ServiceSubtaskResult"> |
| | | <include refid="selectServiceSubtaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="visitTime != null"> |
| | |
| | | resultMap="ServiceSubtaskResult"> |
| | | <include refid="selectServiceSubtaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | and del_flag=0 |
| | | <if test="createStartTime != null and createEndTime != null"> |
| | | and create_time BETWEEN #{createStartTime} AND #{createEndTime} |
| | |
| | | resultMap="ServiceSubtaskResult"> |
| | | <include refid="selectServiceSubtaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | AND del_flag=0 |
| | | and upid is not null |
| | | and visit_count > 1 |
| | |
| | | from service_task a |
| | | JOIN service_subtask b on a.taskid = b.taskid and a.pat_cycle = 0 and b.del_flag = 0 |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | AND b.taskid = #{taskid} |
| | | and b.patid = #{patid} |
| | | <if test="createTime != null and createTime != ''"> |
| | |
| | | resultMap="ServiceSubtaskResult"> |
| | | <include refid="selectServiceSubtaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND id in ( |
| | | AND SELECT id FROM |
| | |
| | | <if test="isabnormal != null">isabnormal=#{isabnormal},</if> |
| | | </trim> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | |
| | | resultMap="ServiceSubtaskResult"> |
| | | <include refid="selectServiceSubtaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0"> |
| | |
| | | FROM service_subtask_detail a |
| | | WHERE sub_id IN(SELECT id FROM service_subtask t |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0"> |
| | |
| | | SELECT targetname joyName, |
| | | (select COUNT(sub_id) FROM service_subtask_detail WHERE sub_id IN(SELECT id FROM service_subtask t |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0"> |
| | |
| | | ) AND targetid=a.id) joyCount , (SELECT COUNT(*) from (select sub_id FROM service_subtask_detail |
| | | WHERE sub_id IN(SELECT id FROM service_subtask t |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0">AND |
| | |
| | | FROM service_subtask_detail a |
| | | INNER JOIN service_subtask t ON a.sub_id = t.id |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND a.del_flag=0 |
| | | AND t.del_flag=0 |
| | |
| | | service_subtask_detail ssd |
| | | INNER JOIN service_subtask ss ON ssd.sub_id = ss.id |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND ss.del_flag=0 |
| | | AND IFNULL(ssd.matchedtext,ssd.asrtext) IS NOT NULL |
| | |
| | | SUM(CASE WHEN excep IS NOT NULL AND excep != '0' THEN 1 ELSE 0 END) AS yc |
| | | FROM service_subtask |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 |
| | | <if test="sendname != null and sendname != ''"> |
| | |
| | | resultMap="ServiceSubtaskPreachformResult"> |
| | | <include refid="selectServiceSubtaskPreachformVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | AND del_flag=0 |
| | | <if test="subid != null "> |
| | | and subid = #{subid} |
| | |
| | | </if> |
| | | </trim> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="subid != null">subid = |
| | | #{subid}, |
| | |
| | | resultMap="ServiceSubtaskRecordResult"> |
| | | <include refid="selectServiceSubtaskRecordVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="taskid != null and taskid != ''">and taskid = #{taskid}</if> |
| | | <if test="subtaskId != null ">and subtask_id = #{subtaskId}</if> |
| | |
| | | <select id="selectServiceTaskList" parameterType="com.smartor.domain.ServiceTask" resultMap="ServiceTaskResult"> |
| | | <include refid="selectServiceTaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="taskName != null and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if> |
| | | <if test="taskid != null">and taskid = #{taskid}</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">and send_time_slot like concat('%', #{sendTimeSlot}, |
| | | AND '%') |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''"> |
| | | and send_time_slot like concat('%', #{sendTimeSlot},'%') |
| | | </if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="longTask != null and longTask != ''">and long_task = #{longTask}</if> |
| | | <if test="serviceType != null and serviceType != ''">and service_type = #{serviceType}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | AND '%') |
| | | <if test="templatename != null and templatename != ''"> |
| | | and templatename like concat('%', #{templatename},'%') |
| | | </if> |
| | | <if test="labelinfo != null and labelinfo != ''">and labelinfo = #{labelinfo}</if> |
| | | <if test="count != null ">and count = #{count}</if> |
| | |
| | | service_task.nexttaskname, |
| | | service_task.orgid from service_task |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND service_task.del_flag=0 |
| | | <!-- and taskid in (--> |
| | | <!-- select task_id from service_taskdept--> |
| | | <!-- WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | --> |
| | | <!-- <if test="leaveldeptcodes != null and leaveldeptcodes.size()>0">--> |
| | | <!-- dept_code in--> |
| | |
| | | <!-- </if>--> |
| | | <!-- --> |
| | | <!-- )--> |
| | | <if test="taskName != null and taskName != ''">and service_task.task_name like concat('%', #{taskName}, |
| | | AND '%') |
| | | <if test="taskName != null and taskName != ''"> |
| | | and service_task.task_name like concat('%', #{taskName},'%') |
| | | </if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">and service_task.send_time_slot like concat('%', |
| | | #{sendTimeSlot}, |
| | | AND '%') |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''"> |
| | | and service_task.send_time_slot like concat('%',#{sendTimeSlot},'%') |
| | | </if> |
| | | <if test="templateid != null and templateid != ''">and service_task.templateid = #{templateid}</if> |
| | | <if test="longTask != null and longTask != ''">and service_task.long_task = #{longTask}</if> |
| | | <if test="serviceType != null and serviceType != ''">and service_task.service_type = #{serviceType}</if> |
| | | <if test="templatename != null and templatename != ''">and service_task.templatename like concat('%', |
| | | #{templatename}, |
| | | AND '%') |
| | | <if test="templatename != null and templatename != ''"> |
| | | and service_task.templatename like concat('%',#{templatename},'%') |
| | | </if> |
| | | <if test="labelinfo != null and labelinfo != ''">and service_task.labelinfo = #{labelinfo}</if> |
| | | <if test="count != null ">and service_task.count = #{count}</if> |
| | |
| | | <if test="sendDay != null ">and service_task.send_day = #{sendDay}</if> |
| | | <if test="type != null and type != ''">and service_task.type = #{type}</if> |
| | | <if test="typename != null and typename != ''">and service_task.typename like concat('%', #{typename}, |
| | | AND '%') |
| | | '%') |
| | | </if> |
| | | <if test="beginTime != null ">and date_format( service_task.update_time,'%y%m%d') >= |
| | | AND date_format(#{beginTime},'%y%m%d') |
| | |
| | | resultMap="ServiceTaskdeptResult"> |
| | | <include refid="selectServiceTaskdeptVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="taskId != null "> |
| | |
| | | </if> |
| | | </trim> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="id != null">and id = #{id}</if> |
| | | <if test="taskId != null">and task_id = #{taskId}</if> |
| | |
| | | update_time = sysdate() |
| | | </trim> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="id != null">and id = #{id}</if> |
| | | <if test="taskId != null">and task_id = #{taskId}</if> |
| | |
| | | resultMap="ServiceTaskdiagResult"> |
| | | <include refid="selectServiceTaskdiagVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="taskId != null "> |
| | |
| | | resultMap="ServiceTaskoperResult"> |
| | | <include refid="selectServiceTaskoperVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="taskId != null "> |
| | |
| | | resultMap="ServiceThirdDataResult"> |
| | | <include refid="selectServiceThirdDataVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="dataType != null and dataType != ''">and data_type = #{dataType}</if> |
| | | <if test="dataTypeExplain != null and dataTypeExplain != ''">and data_type_explain = #{dataTypeExplain} |
| | |
| | | <select id="selectSvyCategoryList" parameterType="com.smartor.domain.SvyCategory" resultMap="SvyCategoryResult"> |
| | | <include refid="selectSvyCategoryVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, |
| | | AND '%') |
| | | <if test="categoryname != null and categoryname != ''"> |
| | | and categoryname like concat('%', #{categoryname},'%') |
| | | </if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | |
| | |
| | | count(b.svyid) svyNum |
| | | from svy_category a,svy_lib_title b |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND a.id = b.categoryid |
| | | <if test="categoryname != null and categoryname != ''"> |
| | |
| | | <select id="selectSvyFinishList" parameterType="SvyFinish" resultMap="SvyFinishResult"> |
| | | <include refid="selectSvyFinishVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="svytitle != null and svytitle != ''"> and svytitle = #{svytitle}</if> |
| | | <if test="totalscore != null "> and totalscore = #{totalscore}</if> |
| | |
| | | <select id="selectSvyFinishoptionList" parameterType="SvyFinishoption" resultMap="SvyFinishoptionResult"> |
| | | <include refid="selectSvyFinishoptionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="psqoptionid != null "> and psqoptionid = #{psqoptionid}</if> |
| | | <if test="content != null and content != ''"> and content = #{content}</if> |
| | |
| | | <select id="selectSvyFinishtopicList" parameterType="SvyFinishtopic" resultMap="SvyFinishtopicResult"> |
| | | <include refid="selectSvyFinishtopicVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="topicid != null "> and topicid = #{topicid}</if> |
| | | <if test="score != null "> and score = #{score}</if> |
| | |
| | | <select id="selectSvyLibExceptionList" parameterType="SvyLibException" resultMap="SvyLibExceptionResult"> |
| | | <include refid="selectSvyLibExceptionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="oldid != null "> and oldid = #{oldid}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | |
| | | <select id="selectSvyLibResultList" parameterType="SvyLibResult" resultMap="SvyLibResultResult"> |
| | | <include refid="selectSvyLibResultVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="svyid != null "> and svyid = #{svyid}</if> |
| | | <if test="resultcontent != null and resultcontent != ''"> and resultcontent = #{resultcontent}</if> |
| | |
| | | <select id="selectSvyLibScriptList" parameterType="com.smartor.domain.SvyLibScript" resultMap="SvyLibScriptResult"> |
| | | <include refid="selectSvyLibScriptVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="id != null ">and id = #{id}</if> |
| | |
| | | resultMap="SvyLibScriptOptionResult"> |
| | | <include refid="selectSvyLibScriptOptionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="topicid != null ">and topicid = #{topicid}</if> |
| | |
| | | resultMap="SvyLibScriptTagResult"> |
| | | <include refid="selectSvyLibScriptTagVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag = 0 |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | |
| | | resultMap="SvyLibTemplateCategoryResult"> |
| | | <include refid="selectSvyLibTemplateCategoryVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | |
| | | icd10_association group by outid) b ON a.del_flag = 0 |
| | | AND a.svyid = b.outid |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND a.del_flag=0 |
| | | <if test="categoryid != null ">and a.categoryid = #{categoryid}</if> |
| | |
| | | resultMap="SvyLibTemplateScriptResult"> |
| | | <include refid="selectSvyLibTemplateScriptVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="nextScriptno != null ">and next_scriptno = #{nextScriptno}</if> |
| | |
| | | <select id="selectSvyLibTemplateScriptWjxList" parameterType="com.smartor.domain.SvyLibTemplateScriptWjx" resultMap="SvyLibTemplateScriptWjxResult"> |
| | | <include refid="selectSvyLibTemplateScriptWjxVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="oldid != null "> and oldid = #{oldid}</if> |
| | | <if test="svyid != null "> and svyid = #{svyid}</if> |
| | |
| | | resultMap="SvyLibTemplateTagResult"> |
| | | <include refid="selectSvyLibTemplateTagVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | |
| | | resultMap="SvyLibTemplateTargetoptionResult"> |
| | | <include refid="selectSvyLibTemplateTargetoptionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%', #{categoryName},'%') |
| | | </if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="prompt != null ">and prompt = #{prompt}</if> |
| | |
| | | resultMap="SvyLibTemplateTargetoptionWjxResult"> |
| | | <include refid="selectSvyLibTemplateTargetoptionWjxVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%', #{categoryName},'%') |
| | | </if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | |
| | | resultMap="SvyLibTemplateWjxResult"> |
| | | <include refid="selectSvyLibTemplateWjxVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | |
| | | resultMap="SvyLibScriptCategoryResult"> |
| | | <include refid="selectSvyLibScriptCategoryVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | |
| | | <select id="selectSvyLibTopicdirectionList" parameterType="com.smartor.domain.SvyLibTopicdirection" resultMap="SvyLibTopicdirectionResult"> |
| | | <include refid="selectSvyLibTopicdirectionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="topicid != null "> and topicid = #{topicid}</if> |
| | | <if test="transverse != null and transverse != ''"> and transverse = #{transverse}</if> |
| | |
| | | resultMap="SvyTaskAnswerResult"> |
| | | <include refid="selectSvyTaskAnswerVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="singleid != null ">and singleid = #{singleid}</if> |
| | |
| | | <select id="selectSvyTaskList" parameterType="com.smartor.domain.SvyTask" resultMap="SvyTaskResult"> |
| | | <include refid="selectSvyTaskVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="svrtaskid != null ">and svrtaskid = #{svrtaskid}</if> |
| | | <if test="taskName != null and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | AND '%') |
| | | <if test="templatename != null and templatename != ''"> |
| | | and templatename like concat('%', #{templatename},'%') |
| | | </if> |
| | | <if test="labelinfo != null and labelinfo != ''">and labelinfo = #{labelinfo}</if> |
| | | <if test="state != null ">and state = #{state}</if> |
| | |
| | | <if test="unexecuted != null ">and unexecuted = #{unexecuted}</if> |
| | | <if test="fail != null ">and fail = #{fail}</if> |
| | | <if test="patientid != null and patientid != ''">and patientid = #{patientid}</if> |
| | | <if test="patientname != null and patientname != ''">and patientname like concat('%', #{patientname}, |
| | | AND '%') |
| | | <if test="patientname != null and patientname != ''"> |
| | | and patientname like concat('%', #{patientname},'%') |
| | | </if> |
| | | <if test="addtime != null ">and addtime = #{addtime}</if> |
| | | <if test="checkuserid != null and checkuserid != ''">and checkuserid = #{checkuserid}</if> |
| | | <if test="checkusername != null and checkusername != ''">and checkusername like concat('%', |
| | | #{checkusername}, '%') |
| | | <if test="checkusername != null and checkusername != ''"> |
| | | and checkusername like concat('%',#{checkusername}, '%') |
| | | </if> |
| | | <if test="checktime != null ">and checktime = #{checktime}</if> |
| | | <if test="type != null and type != ''">and type = #{type}</if> |
| | |
| | | <if test="sendType != null ">and send_type = #{sendType}</if> |
| | | <if test="sendState != null and sendState != ''">and send_state = #{sendState}</if> |
| | | <if test="param != null and param != ''">and param = #{param}</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">and send_time_slot like concat('%', #{sendTimeSlot}, |
| | | AND '%') |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''"> |
| | | and send_time_slot like concat('%', #{sendTimeSlot},'%') |
| | | </if> |
| | | <if test="libtemplateid != null ">and libtemplateid = #{libtemplateid}</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">and libtemplatename = #{libtemplatename}</if> |
| | |
| | | <select id="selectSvyTaskScriptList" parameterType="com.smartor.domain.SvyTaskScript" resultMap="SvyTaskScriptResult"> |
| | | <include refid="selectSvyTaskScriptVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="scriptType != null "> and script_type = #{scriptType}</if> |
| | | <if test="scriptCode != null and scriptCode != ''"> and script_code = #{scriptCode}</if> |
| | |
| | | <select id="selectSvyTaskScriptoptionList" parameterType="com.smartor.domain.SvyTaskScriptoption" resultMap="SvyTaskScriptoptionResult"> |
| | | <include refid="selectSvyTaskScriptoptionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="taskScriptId != null "> and task_script_id = #{taskScriptId}</if> |
| | | <if test="svyid != null "> and svyid = #{svyid}</if> |
| | |
| | | resultMap="SvyTaskSingleResult"> |
| | | <include refid="selectSvyTaskSingleVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="sendname != null and sendname != ''">and sendname like concat('%', #{sendname}, '%')</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | |
| | | <if test="type != null and type != ''">and type = #{type}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | AND '%') |
| | | <if test="templatename != null and templatename != ''"> |
| | | and templatename like concat('%', #{templatename},'%') |
| | | </if> |
| | | <if test="senddate != null ">and senddate = #{senddate}</if> |
| | | <if test="sendlimitabegin != null and sendlimitabegin != ''">and sendlimitabegin = #{sendlimitabegin}</if> |
| | |
| | | resultMap="SvyTaskTemplateResult"> |
| | | <include refid="selectSvyTaskTemplateVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | |
| | | resultMap="SvyTaskTemplateScriptResult"> |
| | | <include refid="selectSvyTaskTemplateScriptVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="scriptDesc != null and scriptDesc != ''">and script_desc = #{scriptDesc}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%', #{categoryName},'%') |
| | | </if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | | <if test="isMust != null and isMust != ''">and is_must = #{isMust}</if> |
| | |
| | | resultMap="SvyTaskTemplateTargetoptionResult"> |
| | | <include refid="selectSvyTaskTemplateTargetoptionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | AND '%') |
| | | <if test="categoryName != null and categoryName != ''"> |
| | | and categoryName like concat('%', #{categoryName},'%') |
| | | </if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="targetregex2 != null and targetregex2 != ''">and targetregex2 = #{targetregex2}</if> |
| | |
| | | <select id="selectSvyTopicList" parameterType="com.smartor.domain.SvyTopic" resultMap="SvyTopicResult"> |
| | | <include refid="selectSvyTopicVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="topictype != null ">and topictype = #{topictype}</if> |
| | | <if test="topiccode != null and topiccode != ''">and topiccode = #{topiccode}</if> |
| | |
| | | resultMap="SvyTopicoptionResult"> |
| | | <include refid="selectSvyTopicoptionVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="topicid != null ">and topicid = #{topicid}</if> |
| | | <if test="svyid != null ">and svyid = #{svyid}</if> |
| | |
| | | resultMap="SysUserDeptResult"> |
| | | <include refid="selectSysUserDeptVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | AND del_flag=0 |
| | | and orgid=#{orgid} |
| | |
| | | resultMap="SysUserImportResult"> |
| | | <include refid="selectSysUserImportVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="subId != null "> |
| | | and sub_id = #{subId} |
| | |
| | | select user_id,role_id,guid,orgid |
| | | from sys_user_role |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | |
| | | <if test="roleId != null ">and role_id = #{roleId}</if> |
| | | <if test="userId != null ">and user_id = #{userId}</if> |
| | |
| | | resultMap="TemplateDeptResult"> |
| | | <include refid="selectTemplateDeptVo"/> |
| | | WHERE 1=1 |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | AND del_flag=0 |
| | | <if test="type != null "> |
| | | and type = #{type} |