异常封装之商品属性信息后台修改

This commit is contained in:
qiankunpingtai
2019-04-19 09:55:42 +08:00
parent d188dcb216
commit 642f36e877
2 changed files with 110 additions and 27 deletions

View File

@@ -19,16 +19,16 @@ public class MaterialPropertyComponent implements ICommonQuery {
private MaterialPropertyService materialPropertyService;
@Override
public Object selectOne(String condition) {
public Object selectOne(String condition)throws Exception {
return null;
}
@Override
public List<?> select(Map<String, String> map) {
public List<?> select(Map<String, String> map)throws Exception {
return getMaterialPropertyList(map);
}
private List<?> getMaterialPropertyList(Map<String, String> map) {
private List<?> getMaterialPropertyList(Map<String, String> map)throws Exception {
String search = map.get(Constants.SEARCH);
String name = StringUtil.getInfo(search, "name");
String order = QueryUtils.order(map);
@@ -36,34 +36,34 @@ public class MaterialPropertyComponent implements ICommonQuery {
}
@Override
public Long counts(Map<String, String> map) {
public Long counts(Map<String, String> map)throws Exception {
String search = map.get(Constants.SEARCH);
String name = StringUtil.getInfo(search, "name");
return materialPropertyService.countMaterialProperty(name);
}
@Override
public int insert(String beanJson, HttpServletRequest request) {
public int insert(String beanJson, HttpServletRequest request)throws Exception {
return materialPropertyService.insertMaterialProperty(beanJson, request);
}
@Override
public int update(String beanJson, Long id) {
public int update(String beanJson, Long id)throws Exception {
return materialPropertyService.updateMaterialProperty(beanJson, id);
}
@Override
public int delete(Long id) {
public int delete(Long id)throws Exception {
return materialPropertyService.deleteMaterialProperty(id);
}
@Override
public int batchDelete(String ids) {
public int batchDelete(String ids)throws Exception {
return materialPropertyService.batchDeleteMaterialProperty(ids);
}
@Override
public int checkIsNameExist(Long id, String name) {
public int checkIsNameExist(Long id, String name)throws Exception {
return materialPropertyService.checkIsNameExist(id, name);
}