| 
					
				 | 
			
			
				@ -418,7 +418,7 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray MS53001(String charge_code,String py_code,String stock_amount,String visible_flag,boolean demoFlag) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray MS53001(String charge_code,String py_code,String stock_amount,String  win_no,String visible_flag,boolean demoFlag) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String fid="MS53001"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String resp=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (demoFlag) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -440,6 +440,9 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (StringUtils.isNotBlank(stock_amount)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sbs.append("<query compy=\">=\" item=\"stock_amount\" splice=\"and\" value=\"'" + stock_amount + "'\"/>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(StringUtils.isNotBlank(win_no)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sbs.append("<query compy=\"=\" item=\"win_no\" splice=\"and\" value=\"'"+win_no+"'\"/>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (StringUtils.isNotBlank(visible_flag)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                sbs.append("<query compy=\"=\" item=\"visible_flag\" splice=\"and\" value=\"'" + visible_flag + "'\"/>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -756,4 +759,33 @@ public class EntranceService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return ConvertUtil.convertListEnvelopInBodyRow(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 检查检验 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws Exception 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String MS25002(String py_code,String win_no) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String fid="MS25002"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        StringBuffer sbs= new StringBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //AccessControl :用户、密码、服务id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sbs.append("<ESBEntry><AccessControl><Fid>"+fid+"</Fid><UserName>JKZL</UserName><Password>123456</Password></AccessControl>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //MessageHeader :固定值 消费方系统编号 S60,提供方系统编号 S01 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sbs.append("<MessageHeader><Fid>"+fid+"</Fid><MsgDate>"+ DateUtil.dateToStr(new Date(),DateUtil.YYYY_MM_DD_HH_MM_SS)+"</MsgDate><SourceSysCode>S60</SourceSysCode><TargetSysCode>S01</TargetSysCode></MessageHeader>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //查询信息拼接 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sbs.append("<MsgInfo><endNum>1000</endNum><Msg/>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(StringUtils.isNotBlank(py_code)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sbs.append("<query compy=\"=\" item=\"py_code\" splice=\"and\" value=\"'"+py_code+"'\"/>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(StringUtils.isNotBlank(win_no)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            sbs.append("<query compy=\"=\" item=\"win_no\" splice=\"and\" value=\"'"+win_no+"'\"/>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        sbs.append("<startNum>1</startNum></MsgInfo></ESBEntry>"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //<ESBEntry><AccessControl><Fid>MS25002</Fid><UserName>jcjy</UserName><Password>123456</Password></AccessControl> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // <MessageHeader><Fid>MS25002</Fid><MsgDate>2018-10-09 16:52:39</MsgDate><SourceSysCode>S60</SourceSysCode><TargetSysCode>S01</TargetSysCode></MessageHeader> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // <MsgInfo><endNum>20000</endNum><Msg></Msg><startNum>1</startNum></MsgInfo></ESBEntry> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        resp= MqSdkUtil.xml2jsonArrayRootRow(resp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return resp; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 |