|
@@ -6,6 +6,7 @@ import com.zhongshu.iot.server.core.domain.iot.IotMain;
|
|
|
import com.zhongshu.iot.server.core.domain.iot.IotTemplate;
|
|
import com.zhongshu.iot.server.core.domain.iot.IotTemplate;
|
|
|
import com.github.microservice.components.data.mongo.mongo.helper.DBHelper;
|
|
import com.github.microservice.components.data.mongo.mongo.helper.DBHelper;
|
|
|
import com.zhongshu.iot.client.model.iot.IotMainSearch;
|
|
import com.zhongshu.iot.client.model.iot.IotMainSearch;
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
@@ -25,6 +26,7 @@ import java.util.regex.Pattern;
|
|
|
* @CreateDate: 2023/4/12
|
|
* @CreateDate: 2023/4/12
|
|
|
* @Version: 1.0
|
|
* @Version: 1.0
|
|
|
*/
|
|
*/
|
|
|
|
|
+@Slf4j
|
|
|
public class IotMainDaoImpl extends BaseImpl implements IotMainDaoExtend {
|
|
public class IotMainDaoImpl extends BaseImpl implements IotMainDaoExtend {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -45,6 +47,10 @@ public class IotMainDaoImpl extends BaseImpl implements IotMainDaoExtend {
|
|
|
criteria.and("functionType").is(param.getFunctionType());
|
|
criteria.and("functionType").is(param.getFunctionType());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (param.getIotDataType() != null) {
|
|
|
|
|
+ criteria.and("iotDataType").is(param.getIotDataType());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (param.getDataType() != null) {
|
|
if (param.getDataType() != null) {
|
|
|
criteria.and("dataType").is(param.getDataType());
|
|
criteria.and("dataType").is(param.getDataType());
|
|
|
}
|
|
}
|