123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace JinDouYun\Dao\Purchase;
- use JinDouYun\Dao\BaseDao;
- class DSupplier extends BaseDao
- {
- public function __construct($serviceDB = 'stock')
- {
- $this->_table = 'supplier';
- $this->_primary = 'id';
- $this->_fields = [
- "id",
- 'userCenterId',
- 'token',
- "code",
- "title",
- "provinceCode",
- "cityCode",
- "districtCode",
- "address",
- "accountName",
- "bankName",
- "bankCard",
- "realName",
- "sex",
- "position",
- "mobile",
- "phone",
- "email",
- "remark",
- "extends",
- "enableStatus",
- "deleteStatus",
- "createTime",
- "updateTime",
- "money",
- "waitAuditWithdraw",
- "auditWithdraw",
- "withdraw",
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|