rabin %!s(int64=7) %!d(string=hai) anos
pai
achega
2f7e044599
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 1 1
      front/api/work.py
  2. 2 1
      service/record.py

+ 1 - 1
front/api/work.py

@@ -198,7 +198,7 @@ class land_path(Load):
 	"""
 	@api {delete} /work/land 删除地块
 	@apiVersion 1.0.0
-	@apiName updateWorkLand
+	@apiName deleteWorkLand
 	@apiGroup Farm
 
 	@apiParam {String} id 地块ID,为空则插入新记录

+ 2 - 1
service/record.py

@@ -101,7 +101,7 @@ class Record(object):
 								model.update(farm_id=gateway['farm_id'], cxnum=device['cxnum'],cxtype=device['cxtype'], cxdate='time')
 							else:
 								model.update(farm_id=gateway['farm_id'], cxnum=device['cxnum'],cxtype=device['cxtype'])
-
+					"""
 					content = ''
 					condition_model = Demeter.model('device_set_condition')
 					condition_model.device_id = id
@@ -132,6 +132,7 @@ class Record(object):
 								elif cv['oper'] == 3:
 									cv['oper'] = 0
 									Demeter.service('device').switchMul(cv)
+					"""
 						
 			else:
 				#insert