Browse Source

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

master
jianjun 3 years ago
parent
commit
99b60c7455
  1. 19
      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

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

@ -116,13 +116,24 @@
<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=")">
${rule.colTable}.${rule.colKey} ${rule.queryType}
<choose> <choose>
<when test="rule.queryType == 'like'"> <!--针对为空/不为空进行单独处理-->
CONCAT('%',#{rule.colVal} ,'%') <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> </when>
<otherwise> <otherwise>
#{rule.colVal} ${rule.colTable}.${rule.colKey} ${rule.queryType}
<choose>
<when test="rule.queryType == 'like'">
CONCAT('%',#{rule.colVal} ,'%')
</when>
<otherwise>
#{rule.colVal}
</otherwise>
</choose>
</otherwise> </otherwise>
</choose> </choose>
${rule.nextLogicalRel} ${rule.nextLogicalRel}

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