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