fix: 修复大屏
This commit is contained in:
@@ -40,6 +40,7 @@ public class CockpitController{
|
|||||||
/**
|
/**
|
||||||
* 生产统计
|
* 生产统计
|
||||||
*/
|
*/
|
||||||
|
@SaIgnore
|
||||||
@PostMapping("/productionStatistics")
|
@PostMapping("/productionStatistics")
|
||||||
@Log("生产统计")
|
@Log("生产统计")
|
||||||
@ApiOperation("生产统计")
|
@ApiOperation("生产统计")
|
||||||
@@ -52,6 +53,7 @@ public class CockpitController{
|
|||||||
*/
|
*/
|
||||||
@PostMapping("/storageMonitor")
|
@PostMapping("/storageMonitor")
|
||||||
@Log("仓储监控")
|
@Log("仓储监控")
|
||||||
|
@SaIgnore
|
||||||
@ApiOperation("仓储监控")
|
@ApiOperation("仓储监控")
|
||||||
public CommonResult<Object> storageMonitor() {
|
public CommonResult<Object> storageMonitor() {
|
||||||
return RestBusinessTemplate.execute(cockpitService::storageMonitor);
|
return RestBusinessTemplate.execute(cockpitService::storageMonitor);
|
||||||
@@ -62,6 +64,7 @@ public class CockpitController{
|
|||||||
*/
|
*/
|
||||||
@PostMapping("/findStorageById")
|
@PostMapping("/findStorageById")
|
||||||
@Log("根据点位id获取仓储信息")
|
@Log("根据点位id获取仓储信息")
|
||||||
|
@SaIgnore
|
||||||
@ApiOperation("根据点位id获取仓储信息")
|
@ApiOperation("根据点位id获取仓储信息")
|
||||||
public CommonResult<SchBasePointDto> findStorageById(@RequestBody Map<String,String> id) {
|
public CommonResult<SchBasePointDto> findStorageById(@RequestBody Map<String,String> id) {
|
||||||
return RestBusinessTemplate.execute(() -> {
|
return RestBusinessTemplate.execute(() -> {
|
||||||
@@ -88,6 +91,7 @@ public class CockpitController{
|
|||||||
*/
|
*/
|
||||||
@PostMapping("/findDeviceById")
|
@PostMapping("/findDeviceById")
|
||||||
@Log("根据点位id获取设备信息")
|
@Log("根据点位id获取设备信息")
|
||||||
|
@SaIgnore
|
||||||
@ApiOperation("根据点位id获取设备信息")
|
@ApiOperation("根据点位id获取设备信息")
|
||||||
public CommonResult<DeviceDetailDto> findDeviceById(@RequestBody Map<String,String> id) {
|
public CommonResult<DeviceDetailDto> findDeviceById(@RequestBody Map<String,String> id) {
|
||||||
return RestBusinessTemplate.execute(() -> {
|
return RestBusinessTemplate.execute(() -> {
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public class CockpitServiceImpl implements CockpitService{
|
|||||||
if(ObjectUtil.isNotEmpty(result)) {
|
if(ObjectUtil.isNotEmpty(result)) {
|
||||||
res = result.toJavaList(WorkorderDto.class);
|
res = result.toJavaList(WorkorderDto.class);
|
||||||
res.forEach(r -> {
|
res.forEach(r -> {
|
||||||
|
// todo: 未根据实际,可以不需要客户
|
||||||
r.setCust_name("新余钢铁");
|
r.setCust_name("新余钢铁");
|
||||||
if(StringUtils.isNotEmpty(r.getLabel())) {
|
if(StringUtils.isNotEmpty(r.getLabel())) {
|
||||||
r.setLabel(r.getLabel().substring(0, 2));
|
r.setLabel(r.getLabel().substring(0, 2));
|
||||||
@@ -216,7 +217,7 @@ public class CockpitServiceImpl implements CockpitService{
|
|||||||
d.setWork_time(duration.toHours() + "");
|
d.setWork_time(duration.toHours() + "");
|
||||||
}
|
}
|
||||||
// 设置设备状态
|
// 设置设备状态
|
||||||
d.setDevice_status(PointUpdateUtil.getDeviceStatus(d.getDevice_code()));
|
// d.setDevice_status(PointUpdateUtil.getDeviceStatus(d.getDevice_code()));
|
||||||
DeviceEnum deviceEnum = DeviceEnum.get(d.getDevice_model(), d.getDevice_code());
|
DeviceEnum deviceEnum = DeviceEnum.get(d.getDevice_model(), d.getDevice_code());
|
||||||
// 添加图片名字
|
// 添加图片名字
|
||||||
d.setDevice_url(deviceEnum.getPictureName());
|
d.setDevice_url(deviceEnum.getPictureName());
|
||||||
|
|||||||
@@ -46,7 +46,10 @@
|
|||||||
point.*
|
point.*
|
||||||
FROM
|
FROM
|
||||||
sch_base_point point
|
sch_base_point point
|
||||||
LEFT JOIN md_me_materialbase material ON material.material_id = point.material_id
|
LEFT JOIN md_me_material_detail material ON material.material_id = (
|
||||||
|
SELECT ve.material_id FROM st_ivt_vehicle_detail ve WHERE ve.vehicle_code = point.vehicle_code
|
||||||
|
AND ve.vehicle_type = point.vehicle_type AND ve.is_delete = '0'
|
||||||
|
)
|
||||||
WHERE
|
WHERE
|
||||||
point.region_code = 'KLHJ'
|
point.region_code = 'KLHJ'
|
||||||
ORDER BY
|
ORDER BY
|
||||||
@@ -63,9 +66,12 @@
|
|||||||
point.*
|
point.*
|
||||||
FROM
|
FROM
|
||||||
sch_base_point point
|
sch_base_point point
|
||||||
LEFT JOIN md_me_materialbase material ON material.material_id = point.material_id
|
LEFT JOIN md_me_material_detail material ON material.material_id = (
|
||||||
|
SELECT ve.material_id FROM st_ivt_vehicle_detail ve WHERE ve.vehicle_code = point.vehicle_code
|
||||||
|
AND ve.vehicle_type = point.vehicle_type AND ve.is_delete = '0'
|
||||||
|
)
|
||||||
WHERE
|
WHERE
|
||||||
point.region_code = 'CYZCQ'
|
point.region_code = 'CPHJ'
|
||||||
ORDER BY
|
ORDER BY
|
||||||
point.create_time DESC
|
point.create_time DESC
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
@@ -80,7 +86,10 @@
|
|||||||
point.*
|
point.*
|
||||||
FROM
|
FROM
|
||||||
sch_base_point point
|
sch_base_point point
|
||||||
LEFT JOIN md_me_materialbase material ON material.material_id = point.material_id
|
LEFT JOIN md_me_material_detail material ON material.material_id = (
|
||||||
|
SELECT ve.material_id FROM st_ivt_vehicle_detail ve WHERE ve.vehicle_code = point.vehicle_code
|
||||||
|
AND ve.vehicle_type = point.vehicle_type AND ve.is_delete = '0'
|
||||||
|
)
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
OPTION 输入.point_id <> ""
|
OPTION 输入.point_id <> ""
|
||||||
point.point_id = 输入.point_id
|
point.point_id = 输入.point_id
|
||||||
|
|||||||
Reference in New Issue
Block a user