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