<if test="workGroupId!=null and workGroupId!=''">
            b.work_group_id=#{workGroupId,jdbcType=DECIMAL}
        </if>

如果workGroupId  为0,,那么下面就进不去

需要改成下面的

<if test="workGroupId!=null and workGroupId!='' or workGroupId == 0 ">
            b.work_group_id=#{workGroupId,jdbcType=DECIMAL}
        </if>

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2021-10-07
  • 2021-11-18
  • 2022-12-23
  • 2021-11-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案