浏览代码

水量管理-添加权限判断解决系统异常错误

oppadmin 4 年之前
父节点
当前提交
686b511e05
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      smart-city-platform/src/main/resources/mapper/pay/AmountWaterUsedAmountMapper.xml

+ 3 - 2
smart-city-platform/src/main/resources/mapper/pay/AmountWaterUsedAmountMapper.xml

@@ -92,8 +92,9 @@
 			<if test="programItems != null and programItems.size() != 0">
 				and
 				<foreach collection="programItems" item="item" open="(" separator=" or " close=")">
-						a.${item.dimensionCode} = #{item.dimensionValue}
-
+				<if test="item.dimensionId == 10">
+					a.${item.dimensionCode} = #{item.dimensionValue}
+				</if>
 				</foreach>
 			</if>
 		</where>