| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getLostOrderList", method = RequestMethod.POST)
|
| | | public void getLostOrderList(AcceptData acceptData, Long uid, int page, PrintWriter out) {
|
| | | public void getLostOrderList(AcceptData acceptData, Long uid, Integer page, PrintWriter out) {
|
| | | if (uid == null || uid <= 0) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "用户未登录"));
|
| | | return;
|
| | | }
|
| | |
|
| | | if (page == null || page <= 0) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "page格式错误"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | @RequestMapping(value = "deleteLostOrder", method = RequestMethod.POST)
|
| | | public void deleteLostOrder(AcceptData acceptData, Long uid, long id, PrintWriter out) {
|
| | | public void deleteLostOrder(AcceptData acceptData, Long uid, Long id, PrintWriter out) {
|
| | |
|
| | | if (id == null || id <= 0) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "请选择删除项"));
|
| | | return;
|
| | | }
|
| | |
|
| | | if (uid == null || uid <= 0) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "用户未登录"));
|
| | | return;
|
| | |
| | | data.put("count", list.size());
|
| | | data.put("systemClientParamsList", gson.toJson(list));
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | ThreadUtil.run(new Runnable() {
|
| | | @Override
|
| | | public void run() {
|
| | | try {
|
| | | if ("ios".equalsIgnoreCase(acceptData.getPlatform()))
|
| | | iosPushService.addDeviceToken(null, Integer.parseInt(acceptData.getVersion()), null,
|
| | | acceptData.getDevice());
|
| | | } catch (Exception e) {
|
| | | }
|
| | | }
|
| | | });
|
| | | // ThreadUtil.run(new Runnable() {
|
| | | // @Override
|
| | | // public void run() {
|
| | | // try {
|
| | | // if ("ios".equalsIgnoreCase(acceptData.getPlatform()))
|
| | | // iosPushService.addDeviceToken(null, Integer.parseInt(acceptData.getVersion()), null,
|
| | | // acceptData.getDevice());
|
| | | // } catch (Exception e) {
|
| | | // }
|
| | | // }
|
| | | // });
|
| | |
|
| | | return;
|
| | | }
|