Browse Source

git-svn-id: https://192.168.57.71/svn/lyggkj@124 1a6f6e3a-4066-fe46-b609-79c204482ece

ld_liufl 8 years ago
parent
commit
1a5530e926

+ 6 - 0
gkaq/yjpt-java/trunk/java_src/com/jtgh/yjpt/common/servlet/SystemJavaAdapter.java

@@ -123,6 +123,12 @@ public class SystemJavaAdapter extends JavaAdapter {
 			}
 			result = true;
 		} catch (Exception e) {
+			long cost = System.currentTimeMillis() - start;
+			System.err.println(className + "." + method + " <ERROR>cost:" + cost
+					/ 1000.0);
+			logger.info(className + "." + method + "<ERROR> cost:" + cost
+					/ 1000.0);
+			e.printStackTrace()
 		} finally {
 			try {
 				if (bean instanceof BaseController) {

+ 15 - 15
gkaq/yjpt-java/trunk/java_src/com/jtgh/yjpt/controller/zysqbp/ZysqbpController.java

@@ -242,7 +242,7 @@ public class ZysqbpController extends BaseController {
 		long startTime = System.currentTimeMillis();
 		String url = Thread.currentThread().getStackTrace()[2].getClassName()
 				+ "."
-				+ Thread.currentThread().getStackTrace()[2].getMethodName();
+				+"list";
 
 		BusinessContext bc = new BusinessContext();
 		List<PredicateModel> filterList = new ArrayList<PredicateModel>();
@@ -395,12 +395,12 @@ public class ZysqbpController extends BaseController {
 			LOGGER.info(url + "<SUCCESS> cost:" + cost);
 			return bc;
 		} catch (Exception e) {
-			LOGGER.error("error occured,url:" + url);
+			LOGGER.error("EXCEPTION occured,url:" + url);
 			e.printStackTrace();
 		}
 		long cost = System.currentTimeMillis() - startTime;
 		System.err.println(url + ",cost:" + cost);
-		LOGGER.info(url + "<ERROR> cost:" + cost);
+		LOGGER.info(url + "<EXCEPTION> cost:" + cost);
 		return null;
 
 	}
@@ -1031,9 +1031,9 @@ public class ZysqbpController extends BaseController {
 			final Date bgsj2, final Date kgsj1, final Date kgsj2,
 			final Date wgsj1, final Date wgsj2) {
 		long startTime = System.currentTimeMillis();
-		String url = Thread.currentThread().getStackTrace()[2].getClassName()
+		String url =Thread.currentThread().getStackTrace()[2].getClassName()
 				+ "."
-				+ Thread.currentThread().getStackTrace()[2].getMethodName();
+				+ "listNoFlow";
 		try {
 			BusinessContext bc = new BusinessContext();
 			// zysqbpService.wxhwSqValid();
@@ -1083,7 +1083,7 @@ public class ZysqbpController extends BaseController {
 		}
 		long cost = System.currentTimeMillis() - startTime;
 		System.err.println(url + ",cost:" + cost);
-		LOGGER.info(url + " <ERROR> cost:" + cost);
+		LOGGER.info(url + " <EXCEPTION> cost:" + cost);
 		return null;
 	}
 
@@ -1178,7 +1178,7 @@ public class ZysqbpController extends BaseController {
 		long startTime = System.currentTimeMillis();
 		String url = Thread.currentThread().getStackTrace()[2].getClassName()
 				+ "."
-				+ Thread.currentThread().getStackTrace()[2].getMethodName();
+				+"save";
 		try {
 			BusinessContext bc = createBusinessContext();
 			if (null == vo.getId() || vo.getId().equals(0l)) {
@@ -1208,15 +1208,15 @@ public class ZysqbpController extends BaseController {
 		}
 		long cost = System.currentTimeMillis() - startTime;
 		System.err.println(url + ",cost:" + cost);
-		LOGGER.info(url + "<ERROR> cost:" + cost);
+		LOGGER.info(url + "<EXCEPTION> cost:" + cost);
 		return null;
 	}
 
 	public BusinessContext save(ZysqbpEntity vo) {
 		long startTime = System.currentTimeMillis();
-		String url = Thread.currentThread().getStackTrace()[2].getClassName()
+		String url =Thread.currentThread().getStackTrace()[2].getClassName()
 				+ "."
-				+ Thread.currentThread().getStackTrace()[2].getMethodName();
+				+"save";
 		BusinessContext bc = createBusinessContext();
 		vo = zysqbpService.kgwgSave(vo);
 		bc.setResult(vo);
@@ -1421,9 +1421,9 @@ public class ZysqbpController extends BaseController {
 
 	public BusinessContext submit(ZysqbpEntity vo, Long functionId, Long accId) {
 		long startTime = System.currentTimeMillis();
-		String url = Thread.currentThread().getStackTrace()[2].getClassName()
+		String url =Thread.currentThread().getStackTrace()[2].getClassName()
 				+ "."
-				+ Thread.currentThread().getStackTrace()[2].getMethodName();
+				+ "submit";
 		BusinessContext bc = createBusinessContext();
 		int nsns = 0;
 		Date fzDate = vo.getZyddqybh().getFzsq().getYxqkssj();
@@ -1616,7 +1616,7 @@ public class ZysqbpController extends BaseController {
 		}
 		bc.addMsg("save.success", "common", MsgLevel.INFO);
 		cost = System.currentTimeMillis() - startTime - cost;
-		LOGGER.info(url + "<ERROR> ( tb )cost:" + cost);
+		LOGGER.info(url + "<EXCEPTION> ( tb )cost:" + cost);
 		return bc;
 	}
 
@@ -1757,9 +1757,9 @@ public class ZysqbpController extends BaseController {
 	public void aduit(String shyj, Date shsj, boolean auditflag,
 			ZysqbpEntity entity) throws CloneNotSupportedException {
 		long startTime = System.currentTimeMillis();
-		String url = Thread.currentThread().getStackTrace()[2].getClassName()
+		String url =Thread.currentThread().getStackTrace()[2].getClassName()
 				+ "."
-				+ Thread.currentThread().getStackTrace()[2].getMethodName();
+				+ "aduit";
 		if (zysqbpService
 				.getCandidateTaskByUserAndBusKey(Utils.getCurrentUser().getId()
 						.toString(), entity.getId().toString()) != null) {

+ 6 - 6
gkaq/yjpt-java/trunk/java_src/com/jtgh/yjpt/service/impl/zysqbp/ZysqbpServiceImpl.java

@@ -214,9 +214,9 @@ public class ZysqbpServiceImpl extends
 
 	@Override
 	public <S extends ZysqbpEntity> S submit(String currentRoleCode, S data) {
-		String url = Thread.currentThread().getStackTrace()[2].getClassName()
+		String url =Thread.currentThread().getStackTrace()[2].getClassName()
 				+ "."
-				+ Thread.currentThread().getStackTrace()[2].getMethodName();
+				+ "submit";
 		
 		String zyddString;
 
@@ -2235,9 +2235,9 @@ public class ZysqbpServiceImpl extends
 	@Override
 	public ZysqbpEntity kgwgSave(ZysqbpEntity entity) {
 		long startTime = System.currentTimeMillis();
-		String url =  Thread.currentThread().getStackTrace()[2].getClassName()
+		String url = Thread.currentThread().getStackTrace()[2].getClassName()
 				+ "."
-				+ Thread.currentThread().getStackTrace()[2].getMethodName();
+				+ "dgwgSave";
 		entity = this.save(entity);
 		// 同步到省级
 		if (Constants.YES.equals(GlobalData.JAXWS_SYNC)) {
@@ -2246,12 +2246,12 @@ public class ZysqbpServiceImpl extends
 				try {
 					webServce.save(entity);
 				} catch (Exception e) {
-					LOGGER.error("error occured,url:" + url + " (ZysqbpWebService.save) ");
+					LOGGER.error("EXCEPTION occured,url:" + url + " (ZysqbpWebService.save) ");
 					e.printStackTrace();
 				}
 				long cost =  System.currentTimeMillis() - startTime;
 				System.err.println(url + ",cost:"+cost);
-				LOGGER.info(url + "<ERROR> cost:"+cost);
+				LOGGER.info(url + "<EXCEPTION> cost:"+cost);
 			}
 		}
 		long cost =  System.currentTimeMillis() - startTime;