This commit is contained in:
chenbo 2024-02-03 10:11:47 +08:00
parent 5edd29ed81
commit a2d818ab04
1 changed files with 25 additions and 8 deletions

View File

@ -41,17 +41,34 @@ class OperationDisinfectLogLogic extends BaseLogic
{
Db::startTrans();
try {
OperationDisinfectLog::create([
AnimalOperateAction::create([
'fence_house_id' => $params['fence_house_id'],
'animal_info_id' => $params['animal_info_id']??0,
'disinfectant_name' => $params['disinfectant_name'],
'concentration' => $params['concentration'],
'disinfectant_method' => $params['disinfectant_method'],
'disinfectant_area' => $params['disinfectant_area'],
'operator' => $params['operator'],
'pic' => $params['pic'],
'remark' => $params['remark'],
'type' => 1,
'type_text'=>'消毒',
'detail' => json_encode([
'fence_house_id' => $params['fence_house_id'],
'animal_info_id' => $params['animal_info_id']??0,
'disinfectant_name' => $params['disinfectant_name'],
'concentration' => $params['concentration'],
'disinfectant_method' => $params['disinfectant_method'],
'disinfectant_area' => $params['disinfectant_area'],
'operator' => $params['operator'],
'pic' => $params['pic'],
'remark' => $params['remark'],
])
]);
// OperationDisinfectLog::create([
// 'fence_house_id' => $params['fence_house_id'],
// 'animal_info_id' => $params['animal_info_id']??0,
// 'disinfectant_name' => $params['disinfectant_name'],
// 'concentration' => $params['concentration'],
// 'disinfectant_method' => $params['disinfectant_method'],
// 'disinfectant_area' => $params['disinfectant_area'],
// 'operator' => $params['operator'],
// 'pic' => $params['pic'],
// 'remark' => $params['remark'],
// ]);
Db::commit();
return true;