| | |
| | | @RequestMapping("/getCityYys") |
| | | @ResponseBody |
| | | public Object getCityYys(String province,Integer operatorId) { |
| | | |
| | | if (UserExt.getUser().getObjectType() == 2){ |
| | | operatorId = UserExt.getUser().getObjectId(); |
| | | } |
| | | // 通过选择的省 获取管理的市 |
| | | TOperatorCity byId = operatorCityService.getOne(new QueryWrapper<TOperatorCity>() |
| | | .eq("code",province).eq("operatorId",operatorId)); |
| | |
| | | }else{ |
| | | tStore.setOperatorId(yyId); |
| | | } |
| | | if (UserExt.getUser().getObjectType()==2){ |
| | | tStore.setOperatorId(UserExt.getUser().getObjectId()); |
| | | } |
| | | storeService.save(tStore); |
| | | user.setObjectId(tStore.getId()); |
| | | userService.updateById(user); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ArrayList<StoreConfig> storeConfigs = new ArrayList<>(); |
| | | for (int i = 1; i < 9; i++) { |
| | | StoreConfig storeConfig = new StoreConfig(); |
| | |
| | | byId.setUrl(url); |
| | | } |
| | | byId.setName(name); |
| | | TTurn byId1 = tTurnService.getById(page); |
| | | TTurn byId2 = tTurnService.getById(type); |
| | | byId.setPage(byId1.getName()); |
| | | byId.setType(byId2.getName()); |
| | | if(page!=null){ |
| | | TTurn byId1 = tTurnService.getById(page); |
| | | byId.setPage(byId1.getName()); |
| | | } |
| | | if(page!=null){ |
| | | TTurn byId2 = tTurnService.getById(type); |
| | | byId.setType(byId2.getName()); |
| | | } |
| | | byId.setTurnId(turnId); |
| | | byId.setSort(sort); |
| | | byId.setPageId(page); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/addConfigOne9") |
| | | @ResponseBody |
| | | public Object addConfigOne9(String url,String name,Integer page,Integer type,String turnId,Integer sort,Integer id) { |
| | | try { |
| | | TStoreOtherConfigTrue byId = new TStoreOtherConfigTrue(); |
| | | byId.setPid(id); |
| | | if(ToolUtil.isNotEmpty(url)){ |
| | | byId.setUrl(url); |
| | | } |
| | | byId.setName(name); |
| | | if(page!=null){ |
| | | TTurn byId1 = tTurnService.getById(page); |
| | | byId.setPage(byId1.getName()); |
| | | } |
| | | if(page!=null){ |
| | | TTurn byId2 = tTurnService.getById(type); |
| | | byId.setType(byId2.getName()); |
| | | } |
| | | byId.setTurnId(turnId); |
| | | byId.setSort(sort); |
| | | byId.setPageId(page); |
| | | byId.setTypeId(type); |
| | | byId.setState(1); |
| | | tStoreOtherConfigTrueService.save(byId); |
| | | return SUCCESS_TIP; |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ERROR; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |