12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace app\common\model;
- use think\facade\Db;
- class Storemsgread extends BaseModel
- {
-
- public function addStoremsgread($data)
- {
- $data['storemsg_readtime'] = TIMESTAMP;
- return Db::name('storemsgread')->insert($data);
- }
-
- public function getStoremsgreadInfo($condition, $field = '*')
- {
- return Db::name('storemsgread')->field($field)->where($condition)->find();
- }
-
- public function getStoremsgreadList($condition, $field = '*', $order = 'storemsg_readtime desc')
- {
- return Db::name('storemsgread')->field($field)->where($condition)->order($order)->select()->toArray();
- }
-
- public function delStoremsgread($condition)
- {
- Db::name('storemsgread')->where($condition)->delete();
- }
- }
|