fanxw 1 year ago
parent
commit
de36d58c3d

+ 3 - 0
src/main/java/com/chinaitop/depot/keeperAccount/mapper/StorageFcbgzMapper.xml

@@ -723,6 +723,9 @@
723 723
 	    <if test="jznd != null">
724 724
         and jznd=#{jznd,jdbcType=VARCHAR}
725 725
         </if>
726
+        <if test="lyxz != null">
727
+        and lyxz=#{lyxz,jdbcType=INTEGER}
728
+        </if>
726 729
 	) c on c.hwh=a.hwh and c.jznd=a.jznd
727 730
 	where 1=1 
728 731
 	<if test="sfjz==1">

+ 2 - 2
src/main/java/com/chinaitop/depot/keeperAccount/service/impl/StorageFcbgzServiceImpl.java

@@ -178,7 +178,7 @@ public class StorageFcbgzServiceImpl implements StorageFcbgzService {
178 178
 					list.add(f_day);
179 179
 				}
180 180
 				//查询这个月的合计数据
181
-				jznd_month_jz_sum_list = fcbgzUtilsServiceImpl.getList(null, ch, hwh, null, null, jznd, null, StorageFcbgzUtils.DATA_TYPE_1);
181
+				jznd_month_jz_sum_list = fcbgzUtilsServiceImpl.getList(null, ch, hwh, null, lsxz, jznd, null, StorageFcbgzUtils.DATA_TYPE_1);
182 182
 				if (null != jznd_month_jz_sum_list && jznd_month_jz_sum_list.size() > 0) {
183 183
 					list.add(jznd_month_jz_sum_list.get(0));
184 184
 				}
@@ -191,7 +191,7 @@ public class StorageFcbgzServiceImpl implements StorageFcbgzService {
191 191
 
192 192
 
193 193
 		/** 查[jznd]年的年合计数据  start  **/
194
-		List<StorageFcbgz> jznd_year_jz_sum_list = fcbgzUtilsServiceImpl.getList(null, ch, hwh, null, null, jznd, null, StorageFcbgzUtils.DATA_TYPE_2); //[jznd]年的合计
194
+		List<StorageFcbgz> jznd_year_jz_sum_list = fcbgzUtilsServiceImpl.getList(null, ch, hwh, null, lsxz, jznd, null, StorageFcbgzUtils.DATA_TYPE_2); //[jznd]年的合计
195 195
 		if (null != jznd_year_jz_sum_list && jznd_year_jz_sum_list.size() > 0) {
196 196
 			year_jz_obj = jznd_year_jz_sum_list.get(0);
197 197
 			list.add(year_jz_obj);