提交 3a22c700 authored 作者: fengzy's avatar fengzy

'调整费用报销与借款单逻辑'

上级 79dab902
......@@ -48,7 +48,7 @@ class flow_emfkClassModel extends flowModel
m('log')->addlog('电费付款','接口返回信息:' .$res);
}
static function dept($data)
public static function dept($data)
{
$sql=" id= '$data'";
$cbzxid = m('tmp_department')->getone($sql, 'id,cost');//查询账户表成本中心id
......@@ -56,7 +56,7 @@ class flow_emfkClassModel extends flowModel
}
static function project($project_code){
public static function project($project_code){
$url = getconfig('base_url'). 'v2/project/list?key=';
$key = substr(md5(getconfig('openkey').date('Y-m-d')),0,12);
......@@ -105,6 +105,7 @@ class flow_emfkClassModel extends flowModel
$cbzx_code= self::dept($project['data'][0]['jz_cur_dept']);
echo "<pre>";
var_dump($cbzx_code);die;
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
$cost = m('c_fund_account')->getone($sql, 'id,type,freeze_amount,account_balance');//查询账户表成本中心id
if($cost['type']=='1'){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论