123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\common\model;
- use think\facade\Db;
- /**
- * ============================================================================
- *
- * ============================================================================
- *
- * ----------------------------------------------------------------------------
- *
- * ============================================================================
- * 数据层模型
- */
- class Storemsgtpl extends BaseModel {
-
- /**
- * 店铺消息模板列表
- * @access public
- * @author csdeshang
- * @param array $condition 条件
- * @param string $field 字段
- * @param string $order 排序
- * @return array
- */
- public function getStoremsgtplList($condition, $field = '*', $order = 'storemt_code asc') {
- return Db::name('storemsgtpl')->field($field)->where($condition)->order($order)->select()->toArray();
- }
- /**
- * 店铺消息模板详细信息
- * @access public
- * @author csdeshang
- * @param array $condition 条件
- * @param string $field 字段
- * @return array
- */
- public function getStoremsgtplInfo($condition, $field = '*') {
- return Db::name('storemsgtpl')->field($field)->where($condition)->find();
- }
- /**
- * 编辑店铺消息模板
- * @access public
- * @author csdeshang
- * @param arrat $condition 条件
- * @param array $update 更新数据
- * @return array
- */
- public function editStoremsgtpl($condition, $update) {
- return Db::name('storemsgtpl')->where($condition)->update($update);
- }
-
- }
|