| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- Doo::loadCore ( 'db/DooModel' );
- /**
- * 发票相关管理相关信息及其操作业务逻辑
- * @author CP.
- * @version 1.0
- * @namespace invoice
- * @package invoiceModel
- */
- class invoiceManage extends DooModel {
- /**
- *
- * @var integer $iid 管理组ID
- */
- public $iid;
- /**
- *
- * @var string $staff 管理组人员
- */
- public $staff;
- /**
- *
- * @var string $mold 管理组名称
- */
- public $mold;
- public $_table = 'CLD_invoiceManage';
- public $_primarykey = 'iid';
- public $_fields = array (
- 'iid',
- 'staff',
- 'mold'
- );
- /**
- * 根据管理组获取审批组成员
- * @return array|array() 该管理组相关数据,人员数据数组化
- */
- public function getInvoiceByMold($mold = "") {
- $detail = array ();
- if (! empty ( $mold )) {
- $detail = $this->getOne ( array (
- 'where' => 'mold="' . $mold . '"',
- 'asArray' => TRUE
- ) );
- $detail ['staff'] = json_decode ( $detail ['staff'] );
- }
- return $detail;
- }
- }
- // ?>
|