|  | @ -113,6 +113,8 @@ import com.ylzinfo.ehc.EhcHandler;
 | 
												
													
														
															|  | import com.ylzinfo.ehc.common.utils.DateUtils;
 |  | import com.ylzinfo.ehc.common.utils.DateUtils;
 | 
												
													
														
															|  | import com.ylzinfo.ehc.trans.TransRequest;
 |  | import com.ylzinfo.ehc.trans.TransRequest;
 | 
												
													
														
															|  | import com.ylzinfo.ehc.trans.TransResponse;
 |  | import com.ylzinfo.ehc.trans.TransResponse;
 | 
												
													
														
															|  | 
 |  | import com.zaxxer.hikari.HikariDataSource;
 | 
												
													
														
															|  | 
 |  | import com.zaxxer.hikari.HikariPoolMXBean;
 | 
												
													
														
															|  | import jxl.write.*;
 |  | import jxl.write.*;
 | 
												
													
														
															|  | import net.sf.json.JSONArray;
 |  | import net.sf.json.JSONArray;
 | 
												
													
														
															|  | import net.sf.json.JSONObject;
 |  | import net.sf.json.JSONObject;
 | 
												
											
												
													
														
															|  | @ -133,9 +135,13 @@ import org.springframework.stereotype.Service;
 | 
												
													
														
															|  | import org.springframework.transaction.annotation.Transactional;
 |  | import org.springframework.transaction.annotation.Transactional;
 | 
												
													
														
															|  | import org.springframework.util.CollectionUtils;
 |  | import org.springframework.util.CollectionUtils;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | import javax.management.JMX;
 | 
												
													
														
															|  | 
 |  | import javax.management.MBeanServer;
 | 
												
													
														
															|  | 
 |  | import javax.management.ObjectName;
 | 
												
													
														
															|  | import java.io.IOException;
 |  | import java.io.IOException;
 | 
												
													
														
															|  | import java.io.OutputStream;
 |  | import java.io.OutputStream;
 | 
												
													
														
															|  | import java.lang.Boolean;
 |  | import java.lang.Boolean;
 | 
												
													
														
															|  | 
 |  | import java.lang.management.ManagementFactory;
 | 
												
													
														
															|  | import java.math.BigDecimal;
 |  | import java.math.BigDecimal;
 | 
												
													
														
															|  | import java.net.URL;
 |  | import java.net.URL;
 | 
												
													
														
															|  | import java.text.DecimalFormat;
 |  | import java.text.DecimalFormat;
 | 
												
											
												
													
														
															|  | @ -300,6 +306,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |     private TnyyEntranceService tnyyEntranceService;
 |  |     private TnyyEntranceService tnyyEntranceService;
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
													
														
															|  |     private BaseJpushTemplateDao baseJpushTemplateDao;
 |  |     private BaseJpushTemplateDao baseJpushTemplateDao;
 | 
												
													
														
															|  | 
 |  |     @Autowired
 | 
												
													
														
															|  | 
 |  |     HikariDataSource dataSource;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @Value("${demo.flag}")
 |  |     @Value("${demo.flag}")
 | 
												
											
												
													
														
															|  | @ -12143,4 +12151,24 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     public void test(){
 | 
												
													
														
															|  | 
 |  |         try{
 | 
												
													
														
															|  | 
 |  |             MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
 | 
												
													
														
															|  | 
 |  |             ObjectName poolName = new ObjectName("com.zaxxer.hikari:type=Pool (" + dataSource.getPoolName() + ")");
 | 
												
													
														
															|  | 
 |  |             HikariPoolMXBean poolProxy = JMX.newMXBeanProxy(mBeanServer, poolName, HikariPoolMXBean.class);
 | 
												
													
														
															|  | 
 |  |             if(poolProxy == null) {
 | 
												
													
														
															|  | 
 |  |                 System.out.println("Hikari not initialized,please wait...");
 | 
												
													
														
															|  | 
 |  |             }else {
 | 
												
													
														
															|  | 
 |  |                 System.out.println("HikariPoolState = "
 | 
												
													
														
															|  | 
 |  |                         + "Active=[" + String.valueOf(poolProxy.getActiveConnections() + "] "
 | 
												
													
														
															|  | 
 |  |                         + "Idle=[" + String.valueOf(poolProxy.getIdleConnections() + "] "
 | 
												
													
														
															|  | 
 |  |                         + "Wait=["+poolProxy.getThreadsAwaitingConnection()+"] "
 | 
												
													
														
															|  | 
 |  |                         + "Total=["+poolProxy.getTotalConnections()+"]")));
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |         }catch (Exception e){
 | 
												
													
														
															|  | 
 |  |             e.printStackTrace();
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | }
 |  | }
 |