|
@@ -1,5 +1,6 @@
|
|
|
package com.huimv.cattle.service.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.huimv.cattle.pojo.PreventDetection;
|
|
|
import com.huimv.cattle.mapper.PreventDetectionMapper;
|
|
|
import com.huimv.cattle.service.PreventDetectionService;
|
|
@@ -24,7 +25,10 @@ public class PreventDetectionServiceImpl extends ServiceImpl<PreventDetectionMap
|
|
|
private PreventDetectionMapper preventDetectionMapper;
|
|
|
|
|
|
@Override
|
|
|
- public List<PreventDetection> getPreventDetectionScreen() {
|
|
|
- return preventDetectionMapper.getPreventDetectionScreen();
|
|
|
+ public List<PreventDetection> getPreventDetectionScreen(String farmCode) {
|
|
|
+ if (StringUtils.isBlank(farmCode)){
|
|
|
+ farmCode = "0";
|
|
|
+ }
|
|
|
+ return preventDetectionMapper.getPreventDetectionScreen(farmCode);
|
|
|
}
|
|
|
}
|