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