This commit is contained in:
meimei
2025-04-25 15:48:36 +08:00
parent db67147eb8
commit 637dd7a376

View File

@@ -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();