/** * ************************************后期重新处理 代码来自 * MenuServiceImpl************************************* */ @Override public void updateFastMenu(Context context) throws ServiceException { // TODO Auto-generated method stub IMyBatisDaoSysService service = (IMyBatisDaoSysService) Context.getBean("myBatisDaoSysService"); try { Map<String, Object> param = new HashMap<String, Object>(); param.put("cstNo", context.getDataAsStr("cstNo")); service.update("mybatis.mapper.cbfastmenu.updateFastMenu", param); } catch (BrosBaseException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Override public void insertFastMenu(Context context) throws ServiceException { // TODO Auto-generated method stub IMyBatisDaoSysService service = (IMyBatisDaoSysService) Context.getBean("myBatisDaoSysService"); Map<String, Object> hmap = new HashMap<String, Object>(); hmap.put("objectIds", (String) context.getDataElement("objectIds")); hmap.put("fastMenuId", (String) context.getDataElement("fastMenuId")); hmap.put("cstNo", context.getDataAsStr("cstNo")); try { service.insertOne("mybatis.mapper.cbfastmenu.insertFastMenu", hmap); } catch (BrosBaseException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Override public List<Map<String, Object>> queryFastMenuList(Context context) throws ServiceException { // TODO Auto-generated method stub IMyBatisDaoSysService service = (IMyBatisDaoSysService) Context.getBean("myBatisDaoSysService"); Map<String, Object> param = new HashMap<String, Object>(); param.put("channel", context.getDataAsStr("operChannel")); // param.put("channel","EB"); param.put("version", context.getDataAsStr("version")); param.put("cstNo", context.getDataAsStr("cstNo")); ArrayList<Map<String, Object>> resultList = null; try { resultList = (ArrayList<Map<String, Object>>) service.selectList("mybatis.mapper.cbfastmenu.queryFastMenuList", param); } catch (BrosBaseException e) { // TODO Auto-generated catch block e.printStackTrace(); } return resultList; }