| 
					
				 | 
			
			
				@@ -104,8 +104,9 @@ public class JdhxpZdwxyBadjController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						CriteriaQuery<?> query, CriteriaBuilder cb) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					List<Predicate> list = new ArrayList<Predicate>();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					addRecordCodeFilter(functionId, cb, root, list);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					//省局只检索已完成的数据
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					if(Constants.SZD_ID_PROVINCE.equals(Utils.getCurrentUserSzd())){
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// 省局只检索已完成的数据
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					if (Constants.SZD_ID_PROVINCE.equals(Utils
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							.getCurrentUserSzd())) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						list.add(cb.equal(
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								root.get("recordStatus").as(String.class),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								BaseEntity.RECORD_STATE_COMPLETED));
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -252,8 +253,9 @@ public class JdhxpZdwxyBadjController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					// root.get("addUser").as(UserEntity.class),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					// Utils.getCurrentUser()));
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					// }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					//省局只检索已完成的数据
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					if(Constants.SZD_ID_PROVINCE.equals(Utils.getCurrentUserSzd())){
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					// 省局只检索已完成的数据
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					if (Constants.SZD_ID_PROVINCE.equals(Utils
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							.getCurrentUserSzd())) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						list.add(cb.equal(
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								root.get("recordStatus").as(String.class),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								BaseEntity.RECORD_STATE_COMPLETED));
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -373,7 +375,8 @@ public class JdhxpZdwxyBadjController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							wxysl + "",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							null == entity.getGq() ? "" : entity.getGq()
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 									.getGqmc(),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							null == entity.getSzd() ? "" :entity.getSzd().getName() };
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							null == entity.getSzd() ? "" : entity.getSzd()
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									.getName() };
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					ss = new String[] {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							i + "",
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -390,7 +393,8 @@ public class JdhxpZdwxyBadjController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							wxysl + "",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							null == entity.getGq() ? "" : entity.getGq()
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 									.getGqmc(),
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							null == entity.getSzd() ? "" : entity.getSzd().getName() };
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							null == entity.getSzd() ? "" : entity.getSzd()
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+									.getName() };
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				strings.add(ss);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				i++;
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -495,13 +499,12 @@ public class JdhxpZdwxyBadjController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			zlb.setDjbid(newDjba);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			GqnwxyzlbEntity newZlb = zlbService.save(zlb);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			/* 保存剧毒化学品信息 */
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			jdhxpService.deleteByZlbid(newZlb.getId());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			if (jdhxpList != null && jdhxpList.size() > 0) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				// 删除总览表下的数据
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				//jdhxpService.deleteByZlbid(newZlb.getId());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// jdhxpService.deleteByZlbid(newZlb.getId());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				// String jdhxpIds="0";
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				for (ZlbzjdhxpxxEntity jdhxp : jdhxpList) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					if (null == jdhxp.getId() || jdhxp.getId() == 0) {
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -522,7 +525,7 @@ public class JdhxpZdwxyBadjController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			zdwxyService.deleteByZlbid(newZlb.getId());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			if (zdwxyList != null && zdwxyList.size() > 0) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				// String zdwxyIds="0";
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				//zdwxyService.deleteByZlbid(newZlb.getId());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				// zdwxyService.deleteByZlbid(newZlb.getId());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				for (ZlbzzdwxyxxEntity zdwxy : zdwxyList) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					if (null == zdwxy.getId() || zdwxy.getId() == 0) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						zdwxy.setSzd(newZlb.getSzd());
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -656,7 +659,7 @@ public class JdhxpZdwxyBadjController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			djbaService.claim(data.getId().toString(), Utils.getCurrentUser()
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					.getId().toString());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		 djbaService.changeAudit(shyj, shsj, data, flag);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		djbaService.changeAudit(shyj, shsj, data, flag);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return null;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -826,8 +829,8 @@ public class JdhxpZdwxyBadjController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	public BusinessContext doHxPass(Boolean ifPass, GqnwxydjbabEntity ba,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			GqnwxydjbabFlowEntity baFlow, String shyj, Date shsj) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		if (djbaFlowService.getCandidateTaskByUserAndBusKey(Utils.getCurrentUser()
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				.getId().toString(), ba.getId().toString()) != null) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		if (djbaFlowService.getCandidateTaskByUserAndBusKey(Utils
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				.getCurrentUser().getId().toString(), ba.getId().toString()) != null) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			djbaFlowService.claim(ba.getId().toString(), Utils.getCurrentUser()
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					.getId().toString());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		}
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -845,10 +848,22 @@ public class JdhxpZdwxyBadjController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			djbaFlowService.logicDelete(baFlow.getId());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			if (Constants.DEPLOY_MODE_CITY.equals(GlobalData.DEPLOY_MODE)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					&& Constants.YES.equals(GlobalData.JAXWS_SYNC)) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				JdwxphzdwxybaWebService webService = djbaService
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						.getWebService();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				if (null != webService) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					webService.delete(ba.getId());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				try {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					JdwxphzdwxybaWebService webService = djbaService
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							.getWebService();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					ba = djbaService.findById(ba.getId());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					if (null != webService) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						webService.delete(ba.getId());
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						ba.setTbzt(Constants.YES);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						djbaService.save(ba);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					} else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						ba.setTbzt(Constants.NO);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						djbaService.save(ba);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				} catch (Exception e) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					ba.setTbzt(Constants.NO);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					djbaService.save(ba);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					e.printStackTrace();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} else {
 
			 |