Commit ca6c23f2 authored by qiankunpingtai's avatar qiankunpingtai
Browse files

异常封装之单据信息后台修改

parent 8bfe0ba9
...@@ -55,7 +55,7 @@ public class DepotHeadController { ...@@ -55,7 +55,7 @@ public class DepotHeadController {
@PostMapping(value = "/batchSetStatus") @PostMapping(value = "/batchSetStatus")
public String batchSetStatus(@RequestParam("status") String status, public String batchSetStatus(@RequestParam("status") String status,
@RequestParam("depotHeadIDs") String depotHeadIDs, @RequestParam("depotHeadIDs") String depotHeadIDs,
HttpServletRequest request) { HttpServletRequest request) throws Exception{
Map<String, Object> objectMap = new HashMap<String, Object>(); Map<String, Object> objectMap = new HashMap<String, Object>();
int res = depotHeadService.batchSetStatus(status, depotHeadIDs); int res = depotHeadService.batchSetStatus(status, depotHeadIDs);
if(res > 0) { if(res > 0) {
......
...@@ -19,16 +19,16 @@ public class DepotHeadComponent implements ICommonQuery { ...@@ -19,16 +19,16 @@ public class DepotHeadComponent implements ICommonQuery {
private DepotHeadService depotHeadService; private DepotHeadService depotHeadService;
@Override @Override
public Object selectOne(String condition) { public Object selectOne(String condition)throws Exception {
return null; return null;
} }
@Override @Override
public List<?> select(Map<String, String> map) { public List<?> select(Map<String, String> map)throws Exception {
return getDepotHeadList(map); return getDepotHeadList(map);
} }
private List<?> getDepotHeadList(Map<String, String> map) { private List<?> getDepotHeadList(Map<String, String> map)throws Exception {
String search = map.get(Constants.SEARCH); String search = map.get(Constants.SEARCH);
String type = StringUtil.getInfo(search, "type"); String type = StringUtil.getInfo(search, "type");
String subType = StringUtil.getInfo(search, "subType"); String subType = StringUtil.getInfo(search, "subType");
...@@ -41,7 +41,7 @@ public class DepotHeadComponent implements ICommonQuery { ...@@ -41,7 +41,7 @@ public class DepotHeadComponent implements ICommonQuery {
} }
@Override @Override
public Long counts(Map<String, String> map) { public Long counts(Map<String, String> map)throws Exception {
String search = map.get(Constants.SEARCH); String search = map.get(Constants.SEARCH);
String type = StringUtil.getInfo(search, "type"); String type = StringUtil.getInfo(search, "type");
String subType = StringUtil.getInfo(search, "subType"); String subType = StringUtil.getInfo(search, "subType");
...@@ -53,27 +53,27 @@ public class DepotHeadComponent implements ICommonQuery { ...@@ -53,27 +53,27 @@ public class DepotHeadComponent implements ICommonQuery {
} }
@Override @Override
public int insert(String beanJson, HttpServletRequest request) { public int insert(String beanJson, HttpServletRequest request) throws Exception{
return depotHeadService.insertDepotHead(beanJson, request); return depotHeadService.insertDepotHead(beanJson, request);
} }
@Override @Override
public int update(String beanJson, Long id) { public int update(String beanJson, Long id)throws Exception {
return depotHeadService.updateDepotHead(beanJson, id); return depotHeadService.updateDepotHead(beanJson, id);
} }
@Override @Override
public int delete(Long id) { public int delete(Long id)throws Exception {
return depotHeadService.deleteDepotHead(id); return depotHeadService.deleteDepotHead(id);
} }
@Override @Override
public int batchDelete(String ids) { public int batchDelete(String ids)throws Exception {
return depotHeadService.batchDeleteDepotHead(ids); return depotHeadService.batchDeleteDepotHead(ids);
} }
@Override @Override
public int checkIsNameExist(Long id, String name) { public int checkIsNameExist(Long id, String name)throws Exception {
return depotHeadService.checkIsNameExist(id, name); return depotHeadService.checkIsNameExist(id, name);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment