fixed
This commit is contained in:
@@ -199,16 +199,16 @@ class Firm extends Backend
|
||||
$firmstoreprojectstwo_id = Db::table('fa_firmstoreprojectstwo')->insertGetId($value);
|
||||
//查询事例模块
|
||||
$mattertemplatecategorizationData = Db::table('fa_mattertemplatecategorization')->where('firm_id',1)
|
||||
->where('firmstoreprojectsone_id',$val['id'])->where('firmstoreprojectstwo_id',$firmstoreprojectstwo_oldid)->find();
|
||||
if ($mattertemplatecategorizationData){
|
||||
$mtc_id = $mattertemplatecategorizationData['id'];
|
||||
unset($mattertemplatecategorizationData['id']);
|
||||
$mattertemplatecategorizationData['firm_id'] = $ids;
|
||||
$mattertemplatecategorizationData['firmstoreprojectsone_id'] = $firmstoreprojectsone_id;
|
||||
$mattertemplatecategorizationData['firmstoreprojectstwo_id'] = $firmstoreprojectstwo_id;
|
||||
$mattertemplatecategorizationData['create_time'] = date('Y-m-d H:i:s');
|
||||
$mattertemplatecategorizationData['update_time'] = date('Y-m-d H:i:s');
|
||||
$mattertemplatecategorization_id = Db::table('fa_mattertemplatecategorization')->insertGetId($mattertemplatecategorizationData);
|
||||
->where('firmstoreprojectsone_id',$val['id'])->where('firmstoreprojectstwo_id',$firmstoreprojectstwo_oldid)->select();
|
||||
foreach ($mattertemplatecategorizationData as &$mtcv){
|
||||
$mtc_id = $mtcv['id'];
|
||||
unset($mtcv['id']);
|
||||
$mtcv['firm_id'] = $ids;
|
||||
$mtcv['firmstoreprojectsone_id'] = $firmstoreprojectsone_id;
|
||||
$mtcv['firmstoreprojectstwo_id'] = $firmstoreprojectstwo_id;
|
||||
$mtcv['create_time'] = date('Y-m-d H:i:s');
|
||||
$mtcv['update_time'] = date('Y-m-d H:i:s');
|
||||
$mattertemplatecategorization_id = Db::table('fa_mattertemplatecategorization')->insertGetId($mtcv);
|
||||
//事例模块具体内容
|
||||
$fa_mattertemplatecategorizedcontent = Db::table('fa_mattertemplatecategorizedcontent')
|
||||
->where('mattertemplatecategorization_id',$mtc_id)->select();
|
||||
|
||||
Reference in New Issue
Block a user