|
|
|
@ -14,6 +14,7 @@ import com.inspect.base.core.utils.StringUtils; |
|
|
|
import com.inspect.base.core.web.controller.BaseController; |
|
|
|
import com.inspect.base.core.web.domain.AjaxResult; |
|
|
|
import com.inspect.base.redis.service.RedisService; |
|
|
|
import com.inspect.message.MessageUtils; |
|
|
|
import com.inspect.mqtt.services.Warn.IUploadServer; |
|
|
|
import com.inspect.partrolresult.client.WebsocketService; |
|
|
|
import com.inspect.partrolresult.domain.PatrolResult; |
|
|
|
@ -38,6 +39,7 @@ import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
@ -59,6 +61,9 @@ public class AnalysisController extends BaseController { |
|
|
|
private final WebsocketService WebsocketService; |
|
|
|
private final IPatrolTaskService patrolTaskService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
MessageUtils messageUtils; |
|
|
|
|
|
|
|
@Resource |
|
|
|
private IAnalysisService analysisService; |
|
|
|
|
|
|
|
@ -253,9 +258,9 @@ public class AnalysisController extends BaseController { |
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(isAlgType) && isAlgType.equals("1")) { |
|
|
|
if (resultAnalysis.getResultType().equals("1")) { |
|
|
|
patrolResult.setValueUnit("无缺陷"); |
|
|
|
patrolResult.setValueUnit(messageUtils.get("无缺陷")); |
|
|
|
} else { |
|
|
|
patrolResult.setValueUnit("有缺陷"); |
|
|
|
patrolResult.setValueUnit(messageUtils.get("有缺陷")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|