123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace app\common\model;
- use think\facade\Db;
- class Membermsgtpl extends BaseModel
- {
-
- public function getMembermsgtplList($condition, $field = '*', $order = 'membermt_code asc')
- {
- return Db::name('membermsgtpl')->field($field)->where($condition)->order($order)->select()->toArray();
- }
-
- public function getMembermsgtplInfo($condition, $field = '*')
- {
- return Db::name('membermsgtpl')->field($field)->where($condition)->find();
- }
-
- public function editMembermsgtpl($condition, $update)
- {
- return Db::name('membermsgtpl')->where($condition)->update($update);
- }
- }
|