/**
   * 保存存生成运行线时临时数据
   *
   * @param reqMap
   * @return
   */
  @ResponseBody
  @RequestMapping(value = "/savePlanTrainInfoTemp", method = RequestMethod.POST)
  public Result savePlanTrainInfoTemp(@RequestBody String reqStr) {
    Result result = new Result();
    logger.info("saveWdCmdTrain~~reqStr==" + reqStr);
    try {
      JSONObject reqObj = JSONObject.fromObject(reqStr);
      String trainStr = (String) reqObj.get("cmdTrainMap");
      JSONObject trainMap = JSONObject.fromObject(trainStr);
      PlanTrainInFoTemp planTrainInFoTemp = new PlanTrainInFoTemp();
      ShiroRealm.ShiroUser user = (ShiroRealm.ShiroUser) SecurityUtils.getSubject().getPrincipal();
      // 局简称
      String bureuaShortName = user.getBureauShortName();
      logger.debug("bureuaShortName==" + bureuaShortName);

      planTrainInfoTempService.insertPlanTrainInFoTemp(planTrainInFoTemp);

    } catch (Exception e) {
      logger.error(e.getMessage(), e);
      result.setCode(StaticCodeType.SYSTEM_ERROR.getCode());
      result.setMessage(StaticCodeType.SYSTEM_ERROR.getDescription());
    }

    return result;
  }