/**
   * 查询本局的PlanTrainInfoTemp信息
   *
   * @param reqMap
   * @return
   */
  @ResponseBody
  @RequestMapping(value = "/getPlanTrainInfoTemp", method = RequestMethod.POST)
  public Result getPlanTrainInfoTemp(@RequestBody Map<String, Object> reqMap) {
    Result result = new Result();
    logger.info("getCmdTrainInfo~~reqMap==" + reqMap);
    String startDate = StringUtil.objToStr(reqMap.get("startDate"));
    String endDate = StringUtil.objToStr(reqMap.get("endDate"));

    ShiroRealm.ShiroUser user = (ShiroRealm.ShiroUser) SecurityUtils.getSubject().getPrincipal();
    // 本局局码
    String bureuaCode = user.getBureau();
    logger.debug("bureuaCode==" + bureuaCode);

    List<PlanTrainInFoTemp> returnList = new ArrayList<PlanTrainInFoTemp>();
    try {
      PlanTrainInFoTemp planTrainInFoTemp = new PlanTrainInFoTemp();

      returnList = planTrainInfoTempService.getPlanTrainInFoTemp(planTrainInFoTemp);
      logger.info("文电命令:" + returnList.size());
      result.setData(returnList);
    } catch (Exception e) {
      logger.error(e.getMessage(), e);
      result.setCode(StaticCodeType.SYSTEM_ERROR.getCode());
      result.setMessage(StaticCodeType.SYSTEM_ERROR.getDescription());
    }

    return result;
  }