Browse Source

Merge remote-tracking branch 'remotes/origin/dev_bugfix_ljj' into 市北master

master
jianjun 3 years ago
parent
commit
99b60c7455
  1. 11
      epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/epmetuser/IcResiUserDao.xml
  2. 2
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/policy/IcPolicyRuleDetailDTO.java

11
epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/epmetuser/IcResiUserDao.xml

@ -116,6 +116,15 @@
<if test="resiRules != null and resiRules.size() > 0"> <if test="resiRules != null and resiRules.size() > 0">
and and
<foreach collection="resiRules" item="rule" open="(" close=")"> <foreach collection="resiRules" item="rule" open="(" close=")">
<choose>
<!--针对为空/不为空进行单独处理-->
<when test="rule.queryType == 'is_null'">
(${rule.colTable}.${rule.colKey} is null or ${rule.colTable}.${rule.colKey} = '')
</when>
<when test="rule.queryType == 'is_not_null'">
(${rule.colTable}.${rule.colKey} is not null and ${rule.colTable}.${rule.colKey} != '')
</when>
<otherwise>
${rule.colTable}.${rule.colKey} ${rule.queryType} ${rule.colTable}.${rule.colKey} ${rule.queryType}
<choose> <choose>
<when test="rule.queryType == 'like'"> <when test="rule.queryType == 'like'">
@ -125,6 +134,8 @@
#{rule.colVal} #{rule.colVal}
</otherwise> </otherwise>
</choose> </choose>
</otherwise>
</choose>
${rule.nextLogicalRel} ${rule.nextLogicalRel}
</foreach> </foreach>
</if> </if>

2
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/policy/IcPolicyRuleDetailDTO.java

@ -64,7 +64,7 @@ public class IcPolicyRuleDetailDTO {
/** /**
* 参数值 * 参数值
*/ */
@NotBlank(message = "参数值不能为空", groups = {ResiRulerShowGroup.class,HouseRulerShowGroup.class,StatRulerShowGroup.class}) // @NotBlank(message = "参数值不能为空", groups = {ResiRulerShowGroup.class,HouseRulerShowGroup.class,StatRulerShowGroup.class})
private String colVal; private String colVal;
/** /**

Loading…
Cancel
Save