原始獲取類型
<select name="provinceId" lay-filter="province">
<option value="">請選擇省</option>
<#if province?exists>
<#list province as model>
<option value="${model.id?if_exists}" <#if user?exists><#if user.provinceId== model.id>selected</#if></#if>>${model.areaName}</option>
</#list>
</#if>
</select>
上面獲取的province數據的id在select列表中超過三位數的會自動添加逗號進行分割

這樣
在所屬的數據后面添加?c進行轉換即可
<select name="provinceId" lay-filter="province">
<option value="">請選擇省</option>
<#if province?exists>
<#list province as model>
<option value="${model.id?c}" <#if user?exists><#if user.provinceId== model.id>selected</#if></#if>>${model.areaName}</option>
</#list>
</#if>
</select>
