update:商户合同列表公司名称

This commit is contained in:
chenbo 2023-09-14 12:08:16 +08:00
parent 68261ab9b1
commit d505aeffab

View File

@ -119,6 +119,10 @@ class ShopContractLogic extends BaseLogic
province,city,area,street,village,brigade,address,province province_name,city city_name,area area_name,street street_name,village village_name,brigade brigade_name,master_phone,master_name,
qualification'];
$shopMerchant = ShopMerchant::where(['id' => $data['party_b']])->field($field)->find()->toArray();
$shopMerchant['qualification'] = json_decode($shopMerchant['qualification'], true);
if($shopMerchant['qualification'] && isset($shopMerchant['qualification']['other_qualifications'])){
$shopMerchant['qualification']['other_qualifications']=json_decode($shopMerchant['qualification']['other_qualifications'],true);
}
return $shopMerchant;
})
->withAttr('party_a_info', function ($value, $data) {
@ -126,7 +130,9 @@ class ShopContractLogic extends BaseLogic
province,city,area,street,village,brigade,address,province province_name,city city_name,area area_name,street street_name,village village_name,brigade brigade_name,master_phone,master_name,
qualification'];
$shopMerchant = ShopMerchant::where(['id' => $data['party_a']])->field($field)->find()->toArray();
if($shopMerchant['qualification'] && isset($shopMerchant['qualification']['other_qualifications'])){
$shopMerchant['qualification']['other_qualifications']=json_decode($shopMerchant['qualification']['other_qualifications'],true);
}
return $shopMerchant;
})
->withAttr('status_name', function ($value, $data) {