| | |
| | | import com.google.gson.Gson;
|
| | | import com.yeshi.fanli.entity.accept.AcceptData;
|
| | | import com.yeshi.fanli.entity.bus.user.LostOrder;
|
| | | import com.yeshi.fanli.entity.system.ConfigKeyEnum;
|
| | | import com.yeshi.fanli.service.inter.config.ConfigService;
|
| | | import com.yeshi.fanli.service.inter.order.LostOrderService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
| | | && order.getResultCode() == LostOrder.RESULT_CODE_SUCCESS) {
|
| | | // 申诉成功
|
| | | json.put("state", 1);
|
| | | json.put("stateDesc", "订单找回成功,请我的-订单中查看");
|
| | | json.put("stateDesc", "订单找回成功,请到我的-订单中查看");
|
| | | } else if (order.getState() == 2 || (order.getState() == 1 && order.getResultCode() != null
|
| | | && order.getResultCode() == LostOrder.RESULT_CODE_FAIL)) {
|
| | | // 申诉失败
|
| | |
| | | @RequestMapping("getConfig")
|
| | | public void getConfig(AcceptData acceptData, PrintWriter out) {
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("what", configService.get("lost_order_help_what"));
|
| | | data.put("reason", configService.get("lost_order_help_reason"));
|
| | | data.put("what", configService.get(ConfigKeyEnum.lostOrderHelpWhat.getKey()));
|
| | | data.put("reason", configService.get(ConfigKeyEnum.lostOrderHelpReason.getKey()));
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | }
|
| | |
|