123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\common\model;
- use think\facade\Db;
- class Storemsgtpl extends BaseModel {
-
-
- public function getStoremsgtplList($condition, $field = '*', $order = 'storemt_code asc') {
- return Db::name('storemsgtpl')->field($field)->where($condition)->order($order)->select()->toArray();
- }
-
- public function getStoremsgtplInfo($condition, $field = '*') {
- return Db::name('storemsgtpl')->field($field)->where($condition)->find();
- }
-
- public function editStoremsgtpl($condition, $update) {
- return Db::name('storemsgtpl')->where($condition)->update($update);
- }
-
- }
|