已经完成

出入库任务记录添加搜索任务状态功能
master
森屿海巷 4 years ago
parent f679b07069
commit 0a254d39a4

@ -18,6 +18,13 @@
<label>箱体编码:</label> <label>箱体编码:</label>
<input type="text" name="boxCode"/> <input type="text" name="boxCode"/>
</li> </li>
<li>
<label>任务状态:</label>
<select name="taskStatus" th:with="type=${@dict.getType('location_status')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li> <li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a> <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a> <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>

@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where> <where>
<if test="taskCode != null and taskCode != ''"> and task_code like concat(concat('%', #{taskCode}), '%')</if> <if test="taskCode != null and taskCode != ''"> and task_code like concat(concat('%', #{taskCode}), '%')</if>
<if test="boxCode != null and boxCode != ''"> and box_code like concat(concat('%', #{boxCode}), '%')</if> <if test="boxCode != null and boxCode != ''"> and box_code like concat(concat('%', #{boxCode}), '%')</if>
<if test="taskStatus != null"> and task_status like concat(concat('%', #{taskStatus}), '%')</if>
</where> </where>
</select> </select>

Loading…
Cancel
Save