原始rfid导入
This commit is contained in:
parent
0a548ffde0
commit
03ef2f5e3c
|
@ -55,7 +55,7 @@ class AnimalInfoLogic extends BaseLogic
|
|||
'entry_date' => $params['entry_date'],
|
||||
'birth_estimation' => $params['birth_estimation'],
|
||||
'health_condition' => $params['health_condition'],
|
||||
'pic' => $params['image'],
|
||||
'pic' => $params['pic'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
|
@ -94,7 +94,7 @@ class AnimalInfoLogic extends BaseLogic
|
|||
'entry_date' => $params['entry_date'],
|
||||
'birth_estimation' => $params['birth_estimation'],
|
||||
'health_condition' => $params['health_condition'],
|
||||
'pic' => $params['image'],
|
||||
'pic' => $params['pic'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
|
|
|
@ -42,7 +42,7 @@ class OperationDisinfectLogLogic extends BaseLogic
|
|||
try {
|
||||
OperationDisinfectLog::create([
|
||||
'fence_house_id' => $params['fence_house_id'],
|
||||
'animal_info_id' => $params['animal_info_id'],
|
||||
'animal_info_id' => $params['animal_info_id']??0,
|
||||
'disinfectant_name' => $params['disinfectant_name'],
|
||||
'concentration' => $params['concentration'],
|
||||
'disinfectant_method' => $params['disinfectant_method'],
|
||||
|
@ -75,7 +75,7 @@ class OperationDisinfectLogLogic extends BaseLogic
|
|||
try {
|
||||
OperationDisinfectLog::where('id', $params['id'])->update([
|
||||
'fence_house_id' => $params['fence_house_id'],
|
||||
'animal_info_id' => $params['animal_info_id'],
|
||||
'animal_info_id' => $params['animal_info_id']??0,
|
||||
'disinfectant_name' => $params['disinfectant_name'],
|
||||
'concentration' => $params['concentration'],
|
||||
'disinfectant_method' => $params['disinfectant_method'],
|
||||
|
|
|
@ -41,7 +41,7 @@ class OperationFeedingLogLogic extends BaseLogic
|
|||
Db::startTrans();
|
||||
try {
|
||||
OperationFeedingLog::create([
|
||||
'animal_info_id' => $params['animal_info_id'],
|
||||
'animal_info_id' => $params['animal_info_id']??0,
|
||||
'fence_house_id' => $params['fence_house_id'],
|
||||
'feed_type' => $params['feed_type'],
|
||||
'feed_brand' => $params['feed_brand'],
|
||||
|
@ -73,7 +73,7 @@ class OperationFeedingLogLogic extends BaseLogic
|
|||
Db::startTrans();
|
||||
try {
|
||||
OperationFeedingLog::where('id', $params['id'])->update([
|
||||
'animal_info_id' => $params['animal_info_id'],
|
||||
'animal_info_id' => $params['animal_info_id']??0,
|
||||
'fence_house_id' => $params['fence_house_id'],
|
||||
'feed_type' => $params['feed_type'],
|
||||
'feed_brand' => $params['feed_brand'],
|
||||
|
|
|
@ -42,7 +42,7 @@ class OperationVaccinumLogLogic extends BaseLogic
|
|||
try {
|
||||
OperationVaccinumLog::create([
|
||||
'fence_house_id' => $params['fence_house_id'],
|
||||
'animal_info_id' => $params['animal_info_id'],
|
||||
'animal_info_id' => $params['animal_info_id']??0,
|
||||
'vaccine_name' => $params['vaccine_name'],
|
||||
'vaccine_manufacturers' => $params['vaccine_manufacturers'],
|
||||
'vaccine_batch' => $params['vaccine_batch'],
|
||||
|
@ -77,7 +77,7 @@ class OperationVaccinumLogLogic extends BaseLogic
|
|||
try {
|
||||
OperationVaccinumLog::where('id', $params['id'])->update([
|
||||
'fence_house_id' => $params['fence_house_id'],
|
||||
'animal_info_id' => $params['animal_info_id'],
|
||||
'animal_info_id' => $params['animal_info_id']??0,
|
||||
'vaccine_name' => $params['vaccine_name'],
|
||||
'vaccine_manufacturers' => $params['vaccine_manufacturers'],
|
||||
'vaccine_batch' => $params['vaccine_batch'],
|
||||
|
|
|
@ -41,7 +41,7 @@ class OperationWaterLogLogic extends BaseLogic
|
|||
Db::startTrans();
|
||||
try {
|
||||
OperationWaterLog::create([
|
||||
'animal_info_id' => $params['animal_info_id'],
|
||||
'animal_info_id' => $params['animal_info_id']??0,
|
||||
'fence_house_id' => $params['fence_house_id'],
|
||||
'water_consumption' => $params['water_consumption'],
|
||||
'operator' => $params['operator'],
|
||||
|
@ -71,7 +71,7 @@ class OperationWaterLogLogic extends BaseLogic
|
|||
Db::startTrans();
|
||||
try {
|
||||
OperationWaterLog::where('id', $params['id'])->update([
|
||||
'animal_info_id' => $params['animal_info_id'],
|
||||
'animal_info_id' => $params['animal_info_id']??0,
|
||||
'fence_house_id' => $params['fence_house_id'],
|
||||
'water_consumption' => $params['water_consumption'],
|
||||
'operator' => $params['operator'],
|
||||
|
|
Loading…
Reference in New Issue