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(); Db::startTrans();
try { try {
OperationDisinfectLog::create([ AnimalOperateAction::create([
'fence_house_id' => $params['fence_house_id'], 'fence_house_id' => $params['fence_house_id'],
'animal_info_id' => $params['animal_info_id']??0, 'animal_info_id' => $params['animal_info_id']??0,
'disinfectant_name' => $params['disinfectant_name'], 'type' => 1,
'concentration' => $params['concentration'], 'type_text'=>'消毒',
'disinfectant_method' => $params['disinfectant_method'], 'detail' => json_encode([
'disinfectant_area' => $params['disinfectant_area'], 'fence_house_id' => $params['fence_house_id'],
'operator' => $params['operator'], 'animal_info_id' => $params['animal_info_id']??0,
'pic' => $params['pic'], 'disinfectant_name' => $params['disinfectant_name'],
'remark' => $params['remark'], '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(); Db::commit();
return true; return true;