EventSumDataWS.java 24.8 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709
package com.thinkgem.jeesite.modules.restws.webservice;

import javax.jws.WebMethod;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.utils.ObjectUtils;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseC;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseH;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseHbhqk;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBasePerson;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseXm;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZdbhqk;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZdjbxx;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZdjbxxSub;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZrz;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZrzchxx;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBaseZsglb;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusBdcqzsdjxx;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusCfdj;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusDyaq;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusFdcq2;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusFz;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusGd;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusJsydsyq;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusNydsyq;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusQlr;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusRights;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusSf;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusSfSub;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusSjmain;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusSlsq;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusSz;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusTdsyq;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusYgdj;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusYwr;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusYydj;
import com.thinkgem.jeesite.modules.reg.entity.bus.change.RegBusCSlsq;
import com.thinkgem.jeesite.modules.reg.entity.updata.RegBusSjhjtable;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseC;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseChxx;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseH;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseHbhqk;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBasePerson;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseXm;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseZbinfo;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseZdbhqk;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseZdjbxx;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseZdjbxxSub;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseZrz;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseZrzchxx;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBaseZsglb;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusBdcqzsdjxx;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusCfdj;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusDyaq;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusFdcq2;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusFz;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusGd;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusJsydsyq;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusNydsyq;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusQlr;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusRights;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusSf;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusSfSub;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusSjhjtable;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusSjmain;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusSlsq;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusSz;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusTdsyq;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusYgdj;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusYwr;
import com.thinkgem.jeesite.modules.sumdata.entity.datatable.SRegBusYydj;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseCService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseChxxService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseHService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseHbhqkService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBasePersonService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseXmService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseZbinfoService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseZdbhqkService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseZdjbxxService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseZdjbxxSubService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseZrzService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseZrzchxxService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBaseZsglbService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusBdcqzsdjxxService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusCfdjService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusDyaqService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusFdcq2Service;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusFzService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusGdService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusJsydsyqService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusNydsyqService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusQlrService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusRightsService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusSfService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusSfSubService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusSjhjtableService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusSjmainService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusSlsqService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusSzService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusTdsyqService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusYgdjService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusYwrService;
import com.thinkgem.jeesite.modules.sumdata.service.datatable.SRegBusYydjService;

/***
* @ClassName: EventSumDataWS 
* @Description: 数据汇总接口 
* @author xuyg
* @date 2017-3-8 下午3:11:28 
 */
@Service
@Transactional
public class EventSumDataWS implements IEventSumDataWS {
	
	@Autowired
	private SRegBaseCService sRegBaseCService;
	@Autowired
	private SRegBaseChxxService sRegBaseChxxService;
	@Autowired
	private SRegBaseHService sRegBaseHService;
	@Autowired
	private SRegBaseHbhqkService sRegBaseHbhqkService;
	@Autowired
	private SRegBusBdcqzsdjxxService sRegBusBdcqzsdjxxService;
	@Autowired
	private SRegBusSlsqService sRegBusSlsqService;
	@Autowired
	private SRegBusSjmainService sRegBusSjmainService;
	@Autowired
	private SRegBusGdService sRegBusGdService;
	@Autowired
	private SRegBasePersonService sRegBasePersonService;
	@Autowired
	private SRegBaseXmService sRegBaseXmService;
	@Autowired
	private SRegBaseZbinfoService sRegBaseZbinfoService;
	@Autowired
	private SRegBaseZdbhqkService sRegBaseZdbhqkService;
	@Autowired
	private SRegBaseZdjbxxService sRegBaseZdjbxxService;
	@Autowired
	private SRegBaseZdjbxxSubService sRegBaseZdjbxxSubService;
	@Autowired
	private SRegBaseZrzService sRegBaseZrzService;
	@Autowired
	private SRegBaseZrzchxxService sRegBaseZrzchxxService;
	@Autowired
	private SRegBaseZsglbService sRegBaseZsglbService;
	@Autowired
	private SRegBusCfdjService sRegBusCfdjService;
	@Autowired
	private SRegBusDyaqService sRegBusDyaqService;
	@Autowired
	private SRegBusFdcq2Service sRegBusFdcq2Service;
	@Autowired
	private SRegBusFzService sRegBusFzService;
	@Autowired
	private SRegBusJsydsyqService sRegBusJsydsyqService;
	@Autowired
	private SRegBusQlrService sRegBusQlrService;
	@Autowired
	private SRegBusRightsService sRegBusRightsService;
	@Autowired
	private SRegBusSfService sRegBusSfService;
	@Autowired
	private SRegBusSfSubService sRegBusSfSubService;
	@Autowired
	private SRegBusSjhjtableService sRegBusSjhjtableService;
	@Autowired
	private SRegBusSzService sRegBusSzService;
	@Autowired
	private SRegBusTdsyqService sRegBusTdsyqService;
	@Autowired
	private SRegBusYgdjService sRegBusYgdjService;
	@Autowired
	private  SRegBusYwrService sRegBusYwrService;
	@Autowired
	private SRegBusYydjService sRegBusYydjService;
	@Autowired
	private SRegBusNydsyqService sRegBusNydsyqService;
	
	private static String[] arrExclude = {"sareaCode"};
	private static final Logger logger = LoggerFactory.getLogger(EventSumDataWS.class);
	
	public boolean writeSRegBaseC(String sareaCode, RegBaseC regBaseC) {
		SRegBaseC sRegBaseC = new SRegBaseC();
		sRegBaseC.setSareaCode(sareaCode);
		try{
			ObjectUtils.copyPropertiesExclude(regBaseC, sRegBaseC, arrExclude);
			sRegBaseCService.save(sRegBaseC);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseC ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}
	

	/*public boolean writeSRegBaseChxx(String sareaCode, RegBaseChxx regBaseChxx) {
		SRegBaseChxx sRegBaseChxx = new SRegBaseChxx();
		sRegBaseChxx.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBaseChxx, sRegBaseChxx);
			sRegBaseChxxService.save(sRegBaseChxx);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseH ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}*/
	
	

	public boolean writeSRegBaseH(String sareaCode, RegBaseH regBaseH) {
		SRegBaseH sRegBaseH = new SRegBaseH();
		sRegBaseH.setSareaCode(sareaCode);
		try{
			ObjectUtils.copyPropertiesExclude(regBaseH, sRegBaseH, arrExclude);
			sRegBaseHService.save(sRegBaseH);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseH ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	
	public boolean writeSRegBaseHbhqk(String sareaCode,	RegBaseHbhqk regBaseHbhqk) {
		SRegBaseHbhqk sRegBaseHbhqk = new SRegBaseHbhqk();
		sRegBaseHbhqk.setSareaCode(sareaCode);
		try{
			ObjectUtils.copyPropertiesExclude(regBaseHbhqk, sRegBaseHbhqk, arrExclude);
			sRegBaseHbhqkService.save(sRegBaseHbhqk);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseHbhqk ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	
	public boolean writeSRegBasePerson(String sareaCode,RegBasePerson regBasePerson) {
		SRegBasePerson sRegBasePerson = new SRegBasePerson();
		sRegBasePerson.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBasePerson, sRegBasePerson);
			sRegBasePersonService.save(sRegBasePerson);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBasePerson ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBaseXm(String sareaCode, RegBaseXm regBaseXm) {
		SRegBaseXm sRegBaseXm = new SRegBaseXm();
		sRegBaseXm.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBaseXm, sRegBaseXm);
			sRegBaseXmService.save(sRegBaseXm);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseXm ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}
	

	/*public boolean writeSRegBaseZbinfo(String sareaCode,
			RegBaseZbinfo regBaseZbinfo) {
		SRegBaseZbinfo sRegBaseZbinfo = new SRegBaseZbinfo();
		sRegBaseZbinfo.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBaseZbinfo, sRegBaseZbinfo);
			sRegBaseZbinfoService.save(sRegBaseZbinfo);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseZbinfo ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}*/

	public boolean writeSRegBaseZdbhqk(String sareaCode,
			RegBaseZdbhqk regBaseZdbhqk) {
		SRegBaseZdbhqk sRegBaseZdbhqk = new SRegBaseZdbhqk();
		sRegBaseZdbhqk.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBaseZdbhqk, sRegBaseZdbhqk);
			sRegBaseZdbhqkService.save(sRegBaseZdbhqk);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseZdbhqk ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBaseZdjbxx(String sareaCode,
			RegBaseZdjbxx regBaseZdjbxx) {
		SRegBaseZdjbxx sRegBaseZdjbxx = new SRegBaseZdjbxx();
		sRegBaseZdjbxx.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBaseZdjbxx, sRegBaseZdjbxx);
			sRegBaseZdjbxxService.save(sRegBaseZdjbxx);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseZdjbxx ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBaseZdjbxxSub(String sareaCode,
			RegBaseZdjbxxSub regBaseZdjbxxSub) {
		SRegBaseZdjbxxSub sRegBaseZdjbxxSub = new SRegBaseZdjbxxSub();
		sRegBaseZdjbxxSub.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBaseZdjbxxSub, sRegBaseZdjbxxSub);
			sRegBaseZdjbxxSubService.save(sRegBaseZdjbxxSub);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseZdjbxxSub ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBaseZrz(String sareaCode, RegBaseZrz regBaseZrz) {
		SRegBaseZrz sRegBaseZrz = new SRegBaseZrz();
		sRegBaseZrz.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBaseZrz, sRegBaseZrz);
			sRegBaseZrzService.save(sRegBaseZrz);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseZrz ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}


	public boolean writeSRegBaseZrzchxx(String sareaCode,
			RegBaseZrzchxx regBaseZrzchxx) {
		SRegBaseZrzchxx sRegBaseZrzchxx = new SRegBaseZrzchxx();
		sRegBaseZrzchxx.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBaseZrzchxx, sRegBaseZrzchxx);
			sRegBaseZrzchxxService.save(sRegBaseZrzchxx);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseZrzchxx ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBaseZsglb(String sareaCode,
			RegBaseZsglb regBaseZsglb) {
		SRegBaseZsglb sRegBaseZsglb = new SRegBaseZsglb();
		sRegBaseZsglb.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBaseZsglb, sRegBaseZsglb);
			sRegBaseZsglbService.save(sRegBaseZsglb);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBaseZsglb ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBusBdcqzsdjxx(String sareaCode,
			RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
		SRegBusBdcqzsdjxx sRegBusBdcqzsdjxx = new SRegBusBdcqzsdjxx();
		sRegBusBdcqzsdjxx.setSareaCode(sareaCode);
		try{
			ObjectUtils.copyPropertiesExclude(regBusBdcqzsdjxx, sRegBusBdcqzsdjxx, arrExclude);
			sRegBusBdcqzsdjxxService.save(sRegBusBdcqzsdjxx);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusBdcqzsdjxx ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	
	public boolean writeSRegBusCfdj(String sareaCode, RegBusCfdj regBusCfdj) {
		SRegBusCfdj sRegBusCfdj = new SRegBusCfdj();
		sRegBusCfdj.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusCfdj, sRegBusCfdj);
			sRegBusCfdjService.save(sRegBusCfdj);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusCfdj ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	
	public boolean writeSRegBusDyaq(String sareaCode, RegBusDyaq regBusDyaq) {
		SRegBusDyaq sRegBusDyaq = new SRegBusDyaq();
		sRegBusDyaq.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusDyaq, sRegBusDyaq);
			sRegBusDyaqService.save(sRegBusDyaq);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusDyaq ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	
	public boolean writeSRegBusFdcq2(String sareaCode, RegBusFdcq2 regBusFdcq2) {
		SRegBusFdcq2 sRegBusFdcq2 = new SRegBusFdcq2();
		sRegBusFdcq2.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusFdcq2, sRegBusFdcq2);
			sRegBusFdcq2Service.save(sRegBusFdcq2);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusFdcq2 ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBusFz(String sareaCode, RegBusFz regBusFz) {
		SRegBusFz sRegBusFz = new SRegBusFz();
		sRegBusFz.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusFz, sRegBusFz);
			sRegBusFzService.save(sRegBusFz);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusFz ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}


	public boolean writeSRegBusGd(String sareaCode, RegBusGd regBusGd) {
		SRegBusGd sRegBusGd = new SRegBusGd();
		sRegBusGd.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusGd, sRegBusGd);
			sRegBusGdService.save(sRegBusGd);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusGd ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}
	
	public boolean writeSRegBusJsydsyq(String sareaCode,
			RegBusJsydsyq regBusJsydsyq) {
		SRegBusJsydsyq sRegBusJsydsyq = new SRegBusJsydsyq();
		sRegBusJsydsyq.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusJsydsyq, sRegBusJsydsyq);
			sRegBusJsydsyqService.save(sRegBusJsydsyq);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusJsydsyq ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBusNydsyq(String sareaCode,
			RegBusNydsyq regBusNydsyq) {
		SRegBusNydsyq sRegBusNydsyq = new SRegBusNydsyq();
		sRegBusNydsyq.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusNydsyq, sRegBusNydsyq);
			sRegBusNydsyqService.save(sRegBusNydsyq);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusNydsyq ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}
	
	public boolean writeSRegBusQlr(String sareaCode, RegBusQlr regBusQlr) {
		SRegBusQlr sRegBusQlr = new SRegBusQlr();
		sRegBusQlr.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusQlr, sRegBusQlr);
			sRegBusQlrService.save(sRegBusQlr);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusQlr ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	
	public boolean writeSRegBusRights(String sareaCode,
			RegBusRights regBusRights) {
		SRegBusRights sRegBusRights = new SRegBusRights();
		sRegBusRights.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusRights, sRegBusRights);
			sRegBusRightsService.save(sRegBusRights);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[writeSRegBusRights ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	
	public boolean writeSRegBusSf(String sareaCode, RegBusSf regBusSf) {
		SRegBusSf sRegBusSf = new SRegBusSf();
		sRegBusSf.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusSf, sRegBusSf);
			sRegBusSfService.save(sRegBusSf);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusSf ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	
	public boolean writeSRegBusSfSub(String sareaCode, RegBusSfSub regBusSfSub) {
		SRegBusSfSub sRegBusSfSub = new SRegBusSfSub();
		sRegBusSfSub.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusSfSub, sRegBusSfSub);
			sRegBusSfSubService.save(sRegBusSfSub);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusSfSub ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	} 
	
	
	public boolean writeSRegBusSjhjtable(String sareaCode,
			RegBusSjhjtable regBusSjhjtable) {
		SRegBusSjhjtable sRegBusSjhjtable = new SRegBusSjhjtable();
		sRegBusSjhjtable.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusSjhjtable, sRegBusSjhjtable);
			sRegBusSjhjtableService.save(sRegBusSjhjtable);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusSjhjtable ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}
	
	
	public boolean writeSRegBusSjmain(String sareaCode,
			RegBusSjmain regBusSjmain) {
		SRegBusSjmain sRegBusSjmain = new SRegBusSjmain();
		sRegBusSjmain.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusSjmain, sRegBusSjmain);
			sRegBusSjmainService.save(sRegBusSjmain);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusSjmain ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}
	
