no commit message
This commit is contained in:
@@ -138,6 +138,9 @@ class Bussiness extends Base
|
||||
|
||||
$res = $inquiryService->createInquiry($data);
|
||||
if($res['code'] == 1){
|
||||
\think\facade\Log::write('Bussiness/save: 开始推送未回价数量', 'push_debug');
|
||||
$result = \fetchAndPushUnreturnedPriceCount();
|
||||
\think\facade\Log::write('Bussiness/save: 推送结果: ' . ($result ? '成功' : '失败'), 'push_debug');
|
||||
return $this->buildSuccess();
|
||||
}
|
||||
return $this->buildFailed($res['code'], $res['msg']);
|
||||
|
||||
@@ -30,6 +30,19 @@ use app\model\ReportDetail as ReportDetailModel;
|
||||
|
||||
class Pending extends Base
|
||||
{
|
||||
/**
|
||||
* 获取未回价数量(return_price_status=2)
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function getUnreturnedPriceCount()
|
||||
{
|
||||
$Inquiry = new Inquiry();
|
||||
|
||||
// 查询 return_price_status = 2 的数量
|
||||
$count = $Inquiry->where('return_price_status', 2)->where('status', 1)->count();
|
||||
|
||||
return $this->buildSuccess(['count' => $count]);
|
||||
}
|
||||
|
||||
//询价编号前缀 - 住宅
|
||||
const INQUERY_NUMBER_RESIDENCE_PREFIX = "GZ01";
|
||||
|
||||
Reference in New Issue
Block a user