//修改合同时间
$contract_id = M('fr_wholesaler_contract')
->where(['wholesaler_id'=>$data['wholesaler_id']])
->field('id')
->select();
$arrs = array();
foreach($contact_time as $k=>$r){
$arrs[] = array_merge($r,$contract_id[$k]);
}
foreach($arrs as $key=>$value){
$res['contract'] = M('fr_wholesaler_contract')
->where(['id'=>$value['id']])
->save($value);
}
网友评论