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,7 +41,12 @@ class OperationDisinfectLogLogic extends BaseLogic
{ {
Db::startTrans(); Db::startTrans();
try { try {
OperationDisinfectLog::create([ AnimalOperateAction::create([
'fence_house_id' => $params['fence_house_id'],
'animal_info_id' => $params['animal_info_id']??0,
'type' => 1,
'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,
'disinfectant_name' => $params['disinfectant_name'], 'disinfectant_name' => $params['disinfectant_name'],
@ -51,7 +56,19 @@ class OperationDisinfectLogLogic extends BaseLogic
'operator' => $params['operator'], 'operator' => $params['operator'],
'pic' => $params['pic'], 'pic' => $params['pic'],
'remark' => $params['remark'], '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;