|  | @ -332,6 +332,7 @@ public class MedicineStockOutService extends BaseJpaService<Mediicinestockout, M
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         String sql="SELECT\n" +
 | 
	
		
			
				|  |  |                 "    tmd.name as replenishEquName,\n" +
 | 
	
		
			
				|  |  |                 "    t.id as id,\n" +
 | 
	
		
			
				|  |  |                 "    t.address as address,\n" +
 | 
	
		
			
				|  |  |                 "    t.community as community,\n" +
 | 
	
	
		
			
				|  | @ -355,7 +356,7 @@ public class MedicineStockOutService extends BaseJpaService<Mediicinestockout, M
 | 
	
		
			
				|  |  |                 "    t.update_user_name as updateUserName,\n" +
 | 
	
		
			
				|  |  |                 "    t.up_num as upNum\n" +
 | 
	
		
			
				|  |  |                 "FROM\n" +
 | 
	
		
			
				|  |  |                 "    t_mediicine_stockout AS t LEFT JOIN base_user bu ON t.replenish_er = bu.id  where 1=1";
 | 
	
		
			
				|  |  |                 "    t_mediicine_stockout AS t LEFT JOIN base_user bu ON t.replenish_er = bu.id LEFT JOIN t_mediicine_device tmd on t.replenish_equ = tmd.id  where 1=1";
 | 
	
		
			
				|  |  |         if (org.apache.commons.lang.StringUtils.isNotBlank(startTime)&& org.apache.commons.lang.StringUtils.isNotBlank(endTime)){
 | 
	
		
			
				|  |  | //            conditionSql += "  AND  t.prescribe_time BETWEEN to_date('" + startTime +"','yyyy-mm-dd hh24:mi:ss') " +
 | 
	
		
			
				|  |  | //                    " AND to_date('" + endTime + "','yyyy-mm-dd hh24:mi:ss')";
 | 
	
	
		
			
				|  | @ -379,7 +380,7 @@ public class MedicineStockOutService extends BaseJpaService<Mediicinestockout, M
 | 
	
		
			
				|  |  |         String countSql = " select " +
 | 
	
		
			
				|  |  |                 "     COUNT(DISTINCT (t.id)) as count " +
 | 
	
		
			
				|  |  |                 "   from " +
 | 
	
		
			
				|  |  |                 "     t_mediicine_stockout t " +
 | 
	
		
			
				|  |  |                 "     t_mediicine_stockout t LEFT JOIN base_user bu ON t.replenish_er = bu.id LEFT JOIN t_mediicine_device tmd on t.replenish_equ = tmd.id" +
 | 
	
		
			
				|  |  |                 "  where " +
 | 
	
		
			
				|  |  |                 "  1=1   " +
 | 
	
		
			
				|  |  |                 conditionSql;
 |