Commit ca6c23f2 authored by qiankunpingtai's avatar qiankunpingtai
Browse files

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

parent 8bfe0ba9
......@@ -55,7 +55,7 @@ public class DepotHeadController {
@PostMapping(value = "/batchSetStatus")
public String batchSetStatus(@RequestParam("status") String status,
@RequestParam("depotHeadIDs") String depotHeadIDs,
HttpServletRequest request) {
HttpServletRequest request) throws Exception{
Map<String, Object> objectMap = new HashMap<String, Object>();
int res = depotHeadService.batchSetStatus(status, depotHeadIDs);
if(res > 0) {
......
......@@ -19,16 +19,16 @@ public class DepotHeadComponent implements ICommonQuery {
private DepotHeadService depotHeadService;
@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 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 type = StringUtil.getInfo(search, "type");
String subType = StringUtil.getInfo(search, "subType");
......@@ -41,7 +41,7 @@ public class DepotHeadComponent 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 type = StringUtil.getInfo(search, "type");
String subType = StringUtil.getInfo(search, "subType");
......@@ -53,27 +53,27 @@ public class DepotHeadComponent implements ICommonQuery {
}
@Override
public int insert(String beanJson, HttpServletRequest request) {
public int insert(String beanJson, HttpServletRequest request) throws Exception{
return depotHeadService.insertDepotHead(beanJson, request);
}
@Override
public int update(String beanJson, Long id) {
public int update(String beanJson, Long id)throws Exception {
return depotHeadService.updateDepotHead(beanJson, id);
}
@Override
public int delete(Long id) {
public int delete(Long id)throws Exception {
return depotHeadService.deleteDepotHead(id);
}
@Override
public int batchDelete(String ids) {
public int batchDelete(String ids)throws Exception {
return depotHeadService.batchDeleteDepotHead(ids);
}
@Override
public int checkIsNameExist(Long id, String name) {
public int checkIsNameExist(Long id, String name)throws Exception {
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