接口修改2
This commit is contained in:
parent
ebcfa79114
commit
47812418b8
@ -2009,7 +2009,7 @@ class Maintainentry extends BaseController
|
|||||||
$where['user_id'] = $this->request->uid;
|
$where['user_id'] = $this->request->uid;
|
||||||
$result = Db::table('cms_planting_information')->where($where)
|
$result = Db::table('cms_planting_information')->where($where)
|
||||||
->withAttr('createtime', function ($val,$data) {
|
->withAttr('createtime', function ($val,$data) {
|
||||||
return date('Y-m-d H:i:s',$data['createtime']);
|
return date('Y-m-d',$data['createtime']);
|
||||||
})
|
})
|
||||||
->find();
|
->find();
|
||||||
if ($result) {
|
if ($result) {
|
||||||
@ -2066,7 +2066,7 @@ class Maintainentry extends BaseController
|
|||||||
|
|
||||||
$result = Db::table('cms_planting_information')->where($where)->whereIn('type_id',$ids)->page($page,$limit)->order($order. ' desc')
|
$result = Db::table('cms_planting_information')->where($where)->whereIn('type_id',$ids)->page($page,$limit)->order($order. ' desc')
|
||||||
->withAttr('createtime', function ($val,$data) {
|
->withAttr('createtime', function ($val,$data) {
|
||||||
return date('Y-m-d H:i:s',$data['createtime']);
|
return date('Y-m-d',$data['createtime']);
|
||||||
})
|
})
|
||||||
->withAttr('name', function ($val,$data) {
|
->withAttr('name', function ($val,$data) {
|
||||||
return Db::table('cms_planting_type')->where('id',$data['type_id'])->value('name');
|
return Db::table('cms_planting_type')->where('id',$data['type_id'])->value('name');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user