| 123456789101112131415161718192021222324252627282930 | 
							- <?xml version="1.0" encoding="UTF-8"?>
 
- <das-client>
 
-   <Sqls>
 
-     <!--查询记录数-->
 
-     <Sql name="queryBillCountByCondition">
 
- 		SELECT count (*) from DC_Bill a 
 
- 			left join DC_doctorService_type b on a.serviceId = b.typeId
 
- 			left join sys_org_account c on a.doctorUid = c.resId and c.roleId =4  
 
- 			where a.state =1 and  b.state =1 and c.status =1  @condition
 
- 	</Sql>
 
-     <!--根据条件分页查询记录 -->
 
-      <Sql name="queryBillListByCondition">
 
-     	 <![CDATA[
 
- 			SELECT * from (SELECT ROW_NUMBER() OVER( order by billWaterId desc) rowId,billWaterId,loginId,doctorName,hospitalName,
 
- 			(case when serviceId > 0 then 1 else 2 end) isIncome,b.typeName,insertime,a.doctorPrice,currentBalance
 
- 			 from DC_Bill a 
 
- 			left join DC_doctorService_type b on a.serviceId = b.typeId
 
- 			left join sys_org_account c on a.doctorUid = c.resId and c.roleId =4  
 
- 			where a.state =1 and  b.state =1 and c.status =1  
 
-  			@condition ) as a where 1=1 @page
 
-  		 ]]> 
 
- 	</Sql>
 
- 	
 
- 	<!-- 查询医生服务类型下拉框-->
 
- 	<Sql name="queryDoctorServiceTyepCom">
 
- 		 select typeId,typeName from DC_doctorService_type where state =1  order by typeId
 
- 	</Sql>
 
-   </Sqls>
 
- </das-client>
 
 
  |