优化商品查询功能
This commit is contained in:
@@ -327,13 +327,10 @@ public class MaterialService {
|
||||
return list;
|
||||
}
|
||||
|
||||
public List<Material> findByOrder()throws Exception{
|
||||
MaterialExample example = new MaterialExample();
|
||||
example.createCriteria().andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
|
||||
example.setOrderByClause("Name,Model asc");
|
||||
public List<Material> findByOrder(String name, String model)throws Exception{
|
||||
List<Material> list =null;
|
||||
try{
|
||||
list= materialMapper.selectByExample(example);
|
||||
list= materialMapperEx.findByOrder(name, model);
|
||||
}catch(Exception e){
|
||||
JshException.readFail(logger, e);
|
||||
}
|
||||
@@ -729,4 +726,12 @@ public class MaterialService {
|
||||
String maxBarCodeOld = materialMapperEx.getMaxBarCode();
|
||||
return Long.parseLong(maxBarCodeOld)+"";
|
||||
}
|
||||
|
||||
public List<String> getMaterialNameList() {
|
||||
return materialMapperEx.getMaterialNameList();
|
||||
}
|
||||
|
||||
public List<String> getMaterialModelList() {
|
||||
return materialMapperEx.getMaterialModelList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user