|
|
@@ -393,8 +393,9 @@ public class StorageBgzzServiceImpl implements StorageBgzzService {
|
|
393
|
393
|
if (null != lsxz) {
|
|
394
|
394
|
map.put("lyxz", lsxz);
|
|
395
|
395
|
}
|
|
396
|
|
- if (StringUtils.isNotBlank(jznd)) {
|
|
|
396
|
+ if (StringUtils.isNotBlank(jznd)) {//当前年度
|
|
397
|
397
|
map.put("jznd", jznd);
|
|
|
398
|
+ map.put("top_jznd", Integer.parseInt(jznd)-1);//上次结转年度
|
|
398
|
399
|
}
|
|
399
|
400
|
if (StringUtils.isNotBlank(ylorcpl)) {
|
|
400
|
401
|
map.put("ylorcpl", ylorcpl);
|
|
|
@@ -420,7 +421,7 @@ public class StorageBgzzServiceImpl implements StorageBgzzService {
|
|
420
|
421
|
|
|
421
|
422
|
/** 先查上一年的结转数据 start **/
|
|
422
|
423
|
Integer top_year = Integer.parseInt(jznd)-1;
|
|
423
|
|
- List<StorageBgzz> top_year_jz_list = bgzzUtilsServiceImpl.getList(orgId, lsxz, top_year.toString(), StorageFcbgzUtils.DATA_TYPE_2, null);
|
|
|
424
|
+ List<StorageBgzz> top_year_jz_list = bgzzUtilsServiceImpl.getList(orgId, lsxz, top_year.toString(), StorageFcbgzUtils.DATA_TYPE_2, null, ylorcpl);
|
|
424
|
425
|
StorageBgzz top_year_jz = null;
|
|
425
|
426
|
if (null != top_year_jz_list && top_year_jz_list.size() > 0) {
|
|
426
|
427
|
top_year_jz = top_year_jz_list.get(0);
|
|
|
@@ -453,13 +454,13 @@ public class StorageBgzzServiceImpl implements StorageBgzzService {
|
|
453
|
454
|
for (int i = 0; i < 12; i++) {
|
|
454
|
455
|
//从1-12月依次查, 先查每月的明细
|
|
455
|
456
|
String jzyf = jznd+"-"+String.format("%02d", i+1).trim();
|
|
456
|
|
- jznd_month_jz_list = bgzzUtilsServiceImpl.getList(orgId, lsxz, jznd, StorageFcbgzUtils.DATA_TYPE_0, jzyf);
|
|
|
457
|
+ jznd_month_jz_list = bgzzUtilsServiceImpl.getList(orgId, lsxz, jznd, StorageFcbgzUtils.DATA_TYPE_0, jzyf, ylorcpl);
|
|
457
|
458
|
if (null != jznd_month_jz_list && jznd_month_jz_list.size() > 0) {
|
|
458
|
459
|
for (StorageBgzz f_day : jznd_month_jz_list) {
|
|
459
|
460
|
list.add(f_day);
|
|
460
|
461
|
}
|
|
461
|
462
|
//查询这个月的合计数据
|
|
462
|
|
- jznd_month_jz_sum_list = bgzzUtilsServiceImpl.getList(orgId, lsxz, jznd, StorageFcbgzUtils.DATA_TYPE_1, jzyf);
|
|
|
463
|
+ jznd_month_jz_sum_list = bgzzUtilsServiceImpl.getList(orgId, lsxz, jznd, StorageFcbgzUtils.DATA_TYPE_1, jzyf, ylorcpl);
|
|
463
|
464
|
if (null != jznd_month_jz_sum_list && jznd_month_jz_sum_list.size() > 0) {
|
|
464
|
465
|
list.add(jznd_month_jz_sum_list.get(0));
|
|
465
|
466
|
}
|
|
|
@@ -472,7 +473,7 @@ public class StorageBgzzServiceImpl implements StorageBgzzService {
|
|
472
|
473
|
|
|
473
|
474
|
|
|
474
|
475
|
/** 查[jznd]年的年合计数据 start **/
|
|
475
|
|
- List<StorageBgzz> jznd_year_jz_sum_list = bgzzUtilsServiceImpl.getList(orgId, lsxz, jznd, StorageFcbgzUtils.DATA_TYPE_2, null); //[jznd]年的合计
|
|
|
476
|
+ List<StorageBgzz> jznd_year_jz_sum_list = bgzzUtilsServiceImpl.getList(orgId, lsxz, jznd, StorageFcbgzUtils.DATA_TYPE_2, null, ylorcpl); //[jznd]年的合计
|
|
476
|
477
|
if (null != jznd_year_jz_sum_list && jznd_year_jz_sum_list.size() > 0) {
|
|
477
|
478
|
year_jz_obj = jznd_year_jz_sum_list.get(0);
|
|
478
|
479
|
list.add(year_jz_obj);
|