diff --git a/app/api/controller/suyuan_operation/OperationDewormingLogController.php b/app/api/controller/suyuan_operation/OperationDewormingLogController.php index 97c4800..e7057f7 100644 --- a/app/api/controller/suyuan_operation/OperationDewormingLogController.php +++ b/app/api/controller/suyuan_operation/OperationDewormingLogController.php @@ -16,6 +16,7 @@ namespace app\api\controller\suyuan_operation; +use app\api\controller\BaseApiController; use app\common\controller\BaseLikeAdminController; use app\api\lists\suyuan_operation\OperationDewormingLogLists; use app\api\logic\suyuan_operation\OperationDewormingLogLogic; @@ -27,7 +28,7 @@ use app\api\validate\suyuan_operation\OperationDewormingLogValidate; * Class OperationDewormingLogController * @package app\api\controller\suyuan_operation */ -class OperationDewormingLogController extends BaseLikeAdminController +class OperationDewormingLogController extends BaseApiController { diff --git a/app/api/controller/suyuan_operation/OperationDisinfectLogController.php b/app/api/controller/suyuan_operation/OperationDisinfectLogController.php index 75c240f..3fae100 100644 --- a/app/api/controller/suyuan_operation/OperationDisinfectLogController.php +++ b/app/api/controller/suyuan_operation/OperationDisinfectLogController.php @@ -16,6 +16,7 @@ namespace app\api\controller\suyuan_operation; +use app\api\controller\BaseApiController; use app\common\controller\BaseLikeAdminController; use app\api\lists\suyuan_operation\OperationDisinfectLogLists; use app\api\logic\suyuan_operation\OperationDisinfectLogLogic; @@ -27,7 +28,7 @@ use app\api\validate\suyuan_operation\OperationDisinfectLogValidate; * Class OperationDisinfectLogController * @package app\api\controller\suyuan_operation */ -class OperationDisinfectLogController extends BaseLikeAdminController +class OperationDisinfectLogController extends BaseApiController { diff --git a/app/api/controller/suyuan_operation/OperationFeedingLogController.php b/app/api/controller/suyuan_operation/OperationFeedingLogController.php index 207e1d2..9f5d619 100644 --- a/app/api/controller/suyuan_operation/OperationFeedingLogController.php +++ b/app/api/controller/suyuan_operation/OperationFeedingLogController.php @@ -16,6 +16,7 @@ namespace app\api\controller\suyuan_operation; +use app\api\controller\BaseApiController; use app\common\controller\BaseLikeAdminController; use app\api\lists\suyuan_operation\OperationFeedingLogLists; use app\api\logic\suyuan_operation\OperationFeedingLogLogic; @@ -27,7 +28,7 @@ use app\api\validate\suyuan_operation\OperationFeedingLogValidate; * Class OperationFeedingLogController * @package app\api\controller\suyuan_operation */ -class OperationFeedingLogController extends BaseLikeAdminController +class OperationFeedingLogController extends BaseApiController { diff --git a/app/api/controller/suyuan_operation/OperationVaccinumLogController.php b/app/api/controller/suyuan_operation/OperationVaccinumLogController.php index cd3cd3d..c1c55aa 100644 --- a/app/api/controller/suyuan_operation/OperationVaccinumLogController.php +++ b/app/api/controller/suyuan_operation/OperationVaccinumLogController.php @@ -16,6 +16,7 @@ namespace app\api\controller\suyuan_operation; +use app\api\controller\BaseApiController; use app\common\controller\BaseLikeAdminController; use app\api\lists\suyuan_operation\OperationVaccinumLogLists; use app\api\logic\suyuan_operation\OperationVaccinumLogLogic; @@ -27,7 +28,7 @@ use app\api\validate\suyuan_operation\OperationVaccinumLogValidate; * Class OperationVaccinumLogController * @package app\api\controller\suyuan_operation */ -class OperationVaccinumLogController extends BaseLikeAdminController +class OperationVaccinumLogController extends BaseApiController { diff --git a/app/api/controller/suyuan_operation/OperationWaterLogController.php b/app/api/controller/suyuan_operation/OperationWaterLogController.php index 06de71a..54fee34 100644 --- a/app/api/controller/suyuan_operation/OperationWaterLogController.php +++ b/app/api/controller/suyuan_operation/OperationWaterLogController.php @@ -16,6 +16,7 @@ namespace app\api\controller\suyuan_operation; +use app\api\controller\BaseApiController; use app\common\controller\BaseLikeAdminController; use app\api\lists\suyuan_operation\OperationWaterLogLists; use app\api\logic\suyuan_operation\OperationWaterLogLogic; @@ -27,7 +28,7 @@ use app\api\validate\suyuan_operation\OperationWaterLogValidate; * Class OperationWaterLogController * @package app\api\controller\suyuan_operation */ -class OperationWaterLogController extends BaseLikeAdminController +class OperationWaterLogController extends BaseApiController { diff --git a/app/api/logic/suyuan_operation/OperationDewormingLogLogic.php b/app/api/logic/suyuan_operation/OperationDewormingLogLogic.php index 2ecde7c..31ca57f 100644 --- a/app/api/logic/suyuan_operation/OperationDewormingLogLogic.php +++ b/app/api/logic/suyuan_operation/OperationDewormingLogLogic.php @@ -42,12 +42,12 @@ class OperationDewormingLogLogic extends BaseLogic try { OperationDewormingLog::create([ 'fence_house_id' => $params['fence_house_id'], - 'animal_info_id' => $params['animal_info_id'], + 'animal_info_id' => $params['animal_info_id']??0, 'vermifuge_name' => $params['vermifuge_name'], 'deworming_date' => $params['deworming_date'], 'deworming_method' => $params['deworming_method'], 'operator' => $params['operator'], - 'image' => $params['image'], + 'pic' => $params['pic'], 'remark' => $params['remark'], ]); @@ -74,12 +74,12 @@ class OperationDewormingLogLogic extends BaseLogic try { OperationDewormingLog::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, 'vermifuge_name' => $params['vermifuge_name'], 'deworming_date' => $params['deworming_date'], 'deworming_method' => $params['deworming_method'], 'operator' => $params['operator'], - 'image' => $params['image'], + 'pic' => $params['pic'], 'remark' => $params['remark'], ]); diff --git a/app/api/logic/suyuan_operation/OperationDisinfectLogLogic.php b/app/api/logic/suyuan_operation/OperationDisinfectLogLogic.php index 04ba9a6..6ff893c 100644 --- a/app/api/logic/suyuan_operation/OperationDisinfectLogLogic.php +++ b/app/api/logic/suyuan_operation/OperationDisinfectLogLogic.php @@ -48,7 +48,7 @@ class OperationDisinfectLogLogic extends BaseLogic 'disinfectant_method' => $params['disinfectant_method'], 'disinfectant_area' => $params['disinfectant_area'], 'operator' => $params['operator'], - 'image' => $params['image'], + 'pic' => $params['pic'], 'remark' => $params['remark'], ]); @@ -81,7 +81,7 @@ class OperationDisinfectLogLogic extends BaseLogic 'disinfectant_method' => $params['disinfectant_method'], 'disinfectant_area' => $params['disinfectant_area'], 'operator' => $params['operator'], - 'image' => $params['image'], + 'pic' => $params['pic'], 'remark' => $params['remark'], ]); diff --git a/app/api/logic/suyuan_operation/OperationFeedingLogLogic.php b/app/api/logic/suyuan_operation/OperationFeedingLogLogic.php index 8c931ee..9a779e3 100644 --- a/app/api/logic/suyuan_operation/OperationFeedingLogLogic.php +++ b/app/api/logic/suyuan_operation/OperationFeedingLogLogic.php @@ -47,7 +47,7 @@ class OperationFeedingLogLogic extends BaseLogic 'feed_brand' => $params['feed_brand'], 'feed_consumption' => $params['feed_consumption'], 'operator' => $params['operator'], - 'image' => $params['image'], + 'pic' => $params['pic'], 'remark' => $params['remark'], ]); @@ -79,7 +79,7 @@ class OperationFeedingLogLogic extends BaseLogic 'feed_brand' => $params['feed_brand'], 'feed_consumption' => $params['feed_consumption'], 'operator' => $params['operator'], - 'image' => $params['image'], + 'pic' => $params['pic'], 'remark' => $params['remark'], ]); diff --git a/app/api/logic/suyuan_operation/OperationVaccinumLogLogic.php b/app/api/logic/suyuan_operation/OperationVaccinumLogLogic.php index 4b15609..2b1c33b 100644 --- a/app/api/logic/suyuan_operation/OperationVaccinumLogLogic.php +++ b/app/api/logic/suyuan_operation/OperationVaccinumLogLogic.php @@ -50,7 +50,7 @@ class OperationVaccinumLogLogic extends BaseLogic 'vaccination_site' => $params['vaccination_site'], 'immune_validity_period' => $params['immune_validity_period'], 'operator' => $params['operator'], - 'image' => $params['image'], + 'pic' => $params['pic'], 'remark' => $params['remark'], ]); @@ -85,7 +85,7 @@ class OperationVaccinumLogLogic extends BaseLogic 'vaccination_site' => $params['vaccination_site'], 'immune_validity_period' => $params['immune_validity_period'], 'operator' => $params['operator'], - 'image' => $params['image'], + 'pic' => $params['pic'], 'remark' => $params['remark'], ]); diff --git a/app/api/logic/suyuan_operation/OperationWaterLogLogic.php b/app/api/logic/suyuan_operation/OperationWaterLogLogic.php index 8fe86b8..b39db43 100644 --- a/app/api/logic/suyuan_operation/OperationWaterLogLogic.php +++ b/app/api/logic/suyuan_operation/OperationWaterLogLogic.php @@ -45,7 +45,7 @@ class OperationWaterLogLogic extends BaseLogic 'fence_house_id' => $params['fence_house_id'], 'water_consumption' => $params['water_consumption'], 'operator' => $params['operator'], - 'image' => $params['image'], + 'pic' => $params['pic'], 'remark' => $params['remark'], ]); @@ -75,7 +75,7 @@ class OperationWaterLogLogic extends BaseLogic 'fence_house_id' => $params['fence_house_id'], 'water_consumption' => $params['water_consumption'], 'operator' => $params['operator'], - 'image' => $params['image'], + 'pic' => $params['pic'], 'remark' => $params['remark'], ]);