Closed icodeeeee closed 4 years ago
生成的代码中部分字段未遵循驼峰命名比如p_id字段 if (record.getpId() != null) { sql.SET("p_id = #{record.pId,jdbcType=INTEGER}"); } 而Lombok生成的是 if (record.getPId() != null) { sql.SET("p_id = #{record.pId,jdbcType=INTEGER}"); }
if (record.getpId() != null) { sql.SET("p_id = #{record.pId,jdbcType=INTEGER}"); }
if (record.getPId() != null) { sql.SET("p_id = #{record.pId,jdbcType=INTEGER}"); }
应该是lombok插件生成getter不符合驼峰规则,尽量避免这种情况,可自定义字段生成规则,重命名为pid或id.
no fix
生成的代码中部分字段未遵循驼峰命名比如p_id字段
if (record.getpId() != null) { sql.SET("p_id = #{record.pId,jdbcType=INTEGER}"); }
而Lombok生成的是if (record.getPId() != null) { sql.SET("p_id = #{record.pId,jdbcType=INTEGER}"); }