fix: 大屏修复
This commit is contained in:
@@ -48,12 +48,15 @@ public class WorkorderDto implements Serializable{
|
|||||||
* 生产量(已完成数量)
|
* 生产量(已完成数量)
|
||||||
*/
|
*/
|
||||||
private BigDecimal real_qty;
|
private BigDecimal real_qty;
|
||||||
|
private BigDecimal qualified_qty;
|
||||||
|
private BigDecimal unqualified_qty;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生产状态1未生产2已下发3生产中4停止5完成
|
* 生产状态1未生产2已下发3生产中4停止5完成
|
||||||
*/
|
*/
|
||||||
private String order_status;
|
private String order_status;
|
||||||
|
private String order_status_name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 班次类型
|
* 班次类型
|
||||||
|
|||||||
@@ -212,16 +212,13 @@ public class CockpitServiceImpl implements CockpitService{
|
|||||||
.addParam("flag", "3")
|
.addParam("flag", "3")
|
||||||
.process()
|
.process()
|
||||||
.getResultJSONArray(0);
|
.getResultJSONArray(0);
|
||||||
// JSONObject devicesStatus = PointUpdateUtil.getDevicesStatus(result);
|
JSONObject devicesStatus = PointUpdateUtil.getDevicesStatus(result);
|
||||||
// if (ObjectUtil.isEmpty(devicesStatus)) {
|
if (ObjectUtil.isEmpty(devicesStatus)) {
|
||||||
// return null;
|
return null;
|
||||||
// }
|
}
|
||||||
// JSONArray data = ObjectUtil.isNotEmpty(
|
JSONArray data = ObjectUtil.isNotEmpty(
|
||||||
// devicesStatus.getJSONArray("data"))?devicesStatus.getJSONArray("data"):null;
|
devicesStatus.getJSONArray("data"))?devicesStatus.getJSONArray("data"):result;
|
||||||
// if (ObjectUtil.isEmpty(data)) {
|
if(ObjectUtil.isNotEmpty(data)) {
|
||||||
// return null;
|
|
||||||
// }
|
|
||||||
if(ObjectUtil.isNotEmpty(result)) { //todo: result -> data
|
|
||||||
res = result.toJavaList(DeviceInfoDto.class);
|
res = result.toJavaList(DeviceInfoDto.class);
|
||||||
res.forEach(d -> {
|
res.forEach(d -> {
|
||||||
DeviceEnum deviceEnum = DeviceEnum.get(d.getDevice_model(), d.getDevice_code());
|
DeviceEnum deviceEnum = DeviceEnum.get(d.getDevice_model(), d.getDevice_code());
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
IF 输入.flag = "1"
|
IF 输入.flag = "1"
|
||||||
PAGEQUERY
|
PAGEQUERY
|
||||||
SELECT
|
SELECT
|
||||||
dicts.label order_status,
|
dicts.label order_status_name,
|
||||||
material.material_code,
|
material.material_code,
|
||||||
device.device_name,
|
device.device_name,
|
||||||
workorder.*
|
workorder.*
|
||||||
|
|||||||
Reference in New Issue
Block a user