Bläddra i källkod

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

oppadmin 4 år sedan
förälder
incheckning
686b511e05

+ 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>