| | |
| | | return R.ok(matService.getPage(new Page<>(curr, limit) |
| | | , String.valueOf(tagId) |
| | | , param.get("matnr") |
| | | , param.get("matnr2") |
| | | , param.get("maktx") |
| | | , param.get("specs") |
| | | ) |
| | |
| | | @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("matnr2") Object matnr2, @Param("maktx") Object maktx, @Param("specs") Object specs); |
| | | |
| | | 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 matnr2, Object maktx, Object specs); |
| | | |
| | | 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 matnr2, Object maktx, Object specs) { |
| | | return page.setRecords(baseMapper.listByPage(page, tagId, matnr, matnr2, maktx, specs)); |
| | | } |
| | | |
| | | |
| | |
| | | <if test="matnr != null and matnr != ''"> |
| | | and mm.matnr like concat('%',#{matnr},'%') |
| | | </if> |
| | | <if test="matnr != null and matnr != ''"> |
| | | and mm.matnr2 like concat('%',#{matnr2},'%') |
| | | </if> |
| | | <if test="maktx != null and maktx != ''"> |
| | | and mm.maktx like concat('%',#{maktx},'%') |
| | | </if> |