| | |
| | | String result = HttpRequestUtil.postRequest("https://try.daowepark.com/v7/user_api/general/addSpace", map1); |
| | | System.out.println(result); |
| | | |
| | | |
| | | |
| | | for (String s : tStore.getIds().split(",")) { |
| | | HashMap<String, String> map = new HashMap<>(); |
| | | map.put("sign","0DB011836143EEE2C2E072967C9F4E4B"); |
| | |
| | | } |
| | | @RequestMapping(value = "/addConfig") |
| | | @ResponseBody |
| | | public Object addConfig(String name,Integer id) { |
| | | public Object addConfig(String name,Integer id,Integer sort) { |
| | | try { |
| | | List<TStoreOtherConfig> list = storeOtherConfigService.list(); |
| | | if(list.size()>0){ |
| | | TStoreOther tStoreOther = new TStoreOther(); |
| | | tStoreOther.setName(name); |
| | | tStoreOther.setStoreId(id); |
| | | tStoreOther.setSort(sort); |
| | | storeOtherService.save(tStoreOther); |
| | | |
| | | // 找出temp表数据 |
| | |
| | | } |
| | | @RequestMapping(value = "/addConfig1") |
| | | @ResponseBody |
| | | public Object addConfig1(String name,Integer id) { |
| | | public Object addConfig1(String name,Integer id,Integer sort) { |
| | | try { |
| | | TStoreOther byId = storeOtherService.getById(id); |
| | | byId.setName( |
| | | name |
| | | ); |
| | | byId.setName(name); |
| | | byId.setSort(sort); |
| | | storeOtherService.updateById(byId); |
| | | |
| | | |