	public boolean writeSRegBusSlsq(String sareaCode, RegBusSlsq regBusSlsq) {
		SRegBusSlsq sRegBusSlsq = new SRegBusSlsq();
		sRegBusSlsq.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusSlsq, sRegBusSlsq);
			sRegBusSlsqService.save(sRegBusSlsq);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusSlsq ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}
	 
//	public boolean writeSRegBusCSlsq(String sareaCode, RegBusCSlsq regBusCSlsq) {
//		SRegBusSlsq sRegBusSlsq = new SRegBusSlsq();
//		sRegBusSlsq.setSareaCode(sareaCode);
//		try{
//			ObjectUtils.annotationToObject(regBusCSlsq, sRegBusSlsq);
//			sRegBusSlsqService.save(sRegBusSlsq);
//		}catch(Exception e){
//			e.printStackTrace();
//		    logger.error("[WriteSRegBusCSlsq ERROR]:"+ e.getMessage());
//		    return false;
//		}
//		return true;
//	}
	

	public boolean writeSRegBusSz(String sareaCode, RegBusSz regBusSz) {
		SRegBusSz sRegBusSz = new SRegBusSz();
		sRegBusSz.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusSz, sRegBusSz);
			sRegBusSzService.save(sRegBusSz);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusSz ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBusTdsyq(String sareaCode, RegBusTdsyq regBusTdsyq) {
		SRegBusTdsyq sRegBusTdsyq = new SRegBusTdsyq();
		sRegBusTdsyq.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusTdsyq, sRegBusTdsyq);
			sRegBusTdsyqService.save(sRegBusTdsyq);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusTdsyq ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBusYgdj(String sareaCode, RegBusYgdj regBusYgdj) {
		SRegBusYgdj sRegBusYgdj = new SRegBusYgdj();
		sRegBusYgdj.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(regBusYgdj, sRegBusYgdj);
			sRegBusYgdjService.save(sRegBusYgdj);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusYgdj ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public boolean writeSRegBusYwr(String sareaCode, RegBusYwr regBusYwr) {
		SRegBusYwr sRegBusYwr = new SRegBusYwr();
		sRegBusYwr.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(sRegBusYwr, sRegBusYwr);
			sRegBusYwrService.save(sRegBusYwr);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[writeSRegBusYwr ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}


	public boolean writeSRegBusYydj(String sareaCode, RegBusYydj regBusYydj) {
		SRegBusYydj sRegBusYydj = new SRegBusYydj();
		sRegBusYydj.setSareaCode(sareaCode);
		try{
			ObjectUtils.annotationToObject(sRegBusYydj, sRegBusYydj);
			sRegBusYydjService.save(sRegBusYydj);
		}catch(Exception e){
			e.printStackTrace();
		    logger.error("[WriteSRegBusYydj ERROR]:"+ e.getMessage());
		    return false;
		}
		return true;
	}

	public String writesjsbxml(String sjsbxml,RegBusSjhjtable regBusSjhjtable){
		return "123";
	}
	
	/**
	 * 数据实时上报报文查询
	 * @param sjsbxml
	 * @param bizid
	 */
	public String writesjsbxmldowload(RegBusSjhjtable regBusSjhjtable){
		return "123";
	}
}