|
@@ -481,7 +481,7 @@ public class EnergyDataServiceImpl extends ServiceImpl<EnergyDataMapper, EnergyD
|
|
public Result listDataTail(HttpServletRequest httpServletRequest, Map<String, String> paramsMap) throws ParseException {
|
|
public Result listDataTail(HttpServletRequest httpServletRequest, Map<String, String> paramsMap) throws ParseException {
|
|
String deviceCode = paramsMap.get("deviceCode");
|
|
String deviceCode = paramsMap.get("deviceCode");
|
|
String type = paramsMap.get("type");
|
|
String type = paramsMap.get("type");
|
|
- String farmId = paramsMap.get("farmId");
|
|
|
|
|
|
+// String farmId = paramsMap.get("farmId");
|
|
|
|
|
|
if ("".equals(type) || null == type) {
|
|
if ("".equals(type) || null == type) {
|
|
type = "1";
|
|
type = "1";
|
|
@@ -502,7 +502,7 @@ public class EnergyDataServiceImpl extends ServiceImpl<EnergyDataMapper, EnergyD
|
|
List<String> list = new ArrayList<>();
|
|
List<String> list = new ArrayList<>();
|
|
if ("".equals(deviceCode) || null == deviceCode) {
|
|
if ("".equals(deviceCode) || null == deviceCode) {
|
|
QueryWrapper<EnergyEnvDevice> queryWrapper1 = new QueryWrapper<>();
|
|
QueryWrapper<EnergyEnvDevice> queryWrapper1 = new QueryWrapper<>();
|
|
- queryWrapper1.eq("farm_id", farmId);
|
|
|
|
|
|
+ queryWrapper1.in("farm_id", 26,29);
|
|
if ("1".equals(type)) {
|
|
if ("1".equals(type)) {
|
|
queryWrapper1.eq("remark", 1);
|
|
queryWrapper1.eq("remark", 1);
|
|
} else {
|
|
} else {
|