| | |
| | | , param.get("matnr") |
| | | , param.get("maktx") |
| | | , param.get("specs") |
| | | , param.get("mat_type") |
| | | ) |
| | | ); |
| | | |
| | |
| | | @Repository |
| | | public interface MatMapper extends BaseMapper<Mat> { |
| | | |
| | | List<Mat> listByPage(Page page, @Param("tagId") String tagId, @Param("matnr") Object matnr, @Param("maktx") Object maktx, @Param("specs") Object specs); |
| | | List<Mat> listByPage(Page page, @Param("tagId") String tagId, @Param("matnr") Object matnr, @Param("maktx") Object maktx, @Param("specs") Object specs, @Param("matType") Object matType); |
| | | |
| | | Mat selectByMatnr(@Param("matnr")String matnr); |
| | | |
| | |
| | | |
| | | public interface MatService extends IService<Mat> { |
| | | |
| | | Page<Mat> getPage(Page page, String tagId, Object matnr, Object maktx, Object specs); |
| | | Page<Mat> getPage(Page page, String tagId, Object matnr, Object maktx, Object specs, Object matType); |
| | | |
| | | Mat selectByMatnr(String matnr); |
| | | |
| | |
| | | public class MatServiceImpl extends ServiceImpl<MatMapper, Mat> implements MatService { |
| | | |
| | | @Override |
| | | public Page<Mat> getPage(Page page, String tagId, Object matnr, Object maktx, Object specs) { |
| | | return page.setRecords(baseMapper.listByPage(page, tagId, matnr, maktx, specs)); |
| | | public Page<Mat> getPage(Page page, String tagId, Object matnr, Object maktx, Object specs, Object matType) { |
| | | return page.setRecords(baseMapper.listByPage(page, tagId, matnr, maktx, specs, matType)); |
| | | } |
| | | |
| | | |
| | |
| | | <if test="specs != null and specs != ''"> |
| | | and mm.specs like concat('%',#{specs},'%') |
| | | </if> |
| | | <if test="matType != null and matType != ''"> |
| | | and mm.mat_type = #{matType} |
| | | </if> |
| | | ORDER BY mm.inout_everyday desc, mm.create_time DESC |
| | | </select> |
| | | |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <select name="mat_type"> |
| | | <option value="">选择上架区域</option> |
| | | <option value="1">单品区</option> |
| | | <option value="2">高频混放区</option> |
| | | <option value="3">低频混放区</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off"> |
| | | </div> |
| | | </div> |