FormServer.php 511 字节
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/4
 * Time: 10:27
 */

namespace app\index\server;


use app\index\model\SubjoinInsuranceModel;

class FormServer
{
    //获取附加险
    public function getSubjoinInsurance($data){
        $subjoinInsuranceModel = new SubjoinInsuranceModel();
        $subjoinInsurance = $subjoinInsuranceModel->selectData(array('s_i.collocation_id'=>$data['id']));
        $data['subjoin_insurance'] = $subjoinInsurance;
        return $data;
    }
}