update
This commit is contained in:
parent
a2d818ab04
commit
e4ff4556aa
|
@ -41,7 +41,13 @@ class OperationVaccinumLogLogic extends BaseLogic
|
||||||
{
|
{
|
||||||
Db::startTrans();
|
Db::startTrans();
|
||||||
try {
|
try {
|
||||||
OperationVaccinumLog::create([
|
|
||||||
|
AnimalOperateAction::create([
|
||||||
|
'fence_house_id' => $params['fence_house_id'],
|
||||||
|
'animal_info_id' => $params['animal_info_id']??0,
|
||||||
|
'type' => 4,
|
||||||
|
'type_text'=>'疫苗',
|
||||||
|
'detail' => json_encode([
|
||||||
'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,
|
||||||
'vaccine_name' => $params['vaccine_name'],
|
'vaccine_name' => $params['vaccine_name'],
|
||||||
|
@ -53,8 +59,23 @@ class OperationVaccinumLogLogic extends BaseLogic
|
||||||
'operator' => $params['operator'],
|
'operator' => $params['operator'],
|
||||||
'pic' => $params['pic'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
|
])
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// OperationVaccinumLog::create([
|
||||||
|
// 'fence_house_id' => $params['fence_house_id'],
|
||||||
|
// 'animal_info_id' => $params['animal_info_id']??0,
|
||||||
|
// 'vaccine_name' => $params['vaccine_name'],
|
||||||
|
// 'vaccine_manufacturers' => $params['vaccine_manufacturers'],
|
||||||
|
// 'vaccine_batch' => $params['vaccine_batch'],
|
||||||
|
// 'vaccination_method' => $params['vaccination_method'],
|
||||||
|
// 'vaccination_site' => $params['vaccination_site'],
|
||||||
|
// 'immune_validity_period' => $params['immune_validity_period'],
|
||||||
|
// 'operator' => $params['operator'],
|
||||||
|
// 'pic' => $params['pic'],
|
||||||
|
// 'remark' => $params['remark'],
|
||||||
|
// ]);
|
||||||
|
|
||||||
Db::commit();
|
Db::commit();
|
||||||
return true;
|
return true;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|
Loading…
Reference in New Issue