| | |
| | | //先查询所有的数据 |
| | | WxUserInfoMapper.DaoQuery query = new WxUserInfoMapper.DaoQuery(); |
| | | query.sortList=Arrays.asList(new String[]{"login_time desc"}); |
| | | if (!StringUtil.isNullOrEmpty(uid) && NumberUtil.isNumeric(uid)) { |
| | | query.id = Long.parseLong(uid); |
| | | if (!StringUtil.isNullOrEmpty(uid)) { |
| | | if(NumberUtil.isNumeric(uid)) { |
| | | query.id = Long.parseLong(uid); |
| | | }else{ |
| | | query.searchKey = uid; |
| | | } |
| | | } |
| | | List<WxUserInfo> userList = wxUserService.list(query, page, limit); |
| | | long count = wxUserService.count(query); |
| | |
| | | @ResponseBody |
| | | @RequestMapping("getOrderSettings") |
| | | public String getOrderSettings(Long id) { |
| | | WxUserSettings settings = wxUserSettingService.selectByUid(id); |
| | | WxUserSettings settings = wxUserSettingService.getUserSettings(id); |
| | | return JsonUtil.loadTrueResult(WxUserFactory.createVO(settings)); |
| | | } |
| | | |
| | |
| | | settings.setTotalOrderCountPerDay(vo.getTotalSubmitCount()); |
| | | settings.setDyOrderCountPerDay(vo.getDyPayCount()); |
| | | settings.setKsOrderCountPerDay(vo.getKsPayCount()); |
| | | wxUserSettingService.updateSelective(settings); |
| | | wxUserSettingService.add(settings); |
| | | return JsonUtil.loadTrueResult(""); |
| | | } |
| | | |