fix:场所出入登记接口提交

pg_adapter
wangxy 8 months ago
parent 7f4cd784a0
commit 16d8658544

@ -19,10 +19,19 @@
<label>登记人员:</label> <label>登记人员:</label>
<input type="text" name="registName"></input> <input type="text" name="registName"></input>
</li> </li>
<li> <!--<li>
<label>登记日期:</label> <label>登记日期:</label>
<input name="registTime" required class="form-control m-b" id="datetimepicker-demo-3" type="text"> <input name="registTime" required class="form-control m-b" id="datetimepicker-demo-3" type="text">
</li>-->
<li class="select-time">
<label>登记日期: </label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
</li> </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>

@ -42,8 +42,11 @@
<if test="caseType!=null and caseType!=''"> <if test="caseType!=null and caseType!=''">
AND case_type = #{caseType} AND case_type = #{caseType}
</if> </if>
<if test="caseTime!=null"> <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
AND case_time LIKE concat('%',#{caseTime},'%') AND case_time &gt;= #{params.beginTime}
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
AND case_time &lt;= #{params.endTime}
</if> </if>
<if test="caseGrade!=null and caseGrade!=''"> <if test="caseGrade!=null and caseGrade!=''">
AND case_grade = #{caseGrade} AND case_grade = #{caseGrade}

@ -39,8 +39,11 @@
<if test="registName!=null and registName!=''"> <if test="registName!=null and registName!=''">
AND regist_name LIKE concat('%',#{registName},'%') AND regist_name LIKE concat('%',#{registName},'%')
</if> </if>
<if test="registTime!=null"> <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
AND regist_time LIKE concat('%',#{registTime},'%') AND regist_time &gt;= #{params.beginTime}
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
AND regist_time &lt;= #{params.endTime}
</if> </if>
</trim> </trim>
ORDER BY create_time DESC ORDER BY create_time DESC

Loading…
Cancel
Save