update
This commit is contained in:
parent
5edd29ed81
commit
a2d818ab04
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue