123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- namespace app\common\model;
- use think\facade\Db;
- class Storeextend extends BaseModel
- {
-
- public function getStoreextendInfo($condition, $field = '*')
- {
- return Db::name('storeextend')->field($field)->where($condition)->find();
- }
-
- public function editStoreextend($data, $condition)
- {
- if (empty($condition)) {
- return false;
- }
- if (is_array($data)) {
- $result = Db::name('storeextend')->where($condition)->update($data);
- return $result;
- } else {
- return false;
- }
- }
-
- public function delStoreextend($condition)
- {
- return Db::name('storeextend')->where($condition)->delete();
- }
-
- public function addStoreextend($data)
- {
- return Db::name('storeextend')->insertGetId($data);
- }
- }
|