示例#1
0
  /**
   * 保存调拨申请单相关信息
   *
   * @param dbsq
   * @param dbsqProducts
   */
  public void saveDbsq(Dbsq dbsq, List dbsqProducts) {
    dbsqDao.saveDbsq(dbsq, dbsqProducts);

    if (dbsq.getState().equals("已提交")) { // 添加库房调拨
      this.addKfdb(dbsq, dbsqProducts);
    }
  }
示例#2
0
  /**
   * 更新调拨申请单相关信息
   *
   * @param dbsq
   * @param dbsqProducts
   */
  public void updateDbsq(Dbsq dbsq, List dbsqProducts) {

    // 调拨申请单如果已经提交,不做任何操作
    if (dbsqDao.isDbsqFinish(dbsq.getId())) {
      return;
    }

    dbsqDao.updateDbsq(dbsq, dbsqProducts);

    if (dbsq.getState().equals("已提交")) { // 添加库房调拨
      this.addKfdb(dbsq, dbsqProducts);
    }
  }