first commit
This commit is contained in:
33
pgserver/application/model/ReturnPrice.php
Normal file
33
pgserver/application/model/ReturnPrice.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user