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