34 lines
609 B
PHP
34 lines
609 B
PHP
<?php
|
||
|
||
namespace app\model;
|
||
|
||
use think\Db;
|
||
use think\Log;
|
||
|
||
/**
|
||
* Class AbcGuarantee
|
||
* @package app\model
|
||
* @author:
|
||
*/
|
||
class ReturnPrice extends Base
|
||
{
|
||
protected $autoWriteTimestamp = true;
|
||
|
||
/**
|
||
* 通过InquiryDetail获取最新一条回价信息
|
||
*
|
||
* @return 返回一条find()结果:Array or NULL
|
||
*/
|
||
public function getNewInfoByInquiryDetailID( $inquiryDetailID )
|
||
{
|
||
$where = array(
|
||
'property_cert_info_id' => $inquiryDetailID
|
||
);
|
||
$info = $this->where($where)->order('create_time desc')->find();
|
||
|
||
return $info;
|
||
}
|
||
|
||
}
|
||
|