修改 发泡

master
wangh 4 years ago
parent edf48a789b
commit 14576c0234

@ -47,7 +47,7 @@ public class AllBroadHTMLController {
public String finalAssemblyProduction() {
return "broad/finalAssemblyProductionData";
}
//5 门体集存库位置
@GetMapping("/orderVisualization")
public String orderVisualization() {
return "broad/orderVisualization";

@ -35,15 +35,14 @@ public class FPBroadController {
@PostMapping("/selectOrderExecution")
@ApiOperation("订单执行、生产统计")
private String selectOrderExecution() {
return JSONArray.toJSONString(service.fp_selectOrderExecution());
}
@PostMapping("/selectOrderInfo")
@PostMapping("/selectFpOrderInfo")
@ApiOperation("中间生产数量统计")
private String selectProductionStatistics() {
return JSONObject.toJSONString(service.selectplanCompletion("1005"));
private String selectFpOrderInfo() {
return JSONObject.toJSONString(service.selectFpOrderInfo());
}
@PostMapping("/selectDeviceStation")
@ -73,11 +72,14 @@ public class FPBroadController {
Set<String> strings = map.keySet();
Map<String,String> stateMap=new HashMap<>();
for (String key:strings) {
Process p = null;
try {
p = Runtime.getRuntime().exec("/system/bin/ping -c 1 " + map.get(key));
p = Runtime.getRuntime().exec("/system/bin/ping -c 1 10.10.60.176");
int status = p.waitFor();
System.out.println(status);
@ -95,5 +97,11 @@ public class FPBroadController {
}
@PostMapping("/selectFpStock")
@ApiOperation("发泡库存统计")
public String selectFpStock(){
return JSONArray.toJSONString(service.selectFpStock());
}
}

@ -299,7 +299,7 @@
.display-blocks span:last-child {
margin-right: 0;
}
</style>
</style>
</head>
<body class="UShellMetalPlateScada" style="display:flex;">
<script src="../../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>

@ -44,6 +44,10 @@ public interface BroadDataMapper {
List<OrderInfo> xk_selectStockOccupancy();
List<BoxOutput> selectFpStock();
BoxPlanCompletion selectFpOrderInfo();
///////////////////////////////////////////////////////////////////////////
// 6

@ -43,4 +43,8 @@ public interface IBroadDataService {
List<FPStationHourInfo> fp_selectStationHourInfo();
List<OrderInfo> xk_selectStockOccupancy();
List<BoxOutput> selectFpStock();
BoxPlanCompletion selectFpOrderInfo();
}

@ -70,6 +70,16 @@ public class BroadDataServiceImpl implements IBroadDataService
public List<FPStationHourInfo> fp_selectStationHourInfo() {
return mapper.fp_selectStationHourInfo();
}
@Override
public List<BoxOutput> selectFpStock() {
return mapper.selectFpStock();
}
@Override
public BoxPlanCompletion selectFpOrderInfo() {
return mapper.selectFpOrderInfo();
}
///////////////////////////////////////////////////////////////////////////
// 泡前库
///////////////////////////////////////////////////////////////////////////

@ -181,6 +181,33 @@
<select id="fp_selectOrderExecution" resultType="com.ruoyi.system.domain.OrderInfo">
select substr(MATERIAL_NAME,
case
when instr(MATERIAL_NAME, '/', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
else instr(MATERIAL_NAME, '/', 1, 1) + 1
end,
case
when instr(MATERIAL_NAME, ',', 1, 2) = 0 then Length(MATERIAL_NAME) + 1
else instr(MATERIAL_NAME, ',', 1, 2)
end
-
case
when instr(MATERIAL_NAME, '/', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
else instr(MATERIAL_NAME, '/', 1, 1) + 1
end) as name,
sum(PRODUCT_QTY) as actual_number
from IMOS_PR_FOAMING_MONITOR
group by MATERIAL_NAME
</select>
<select id="selectFpOrderInfo" resultType="com.ruoyi.system.domain.BoxPlanCompletion">
select sum(PLAN_QTY) qty, '当班计划' as name
from imos_ta_material
where DISPLAY_FLAG = 1
union
select sum(PRODUCT_QTY) qty, '实际产量' as name
from IMOS_PR_FOAMING_MONITOR
</select>
<select id="selectFpStock" resultType="com.ruoyi.system.domain.BoxOutput">
select substr(MATERIAL_NAME,
case
when instr(MATERIAL_NAME, '/', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
@ -195,15 +222,12 @@
when instr(MATERIAL_NAME, '/', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
else instr(MATERIAL_NAME, '/', 1, 1) + 1
end) as name,
sum(PLAN_QTY) as plan_number,
SUM(ACTUAL_QTY) as qty
from IMOS_PR_PLAN
where to_char(plan_date, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
and PROCESS_CODE = '1005' and delete_flag = '0'
group by MATERIAL_NAME
STORE_QTY as qty
from IMOS_LO_BIN
where MATERIAL_NAME like '发泡箱体%'
and STORE_QTY > 0
</select>
<select id="pqk_selectProductInStore" resultType="com.ruoyi.system.domain.BoxOutput">
select substr(MATERIAL_NAME,
case
@ -329,7 +353,7 @@
</select>
<select id="" resultType="com.ruoyi.system.domain.BoxOutput">
<select id="QQ" resultType="com.ruoyi.system.domain.BoxOutput">
insert into temp1 (
select row_number() over (order by CREATION_DATE) as row_number,
CREATION_DATE as day

Loading…
Cancel
Save