Mybatis
1、sql update 当wedId为null时不抛异常,不更新数据库,注意手动检查条件是否为null
UPDATE exception_waterquality_diagnose
SET enterpriseId = #{enterpriseId},categoryId = #{categoryId},cause = #{cause},solution = #{solution}
WHERE wedId = #{wedId}
Java
1、循环引用可能会造成StackOverFlow