zm
2020-07-06 b23ac6781e9c2e48966e0804e46306502316132b
修改bug:销售合同审核,没有写入审核人和审核时间
2 files modified
13 ■■■■ changed files
src/web/Application/Home/DAO/SCBillDAO.class.php 10 ●●●● patch | view | raw | blame | history
src/web/Application/Home/Service/SCBillService.class.php 3 ●●●●● patch | view | raw | blame | history
src/web/Application/Home/DAO/SCBillDAO.class.php
@@ -856,6 +856,10 @@
  {
    $db = $this->db;
    $loginUserId = $params["loginUserId"];
    if ($this->loginUserIdNotExists($loginUserId)) {
      return $this->badParam("loginUserId");
    }
    // 销售合同主表
    $id = $params["id"];
@@ -870,9 +874,11 @@
    }
    $sql = "update t_sc_bill
                set bill_status = 1000
        set bill_status = 1000,
        confirm_user_id = '%s',
        confirm_date = now()
                where id = '%s' ";
    $rc = $db->execute($sql, $id);
    $rc = $db->execute($sql,$loginUserId, $id);
    if ($rc === false) {
      return $this->sqlError(__METHOD__, __LINE__);
    }
src/web/Application/Home/Service/SCBillService.class.php
@@ -174,6 +174,9 @@
    $db->startTrans();
    $dao = new SCBillDAO($db);
    $params["loginUserId"] = $this->getLoginUserId();
    $rc = $dao->commitSCBill($params);
    if ($rc) {
      $db->rollback();