1、优化解算结果曲线显示
This commit is contained in:
parent
22d2538183
commit
1bbe31c62b
@ -20,7 +20,7 @@ public class AuthInterceptor implements HandlerInterceptor {
|
||||
@Override
|
||||
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
|
||||
String username = SessionUtils.getCurrentUser(request);
|
||||
if (!StringUtils.hasText(username)) {
|
||||
if (!StringUtils.isEmpty(username)) {
|
||||
return true;
|
||||
}
|
||||
String clientType = request.getHeader("x-imdroid-type");
|
||||
|
||||
@ -106,22 +106,22 @@ public class GnssDeviceController extends BasicController{
|
||||
JSONObject search = (JSONObject) JSONObject.parse(searchParams);
|
||||
//设备号
|
||||
String deviceid = search.getString("deviceid");
|
||||
if (!StringUtils.hasText(deviceid)) {
|
||||
if (!StringUtils.isEmpty(deviceid)) {
|
||||
queryWrapper.like("deviceid", deviceid);
|
||||
}
|
||||
//父设备号
|
||||
String parentid = search.getString("parentid");
|
||||
if (!StringUtils.hasText(parentid)) {
|
||||
if (!StringUtils.isEmpty(parentid)) {
|
||||
queryWrapper.like("parentid", parentid);
|
||||
}
|
||||
//项目号
|
||||
String project_id = search.getString("project_id");
|
||||
if (!StringUtils.hasText(project_id)) {
|
||||
if (!StringUtils.isEmpty(project_id)) {
|
||||
queryWrapper.like("project_id", project_id);
|
||||
}
|
||||
//所属组织
|
||||
String tenantname = search.getString("tenantname");
|
||||
if (!StringUtils.hasText(tenantname)) {
|
||||
if (!StringUtils.isEmpty(tenantname)) {
|
||||
queryWrapper.like("tenantname", tenantname);
|
||||
}
|
||||
//设备类型
|
||||
|
||||
@ -54,7 +54,7 @@ public class OssFileController {
|
||||
@RequestMapping("/upload-device-image")
|
||||
public HttpResult upload(@RequestParam("file") MultipartFile multipartFile, String deviceId) throws Exception {
|
||||
System.out.println("upload device image:" + multipartFile.getOriginalFilename());
|
||||
if (StringUtils.hasText(deviceId)) {
|
||||
if (StringUtils.isEmpty(deviceId)) {
|
||||
return HttpResult.fail("设备编号不能为空");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user