basic.sql.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <das-client>
  3. <Sqls>
  4. <Sql name='test'><![CDATA[
  5. select 1
  6. ]]></Sql>
  7. <!-- 查询医生信息 -->
  8. <Sql name='query_doctor_old'><![CDATA[
  9. Select t3.* from(
  10. Select t2.*,rownum as row_num from(
  11. Select b.*,c.deptname from B_DOCTOR b left join B_DEPT c on b.deptcode = c.deptcode where 1=1 @p
  12. )t2 where rownum <=?
  13. ) t3
  14. where t3.row_num > ?
  15. ]]></Sql>
  16. <Sql name='query_doctor'><![CDATA[
  17. Select b.*,c.deptname from B_DOCTOR b left join B_DEPT c on b.deptcode = c.deptcode where 1=1 @p
  18. ]]></Sql>
  19. <!-- 查找科室信息不带分页的 -->
  20. <Sql name='queryDeptInfo'><![CDATA[
  21. Select * from B_DEPT where 1=1 and isshow =1 @p
  22. ]]></Sql>
  23. <Sql name='query_deptOld'><![CDATA[
  24. Select t3.* from(
  25. Select t2.*,rownum as row_num from(
  26. Select * from B_DEPT where 1=1 and isshow =1 @p
  27. )t2 where rownum <=?
  28. ) t3
  29. where t3.row_num > ?
  30. ]]></Sql>
  31. <Sql name='query_dept'><![CDATA[
  32. Select * from B_DEPT where 1=1 and isshow =1 @p
  33. ]]></Sql>
  34. <Sql name='query_hospital'><![CDATA[
  35. select b.* from B_HOSPITAL b where 1=1 @p
  36. ]]></Sql>
  37. <Sql name='queryClinicCard'><![CDATA[
  38. Select count(1) from H_ClinicCard where 1=1 @p
  39. ]]></Sql>
  40. <Sql name='countClinicCard'><![CDATA[
  41. select count(1) from C_CARDPACKAGE a,C_MEMBER b where 1=1 @p
  42. ]]></Sql>
  43. <!-- 查询诊室分布 -->
  44. <Sql name='queryFloorInfo_old'><![CDATA[
  45. select t3.*
  46. from (select t2.*, rownum as row_num
  47. from (Select b.deptName as name ,b.deptCode as code ,b.FloorNum as num, b.attachBuilding as buildingName from B_HOSPITAL a, B_DEPT b where 1=1 and a.hosId = b.hosId and
  48. a.hosId= ? and b.attachBuilding =? and b.isShow ='1' order by translate( SUBSTR(b.FloorNum,0,1),'一二三四五六七八九','123456789') ) t2
  49. where rownum <= ?) t3
  50. where t3.row_num > ?
  51. ]]></Sql>
  52. <Sql name='queryFloorInfo'><![CDATA[
  53. Select b.deptName as name ,b.deptCode as code ,b.FloorNum as num,
  54. case left(b.FloorNum,1) when '一' then 1 when '二' then 2 when '三' then 3 when '四' then 4 when '五' then 5
  55. when '六' then 6 when '七' then 7 when '八' then 8 when '九' then 9 else 0 end as fn ,
  56. b.attachBuilding as buildingName from B_HOSPITAL a, B_DEPT b where 1=1 and a.hosId = b.hosId and
  57. a.hosId= ? and b.attachBuilding =? and b.isShow ='1' order by fn ASC
  58. ]]></Sql>
  59. <!-- 查询就诊卡信处 -->
  60. <Sql name='queryClinlicCardByOpId_Old'><![CDATA[
  61. select t3.*
  62. from (select t2.*, rownum as row_num
  63. from (select a.memberName,f.cardId,f.cardType,id as memberId,(select df.value from DICTIONARY df
  64. where df.key = f.cardType and df.dictype = 'ctype' and rownum <=1 ) as cardName from C_MEMBER a ,(
  65. select id from (
  66. select c.memberId as id from C_WEIXIN c where c.opId = ?)) t, C_CARDPACKAGE f
  67. where a.memberId = t.id and f.memberId = a.memberId and a.status =1 @p) t2
  68. where rownum <= ?) t3
  69. where t3.row_num > ?
  70. ]]></Sql>
  71. <Sql name='queryClinlicCardByOpId'><![CDATA[
  72. select a.memberName,f.cardId,f.cardType,id as memberId,(select df.value from DICTIONARY df
  73. where df.keyword = f.cardType and df.dictype = 'ctype' limit 1 ) as cardName from C_MEMBER a ,(
  74. select id from (
  75. select c.memberId as id from C_WEIXIN c where c.opId = ?) x) t, C_CARDPACKAGE f
  76. where a.memberId = t.id and f.memberId = a.memberId and a.status =1 @p
  77. ]]></Sql>
  78. <Sql name='queryClinlicCardByOpIdWithBaidu_Old'><![CDATA[
  79. select t3.*
  80. from (select t2.*, rownum as row_num
  81. from (select a.memberName,f.cardId,f.cardType,id as memberId,(select df.value from DICTIONARY df
  82. where df.keyword = f.cardType and df.dictype = 'ctype' limit 1 ) as cardName from C_MEMBER a ,(
  83. select id from (
  84. select c.memberId as id from C_BAIDU c where c.opId = ?)) t, C_CARDPACKAGE f
  85. where a.memberId = t.id and f.memberId = a.memberId and a.status =1 @p) t2
  86. where rownum <= ?) t3
  87. where t3.row_num > ?
  88. ]]></Sql>
  89. <Sql name='queryClinlicCardByOpIdWithBaidu'><![CDATA[
  90. select a.memberName,f.cardId,f.cardType,id as memberId,(select df.value from DICTIONARY df
  91. where df.keyword = f.cardType and df.dictype = 'ctype' limit 1 ) as cardName from C_MEMBER a ,(
  92. select id from (
  93. select c.memberId as id from C_BAIDU c where c.opId = ?) x) t, C_CARDPACKAGE f
  94. where a.memberId = t.id and f.memberId = a.memberId and a.status =1 @p
  95. ]]></Sql>
  96. <Sql name='queryClinlicCardByOpIdWithZhiFu_Old'><![CDATA[
  97. select t3.*
  98. from (select t2.*, rownum as row_num
  99. from (select a.memberName,f.cardId,f.cardType,id as memberId,(select df.value from DICTIONARY df
  100. where df.keyword = f.cardType and df.dictype = 'ctype' and limit 1 ) as cardName from C_MEMBER a ,(
  101. select id from (
  102. select c.memberId as id from C_ZHIFUBAO c where c.OpId = ?)) t, C_CARDPACKAGE f
  103. where a.memberId = t.id and f.memberId = a.memberId and a.status =1 @p ) t2
  104. where rownum <= ?) t3
  105. where t3.row_num > ?
  106. ]]></Sql>
  107. <Sql name='queryClinlicCardByOpIdWithZhiFu'><![CDATA[
  108. select a.memberName,f.cardId,f.cardType,id as memberId,(select df.value from DICTIONARY df
  109. where df.keyword = f.cardType and df.dictype = 'ctype' limit 1 ) as cardName from C_MEMBER a ,(
  110. select id from (
  111. select c.memberId as id from C_ZHIFUBAO c where c.OpId = ?) x) t, C_CARDPACKAGE f
  112. where a.memberId = t.id and f.memberId = a.memberId and a.status =1 @p
  113. ]]></Sql>
  114. <!-- 查询就诊卡根据 OPID, -->
  115. <Sql name='queryClinicInfo'><![CDATA[
  116. Select * from H_CLINICCARD where 1=1 @p
  117. ]]></Sql>
  118. <Sql name='queryClinicWithWeiXin'><![CDATA[
  119. select a.cardId,a.balance,b.memberName,a.cardType,b.tel, b.idCard from C_CARDPACKAGE a inner join C_MEMBER b on a.memberid = b.memberid
  120. and b.status =1 and exists(select 1 from C_WEIXIN d where d.opId = ? and d.memberid = a.memberid and d.memberid =b.memberid) and a.memberId = ?
  121. ]]></Sql>
  122. <Sql name='queryClinicWithBaiDu'><![CDATA[
  123. select a.cardId,a.balance,b.memberName,a.cardType,b.tel, b.idCard from C_CARDPACKAGE a inner join C_MEMBER b on a.memberid = b.memberid
  124. and b.status =1 and exists(select 1 from C_BAIDU d where d.opId = ? and d.memberid = a.memberid and d.memberid =b.memberid) and a.memberId = ?
  125. ]]></Sql>
  126. <!-- 查询支付渠道信息 -->
  127. <Sql name='queryClinicWithZhiFu'><![CDATA[
  128. select a.cardId,a.balance,b.memberName,a.cardType,b.tel, b.idCard from C_CARDPACKAGE a inner join C_MEMBER b on a.memberid = b.memberid
  129. and b.status =1 and exists(select 1 from C_ZHIFUBAO d where d.opId = ? and d.memberid = a.memberid and d.memberid =b.memberid) and a.memberId = ?
  130. ]]></Sql>
  131. <Sql name='update_ClinicCard'><![CDATA[
  132. update C_MEMBER set status=? where memberId=?
  133. ]]></Sql>
  134. <!-- 通过上级科室编码查询科室信息 -->
  135. <Sql name='parentDeptIdQuery'><![CDATA[
  136. select t3.*
  137. from (select t2.*, rownum as row_num
  138. from (select b.deptcode,b.deptname,b.parentdeptcode ,b.deptBrief,b.deptAddr
  139. from B_DEPT b where b.hosId=? and b.parentdeptcode = ?) t2
  140. where rownum <= ?) t3
  141. where t3.row_num > ?
  142. ]]></Sql>
  143. <!-- 更新科室信息 -->
  144. <Sql name='updateDept'><![CDATA[
  145. update B_DEPT t set t.deptName=?,set t.deptAddr = ? ,t.deptBrief =? where t.deptCode = ?
  146. ]]></Sql>
  147. <!-- 查询所有医院信息 -->
  148. <Sql name='queryAllHosInfo'><![CDATA[
  149. select t3.*
  150. from (select t2.*, rownum as row_num
  151. from (select b.*
  152. from B_HOSPITAL b where 1=1 @p) t2
  153. where rownum <= ?) t3
  154. where t3.row_num > ?
  155. ]]></Sql>
  156. <!-- 查看医生信息有否存在 -->
  157. <Sql name='queryDoctorIsExists'><![CDATA[
  158. select count(1) from B_DOCTOR b where b.doctorCode=?
  159. ]]></Sql>
  160. <!-- 查看科室信息有否存在 -->
  161. <Sql name='queryDeptIsExists'><![CDATA[
  162. select count(1) from B_DEPT b where b.deptCode=?
  163. ]]>
  164. </Sql>
  165. <!-- 查询归属楼层信息 -->
  166. <Sql name='queryFloorDistribution'><![CDATA[
  167. select * from DICTIONARY t where 1=1 @p
  168. ]]>
  169. </Sql>
  170. <!-- 按标题查询文章列表 -->
  171. <Sql name='queryArticleByTitle'><![CDATA[
  172. select t3.*
  173. from (select t2.*, rownum as row_num
  174. from (select b.*
  175. from B_ARTICLE b where 1=1 @p) t2
  176. where rownum <= ? ) t3
  177. where t3.row_num > ? order by t3.createdate ]]>
  178. </Sql>
  179. <!-- 根据医生编码找出他的所有坐诊科室 -->
  180. <Sql name='queryAllDeptsByDocCode'><![CDATA[
  181. select b.deptname,b.deptcode
  182. from B_DOCTOR a inner join B_DEPT b on a.deptcode = b.deptcode and a.doctorcode=?
  183. ]]>
  184. </Sql>
  185. <!-- 通过HOSID查询医院是否存在 -->
  186. <Sql name='queryHospitalExistByHosId'><![CDATA[
  187. select count(1)
  188. from B_HOSPITAL a where a.hosId =?
  189. ]]>
  190. </Sql>
  191. <!-- 查询归属楼层图片信息 -->
  192. <Sql name='queryFloorDistributionPic'><![CDATA[
  193. select t.photourl from B_HOSPITAL t where t.hosid =?
  194. ]]>
  195. </Sql>
  196. <!-- 查询字典信息 -->
  197. <Sql name='queryDictionaryInfo'><![CDATA[
  198. select * from DICTIONARY t where 1=1 @p
  199. ]]>
  200. </Sql>
  201. <!-- 通过卡类型跟卡号的组合找出微信渠道信息 -->
  202. <Sql name='queryWeixinChannelInfoByCardInfo'><![CDATA[
  203. select a.opid,a.memberid
  204. from C_WEIXIN a ,C_MEMBER c where exists (select 1 from C_CARDPACKAGE t where 1=1 and a.memberid = t.memberid @p) and c.memberid = a.memberid and c.status =1 @a
  205. ]]>
  206. </Sql>
  207. <!-- 通过卡类型跟卡号的组合找出百度渠道信息 -->
  208. <Sql name='queryBaiDuChannelInfoByCardInfo'><![CDATA[
  209. select b.opid,b.memberid,c.tel from C_BAIDU b ,C_MEMBER c
  210. where exists (select 1 from C_CARDPACKAGE t where 1=1 and b.memberid = t.memberid @p) and c.memberid = b.memberid and c.status =1 @a
  211. ]]>
  212. </Sql>
  213. <!-- 通过卡类型跟卡号的组合找出支付宝渠道信息 -->
  214. <Sql name='queryAllChannelInfoByCardInfo'><![CDATA[
  215. select a.opid,a.memberid from C_WEIXIN a where exists (select 1 from C_CARDPACKAGE t where 1=1 and a.memberid = t.memberid @s)
  216. union all
  217. select b.opid,b.memberid from C_BAIDU b where exists (select 1 from C_CARDPACKAGE t where 1=1 and b.memberid = t.memberid @x)
  218. union all
  219. select c.opid,c.memberid from C_ZHIFUBAO c where exists (select 1 from C_CARDPACKAGE t where 1=1 and c.memberid = t.memberid @y)
  220. ]]>
  221. </Sql>
  222. <!-- 查询字典信息 -->
  223. <Sql name='queryZhiFuChannelInfoByCardInfo'><![CDATA[
  224. select b.opid,b.memberid from C_ZHIFUBAO b ,C_MEMBER c
  225. where exists (select 1 from C_CARDPACKAGE t where 1=1 and b.memberid = t.memberid @p) and c.memberid = b.memberid and c.status =1 @a
  226. ]]>
  227. </Sql>
  228. <Sql name='queryCardIdIsExists'><![CDATA[
  229. select count(1) from C_MEMBER a,C_CARDPACKAGE b where a.memberid=b.memberid and a.status =1 and b.cardid=?
  230. ]]>
  231. </Sql>
  232. <!-- 查询医生职称信息 -->
  233. <Sql name='queryTitleInfo_old'><![CDATA[
  234. select t3.*
  235. from (select t2.*, rownum as row_num
  236. from (select distinct(d.title) title ,d.titlecode from B_DOCTOR d where d.title in(
  237. select b.title
  238. from B_DOCTOR b
  239. where 1 = 1 @p
  240. )) t2
  241. where rownum <= ?) t3
  242. where t3.row_num > ?
  243. ]]>
  244. </Sql>
  245. <Sql name='queryTitleInfo'><![CDATA[
  246. select distinct(d.title) title ,d.titlecode from B_DOCTOR d where d.title in(
  247. select b.title
  248. from B_DOCTOR b
  249. where 1 = 1 @p)
  250. ]]>
  251. </Sql>
  252. <Sql name='delArticleInfo'><![CDATA[
  253. delete from B_ARTICLE where id = ?
  254. ]]>
  255. </Sql>
  256. <Sql name='queryChannelType'><![CDATA[
  257. select * from SYS_CHANNELINFO a where a.channelid = ?
  258. ]]>
  259. </Sql>
  260. <Sql name='queryCounts'><![CDATA[
  261. select count(1) from @p
  262. ]]>
  263. </Sql>
  264. <!-- 更新科室信息 -->
  265. <Sql name='updateDeptDetail'><![CDATA[
  266. update B_DEPT set @p
  267. ]]>
  268. </Sql>
  269. <Sql name='deleteDept'><![CDATA[
  270. delete from B_DEPT where 1=1 @a
  271. ]]></Sql>
  272. <Sql name='updateDoctor'><![CDATA[
  273. update B_DOCTOR set @p
  274. ]]>
  275. </Sql>
  276. <!-- 科室分级处理 // parentdeptcode='-1';-->
  277. <Sql name='deptLevelSql'><![CDATA[
  278. select b.deptcode,b.parentdeptcode,b.deptname from B_DEPT b connect by b.parentdeptcode = prior b.deptcode start with @p
  279. ]]>
  280. </Sql>
  281. <Sql name='findDeptLevel'><![CDATA[
  282. select distinct(b.parentdeptcode) pdc from B_DEPT b where b.parentdeptcode <> '-1'
  283. ]]>
  284. </Sql>
  285. <!-- 查找父节点为-1的所有科室 select b.deptcode,b.parentdeptcode,b.deptname from B_DEPT b where b.parentdeptcode = '-1' ORDER BY NLSSORT(b.deptname,'NLS_SORT = SCHINESE_PINYIN_M')-->
  286. <Sql name='findDeptRoot'><![CDATA[
  287. select b.deptcode,b.parentdeptcode,b.deptname from B_DEPT b where b.parentdeptcode = '-1' and b.hosid=? ORDER BY b.ordercol
  288. ]]>
  289. </Sql>
  290. <!-- 文章详情查询-->
  291. <Sql name='queryArticleDetail'><![CDATA[
  292. select * from B_ARTICLE b where 1=1 ]]>
  293. </Sql>
  294. <!-- 百度首页菜单-->
  295. <Sql name='querySysInfo'><![CDATA[
  296. select count(1) from SYS_MENU b where 1=1 and isshow=1 and state=1 @a order by orderid ]]>
  297. </Sql>
  298. <Sql name='querySysInfoWithPage_Old'><![CDATA[
  299. select t3.*
  300. from (select t2.*, rownum as row_num
  301. from (select * from SYS_MENU b where 1=1 and isshow=1 and state=1 @a order by orderid ) t2
  302. where rownum <= ?) t3
  303. where t3.row_num > ?
  304. ]]>
  305. </Sql>
  306. <Sql name='querySysInfoWithPage'><![CDATA[
  307. select * from SYS_MENU b where 1=1 and isshow=1 and state=1 @a order by orderid
  308. ]]>
  309. </Sql>
  310. <Sql name="queryArticleTotal">
  311. Select count(1) from B_ARTICLE a where 1=1 @a
  312. </Sql>
  313. <Sql name="queryArticleByClass_Old">
  314. <![CDATA[
  315. Select t3.* from(
  316. Select t2.*,rownum as row_num from(
  317. Select a.* from B_ARTICLE a where 1=1 @a
  318. order by a.lastmodify desc,a.createdate desc
  319. )t2 where rownum <=?
  320. ) t3
  321. where t3.row_num > ?
  322. ]]>
  323. </Sql>
  324. <Sql name="queryArticleByClass">
  325. <![CDATA[
  326. Select a.* from B_ARTICLE a where 1=1 @a
  327. order by a.lastmodify desc,a.createdate desc
  328. ]]>
  329. </Sql>
  330. <Sql name="addArticle">
  331. <![CDATA[
  332. INSERT into B_ARTICLE( ID,TITLE,CONTENTS,STATUS,TYPE,BIGIMGURL,IMGURL,TYPECLASS,CREATEDATE,ISSUEDATE,LASTMODIFY,LINKURL,ISHEAD,FINALDEAL,HOSID )
  333. VALUES ( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
  334. ]]>
  335. </Sql>
  336. <!-- update B_ARTICLE set CONTENTS=?,TITLE=?,TYPECLASS=?,ISHEAD=?,status=?,LASTMODIFY=?,ISSUEDATE=? where id =? -->
  337. <Sql name="editArticle">
  338. <![CDATA[
  339. update B_ARTICLE a set @p
  340. ]]>
  341. </Sql>
  342. <Sql name="basic_queryCardList">
  343. <![CDATA[
  344. select
  345. a.idCard,a.tel,a.memberid,a.membername,b.cardtype,
  346. (select d.value from DICTIONARY d where d.key = b.cardType and d.dictype = 'ctype' and rownum <=1 ) as cardName,
  347. b.cardid from C_MEMBER a
  348. left join C_CARDPACKAGE b on a.memberid=b.memberid
  349. left join @p
  350. where @a
  351. ]]>
  352. </Sql>
  353. <Sql name="basic_queryCardCount">
  354. <![CDATA[
  355. select
  356. count(1) from C_MEMBER a
  357. left join C_CARDPACKAGE b on a.memberid=b.memberid
  358. left join @p
  359. where @a
  360. ]]>
  361. </Sql>
  362. <Sql name='basic_queryChannelInfo'><![CDATA[
  363. select
  364. a.opid,a.memberid,c.idcard,c.tel,c.membername,@c
  365. from @t a,C_MEMBER c
  366. where exists (select 1 from C_CARDPACKAGE t where 1=1 and a.memberid = t.memberid @p)
  367. and c.memberid = a.memberid and c.status =1 @a
  368. ]]>
  369. </Sql>
  370. <!--以下是文章查询针对前端 -->
  371. <Sql name='queryArticleInfoForList'><![CDATA[
  372. select @a from B_ARTICLE a where 1=1 @b
  373. ]]>
  374. </Sql>
  375. <Sql name='queryNewDetail'><![CDATA[
  376. select @a from B_ARTICLE a where 1=1 @b
  377. ]]>
  378. </Sql>
  379. <Sql name="editDoctor">
  380. <![CDATA[
  381. update B_DOCTOR a set @p
  382. ]]>
  383. </Sql>
  384. <Sql name='basic_queryHospital'><![CDATA[
  385. select HosId,HosName,Province,ProvinceCode,City,CityCode,HosLevel,HosLevelName,Address,Tel,photoUrl,HosRoute,PostCode,CoordinateX,CoordinateY,HosBrief from B_HOSPITAL where 1=1 @p
  386. ]]>
  387. </Sql>
  388. <Sql name='basic_queryHosFloorList'><![CDATA[
  389. select
  390. deptName,deptCode,floorNum,attachBuilding from B_DEPT
  391. where hosId=? and attachbuilding=?
  392. order by attachbuilding,to_number(REGEXP_SUBSTR(floornum,'[^,]+', 1, 1))
  393. ]]>
  394. </Sql>
  395. <Sql name='basic_queryHosFloorCount'><![CDATA[
  396. select count(1) from B_DEPT where hosId=? and attachbuilding=?
  397. ]]>
  398. </Sql>
  399. <Sql name='basic_queryCardIdIsExists'><![CDATA[
  400. select count(1) from C_MEMBER a,C_CARDPACKAGE b where a.memberid=b.memberid and a.status =1 and b.cardid=?
  401. and exists (select password from b_empowerlogin e where e.memberid=a.memberid)
  402. and exists (select memberid from @t f where @p)
  403. ]]>
  404. </Sql>
  405. <Sql name='basic_queryCardInfo'><![CDATA[
  406. select a.memberId,a.membername,a.idCard,b.cardid from C_MEMBER a,C_CARDPACKAGE b where a.memberid=b.memberid and a.status =1 and b.cardid=?
  407. ]]>
  408. </Sql>
  409. <Sql name='basic_updateEmpowerLogin'><![CDATA[
  410. update b_EmpowerLogin set @a where 1=1 @b
  411. ]]>
  412. </Sql>
  413. <Sql name='basic_getDoctorList'><![CDATA[
  414. select deptcode,doctorcode,spec,photourl,doctorname,introduction,remark from B_DOCTOR where 1=1 @p
  415. ]]>
  416. </Sql>
  417. <Sql name='basic_queryDeptList'><![CDATA[
  418. Select * from B_DEPT where 1=1 @p
  419. ]]></Sql>
  420. <Sql name='basic_queryDoctorList'><![CDATA[
  421. Select * from B_DOCTOR where 1=1 @p
  422. ]]></Sql>
  423. <Sql name='basic_queryMemberInfo'><![CDATA[
  424. select a.memberId,a.membername,a.idCard,b.cardid,a.tel,a.status from C_MEMBER a,C_CARDPACKAGE b
  425. where a.memberid=b.memberid @p
  426. ]]></Sql>
  427. <Sql name='basic_updateChancelInfo'><![CDATA[
  428. update @a set status=? where 1=1 @p
  429. ]]></Sql>
  430. <Sql name='getHisIdByCardId'><![CDATA[
  431. select a.memberid,a.membername,b.cardid,a.tel,a.idcard from C_MEMBER a ,C_CARDPACKAGE b
  432. where b.memberid = a.memberid and a.status =1 @p
  433. ]]></Sql>
  434. <Sql name='basic_queryMemberChannelInfo'><![CDATA[
  435. select a.memberId,a.membername,a.idCard,b.cardid,@a from C_MEMBER a,C_CARDPACKAGE b
  436. where a.memberid=b.memberid @b
  437. ]]></Sql>
  438. <Sql name='basic_queryCountMemberInfo'><![CDATA[
  439. select count(1) from C_MEMBER a,C_CARDPACKAGE b
  440. where a.memberid=b.memberid @p
  441. ]]></Sql>
  442. <Sql name='countWeiXin'><![CDATA[
  443. select count(1) from C_WEIXIN a where 1=1 and exists (
  444. select * from C_CARDPACKAGE t,C_MEMBER b where t.cardid =? and b.status =1 and a.memberid = b.memberid and a.memberid = t.memberid)
  445. ]]></Sql>
  446. <Sql name='countZhiFu'><![CDATA[
  447. select count(1) from C_ZHIFUBAO a where 1=1 and exists (
  448. select * from C_CARDPACKAGE t,C_MEMBER b where t.cardid =? and b.status =1 and a.memberid = b.memberid and a.memberid = t.memberid)
  449. ]]></Sql>
  450. <Sql name='countBaiDu'><![CDATA[
  451. select count(1) from C_BAIDU a where 1=1 and exists (
  452. select * from C_CARDPACKAGE t,C_MEMBER b where t.cardid =? and b.status =1 and a.memberid = b.memberid and a.memberid = t.memberid)
  453. ]]></Sql>
  454. <Sql name='S_SysChannelApiContor'><![CDATA[
  455. select @a from SYS_CHANNEL_API_CONTOR where 1=1 @b
  456. ]]></Sql>
  457. <Sql name='S_Query_Method_Param'><![CDATA[
  458. select @a from SYS_METHOD_PARAM where 1=1 @b
  459. ]]></Sql>
  460. <Sql name='S_Delete_Method_Param'><![CDATA[
  461. delete from SYS_METHOD_PARAM where paramid=?
  462. ]]></Sql>
  463. <Sql name='basic_updateDeptIdByhosIdAndDeptCode'><![CDATA[
  464. update B_DEPT set deptuid=? where hosid=? and deptcode=?
  465. ]]></Sql>
  466. <Sql name='basic_updateDoctorIdByhosIdAndDeptCode'><![CDATA[
  467. update B_DOCTOR set doctoruid=?,relativedeptid=? where hosid=? and doctorcode=?
  468. ]]></Sql>
  469. </Sqls>
  470. </das-client>