下拉框多選實現回顯及sql


 

<td class="tabTd"><label>客戶來源:</label></td>
<td><select class="easyui-combobox" panelHeight="auto" id="customer_source" name="teBuyerInfo.customer_source" multiple="multiple" style="width:600px">
<option value="" ></option>
<c:forEach var="customerSource" items="${customerSourcelList}" varStatus="status">
<option value="${customerSource.type_value}" <c:if test="${fn:contains(newCustomer.teBuyerInfo.customer_source,customerSource.type_value)}">selected="selected"</c:if>>${customerSource.type_value_desc}</option>
</c:forEach>
</select></td>

 

<if test="customer_source!=null and customer_source!=''">
and (info.customer_source like CONCAT('%,', #{customer_source:VARCHAR}, ',%') or info.customer_source=#{customer_source:VARCHAR})
</if>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM