|  | @ -1051,7 +1051,7 @@ public class PrescriptionInfoService extends BaseService {
 | 
	
		
			
				|  |  |      * @return 0 审核中,1为处理完成
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public String presCheckState(String code){
 | 
	
		
			
				|  |  |         StringBuffer sql = new StringBuffer(" SELECT pr.code FROM wlyy_prescription pr JOIN wlyy_prescription_reviewed r ON pr.code = r.prescription_code WHERE pr.parent_code = ? AND pr.status >= 0 AND pr.status < 40");
 | 
	
		
			
				|  |  |         StringBuffer sql = new StringBuffer(" SELECT pr.code FROM wlyy_prescription pr JOIN wlyy_prescription_reviewed r ON pr.code = r.prescription_code WHERE pr.parent_code = ? AND pr.status >= "+PrescriptionLog.PrescriptionLogStatus.revieweding+" AND pr.status < "+PrescriptionLog.PrescriptionLogStatus.wait_pay);
 | 
	
		
			
				|  |  |         List<Map<String,Object>> mp = jdbcTemplate.queryForList(sql.toString(),code);
 | 
	
		
			
				|  |  |         if(mp!=null&&mp.size()>0){
 | 
	
		
			
				|  |  |             return "0";
 | 
	
	
		
			
				|  | @ -1061,7 +1061,7 @@ public class PrescriptionInfoService extends BaseService {
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public String presCheckStateObj(String code){
 | 
	
		
			
				|  |  |         StringBuffer sql = new StringBuffer(" SELECT pr.code FROM wlyy_prescription pr JOIN wlyy_prescription_reviewed r ON pr.code = r.prescription_code WHERE pr.parent_code = ? AND pr.status >= 0 AND pr.status < 40");
 | 
	
		
			
				|  |  |         StringBuffer sql = new StringBuffer(" SELECT pr.code FROM wlyy_prescription pr JOIN wlyy_prescription_reviewed r ON pr.code = r.prescription_code WHERE pr.parent_code = ? AND pr.status >= "+PrescriptionLog.PrescriptionLogStatus.revieweding+" AND pr.status < "+PrescriptionLog.PrescriptionLogStatus.wait_pay);
 | 
	
		
			
				|  |  |         List<Map<String,Object>> mp = jdbcTemplate.queryForList(sql.toString(),code);
 | 
	
		
			
				|  |  |         if(mp!=null&&mp.size()>0){
 | 
	
		
			
				|  |  |             return (String)((mp.get(0)).get("code"));
 |