/**
   * 根据ID删除许可证明细
   *
   * @param ticket
   * @param ids
   * @return
   */
  public FWResult delMSWMBaseLicLineByIDs(String ticket, List<String> ids) {
    FWResult<BaseLicLineEntity> fwResult = new FWResult<BaseLicLineEntity>();
    try {
      IFWUserInfo userInfo = getUserInfo();

      baseLicLineService.delMSWMBaseLicLine(userInfo, ids); // 删除
      fwResult.setStatus(FWResultStatus.Success);
      return fwResult;
    } catch (Exception e) {
      logger.error("删除失败", e);
      fwResult.setStatus(FWResultStatus.Error);
      return fwResult;
    }
  }
  /**
   * 根据ID查询许可证明细
   *
   * @param ticket
   * @param id
   * @return
   */
  public FWResult queryMSWMBaseLicLineByID(String ticket, String id) {
    FWResult<BaseLicLineEntity> fwResult = new FWResult<BaseLicLineEntity>();
    try {
      IFWUserInfo userInfo = getUserInfo();

      BaseLicLineEntity baseEmp = baseLicLineService.queryMSWMBaseLicLineById(userInfo, id); // 查询
      fwResult.setData(baseEmp);
      fwResult.setStatus(FWResultStatus.Success);
      return fwResult;
    } catch (Exception e) {
      logger.error("查询失败失败", e);
      fwResult.setStatus(FWResultStatus.Error);
      return fwResult;
    }
  }
  /**
   * 保存许可证明细
   *
   * @param ticket
   * @param baseLicLineEntity
   * @return
   */
  public FWResult saveMSWMBaseLicLineEntity(String ticket, BaseLicLineEntity baseLicLineEntity) {
    FWResult result = new FWResult();
    try {
      IFWUserInfo userInfo = getUserInfo();

      if (PublicMethod.isNotEmptyOrNull(baseLicLineEntity.getGuid())) {
        baseLicLineService.updateMSWMBaseLicLine(userInfo, baseLicLineEntity);
      } else {
        baseLicLineEntity.setGuid(PublicMethod.getUUID());
        baseLicLineService.saveMSWMBaseLicLine(userInfo, baseLicLineEntity);
      }
    } catch (Exception e) {
      logger.error("操作失败", e);
      result.setStatus(FWResultStatus.Error); // 失败
      return result;
    }
    result.setStatus(FWResultStatus.Success);
    return result;
  }