提交 5db83e68 authored 作者: fengzy's avatar fengzy

合同log错误

上级 eb1508cf
......@@ -48,9 +48,14 @@ class mode_contract_listClassAction extends inputAction{
$sql = ' number = "'.$numb .'"';
$cdata = m($model)->getone($sql,'id,name');
$sql = "select CONCAT('开户银行: ',`open_bank_name` ,' -- 银行账号: ',`bank_code` ) as `name`,`bank_code` as `value` from [Q]".$model."_bank_info where mid = ".$cdata['id'];
$data = $this->db->getall($sql);
if($cdata){
$sql = "select CONCAT('开户银行: ',`open_bank_name` ,' -- 银行账号: ',`bank_code` ) as `name`,`bank_code` as `value` from [Q]".$model."_bank_info where mid = ".$cdata['id'];
$data = $this->db->getall($sql);
}else{
$data=[];
}
$this->returnjson($data);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论