原始rfid导入
This commit is contained in:
parent
082a5b44fe
commit
0a548ffde0
|
@ -16,6 +16,7 @@
|
||||||
namespace app\api\controller\suyuan_operation;
|
namespace app\api\controller\suyuan_operation;
|
||||||
|
|
||||||
|
|
||||||
|
use app\api\controller\BaseApiController;
|
||||||
use app\common\controller\BaseLikeAdminController;
|
use app\common\controller\BaseLikeAdminController;
|
||||||
use app\api\lists\suyuan_operation\OperationDewormingLogLists;
|
use app\api\lists\suyuan_operation\OperationDewormingLogLists;
|
||||||
use app\api\logic\suyuan_operation\OperationDewormingLogLogic;
|
use app\api\logic\suyuan_operation\OperationDewormingLogLogic;
|
||||||
|
@ -27,7 +28,7 @@ use app\api\validate\suyuan_operation\OperationDewormingLogValidate;
|
||||||
* Class OperationDewormingLogController
|
* Class OperationDewormingLogController
|
||||||
* @package app\api\controller\suyuan_operation
|
* @package app\api\controller\suyuan_operation
|
||||||
*/
|
*/
|
||||||
class OperationDewormingLogController extends BaseLikeAdminController
|
class OperationDewormingLogController extends BaseApiController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
namespace app\api\controller\suyuan_operation;
|
namespace app\api\controller\suyuan_operation;
|
||||||
|
|
||||||
|
|
||||||
|
use app\api\controller\BaseApiController;
|
||||||
use app\common\controller\BaseLikeAdminController;
|
use app\common\controller\BaseLikeAdminController;
|
||||||
use app\api\lists\suyuan_operation\OperationDisinfectLogLists;
|
use app\api\lists\suyuan_operation\OperationDisinfectLogLists;
|
||||||
use app\api\logic\suyuan_operation\OperationDisinfectLogLogic;
|
use app\api\logic\suyuan_operation\OperationDisinfectLogLogic;
|
||||||
|
@ -27,7 +28,7 @@ use app\api\validate\suyuan_operation\OperationDisinfectLogValidate;
|
||||||
* Class OperationDisinfectLogController
|
* Class OperationDisinfectLogController
|
||||||
* @package app\api\controller\suyuan_operation
|
* @package app\api\controller\suyuan_operation
|
||||||
*/
|
*/
|
||||||
class OperationDisinfectLogController extends BaseLikeAdminController
|
class OperationDisinfectLogController extends BaseApiController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
namespace app\api\controller\suyuan_operation;
|
namespace app\api\controller\suyuan_operation;
|
||||||
|
|
||||||
|
|
||||||
|
use app\api\controller\BaseApiController;
|
||||||
use app\common\controller\BaseLikeAdminController;
|
use app\common\controller\BaseLikeAdminController;
|
||||||
use app\api\lists\suyuan_operation\OperationFeedingLogLists;
|
use app\api\lists\suyuan_operation\OperationFeedingLogLists;
|
||||||
use app\api\logic\suyuan_operation\OperationFeedingLogLogic;
|
use app\api\logic\suyuan_operation\OperationFeedingLogLogic;
|
||||||
|
@ -27,7 +28,7 @@ use app\api\validate\suyuan_operation\OperationFeedingLogValidate;
|
||||||
* Class OperationFeedingLogController
|
* Class OperationFeedingLogController
|
||||||
* @package app\api\controller\suyuan_operation
|
* @package app\api\controller\suyuan_operation
|
||||||
*/
|
*/
|
||||||
class OperationFeedingLogController extends BaseLikeAdminController
|
class OperationFeedingLogController extends BaseApiController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
namespace app\api\controller\suyuan_operation;
|
namespace app\api\controller\suyuan_operation;
|
||||||
|
|
||||||
|
|
||||||
|
use app\api\controller\BaseApiController;
|
||||||
use app\common\controller\BaseLikeAdminController;
|
use app\common\controller\BaseLikeAdminController;
|
||||||
use app\api\lists\suyuan_operation\OperationVaccinumLogLists;
|
use app\api\lists\suyuan_operation\OperationVaccinumLogLists;
|
||||||
use app\api\logic\suyuan_operation\OperationVaccinumLogLogic;
|
use app\api\logic\suyuan_operation\OperationVaccinumLogLogic;
|
||||||
|
@ -27,7 +28,7 @@ use app\api\validate\suyuan_operation\OperationVaccinumLogValidate;
|
||||||
* Class OperationVaccinumLogController
|
* Class OperationVaccinumLogController
|
||||||
* @package app\api\controller\suyuan_operation
|
* @package app\api\controller\suyuan_operation
|
||||||
*/
|
*/
|
||||||
class OperationVaccinumLogController extends BaseLikeAdminController
|
class OperationVaccinumLogController extends BaseApiController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
namespace app\api\controller\suyuan_operation;
|
namespace app\api\controller\suyuan_operation;
|
||||||
|
|
||||||
|
|
||||||
|
use app\api\controller\BaseApiController;
|
||||||
use app\common\controller\BaseLikeAdminController;
|
use app\common\controller\BaseLikeAdminController;
|
||||||
use app\api\lists\suyuan_operation\OperationWaterLogLists;
|
use app\api\lists\suyuan_operation\OperationWaterLogLists;
|
||||||
use app\api\logic\suyuan_operation\OperationWaterLogLogic;
|
use app\api\logic\suyuan_operation\OperationWaterLogLogic;
|
||||||
|
@ -27,7 +28,7 @@ use app\api\validate\suyuan_operation\OperationWaterLogValidate;
|
||||||
* Class OperationWaterLogController
|
* Class OperationWaterLogController
|
||||||
* @package app\api\controller\suyuan_operation
|
* @package app\api\controller\suyuan_operation
|
||||||
*/
|
*/
|
||||||
class OperationWaterLogController extends BaseLikeAdminController
|
class OperationWaterLogController extends BaseApiController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -42,12 +42,12 @@ class OperationDewormingLogLogic extends BaseLogic
|
||||||
try {
|
try {
|
||||||
OperationDewormingLog::create([
|
OperationDewormingLog::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,
|
||||||
'vermifuge_name' => $params['vermifuge_name'],
|
'vermifuge_name' => $params['vermifuge_name'],
|
||||||
'deworming_date' => $params['deworming_date'],
|
'deworming_date' => $params['deworming_date'],
|
||||||
'deworming_method' => $params['deworming_method'],
|
'deworming_method' => $params['deworming_method'],
|
||||||
'operator' => $params['operator'],
|
'operator' => $params['operator'],
|
||||||
'image' => $params['image'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -74,12 +74,12 @@ class OperationDewormingLogLogic extends BaseLogic
|
||||||
try {
|
try {
|
||||||
OperationDewormingLog::where('id', $params['id'])->update([
|
OperationDewormingLog::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,
|
||||||
'vermifuge_name' => $params['vermifuge_name'],
|
'vermifuge_name' => $params['vermifuge_name'],
|
||||||
'deworming_date' => $params['deworming_date'],
|
'deworming_date' => $params['deworming_date'],
|
||||||
'deworming_method' => $params['deworming_method'],
|
'deworming_method' => $params['deworming_method'],
|
||||||
'operator' => $params['operator'],
|
'operator' => $params['operator'],
|
||||||
'image' => $params['image'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ class OperationDisinfectLogLogic extends BaseLogic
|
||||||
'disinfectant_method' => $params['disinfectant_method'],
|
'disinfectant_method' => $params['disinfectant_method'],
|
||||||
'disinfectant_area' => $params['disinfectant_area'],
|
'disinfectant_area' => $params['disinfectant_area'],
|
||||||
'operator' => $params['operator'],
|
'operator' => $params['operator'],
|
||||||
'image' => $params['image'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ class OperationDisinfectLogLogic extends BaseLogic
|
||||||
'disinfectant_method' => $params['disinfectant_method'],
|
'disinfectant_method' => $params['disinfectant_method'],
|
||||||
'disinfectant_area' => $params['disinfectant_area'],
|
'disinfectant_area' => $params['disinfectant_area'],
|
||||||
'operator' => $params['operator'],
|
'operator' => $params['operator'],
|
||||||
'image' => $params['image'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ class OperationFeedingLogLogic extends BaseLogic
|
||||||
'feed_brand' => $params['feed_brand'],
|
'feed_brand' => $params['feed_brand'],
|
||||||
'feed_consumption' => $params['feed_consumption'],
|
'feed_consumption' => $params['feed_consumption'],
|
||||||
'operator' => $params['operator'],
|
'operator' => $params['operator'],
|
||||||
'image' => $params['image'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ class OperationFeedingLogLogic extends BaseLogic
|
||||||
'feed_brand' => $params['feed_brand'],
|
'feed_brand' => $params['feed_brand'],
|
||||||
'feed_consumption' => $params['feed_consumption'],
|
'feed_consumption' => $params['feed_consumption'],
|
||||||
'operator' => $params['operator'],
|
'operator' => $params['operator'],
|
||||||
'image' => $params['image'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ class OperationVaccinumLogLogic extends BaseLogic
|
||||||
'vaccination_site' => $params['vaccination_site'],
|
'vaccination_site' => $params['vaccination_site'],
|
||||||
'immune_validity_period' => $params['immune_validity_period'],
|
'immune_validity_period' => $params['immune_validity_period'],
|
||||||
'operator' => $params['operator'],
|
'operator' => $params['operator'],
|
||||||
'image' => $params['image'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ class OperationVaccinumLogLogic extends BaseLogic
|
||||||
'vaccination_site' => $params['vaccination_site'],
|
'vaccination_site' => $params['vaccination_site'],
|
||||||
'immune_validity_period' => $params['immune_validity_period'],
|
'immune_validity_period' => $params['immune_validity_period'],
|
||||||
'operator' => $params['operator'],
|
'operator' => $params['operator'],
|
||||||
'image' => $params['image'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ class OperationWaterLogLogic extends BaseLogic
|
||||||
'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'],
|
||||||
'image' => $params['image'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ class OperationWaterLogLogic extends BaseLogic
|
||||||
'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'],
|
||||||
'image' => $params['image'],
|
'pic' => $params['pic'],
|
||||||
'remark' => $params['remark'],
|
'remark' => $params['remark'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue