|
|
@ -4,10 +4,7 @@ import com.psdc.core.domain.AjaxResult; |
|
|
|
import com.psdc.service.IPsdcThermometerHtdataService; |
|
|
|
import com.psdc.service.IPsdcThermometerHtdataService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @Author:戴仕崑 |
|
|
|
* @Author:戴仕崑 |
|
|
@ -24,9 +21,9 @@ public class WenDuController { |
|
|
|
IPsdcThermometerHtdataService psdcThermometerHtdataService; |
|
|
|
IPsdcThermometerHtdataService psdcThermometerHtdataService; |
|
|
|
|
|
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('emonitor:wdcgq')") |
|
|
|
@PreAuthorize("@ss.hasPermi('emonitor:wdcgq')") |
|
|
|
@RequestMapping(value = "/sel1/{modelId}", method = RequestMethod.GET) |
|
|
|
@RequestMapping(value = "/sel1", method = RequestMethod.POST) |
|
|
|
public AjaxResult selwd(@PathVariable(value = "modelId", required = false) Integer modelId){ |
|
|
|
public AjaxResult selwd(@RequestParam(value="modelTypeName", defaultValue="") String modelname){ |
|
|
|
return AjaxResult.success(psdcThermometerHtdataService.selTodayThermometerById(modelId)); |
|
|
|
return AjaxResult.success(psdcThermometerHtdataService.selTodayThermometerById(modelname)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|