12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?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);
- }
- }
|