1、Jeeplus代码生成后,列表窗口添加查找项
1、Jeeplus自动生成代码后,没有默认生成查找项,我解决如下:
2、xxxList.jsp中<!--查询条件-->中<div class="form-group">下添加类似:
<span>客户编码:</span>
<form:input path="ccusCode" htmlEscape="false" maxlength="64" class=" form-control input-sm"/> (path=后跟Model中属性,如ccusCode,注意大小写)
3、在Resource中设置mapping,如CustomerDao.xml中找到id="findList"
<where>
a.del_flag = #{DEL_FLAG_NORMAL}下添加类似:(ccusCode为查找列)
<if test="ccusCode != null and ccusCode != ''">
AND a.ccusCode = #{ccusCode}
</if>
OK