修改bug:销售合同审核,没有写入审核人和审核时间
| | |
| | | { |
| | | $db = $this->db; |
| | | |
| | | $loginUserId = $params["loginUserId"]; |
| | | if ($this->loginUserIdNotExists($loginUserId)) { |
| | | return $this->badParam("loginUserId"); |
| | | } |
| | | // 销售合同主表 |
| | | $id = $params["id"]; |
| | | |
| | |
| | | } |
| | | |
| | | $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__); |
| | | } |
| | |
| | | $db->startTrans(); |
| | | |
| | | $dao = new SCBillDAO($db); |
| | | |
| | | $params["loginUserId"] = $this->getLoginUserId(); |
| | | |
| | | $rc = $dao->commitSCBill($params); |
| | | if ($rc) { |
| | | $db->rollback(); |