| | |
| | | @Repository |
| | | public interface LocDetlMapper extends BaseMapper<LocDetl> { |
| | | |
| | | List<LocDetl> getStockOutPage(@Param("pageNumber")int pageNumber, @Param("pageSize")int pageSize, @Param("loc_no") Object loc_no); |
| | | List<LocDetl> getStockOutPage(@Param("pageNumber")int pageNumber, @Param("pageSize")int pageSize, @Param("loc_no") Object loc_no, @Param("matnr") Object matnr); |
| | | |
| | | Integer getStockOutPageCount(@Param("loc_no") Object loc_no); |
| | | Integer getStockOutPageCount(@Param("loc_no") Object loc_no, @Param("matnr") Object matnr); |
| | | |
| | | } |
| | |
| | | |
| | | @Override |
| | | public Page<LocDetl> getStockOut(Page<LocDetl> page) { |
| | | page.setRecords(baseMapper.getStockOutPage(page.getCurrent(), page.getSize(), page.getCondition().get("loc_no"))); |
| | | page.setTotal(baseMapper.getStockOutPageCount(page.getCondition().get("loc_no"))); |
| | | page.setRecords(baseMapper.getStockOutPage(page.getCurrent(), page.getSize() |
| | | , page.getCondition().get("loc_no"), page.getCondition().get("matnr"))); |
| | | page.setTotal(baseMapper.getStockOutPageCount(page.getCondition().get("loc_no"), page.getCondition().get("matnr"))); |
| | | return page; |
| | | } |
| | | |
| | | } |
| | |
| | | <if test="loc_no!=null and loc_no!='' "> |
| | | and a.loc_no like '%' + #{loc_no} + '%' |
| | | </if> |
| | | <if test="matnr!=null and matnr!='' "> |
| | | and a.matnr like '%' + #{matnr} + '%' |
| | | </if> |
| | | </sql> |
| | | |
| | | <select id="getStockOutPage" resultMap="BaseResultMap"> |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="mat_no" placeholder="箱号/批号" autocomplete="off"> |
| | | <input class="layui-input" type="text" name="matnr" placeholder="箱号/批号" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |