|
@@ -529,6 +529,97 @@
|
529
|
where
|
529
|
where
|
530
|
NYS = #{nysId}
|
530
|
NYS = #{nysId}
|
531
|
</update>
|
531
|
</update>
|
|
|
532
|
+ <update id="updateZFXMFYMC">
|
|
|
533
|
+ update prj_AnnualBudgetDetail set FYMC = '(一)直接费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a15524497';
|
|
|
534
|
+ update prj_AnnualBudgetDetail set FYMC = '1、设备费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a155612437';
|
|
|
535
|
+ update prj_AnnualBudgetDetail set FYMC = '(1)购置设备费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a155639759';
|
|
|
536
|
+ update prj_AnnualBudgetDetail set FYMC = '(2)试制设备费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a155757605';
|
|
|
537
|
+ update prj_AnnualBudgetDetail set FYMC = '(3)设备改造与租赁费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a155830224';
|
|
|
538
|
+ update prj_AnnualBudgetDetail set FYMC = '2、材料费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a155903296';
|
|
|
539
|
+ update prj_AnnualBudgetDetail set FYMC = '3、测试实验加工费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160001888';
|
|
|
540
|
+ update prj_AnnualBudgetDetail set FYMC = '4、燃料动力费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160026901';
|
|
|
541
|
+ update prj_AnnualBudgetDetail set FYMC = '5、差旅费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160047208';
|
|
|
542
|
+ update prj_AnnualBudgetDetail set FYMC = '6、会议费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160100215';
|
|
|
543
|
+ update prj_AnnualBudgetDetail set FYMC = '7、国际合作与交流费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160112278';
|
|
|
544
|
+ update prj_AnnualBudgetDetail set FYMC = '8、出版/文献/信息传播/知识产权事务费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160131916';
|
|
|
545
|
+ update prj_AnnualBudgetDetail set FYMC = '9、劳务费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160425416';
|
|
|
546
|
+ update prj_AnnualBudgetDetail set FYMC = '10、专家咨询费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160458412';
|
|
|
547
|
+ update prj_AnnualBudgetDetail set FYMC = '11、其他支出' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160517974';
|
|
|
548
|
+ update prj_AnnualBudgetDetail set FYMC = '(二)间接费用' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160623545';
|
|
|
549
|
+ update prj_AnnualBudgetDetail set FYMC = '其中:绩效来源' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a160654304';
|
|
|
550
|
+ update prj_AnnualBudgetDetail set FYMC = '(三)外委支出费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100055750';
|
|
|
551
|
+ update prj_AnnualBudgetDetail set FYMC = '(1)外委支出费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a142751829';
|
|
|
552
|
+ update A
|
|
|
553
|
+ set A.bm = B.bm, A.fj = B.fj
|
|
|
554
|
+ from prj_AnnualBudgetDetail A
|
|
|
555
|
+ inner join (
|
|
|
556
|
+ select bp.* from base_ProjectBudget bp ,prj_Project pp,base_ProjectTemplate bpt
|
|
|
557
|
+ where pp.xmlx = bpt.xmlx and bpt.id = bp.xm and pp.id = #{rwsId}
|
|
|
558
|
+ ) B on A.FYMC = B.mc
|
|
|
559
|
+ where
|
|
|
560
|
+ NYS in ( SELECT id from prj_AnnualBudget where rws = #{rwsId} );
|
|
|
561
|
+ </update>
|
|
|
562
|
+ <update id="updateSXGSKJXMFYMC">
|
|
|
563
|
+ UPDATE prj_AnnualBudgetDetail set bm = '7' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '6' and FYMC = '2.设备使用费' ;
|
|
|
564
|
+ UPDATE prj_AnnualBudgetDetail set bm = '8' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '7' and FYMC = '(1)仪器设备使用费' ;
|
|
|
565
|
+ UPDATE prj_AnnualBudgetDetail set bm = '9' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '8' and FYMC = '(2)软件使用费' ;
|
|
|
566
|
+ UPDATE prj_AnnualBudgetDetail set bm = '10' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '9' and FYMC = '3.业务费' ;
|
|
|
567
|
+ UPDATE prj_AnnualBudgetDetail set bm = '11' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '10' and FYMC = '(1)材料费' ;
|
|
|
568
|
+ UPDATE prj_AnnualBudgetDetail set bm = '12' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '11' and FYMC = '(2)资料、印刷及知识产权费' ;
|
|
|
569
|
+ UPDATE prj_AnnualBudgetDetail set bm = '13' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '12' and FYMC = '(3)会议、差旅及国际合作交流费' ;
|
|
|
570
|
+ UPDATE prj_AnnualBudgetDetail set bm = '14' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '17' and FYMC = '4.场地使用费' ;
|
|
|
571
|
+ UPDATE prj_AnnualBudgetDetail set bm = '15' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '18' and FYMC = '(1)场地物业费' ;
|
|
|
572
|
+ UPDATE prj_AnnualBudgetDetail set bm = '16' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '19' and FYMC = '(2)场地使用租金' ;
|
|
|
573
|
+ UPDATE prj_AnnualBudgetDetail set bm = '17' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '20' and FYMC = '5.专家咨询费' ;
|
|
|
574
|
+ UPDATE prj_AnnualBudgetDetail set bm = '18' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '21' and FYMC = '(二)间接费' ;
|
|
|
575
|
+ UPDATE prj_AnnualBudgetDetail set bm = '19' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '22' and FYMC = '(三)外委支出费' ;
|
|
|
576
|
+ UPDATE prj_AnnualBudgetDetail set bm = '20' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '23' and FYMC = '1.外委研究支出费' ;
|
|
|
577
|
+ UPDATE prj_AnnualBudgetDetail set bm = '21' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '24' and FYMC = '2.仪器设备租赁费' ;
|
|
|
578
|
+ UPDATE prj_AnnualBudgetDetail set bm = '22' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '25' and FYMC = '3.外协测试试验与加工费' ;
|
|
|
579
|
+ UPDATE prj_AnnualBudgetDetail set bm = '23' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = '26' and FYMC = '(四)税金' ;
|
|
|
580
|
+ update A
|
|
|
581
|
+ set A.fymc = B.mc, A.fj = B.fj
|
|
|
582
|
+ from prj_AnnualBudgetDetail A
|
|
|
583
|
+ inner join (
|
|
|
584
|
+ select bp.* from base_ProjectBudget bp ,prj_Project pp,base_ProjectTemplate bpt
|
|
|
585
|
+ where pp.xmlx = bpt.xmlx and bpt.id = bp.xm and pp.id = #{rwsId}
|
|
|
586
|
+ ) B on A.bm = B.bm
|
|
|
587
|
+ where
|
|
|
588
|
+ NYS in ( SELECT id from prj_AnnualBudget where rws = #{rwsId} );
|
|
|
589
|
+ </update>
|
|
|
590
|
+ <update id="updateGWGSKJXMFYMC">
|
|
|
591
|
+ update prj_AnnualBudgetDetail set FYMC = '(一)直接费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100002972';
|
|
|
592
|
+ update prj_AnnualBudgetDetail set FYMC = '1.人工费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100100606';
|
|
|
593
|
+ update prj_AnnualBudgetDetail set FYMC = '(1)专职研究人员人工费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100252246';
|
|
|
594
|
+ update prj_AnnualBudgetDetail set FYMC = '(2)劳务外包人员人工费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a10025555';
|
|
|
595
|
+ update prj_AnnualBudgetDetail set FYMC = '(3)临时性研究人员人工费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a094823724';
|
|
|
596
|
+ update prj_AnnualBudgetDetail set FYMC = '2.设备使用费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100124784';
|
|
|
597
|
+ update prj_AnnualBudgetDetail set FYMC = '(1)仪器设备使用费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a10033260';
|
|
|
598
|
+ update prj_AnnualBudgetDetail set FYMC = '(2)软件使用费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100335414';
|
|
|
599
|
+ update prj_AnnualBudgetDetail set FYMC = '3.业务费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100142605';
|
|
|
600
|
+ update prj_AnnualBudgetDetail set FYMC = '(1)材料费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100402638';
|
|
|
601
|
+ update prj_AnnualBudgetDetail set FYMC = '(2)资料,印刷及知识产权费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100404901';
|
|
|
602
|
+ update prj_AnnualBudgetDetail set FYMC = '(3)会议,差旅及国际合作交流费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100406974';
|
|
|
603
|
+ update prj_AnnualBudgetDetail set FYMC = '场地使用费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100145230';
|
|
|
604
|
+ update prj_AnnualBudgetDetail set FYMC = '(1)场地物业费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100529887';
|
|
|
605
|
+ update prj_AnnualBudgetDetail set FYMC = '(2)场地使用租金' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a10053223';
|
|
|
606
|
+ update prj_AnnualBudgetDetail set FYMC = '5.专家咨询费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100237514';
|
|
|
607
|
+ update prj_AnnualBudgetDetail set FYMC = '(二)间接费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a10055632';
|
|
|
608
|
+ update prj_AnnualBudgetDetail set FYMC = '外委支出费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100604109';
|
|
|
609
|
+ update prj_AnnualBudgetDetail set FYMC = '1.外委研究支出费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a10063271';
|
|
|
610
|
+ update prj_AnnualBudgetDetail set FYMC = '2.仪器设备租赁费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a1006345';
|
|
|
611
|
+ update prj_AnnualBudgetDetail set FYMC = '3.外协测试试验与加工费' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100635599';
|
|
|
612
|
+ update prj_AnnualBudgetDetail set FYMC = '(四)税金' where nys in (SELECT id from prj_AnnualBudget where rws = #{rwsId} ) and bm = 'a100606333';
|
|
|
613
|
+ update A
|
|
|
614
|
+ set A.bm = B.bm, A.fj = B.fj
|
|
|
615
|
+ from prj_AnnualBudgetDetail A
|
|
|
616
|
+ inner join (
|
|
|
617
|
+ select bp.* from base_ProjectBudget bp ,prj_Project pp,base_ProjectTemplate bpt
|
|
|
618
|
+ where pp.xmlx = bpt.xmlx and bpt.id = bp.xm and pp.id = #{rwsId}
|
|
|
619
|
+ ) B on A.FYMC = B.mc
|
|
|
620
|
+ where
|
|
|
621
|
+ NYS in ( SELECT id from prj_AnnualBudget where rws = #{rwsId} );
|
|
|
622
|
+ </update>
|
532
|
|
623
|
|
533
|
<!--已申请费用的预算-->
|
624
|
<!--已申请费用的预算-->
|
534
|
<select id="getFysqBudgetList">
|
625
|
<select id="getFysqBudgetList">
|
|
@@ -575,5 +666,12 @@
|
575
|
where RWS = #{rws}
|
666
|
where RWS = #{rws}
|
576
|
AND a.NF = #{nf}
|
667
|
AND a.NF = #{nf}
|
577
|
</select>
|
668
|
</select>
|
|
|
669
|
+
|
|
|
670
|
+
|
|
|
671
|
+
|
|
|
672
|
+
|
|
|
673
|
+
|
|
|
674
|
+
|
|
|
675
|
+
|
578
|
</mapper>
|
676
|
</mapper>
|
579
|
|
677
|
|