| | |
| | | select.addText(String.format("from %s where %s = #{%s,jdbcType=BIGINT}", tableName, idKeys.column, |
| | | idKeys.attribute)); |
| | | |
| | | |
| | | select = root.addElement("select"); |
| | | select.addAttribute("id", "selectByPrimaryKeyForUpdate"); |
| | | select.addAttribute("resultMap", "BaseResultMap"); |
| | | select.addAttribute("parameterType", "java.lang.Long"); |
| | | select.addText("select"); |
| | | include = select.addElement("include"); |
| | | include.addAttribute("refid", "Base_Column_List"); |
| | | select.addText(String.format("from %s where %s = #{%s,jdbcType=BIGINT} for update", tableName, idKeys.column, |
| | | idKeys.attribute)); |
| | | |
| | | |
| | | |
| | | |
| | | org.dom4j.Element delete = root.addElement("delete"); |
| | | delete.addAttribute("id", "deleteByPrimaryKey"); |
| | | delete.addAttribute("parameterType", "java.lang.Long"); |