<#assign hasChildrenField = ""> <#list originalColumns as po> <#if po.fieldDbName == tableVo.extendParams.hasChildren> <#assign hasChildrenField = po.fieldName> update ${tableName} set ${Format.humpToUnderline(hasChildrenField)} = ${r'#'}{status} where id = ${r'#'}{id}