修改 总装

master
wangh 3 years ago
parent 9150b32fe0
commit 1c3689698f

@ -43,6 +43,15 @@ public class ZhouController {
return JSONArray.toJSONString(service.zhou_selectOrderRateInfo());
}
@PostMapping("/selectOrderRateInfoTatle")
@ApiOperation("周订单执行情况标题")
@ResponseBody
public String zhou_selectOrderRateTatle() {
return JSONArray.toJSONString(service.zhou_selectOrderRateTatle());
}
@PostMapping("/zhou_selectQaInfo")
@ApiOperation("周异常情况")
@ResponseBody

@ -104,4 +104,6 @@ public interface BroadDataMapper {
List<BoxOutput> zhou_selectQaInfo();
List<MTKBeen> zhou_selectQaItemInfo();
List<BoxOutput> zhou_selectOrderRateTatle();
}

@ -85,4 +85,6 @@ public interface IBroadDataService {
List<BoxOutput> zhou_selectQaInfo();
List<MTKBeen> zhou_selectQaItemInfo();
List<BoxOutput> zhou_selectOrderRateTatle();
}

@ -203,4 +203,9 @@ public class BroadDataServiceImpl implements IBroadDataService
public List<MTKBeen> zhou_selectQaItemInfo() {
return mapper.zhou_selectQaItemInfo();
}
@Override
public List<BoxOutput> zhou_selectOrderRateTatle() {
return mapper.zhou_selectOrderRateTatle();
}
}

@ -252,6 +252,7 @@ FROM (select PLAN_NUMBER
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
@ -273,7 +274,55 @@ FROM (select PLAN_NUMBER
and STORE_QTY > 0
group by MATERIAL_NAME
</select>
<select id="zhou_selectOrderRateTatle" resultType="com.ruoyi.system.domain.BoxOutput">
select count(1) as qty, '订单数量' as name
from IMOS_PR_ORDER
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
select to_char(DAY, 'yyyy-MM-dd')
from (
select to_char(DAY, 'yyyy-MM-dd')
from haiwei.BASE_PRODUCT_QTY
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
union
select count(1) as qty, '完成数量' as name
from IMOS_PR_ORDER
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
select to_char(DAY, 'yyyy-MM-dd')
from (
select to_char(DAY, 'yyyy-MM-dd')
from haiwei.BASE_PRODUCT_QTY
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
and ORDER_QTY - ACTUAL_QTY &lt; 6
union
select round(
(
select count(1)
from IMOS_PR_ORDER
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
select to_char(DAY, 'yyyy-MM-dd')
from (
select to_char(DAY, 'yyyy-MM-dd')
from haiwei.BASE_PRODUCT_QTY
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
and ORDER_QTY - ACTUAL_QTY &lt; 6
) /
(
select count(1)
from IMOS_PR_ORDER
where to_char(FINISH_DATE, 'yyyy-MM-dd') in (
select to_char(DAY, 'yyyy-MM-dd')
from (
select to_char(DAY, 'yyyy-MM-dd')
from haiwei.BASE_PRODUCT_QTY
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
) * 100, 2) as qty, '清单率' as name
from DUAL
-- union
-- select count(1)as qty, '入库订单统计' as name
-- from IMOS_PR_PRODUCT_BARCODE ippb
-- where DETIAL_TYPE_CODE = '1004'
-- and to_char(SCAN_TIME, 'yyyy-MM-dd') =to_char(SYSDATE, 'yyyy-MM-dd')
</select>
<select id="zhou_selectQaItemInfo" resultMap="MTKBeen">
select case
when ITEM_CODE = '1001' then '成品检漏'
@ -294,8 +343,10 @@ FROM (select PLAN_NUMBER
from HAIWEI.BASE_PRODUCT_QTY
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
</select>
<select id="zhou_selectProductInStore" resultMap="MTKBeen">
select to_char(DAY, 'MM-dd') as code, qty, '目标' as name
select to_char(DAY, 'MM-dd') as code, qty, '计划' as name
from haiwei.BASE_PRODUCT_QTY
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
union

Loading…
Cancel
Save