当前位置: 首页>>代码示例>>PHP>>正文


PHP db_test::getFiledData方法代码示例

本文整理汇总了PHP中db_test::getFiledData方法的典型用法代码示例。如果您正苦于以下问题:PHP db_test::getFiledData方法的具体用法?PHP db_test::getFiledData怎么用?PHP db_test::getFiledData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在db_test的用法示例。


在下文中一共展示了db_test::getFiledData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: then

<?php

require "../include/common.inc.php";
$db = new db_test();
$boolean = 0;
$query = "select\n                 case\n                 when fd_agpm_payfeedirct ='s' then ' 收款方'\n                 when fd_agpm_payfeedirct ='f' then '付款方'\n                 END  payfeedirct,\n\n                 case\n                 when fd_agpm_paytype ='coupon' then '购买抵用券'\n                 when fd_agpm_paytype ='creditcard' then '信用卡还款'" . "when fd_agpm_paytype ='recharge' then        '充值'" . "when fd_agpm_paytype ='pay' then       '还贷款'" . "when fd_agpm_paytype ='order' then '订单付款'" . "when fd_agpm_paytype ='tfmg' then '转账汇款'\n                 else '其他业务' END  paytype,\n\n                 case\n                 when fd_agpm_payfeedirct ='f' then fd_agpm_paymoney\n                 when fd_agpm_payfeedirct ='s' then (fd_agpm_paymoney-fd_agpm_payfee)\n                 else fd_agpm_paymoney END money,\n\n                 fd_agpm_bkordernumber            as bkordernumber,\n                 fd_pymyltdetail_id               as vid,\n                 fd_agpm_bkntno                   as bkntno,\n                 fd_paycard_key                   as paycardkey,\n                 fd_author_truename               as author,\n                 fd_agpm_paytype                  as paytypee,\n                 fd_agpm_paydate                  as paydate,\n                 fd_agpm_shoucardno               as shoucardno,\n                 fd_agpm_shoucardbank             as shoucardbank,\n                 fd_agpm_shoucardman              as shoucardman,\n                 fd_agpm_shoucardmobile           as shoucardmobile,\n                 fd_agpm_current                  as current,\n                 fd_agpm_paymoney                 as paymoney ,\n                 fd_agpm_payfee                   as payfee,\n                 fd_agpm_arrivemode               as arrivemode,\n                 fd_agpm_arrivedate               as arrivedate,\n                 fd_paycardaccount_accountname    as accountname,\n                 fd_sdcr_agentfee                 as sdcragentfee,\n                 fd_agpm_isagentpay               as isagentpay,\n                 fd_paycardaccount_accountnum     as accountnum\n                 from tb_paymoneylistdetail  \n                 left join tb_agentpaymoneylist on fd_pymyltdetail_agpmid = fd_agpm_id\n                 left join tb_paycard on fd_agpm_paycardid = fd_paycard_id\n                 left join tb_author on fd_author_id = fd_agpm_authorid\n                 left join tb_paycardaccount on fd_paycard_paycardaccount = fd_paycardaccount_id\n                 left join tb_sendcenter on fd_sdcr_id = fd_agpm_sdcrid\n                 where fd_pymyltdetail_paymoneylistid = '{$listid}'\n                 order by fd_agpm_bkntno";
$db->query($query);
$arr_result = $db->getFiledData('');
foreach ($arr_result as $key => $value) {
    switch ($value['paytype']) {
        case 'coupon':
            $table = 'couponsale';
            $where = 'couponsale';
            break;
        case 'creditcard':
            $table = 'creditcardglist';
            $where = 'ccglist';
            break;
        case 'recharge':
            $table = 'rechargeglist';
            $where = 'rechargelist';
            break;
        case 'repay':
            $table = 'repaymoneyglist';
            $where = 'repmglist';
            break;
        case 'tfmg':
            $table = 'transfermoneyglist';
            $where = 'tfmglist';
            break;
        case 'suptfmg':
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:ajaxallcancelpay.php


注:本文中的db_test::getFiledData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。