2b516c0e6110f79d42fb74b8cb5a7fefab649bd7.svn-base
29.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
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
package com.thinkgem.jeesite.modules.reg.service.bus;
import java.io.IOException;
import java.net.URI;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.apache.http.Header;
import org.apache.http.NameValuePair;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.exception.BussException;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.common.service.ServiceException;
import com.thinkgem.jeesite.common.utils.DateUtils;
import com.thinkgem.jeesite.common.utils.JsonUtil;
import com.thinkgem.jeesite.modules.reg.dao.bus.RegBusBdcqzsdjxxDao;
import com.thinkgem.jeesite.modules.reg.entity.base.RegBasePerson;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusBdcqzsdjxx;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusBdcqzsdjxxRelationFwBdcdyh;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusDyaq;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusJsydsyq;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusQlr;
import com.thinkgem.jeesite.modules.reg.entity.bus.RegBusRights;
import com.thinkgem.jeesite.modules.sys.service.InterSiService;
import com.thinkgem.jeesite.modules.sys.utils.UserUtils;
import com.thinkgem.jeesite.modules.title.buss.RemoteBuss;
import com.thinkgem.jeesite.modules.title.po.DjxxDto;
import com.thinkgem.jeesite.modules.ycsl.entity.YcslJbxx;
import com.thinkgem.jeesite.modules.ycsl.service.YcslJbxxService;
import net.sf.json.util.JSONUtils;
/**
* 不动产权证书登记信息管理Service
* @author xuyg
* @version 2015-12-02
*/
@Service
@Transactional(readOnly = true)
public class RegBusBdcqzsdjxxService extends CrudService<RegBusBdcqzsdjxxDao, RegBusBdcqzsdjxx> {
protected Logger logger = Logger.getLogger(getClass());
@Autowired
private RemoteBuss buss;
@Autowired
private RegBusJsydsyqService jsydsyqService;
@Autowired
private RegBusQlrService qlrService;
@Autowired
private RegBusRightsService rightsService;
@Autowired
@Lazy
private YcslJbxxService ycslJbxxService;
public List queryDjxxByQlrs(Map map){
return dao.queryDjxxByQlrs(map);
}
public List queryBdcLsxxByQlrs(Map map){
return dao.queryBdcLsxxByQlrs(map);
}
public List queryJyjgByCqzh(Map map){
return dao.queryJyjgByCqzh(map);
}
public RegBusBdcqzsdjxx get(String id) {
return super.get(id);
}
public RegBusBdcqzsdjxx getyg(String id) {
return dao.getyg(id);
}
public List<Map<String,String>> queryBdcDjxxByQlr(Map map) {
return dao.queryBdcDjxxByQlr(map);
}
public List<RegBusBdcqzsdjxx> findList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return super.findList(regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> findzyList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return super.findzyList(regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> findfwGMList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findfwGMList(regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> finddyList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.finddyList(regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> findzhList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
if("oracle".equals(Global.getDbName())){
return dao.OraclefindzhList(regBusBdcqzsdjxx);
}else{
return dao.findzhList(regBusBdcqzsdjxx);
}
}
public List<RegBusBdcqzsdjxx> bdcqzshfindlistbdcdyh(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.bdcqzshfindlistbdcdyh(regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> findfdList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findfdList(regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> finddyhcflist(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.finddyhcflist(regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> findcfList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findcfList(regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> findzydjqlrList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findzydjqlrList(regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> findBHQKList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findBHQKList(regBusBdcqzsdjxx);
}
public Page<RegBusBdcqzsdjxx> selectTyPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.selectTyList(regBusBdcqzsdjxx));
return page;
}
public List<RegBusBdcqzsdjxx> findxfList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return super.findxfList(regBusBdcqzsdjxx);
}
public Page<RegBusBdcqzsdjxx> findPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return super.findPage(page, regBusBdcqzsdjxx);
}
public Page<RegBusBdcqzsdjxx> findlpPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findlpList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> finddzdnPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.finddzdnList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findgmPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return super.findgmPage(page, regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> findgmList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findgmList(regBusBdcqzsdjxx);
}
public Page<RegBusBdcqzsdjxx> findxfPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return super.findxfPage(page, regBusBdcqzsdjxx);
}
public Page<RegBusBdcqzsdjxx> findfwsyqPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return super.findfwsyqPage(page, regBusBdcqzsdjxx);
}
public Page<RegBusBdcqzsdjxx> findygPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return super.findygPage(page, regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> findSelectedList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findSelectedList(regBusBdcqzsdjxx);
}
public List<RegBusBdcqzsdjxx> findFdsjList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findFdsjList(regBusBdcqzsdjxx);
}
public Page<RegBusBdcqzsdjxx> findSelectedPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> tddygmfindPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.tddygmfindList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectedZhPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedZhList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findQjCxPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findQjCxList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findFdsjPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findFdsjList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelecTdDy(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelecTdDy(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelecTdcbjyqDy(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelecTdcbjyqDy(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelecLqDy(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelecLqDy(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findTdSyqzx(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findTdSyqzx(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSllmSuoyqzx(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSllmSuoyqzx(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findDyqzyPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findDyqzyPage(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findDyqGzPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findDyqGzPage(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findDyqHbPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findDyqHbPage(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findCfSelectedPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findCfSelectedList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findtdcfzxPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findtdcfzxList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectedTdhzbzList(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedTdhzbzList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectedFwhzbzList(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedFwhzbzList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectedLqhzbzList(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedLqhzbzList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectedPagezgedySelect(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedPagezgedySelect(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectedPageybdySelect(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedPageybdySelect(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectedPageygdySelect(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedPageygdySelect(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectedPagesczydj(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedPagesczydj(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectedPageygzydj(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedPageygzydj(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectedPageygzydjhb(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedPageygzydjhb(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findfwSelectedPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findfwSelectedList(regBusBdcqzsdjxx));
return page;
}
public List<RegBusBdcqzsdjxx> finddytdfwSelectedList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.finddytdfwSelectedList(regBusBdcqzsdjxx);
}
public Page<RegBusBdcqzsdjxx> findSelectedFwchangePage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectedFwchangeList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findSelectLqchange(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findSelectLqchange(regBusBdcqzsdjxx));
return page;
}
public int registerTotalNum(RegBusBdcqzsdjxx regBusBdcqzsdjxx){
int num = dao.findTotalNum(regBusBdcqzsdjxx);
return num;
}
/**
* 房屋转移预告登记筛选
* @param page
* @param regBusBdcqzsdjxx
* @return
*/
public Page<RegBusBdcqzsdjxx> findfwygzyqqPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findfwygzyqqList(regBusBdcqzsdjxx));
return page;
}
/**
* 房屋转移登记筛选
* @param page
* @param regBusBdcqzsdjxx
* @return
*/
public Page<RegBusBdcqzsdjxx> findfwzyqqPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findfwzyqqList(regBusBdcqzsdjxx));
return page;
}
/**
* 房屋多幢注销登记筛选
* @param page
* @param regBusBdcqzsdjxx
* @return
*/
public Page<RegBusBdcqzsdjxx> findfwdzzxdjPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findfwdzzxdjList(regBusBdcqzsdjxx));
return page;
}
/**
* 森林林木转移登记筛选
* @param page
* @param regBusBdcqzsdjxx
* @return
*/
public Page<RegBusBdcqzsdjxx> findsllmzyqqPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findsllmzyqqList(regBusBdcqzsdjxx));
return page;
}
public Page<RegBusBdcqzsdjxx> findtdzylist(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findtdzyList(regBusBdcqzsdjxx));
return page;
}
//房屋预告转移注销
public Page<RegBusBdcqzsdjxx> findfwygzyzxSelectedPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.findfwygzyzxSelectedList(regBusBdcqzsdjxx));
return page;
}
/**
* @Title: getDbedZddm
* @Description: 获取已登记已登簿的业务宗地号集合
* @param @return 设定文件
* @return List<String> 返回类型
* @throws
*/
public List<String> getDbedZddm(){
return dao.getDbedZddm();
}
@Transactional(readOnly = false)
public void insertRelationFwBdcdyh(Map<String,String> map){
dao.insertRelationFwBdcdyh(map);
}
@Transactional(readOnly = false)
public List<RegBusBdcqzsdjxxRelationFwBdcdyh> getRelationFwBdcdyh(String mainid){
return dao.getRelationFwBdcdyh(mainid);
}
@Transactional(readOnly = false)
public void deleteRelationFwBdcdyh(String mainid){
dao.deleteRelationFwBdcdyh(mainid);
}
@Transactional(readOnly = false)
public void deleteygdyxx(RegBusBdcqzsdjxx regBusBdcqzsdjxx){
if(Global.isTitle()) {
if(StringUtils.isNotBlank(regBusBdcqzsdjxx.getBdcdyh())) {
List<RegBusBdcqzsdjxx> list = findList(regBusBdcqzsdjxx);
if(list.size()>0) {
for(int i=0;i<list.size();i++) {
RegBusBdcqzsdjxx djxx= list.get(i);
Map map = postdelData(djxx);
}
}
}
}
dao.deleteygdyxx(regBusBdcqzsdjxx);
}
@Transactional(readOnly = false)
public void deletezyyg(RegBusBdcqzsdjxx regBusBdcqzsdjxx){
if(Global.isTitle()) {
if(StringUtils.isNotBlank(regBusBdcqzsdjxx.getBdcdyh())) {
List<RegBusBdcqzsdjxx> list = findList(regBusBdcqzsdjxx);
if(list.size()>0) {
for(int i=0;i<list.size();i++) {
RegBusBdcqzsdjxx djxx= list.get(i);
Map map = postdelData(djxx);
}
}
}
}
if(Global.isYcsl()) {
RegBusBdcqzsdjxx djxx = new RegBusBdcqzsdjxx();
djxx.setYwh(regBusBdcqzsdjxx.getYwh());
List<RegBusBdcqzsdjxx> findList4 = findList(djxx);
if(findList4.size()>0) {
if(findList4.get(0).getDjlx().equals("302")) {
YcslJbxx jbxx = ycslJbxxService.getbdcdyh(findList4.get(0).getBdcdyh());
if(jbxx != null) {
jbxx.setZt("true");
ycslJbxxService.save(jbxx);
}
}
}
}
dao.deletezyyg(regBusBdcqzsdjxx);
}
@Transactional(readOnly = false)
public void save(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
if(Global.isYcsl()) {
if(regBusBdcqzsdjxx.getDjlx().equals("302") && StringUtils.isBlank(regBusBdcqzsdjxx.getId())) {
YcslJbxx jbxx = ycslJbxxService.getbdcdyh(regBusBdcqzsdjxx.getBdcdyh());
if(jbxx != null) {
jbxx.setZt("start");
ycslJbxxService.save(jbxx);
}
}
if(regBusBdcqzsdjxx.getDjlx().equals("302") && StringUtils.isNotBlank(regBusBdcqzsdjxx.getFzsj())) {
YcslJbxx jbxx = ycslJbxxService.getbdcdyh(regBusBdcqzsdjxx.getBdcdyh());
if(jbxx != null) {
jbxx.setZt("end");
ycslJbxxService.save(jbxx);
}
}
}
super.save(regBusBdcqzsdjxx);
if(Global.isTitle()) {
if(regBusBdcqzsdjxx.getBdcdyh().indexOf("JC")==-1) {
if(regBusBdcqzsdjxx.getIslogout().equals("0")||regBusBdcqzsdjxx.getIslogout().equals("2")) {
DjxxDto dto = new DjxxDto();
BeanUtils.copyProperties(regBusBdcqzsdjxx, dto);
if(StringUtils.isNotBlank(regBusBdcqzsdjxx.getDbsj()) ) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
List<RegBusJsydsyq> list = jsydsyqService.findByYwh(regBusBdcqzsdjxx.getYwh());
if(list.size()>0) {
if(list.get(0).getSyqqssj() != null) {
dto.setQssj(sdf.format(list.get(0).getSyqqssj()));
dto.setJssj(sdf.format(list.get(0).getSyqjssj()));
}
}
RegBusQlr qlr = new RegBusQlr();
qlr.setYwh(regBusBdcqzsdjxx.getYwh());
List<RegBusQlr> qlrlist = qlrService.findList_1(qlr);
if(qlrlist.size()>0) {
String gyr="";
String gyrzjzl = "";
String gyrzjhm = "";
String gyrlx = "";
for(int q=0;q<qlrlist.size();q++) {
qlr = qlrlist.get(q);
if(qlr.getSxh()==1) {
dto.setQlrmc(qlr.getQlrmc());
dto.setQlrlx(qlr.getQlrlx());
dto.setZjh(qlr.getZjh());
dto.setZjzl(qlr.getZjzl());
}else {
gyr = qlr.getQlrmc()+";"+gyr;
gyrzjzl = qlr.getZjzl()+";"+gyrzjzl;
gyrzjhm = qlr.getZjh()+";"+gyrzjhm;
gyrlx = qlr.getQlrlx()+";"+gyrlx;
}
}
dto.setGyr(gyr);
dto.setGyrzjzl(gyrzjzl);
dto.setGyrzjhm(gyrzjhm);
dto.setGyrlx(gyrlx);
}
//505之前若做过预告,注销后房屋所有权人变为预告,512注销后变为首次登记权利人
if(regBusBdcqzsdjxx.getDjlx().equals("505")) {
RegBusRights rights = rightsService.getByBdcdyh(regBusBdcqzsdjxx.getBdcdyh());
if(StringUtils.isNotBlank(rights.getXsouyq())) {
RegBusQlr qlr1 = new RegBusQlr();
qlr1.setYwh(rights.getXsouyq());
qlr1.setSxh(1);
List<RegBusQlr> qlr1list = qlrService.findList_1(qlr1);
if(qlr1list.size()>0) {
qlr1 = qlr1list.get(0);
dto.setQlrmc(qlr1.getQlrmc());
dto.setQlrlx(qlr1.getQlrlx());
dto.setZjh(qlr1.getZjh());
dto.setZjzl(qlr1.getZjzl());
}
}else {
dto.setQlrmc(null);
dto.setQlrlx(null);
dto.setZjh(null);
dto.setZjzl(null);
}
}else if(regBusBdcqzsdjxx.getDjlx().equals("512")) {
RegBusRights rights = rightsService.getByBdcdyh(regBusBdcqzsdjxx.getBdcdyh());
if(StringUtils.isNotBlank(rights.getSsouyq())) {
RegBusQlr qlr2 = new RegBusQlr();
qlr2.setYwh(rights.getSsouyq());
qlr2.setSxh(1);
List<RegBusQlr> qlr2list = qlrService.findList_1(qlr2);
if(qlr2list.size()>0) {
qlr2 = qlr2list.get(0);
dto.setQlrmc(qlr2.getQlrmc());
dto.setQlrlx(qlr2.getQlrlx());
dto.setZjh(qlr2.getZjh());
dto.setZjzl(qlr2.getZjzl());
}
}else {
dto.setQlrmc(null);
dto.setQlrlx(null);
dto.setZjh(null);
dto.setZjzl(null);
}
}
//将上一笔登记信息业务号及单元号暂时存储在这里,供权籍系统更新权属状态
//转移,变更(分割、合并)及注销时,上笔业务变为无效,权籍系统变为历史,查封时,上笔业务不受影响
if(regBusBdcqzsdjxx.getDjlx().startsWith("4")||regBusBdcqzsdjxx.getDjlx().startsWith("3")||regBusBdcqzsdjxx.getDjlx().startsWith("5")
||regBusBdcqzsdjxx.getDjlx().equals("809")||regBusBdcqzsdjxx.getDjlx().equals("810")||regBusBdcqzsdjxx.getDjlx().equals("811")
||regBusBdcqzsdjxx.getDjlx().equals("812")||regBusBdcqzsdjxx.getDjlx().equals("818")||regBusBdcqzsdjxx.getDjlx().equals("819")
||regBusBdcqzsdjxx.getDjlx().equals("607")||regBusBdcqzsdjxx.getDjlx().equals("609")||regBusBdcqzsdjxx.getDjlx().equals("912")
|| regBusBdcqzsdjxx.getDjlx().equals("908") || regBusBdcqzsdjxx.getDjlx().equals("904") || regBusBdcqzsdjxx.getDjlx().equals("906")) {
if(StringUtils.isNotBlank(regBusBdcqzsdjxx.getOldid())) {
String[] ids = regBusBdcqzsdjxx.getOldid().split(";");
String ywh = "";
String bdcdyh = "";
for(int k=0;k<ids.length;k++) {
if(StringUtils.isNotBlank(ywh)) {
if(get(ids[k]) != null) {
ywh = ywh+";"+get(ids[k]).getYwh();
bdcdyh = bdcdyh+";"+get(ids[k]).getBdcdyh();
}
}else {
//业务代码得知,首次时,oldid存的是zrz的id
if(get(ids[k]) != null) {
ywh = get(ids[k]).getYwh();
bdcdyh = get(ids[k]).getBdcdyh();
}
}
}
dto.setOldid(ywh);
dto.setYbdcqzh(bdcdyh);
}
}
}else {
dto.setOldid(null);
dto.setYbdcqzh(null);
}
Map map = postData(dto);
//logger.debug(map);
}
}
}
}
private Map postData(DjxxDto dto) {
String url = Global.getTitleUrl() + "/inte/post/djxxdata";
logger.debug(dto);
logger.debug(url);
Map params = JsonUtil.ObjectoMap(dto);
String content = "";
try {
content = buss.posturl(params, url);
} catch (IOException e) {
e.printStackTrace();
}
Map map = JsonUtil.jsonToMap(content);
return map;
}
@Transactional(readOnly = false)
public List<RegBusBdcqzsdjxx> getygdyxx(String oldid) {
return dao.getygdyxx(oldid);
}
@Transactional(readOnly = false)
public void delete(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
if(Global.isTitle()) {
Map map = postdelData(regBusBdcqzsdjxx);
}
if(Global.isYcsl()) {
RegBusBdcqzsdjxx djxx = new RegBusBdcqzsdjxx();
djxx.setYwh(regBusBdcqzsdjxx.getYwh());
List<RegBusBdcqzsdjxx> findList4 = findList(djxx);
if(findList4.size()>0) {
if(findList4.get(0).getDjlx().equals("302")) {
YcslJbxx jbxx = ycslJbxxService.getbdcdyh(findList4.get(0).getBdcdyh());
if(jbxx != null) {
jbxx.setZt("true");
ycslJbxxService.save(jbxx);
}
}
}
}
super.delete(regBusBdcqzsdjxx);
}
/**
* @Title: getNextBdcqzh
* @Description: 查询当前数据库里最大的不动产权证号
* @return String 返回类型
* @throws
*/
public String getNextBdcqzh(){
return dao.getNextBdcqzh();
}
/**
* @Title: getNextBdcqzhByNext
* @Description: 获取不动产权证号
* @param @param nextNum
* @return String 返回类型
* @throws
*/
public String getNextBdcqzhByNext(String nextNum) {
int next = Integer.parseInt(nextNum);
String yearStr = DateUtils.getYear();
DecimalFormat df = new DecimalFormat("0000000");
String retStr = yearStr + "-" + df.format(next);
return retStr;
}
/**
* @Title: getCurrentBdcqzbhStrNum
* @Description: 获取不动产权证编号
* @param @param currentNum
* @param @return 设定文件
* @return String 返回类型
* @throws
*/
public String getCurrentBdcqzbhStrNum(String nextNum) {
int next = Integer.parseInt(nextNum);
DecimalFormat df = new DecimalFormat("0000000");
String retStr = "610"+ df.format(next);;
return retStr;
}
public String findMaxYwhLs(){
return dao.findMaxYwhLs();
}
//上报日志接入查询
public String findAllnum(String dbsj){
return dao.allnum(dbsj);
}
public String findAllnum1(Map map){
return dao.allnum1(map);
}
public String findScnum(String dbsj){
return dao.scnum(dbsj);
}
public String findScnum1(Map map){
return dao.scnum1(map);
}
public String findZynum(String dbsj){
return dao.zynum(dbsj);
}
public String findZynum1(Map map){
return dao.zynum1(map);
}
public String findBgnum(String dbsj){
return dao.bgnum(dbsj);
}
public String findBgnum1(Map map){
return dao.bgnum1(map);
}
public String findZxnum(String dbsj){
return dao.zxnum(dbsj);
}
public String findZxnum1(Map map){
return dao.zxnum1(map);
}
public String findGznum(String dbsj){
return dao.gznum(dbsj);
}
public String findGznum1(Map map){
return dao.gznum1(map);
}
public String findYynum(String dbsj){
return dao.yynum(dbsj);
}
public String findYynum1(Map map){
return dao.yynum1(map);
}
public String findYgnum(String dbsj){
return dao.ygnum(dbsj);
}
public String findYgnum1(Map map){
return dao.ygnum1(map);
}
public String findCfnum(String dbsj){
return dao.cfnum(dbsj);
}
public String findCfnum1(Map map){
return dao.cfnum1(map);
}
public String findDyaqnum(String dbsj){
return dao.dyaqnum(dbsj);
}
public String findDyaqnum1(Map map){
return dao.dyaqnum1(map);
}
public String findDyiqnum(String dbsj){
return dao.dyiqnum(dbsj);
}
public String findDyiqnum1(Map map){
return dao.dyiqnum1(map);
}
//数据汇总房屋土地
public List<Map<String,Object>> getxqsjhz(Map<String,Object> map) {
return dao.getxqsjhz(map);
}
//数据汇总业务类
public List<Map<String,Object>> getxqsjhzdjdl(Map<String,Object> map) {
return dao.getxqsjhzdjdl(map);
}
//数据汇总抵押金额汇总
public List<String> getxqsjhzdyje(Map<String,Object> map) {
return dao.getxqsjhzdyje(map);
}
public Map<Object, Object> getDbmap(Map<String, Object> map){
return dao.getDbmap(map);
}
public List<RegBusBdcqzsdjxx> getDB(Map<String, Object> map){
return dao.getDB(map);
}
public List<RegBusBdcqzsdjxx> getkc01(Map<String, Object> map){
return dao.getkc01(map);
}
//一窗受理接口系统查询最后一笔有效的房屋所有权信息
public List<RegBusBdcqzsdjxx> findhttpList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findhttpList(regBusBdcqzsdjxx);
}
//一窗受理接口系统查询最后一笔有效的房屋所有权查封信息
public List<RegBusBdcqzsdjxx> findhttpCfdjxxList(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findhttpCfdjxxList(regBusBdcqzsdjxx);
}
//查询农房入库数据
public Map<String, Object> selectNF(String qsrq, String cxrq) {
// TODO Auto-generated method stub
return dao.selectNF(qsrq,cxrq);
}
public Map<String, Object> selectFMJ1(String qsrq, String cxrq) {
// TODO Auto-generated method stub
return dao.selectFMJ1(qsrq,cxrq);
}
public Map<String, Object> selectFMJ2(String qsrq, String cxrq) {
// TODO Auto-generated method stub
return dao.selectFMJ2(qsrq,cxrq);
}
public Map<String, Object> selectSMJ1(String qsrq, String cxrq) {
// TODO Auto-generated method stub
return dao.selectSMJ1(qsrq,cxrq);
}
public Map<String, Object> selectSMJ2(String qsrq, String cxrq) {
// TODO Auto-generated method stub
return dao.selectSMJ2(qsrq,cxrq);
}
public Map<String, Object> selectFJZMJ(String qsrq, String cxrq) {
// TODO Auto-generated method stub
return dao.selectFJZMJ(qsrq,cxrq);
}
public Map<String, Object> selectSJZMJ(String qsrq, String cxrq) {
// TODO Auto-generated method stub
return dao.selectSJZMJ(qsrq,cxrq);
}
/*
* 权籍勿动
*/
private Map postdelData(RegBusBdcqzsdjxx djxx) {
String url = Global.getTitleUrl() + "/delete/djxx";
Map params = Maps.newHashMap();
params.put("ywh", djxx.getYwh());
params.put("bdcdyh", djxx.getBdcdyh());
String content = "";
try {
content = buss.posturl(params, url);
} catch (IOException e) {
e.printStackTrace();
}
Map map = JsonUtil.jsonToMap(content);
return map;
}
public List<Map> getBdcxxByBdcqzh(RegBusBdcqzsdjxx djxx) {
// TODO Auto-generated method stub
return dao.getBdcxxByBdcqzh(djxx);
}
/*
* 根据不动产单元号查询有效发证数据
*/
public List<RegBusBdcqzsdjxx> findBdcdyhIslogoutFzsj(RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
return dao.findBdcdyhIslogoutFzsj(regBusBdcqzsdjxx);
}
public List<Map<String, String>> getBdcxxByDyzmh(RegBusBdcqzsdjxx djxx) {
// TODO Auto-generated method stub
return dao.getBdcxxByDyzmh(djxx);
}
public RegBusDyaq getQlxxByDyzmh(RegBusBdcqzsdjxx djxx) {
// TODO Auto-generated method stub
return dao.getQlxxByDyzmh(djxx);
}
public List<Map<String, String>> getBdcxxByYgzmh(RegBusBdcqzsdjxx djxx) {
// TODO Auto-generated method stub
return dao.getBdcxxByYgzmh(djxx);
}
public Map<String, String> getTdxxByBdcqzh(RegBusBdcqzsdjxx djxx) {
// TODO Auto-generated method stub
return dao.getTdxxByBdcqzh(djxx);
}
public List<RegBusBdcqzsdjxx> getbyYwh(String ywh) {
// TODO Auto-generated method stub
return dao.getbyYwh(ywh);
}
public Page<RegBusBdcqzsdjxx> selectNfPage(Page<RegBusBdcqzsdjxx> page, RegBusBdcqzsdjxx regBusBdcqzsdjxx) {
regBusBdcqzsdjxx.setPage(page);
page.setList(dao.selectNfList(regBusBdcqzsdjxx));
return page;
}
public List<Map> queryFwcbByCqzh(Map map) {
return dao.queryFwcbByCqzh(map);
}
}