|
|
|
|
@ -12,10 +12,14 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteWorkTime">
|
|
|
|
|
delete from HAIWEI.BASE_DAY_WBTIME where CREATE_TIME < sysdate - interval '15' DAY
|
|
|
|
|
delete
|
|
|
|
|
from HAIWEI.BASE_DAY_WBTIME
|
|
|
|
|
where CREATE_TIME < sysdate - interval '15' DAY
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteBoxOutput">
|
|
|
|
|
delete from IMOS.BASE_BOX_OUTPUT_RECORD where CREATE_TIME < sysdate - interval '10' DAY
|
|
|
|
|
delete
|
|
|
|
|
from IMOS.BASE_BOX_OUTPUT_RECORD
|
|
|
|
|
where CREATE_TIME < sysdate - interval '10' DAY
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="selectplanCompletion" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
@ -25,7 +29,9 @@
|
|
|
|
|
union
|
|
|
|
|
select sum(QTY3) as qty, '实际产量' as name
|
|
|
|
|
from IMOS.BASE_BOX_OUTPUT_RECORD xhq
|
|
|
|
|
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb
|
|
|
|
|
left join (select *
|
|
|
|
|
from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc)
|
|
|
|
|
where ROWNUM = 1) wb
|
|
|
|
|
on 1 = 1
|
|
|
|
|
where xhq.CREATE_TIME between
|
|
|
|
|
case when sysdate <= wb.W_END then W_START else W_END end
|
|
|
|
|
@ -51,7 +57,7 @@
|
|
|
|
|
end) as order_type
|
|
|
|
|
, Sum(Store_Qty) as stock
|
|
|
|
|
, Store_Code
|
|
|
|
|
from IMOS_LO_STORE_DETIAL losd
|
|
|
|
|
from IMOS_LO_BIN losd
|
|
|
|
|
where Store_Code = #{id}
|
|
|
|
|
and Material_Code is not null
|
|
|
|
|
and Store_Qty > 0
|
|
|
|
|
@ -76,7 +82,9 @@
|
|
|
|
|
end) as name,
|
|
|
|
|
sum(QTY3) as qty
|
|
|
|
|
from IMOS.BASE_BOX_OUTPUT_RECORD xhq
|
|
|
|
|
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb
|
|
|
|
|
left join (select *
|
|
|
|
|
from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc)
|
|
|
|
|
where ROWNUM = 1) wb
|
|
|
|
|
on 1 = 1
|
|
|
|
|
where xhq.CREATE_TIME between case when sysdate <= wb.W_END then W_START else W_END end
|
|
|
|
|
and case when sysdate <= wb.W_END then W_END else B_END end
|
|
|
|
|
@ -124,21 +132,25 @@
|
|
|
|
|
from IMOS.BASE_BOX_OUTPUT_RECORD ippb
|
|
|
|
|
left join (
|
|
|
|
|
select W_END as day1, W_END + interval '1' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >= day1 and ippb.CREATE_TIME < day2
|
|
|
|
|
where ippb.CREATE_TIME >= day1
|
|
|
|
|
and ippb.CREATE_TIME < day2
|
|
|
|
|
union
|
|
|
|
|
select '20:30' as name, sum(QTY3) as qty, 2 as ord
|
|
|
|
|
from IMOS.BASE_BOX_OUTPUT_RECORD ippb
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-28 20:30:00
|
|
|
|
|
select W_END + interval '1' HOUR as day1, W_END + interval '2' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
union
|
|
|
|
|
select '21:30' as name, sum(QTY3) as qty, 3 as ord
|
|
|
|
|
@ -146,11 +158,13 @@
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-28 21:30:00
|
|
|
|
|
select W_END + interval '2' HOUR as day1, W_END + interval '3' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
union
|
|
|
|
|
select '22:30' as name, sum(QTY3) as qty, 4 as ord
|
|
|
|
|
@ -158,11 +172,13 @@
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-28 22:30:00
|
|
|
|
|
select W_END + interval '3' HOUR as day1, W_END + interval '4' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
union
|
|
|
|
|
select '23:30' as name, sum(QTY3) as qty, 5 as ord
|
|
|
|
|
@ -170,11 +186,13 @@
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-28 23:30:00
|
|
|
|
|
select W_END + interval '4' HOUR as day1, W_END + interval '5' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
@ -183,11 +201,13 @@
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-29 00:30:00
|
|
|
|
|
select W_END + interval '5' HOUR as day1, W_END + interval '6' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
@ -196,11 +216,13 @@
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-29 01:30:00
|
|
|
|
|
select W_END + interval '6' HOUR as day1, W_END + interval '7' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
@ -208,11 +230,13 @@
|
|
|
|
|
from IMOS.BASE_BOX_OUTPUT_RECORD ippb
|
|
|
|
|
left join (
|
|
|
|
|
select W_END + interval '7' HOUR as day1, W_END + interval '8' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
@ -220,11 +244,13 @@
|
|
|
|
|
from IMOS.BASE_BOX_OUTPUT_RECORD ippb
|
|
|
|
|
left join (
|
|
|
|
|
select W_END + interval '8' HOUR as day1, W_END + interval '9' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
@ -232,11 +258,13 @@
|
|
|
|
|
from IMOS.BASE_BOX_OUTPUT_RECORD ippb
|
|
|
|
|
left join (
|
|
|
|
|
select W_END + interval '9' HOUR as day1, W_END + interval '10' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
@ -244,11 +272,13 @@
|
|
|
|
|
from IMOS.BASE_BOX_OUTPUT_RECORD ippb
|
|
|
|
|
left join (
|
|
|
|
|
select W_END + interval '10' HOUR as day1, W_END + interval '11' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
@ -256,11 +286,13 @@
|
|
|
|
|
from IMOS.BASE_BOX_OUTPUT_RECORD ippb
|
|
|
|
|
left join (
|
|
|
|
|
select W_END + interval '11' HOUR as day1, W_END + interval '12' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where ippb.CREATE_TIME >
|
|
|
|
|
= day1 and ippb.CREATE_TIME <
|
|
|
|
|
= day1
|
|
|
|
|
and ippb.CREATE_TIME <
|
|
|
|
|
day2
|
|
|
|
|
)
|
|
|
|
|
order by ord
|
|
|
|
|
@ -384,6 +416,139 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="fp_selectStationHourInfoDay" resultType="com.ruoyi.system.domain.FPStationHourInfo">
|
|
|
|
|
select name,
|
|
|
|
|
STATION_NO,
|
|
|
|
|
target,
|
|
|
|
|
status,
|
|
|
|
|
plan_number,
|
|
|
|
|
(h1 + h2 + h3 + h4 + h5 + h6 + h7 + H8 + h9 + H10 + h11 + h12) as qty,
|
|
|
|
|
round((h1 + h2 + h3 + h4 + h5 + h6 + h7 + H8 + h9 + H10 + h11 + h12) / CURRENTPLAN_QTY * 100, 2) as rate,
|
|
|
|
|
h1,
|
|
|
|
|
h2,
|
|
|
|
|
h3,
|
|
|
|
|
h4,
|
|
|
|
|
h5,
|
|
|
|
|
h6,
|
|
|
|
|
h7,
|
|
|
|
|
H8,
|
|
|
|
|
h9,
|
|
|
|
|
H10,
|
|
|
|
|
h11,
|
|
|
|
|
h12
|
|
|
|
|
|
|
|
|
|
from (
|
|
|
|
|
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,
|
|
|
|
|
STATION_NO,
|
|
|
|
|
(select QTY
|
|
|
|
|
from (select QTY, row_number() over (order by CREATE_TIME desc) row_n
|
|
|
|
|
from HAIWEI.BASE_FP_PLANQTY)
|
|
|
|
|
where row_n = 1) as target,
|
|
|
|
|
case
|
|
|
|
|
when PRODUCT_STATUS = 0 then '未生产'
|
|
|
|
|
else '生产中' end as status,
|
|
|
|
|
nvl(plan_number, 0) as plan_number,
|
|
|
|
|
PRODUCT_QTY as qty,
|
|
|
|
|
round(PRODUCT_QTY / CURRENTPLAN_QTY * 100, 2) as rate,
|
|
|
|
|
CURRENTPLAN_QTY,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '07:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY1
|
|
|
|
|
else 0 end as h1,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '08:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY2
|
|
|
|
|
else 0 end as h2,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '09:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY3
|
|
|
|
|
else 0 end as h3,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '10:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY4
|
|
|
|
|
else 0 end as h4,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '11:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY5
|
|
|
|
|
else 0 end as h5,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '12:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY6
|
|
|
|
|
else 0 end h6,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '13:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY7
|
|
|
|
|
else 0 end h7,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '14:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY8
|
|
|
|
|
else 0 end h8,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '15:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY9
|
|
|
|
|
else 0 end h9,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '16:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY10
|
|
|
|
|
else 0 end h10,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '17:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY11
|
|
|
|
|
else 0 end h11,
|
|
|
|
|
case
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(sysdate, 'yyyy-mm-dd') || '18:29:59', 'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
HOUR_QTY12
|
|
|
|
|
else 0 end h12
|
|
|
|
|
from IMOS_PR_FOAMING_MONITOR ipr
|
|
|
|
|
left join (
|
|
|
|
|
select round(PLAN_QTY / num, 0) as plan_number, itm.MATERIAL_NAME AS NAME
|
|
|
|
|
from imos_ta_material itm
|
|
|
|
|
left join (select count(1) as num, MATERIAL_NAME
|
|
|
|
|
from IMOS_PR_FOAMING_MONITOR
|
|
|
|
|
group by MATERIAL_NAME) cou
|
|
|
|
|
on cou.MATERIAL_NAME = itm.MATERIAL_NAME
|
|
|
|
|
where DISPLAY_FLAG = 1
|
|
|
|
|
) ta
|
|
|
|
|
on ta.name = ipr.MATERIAL_NAME
|
|
|
|
|
order by to_number(STATION_NO))
|
|
|
|
|
</select>
|
|
|
|
|
<select id="fp_selectOrderExecution" resultType="com.ruoyi.system.domain.OrderInfo">
|
|
|
|
|
select substr(MATERIAL_NAME,
|
|
|
|
|
case
|
|
|
|
|
@ -497,7 +662,6 @@
|
|
|
|
|
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 haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
|
|
|
|
|
@ -505,7 +669,6 @@
|
|
|
|
|
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 haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
|
|
|
|
|
@ -516,7 +679,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 haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7))
|
|
|
|
|
@ -529,7 +691,8 @@
|
|
|
|
|
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
|
|
|
|
|
) * 100, 2) as qty,
|
|
|
|
|
'清单率' as name
|
|
|
|
|
from DUAL
|
|
|
|
|
-- union
|
|
|
|
|
-- select count(1)as qty, '入库订单统计' as name
|
|
|
|
|
@ -569,19 +732,127 @@ where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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 + QTY_B as qty, '计划' as name
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
union
|
|
|
|
|
select to_char(PRODUCTION_DATE, 'MM-dd') as code, count(1) as qty, '产量' as name
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE
|
|
|
|
|
where to_char(PRODUCTION_DATE, 'yyyy-MM-dd') in
|
|
|
|
|
(
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
select code, sum(qty), name
|
|
|
|
|
from (
|
|
|
|
|
select wb.day as code, count(1) as qty, '产量' as name
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE ba
|
|
|
|
|
left join (select to_char(to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss'), 'MM-dd') as day, W_START, B_END
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME
|
|
|
|
|
where to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss') = (TRUNC(sysdate, 'D') + 1)
|
|
|
|
|
) wb on 1 = 1
|
|
|
|
|
where PRODUCTION_DATE between W_START and B_END
|
|
|
|
|
group by wb.day
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
select to_char((TRUNC(sysdate, 'D') + 1), 'MM-dd') as code, 0 as qty, '产量' as name
|
|
|
|
|
from dual
|
|
|
|
|
) group by code, name
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
select code, sum(qty), name
|
|
|
|
|
from (
|
|
|
|
|
select wb.day as code, count(1) as qty, '产量' as name
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE ba
|
|
|
|
|
left join (select to_char(to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss'), 'MM-dd') as day, W_START, B_END
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME
|
|
|
|
|
where to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss') = (TRUNC(sysdate, 'D') + 2)
|
|
|
|
|
) wb on 1 = 1
|
|
|
|
|
where PRODUCTION_DATE between W_START and B_END
|
|
|
|
|
group by wb.day
|
|
|
|
|
union
|
|
|
|
|
select to_char((TRUNC(sysdate, 'D') + 2), 'MM-dd') as code, 0 as qty, '产量' as name
|
|
|
|
|
from dual
|
|
|
|
|
)
|
|
|
|
|
group by to_char(PRODUCTION_DATE, 'MM-dd')
|
|
|
|
|
group by code, name
|
|
|
|
|
union
|
|
|
|
|
select code, sum(qty), name
|
|
|
|
|
from (
|
|
|
|
|
select wb.day as code, count(1) as qty, '产量' as name
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE ba
|
|
|
|
|
left join (select to_char(to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss'), 'MM-dd') as day, W_START, B_END
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME
|
|
|
|
|
where to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss') = (TRUNC(sysdate, 'D') + 3)
|
|
|
|
|
) wb on 1 = 1
|
|
|
|
|
where PRODUCTION_DATE between W_START and B_END
|
|
|
|
|
group by wb.day
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
select to_char((TRUNC(sysdate, 'D') + 3), 'MM-dd') as code, 0 as qty, '产量' as name
|
|
|
|
|
from dual
|
|
|
|
|
)
|
|
|
|
|
group by code, name
|
|
|
|
|
union
|
|
|
|
|
select code, sum(qty), name
|
|
|
|
|
from (
|
|
|
|
|
select wb.day as code, count(1) as qty, '产量' as name
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE ba
|
|
|
|
|
left join (select to_char(to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss'), 'MM-dd') as day, W_START, B_END
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME
|
|
|
|
|
where to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss')= (TRUNC(sysdate, 'D') + 4)
|
|
|
|
|
) wb on 1 = 1
|
|
|
|
|
where PRODUCTION_DATE between W_START and B_END
|
|
|
|
|
group by wb.day
|
|
|
|
|
union
|
|
|
|
|
select to_char((TRUNC(sysdate, 'D') + 4), 'MM-dd') as code, 0 as qty, '产量' as name
|
|
|
|
|
from dual
|
|
|
|
|
)
|
|
|
|
|
group by code, name
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
select code, sum(qty), name
|
|
|
|
|
from (
|
|
|
|
|
select wb.day as code, count(1) as qty, '产量' as name
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE ba
|
|
|
|
|
left join (select to_char(to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss'), 'MM-dd') as day, W_START, B_END
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME
|
|
|
|
|
where to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss') = (TRUNC(sysdate, 'D') + 5)
|
|
|
|
|
) wb on 1 = 1
|
|
|
|
|
where PRODUCTION_DATE between W_START and B_END
|
|
|
|
|
group by wb.day
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
select to_char((TRUNC(sysdate, 'D') + 5), 'MM-dd') as code, 0 as qty, '产量' as name
|
|
|
|
|
from dual
|
|
|
|
|
)
|
|
|
|
|
group by code, name
|
|
|
|
|
union
|
|
|
|
|
select code, sum(qty), name
|
|
|
|
|
from (
|
|
|
|
|
select wb.day as code, count(1) as qty, '产量' as name
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE ba
|
|
|
|
|
left join (select to_char(to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss'), 'MM-dd') as day, W_START, B_END
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME
|
|
|
|
|
where to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss') = (TRUNC(sysdate, 'D') + 6)
|
|
|
|
|
) wb on 1 = 1
|
|
|
|
|
where PRODUCTION_DATE between W_START and B_END
|
|
|
|
|
group by wb.day
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
select to_char((TRUNC(sysdate, 'D') + 6), 'MM-dd') as code, 0 as qty, '产量' as name
|
|
|
|
|
from dual
|
|
|
|
|
)
|
|
|
|
|
group by code, name
|
|
|
|
|
union
|
|
|
|
|
select code, sum(qty), name
|
|
|
|
|
from (
|
|
|
|
|
select wb.day as code, count(1) as qty, '产量' as name
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE ba
|
|
|
|
|
left join (select to_char(to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss'), 'MM-dd') as day, W_START, B_END
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME
|
|
|
|
|
where to_date(CREATE_DAY, 'yyyy-MM-dd hh:mi:ss')= (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
) wb on 1 = 1
|
|
|
|
|
where PRODUCTION_DATE between W_START and B_END
|
|
|
|
|
group by wb.day
|
|
|
|
|
union
|
|
|
|
|
select to_char((TRUNC(sysdate, 'D') + 7), 'MM-dd') as code, 0 as qty, '产量' as name
|
|
|
|
|
from dual
|
|
|
|
|
)
|
|
|
|
|
group by code, name
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="zhou_selectQaInfo" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
@ -638,9 +909,9 @@ where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
substr(MATERIAL_NAME,
|
|
|
|
|
instr(MATERIAL_NAME, '-', 1, 1) + 1,
|
|
|
|
|
case
|
|
|
|
|
when instr(MATERIAL_NAME, ',', 1, 1) < 6 then instr(MATERIAL_NAME, ',', 1, 2)
|
|
|
|
|
else instr(MATERIAL_NAME, ',', 1, 1) end-1 - instr(MATERIAL_NAME, '-', 1))
|
|
|
|
|
as name_sub,
|
|
|
|
|
when instr(MATERIAL_NAME, ',', 1, 2) = 0 then instr(MATERIAL_NAME, ',', 1, 1)
|
|
|
|
|
else instr(MATERIAL_NAME, ',', 1, 2) end - instr(MATERIAL_NAME, '-', 1, 1) - 1
|
|
|
|
|
) as name_sub,
|
|
|
|
|
FINISH_DATE as day,
|
|
|
|
|
round(ACTUAL_QTY / ORDER_QTY * 100, 2) as rate
|
|
|
|
|
from IMOS_PR_ORDER
|
|
|
|
|
@ -648,8 +919,27 @@ where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
(
|
|
|
|
|
select to_char(DAY, 'yyyy-MM-dd')
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
where DAY between
|
|
|
|
|
case
|
|
|
|
|
when
|
|
|
|
|
to_char(TRUNC(sysdate, 'D'), 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
then
|
|
|
|
|
(TRUNC(sysdate, 'D') -6) else
|
|
|
|
|
(TRUNC(sysdate, 'D') + 1) end
|
|
|
|
|
|
|
|
|
|
and
|
|
|
|
|
|
|
|
|
|
case
|
|
|
|
|
when
|
|
|
|
|
to_char(TRUNC(sysdate, 'D'), 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
then
|
|
|
|
|
TRUNC(sysdate, 'D') else
|
|
|
|
|
(TRUNC(sysdate, 'D') + 7) end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
order by FINISH_DATE
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
@ -752,23 +1042,29 @@ where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
PRODUCTION_DATE as day,
|
|
|
|
|
(select * from (select RHYTHM from haiwei.BASE_RHYTHM where ROWNUM = 1 order by ID desc)) as rhy
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb on 1 = 1
|
|
|
|
|
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb
|
|
|
|
|
on 1 = 1
|
|
|
|
|
where ippb.PRODUCTION_DATE between case when sysdate <= wb.W_END then W_START else W_END end
|
|
|
|
|
and case when sysdate < = wb.W_END then W_END else B_END end
|
|
|
|
|
and case when sysdate
|
|
|
|
|
< = wb.W_END then W_END else B_END end
|
|
|
|
|
and DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<select id="zz_selectLossInfo" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select ROUND(sum(ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM) / 60, 2)-
|
|
|
|
|
select case when q1 < q2 then q1 else q1 - 12 end as qty, name
|
|
|
|
|
from (
|
|
|
|
|
select ROUND(sum(ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM) / 60, 2) q1,
|
|
|
|
|
nvl(case
|
|
|
|
|
when sysdate > to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '09:30:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
when sysdate > to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '09:30:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
case
|
|
|
|
|
when sysdate > to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '14:30:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
then 60 else 30 end
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '14:30:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
then 60
|
|
|
|
|
else 30 end
|
|
|
|
|
end
|
|
|
|
|
, 0) as qty,
|
|
|
|
|
, 0) as q2,
|
|
|
|
|
1 as name
|
|
|
|
|
from (select row_number() over (order by PRODUCTION_DATE) as row_number,
|
|
|
|
|
PRODUCTION_DATE as day
|
|
|
|
|
@ -779,12 +1075,12 @@ from (select row_number() over (order by PRODUCTION_DATE) as row_number,
|
|
|
|
|
on 1 = 1
|
|
|
|
|
where ippb.PRODUCTION_DATE between
|
|
|
|
|
case
|
|
|
|
|
when #{state} = 1 then W_START
|
|
|
|
|
when #{state} = 2 then W_END end
|
|
|
|
|
when 1 = 1 then W_START
|
|
|
|
|
when 1 = 2 then W_END end
|
|
|
|
|
and
|
|
|
|
|
case
|
|
|
|
|
when #{state} = 1 then W_END
|
|
|
|
|
when #{state} = 2 then B_END end
|
|
|
|
|
when 1 = 1 then W_END
|
|
|
|
|
when 1 = 2 then B_END end
|
|
|
|
|
and DETIAL_TYPE_CODE = '1004') t1
|
|
|
|
|
left join
|
|
|
|
|
(select row_number() over (order by PRODUCTION_DATE) as row_number,
|
|
|
|
|
@ -796,20 +1092,18 @@ from (select row_number() over (order by PRODUCTION_DATE) as row_number,
|
|
|
|
|
on 1 = 1
|
|
|
|
|
where ippb.PRODUCTION_DATE between
|
|
|
|
|
case
|
|
|
|
|
when #{state} = 1 then W_START
|
|
|
|
|
when #{state} = 2 then W_END end
|
|
|
|
|
when 1 = 1 then W_START
|
|
|
|
|
when 1 = 2 then W_END end
|
|
|
|
|
and
|
|
|
|
|
case
|
|
|
|
|
when #{state} = 1 then W_END
|
|
|
|
|
when #{state} = 2 then B_END end
|
|
|
|
|
when 1 = 1 then W_END
|
|
|
|
|
when 1 = 2 then B_END end
|
|
|
|
|
and DETIAL_TYPE_CODE = '1004') t2 on t1.row_number = t2.row_number + 1
|
|
|
|
|
left join
|
|
|
|
|
(select * from (select RHYTHM from haiwei.BASE_RHYTHM order by ID desc) where ROWNUM = 1) t3 on 1 = 1
|
|
|
|
|
|
|
|
|
|
where 0 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
union
|
|
|
|
|
select count(1) as qty,
|
|
|
|
|
2 as name
|
|
|
|
|
@ -895,16 +1189,19 @@ where 180 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
union
|
|
|
|
|
select
|
|
|
|
|
case when qty < 0 then 0 else qty end as qty,name
|
|
|
|
|
from
|
|
|
|
|
(
|
|
|
|
|
select case when qty < 0 then 0 else qty end as qty,
|
|
|
|
|
name
|
|
|
|
|
from (
|
|
|
|
|
select count(1) - nvl(case
|
|
|
|
|
when sysdate > to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '09:30:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
when sysdate > to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '09:30:00',
|
|
|
|
|
'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
then
|
|
|
|
|
case
|
|
|
|
|
when sysdate > to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '14:30:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
then 2 else 1 end
|
|
|
|
|
when sysdate >
|
|
|
|
|
to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '14:30:00',
|
|
|
|
|
'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
then 2
|
|
|
|
|
else 1 end
|
|
|
|
|
end
|
|
|
|
|
, 0) as qty,
|
|
|
|
|
4 as name
|
|
|
|
|
@ -942,7 +1239,8 @@ from (select row_number() over (order by PRODUCTION_DATE) as row_number,
|
|
|
|
|
when #{state} = 2 then B_END end
|
|
|
|
|
and DETIAL_TYPE_CODE = '1004') t2 on t1.row_number = t2.row_number + 1
|
|
|
|
|
left join
|
|
|
|
|
(select * from (select RHYTHM from haiwei.BASE_RHYTHM order by ID desc) where ROWNUM = 1) t3 on 1 = 1
|
|
|
|
|
(select * from (select RHYTHM from haiwei.BASE_RHYTHM order by ID desc) where ROWNUM = 1) t3
|
|
|
|
|
on 1 = 1
|
|
|
|
|
|
|
|
|
|
where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
)
|
|
|
|
|
@ -953,9 +1251,11 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
substr(
|
|
|
|
|
MATERIAL_NAME,
|
|
|
|
|
instr(MATERIAL_NAME, '-', 1, 1) + 1,
|
|
|
|
|
instr(MATERIAL_NAME, ',', 1, 1) - 2 - instr(MATERIAL_NAME, '-', 1, 1) + 1) as name
|
|
|
|
|
instr(MATERIAL_NAME, ',', 1, 2) - 2 - instr(MATERIAL_NAME, '-', 1, 1) + 1) as name
|
|
|
|
|
from IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb
|
|
|
|
|
left join (select *
|
|
|
|
|
from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc)
|
|
|
|
|
where ROWNUM = 1) wb
|
|
|
|
|
on 1 = 1
|
|
|
|
|
where ippb.SCAN_TIME between
|
|
|
|
|
case
|
|
|
|
|
@ -967,8 +1267,7 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
group by MATERIAL_NAME
|
|
|
|
|
</select>
|
|
|
|
|
<select id="mtk_selectInStore3d" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select
|
|
|
|
|
substr(MATERIAL_NAME,
|
|
|
|
|
select substr(MATERIAL_NAME,
|
|
|
|
|
case
|
|
|
|
|
when instr(MATERIAL_NAME, '-', 1, 1) = 0 then 1
|
|
|
|
|
else instr(MATERIAL_NAME, '-', 1, 1) + 1
|
|
|
|
|
@ -990,13 +1289,17 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
|
|
|
|
|
<select id="selectNowXkOutPut" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select (
|
|
|
|
|
case when
|
|
|
|
|
case
|
|
|
|
|
when
|
|
|
|
|
TO_CHAR(SYSDATE, 'hh24') - 1 < 0
|
|
|
|
|
then '23:30' else TO_CHAR(SYSDATE, 'hh24')-1 || ':30' end
|
|
|
|
|
then '23:30'
|
|
|
|
|
else TO_CHAR(SYSDATE, 'hh24') - 1 || ':30' end
|
|
|
|
|
) as name,
|
|
|
|
|
nvl(sum(actual_qty), 0) as qty
|
|
|
|
|
from IMOS.IMOS_PR_PLAN xhq
|
|
|
|
|
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb on 1 = 1
|
|
|
|
|
left join (select *
|
|
|
|
|
from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc)
|
|
|
|
|
where ROWNUM = 1) wb on 1 = 1
|
|
|
|
|
where to_date(xhq.START_TIME, 'yyyy-MM-dd hh24:mi:ss') between case when sysdate <= wb.W_END then W_START else W_END end
|
|
|
|
|
and case when sysdate <= wb.W_END then W_END else B_END end
|
|
|
|
|
and plan_date is not null
|
|
|
|
|
@ -1007,7 +1310,9 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
<select id="selectNowXkOutPut1" resultType="int">
|
|
|
|
|
select nvl(sum(actual_qty), 0)
|
|
|
|
|
from IMOS.IMOS_PR_PLAN ipp
|
|
|
|
|
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb on 1=1
|
|
|
|
|
left join (select *
|
|
|
|
|
from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc)
|
|
|
|
|
where ROWNUM = 1) wb on 1 = 1
|
|
|
|
|
where plan_date is not null
|
|
|
|
|
and process_code = 1002
|
|
|
|
|
and delete_flag = '0'
|
|
|
|
|
@ -1040,7 +1345,9 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectXK_H_QTY" resultType="int">
|
|
|
|
|
select * from ( select nvl(ZS_C, 0) from haiwei.XK_H_QTY order by CREATE_TIME desc) where ROWNUM=1
|
|
|
|
|
select *
|
|
|
|
|
from (select nvl(ZS_C, 0) from haiwei.XK_H_QTY order by CREATE_TIME desc)
|
|
|
|
|
where ROWNUM = 1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertXK_H_QTY">
|
|
|
|
|
@ -1069,7 +1376,8 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
from IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
left join (
|
|
|
|
|
select W_END as day1, W_END + interval '1' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1080,7 +1388,8 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-28 20:30:00
|
|
|
|
|
select W_END + interval '1' HOUR as day1, W_END + interval '2' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1091,7 +1400,8 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-28 21:30:00
|
|
|
|
|
select W_END + interval '2' HOUR as day1, W_END + interval '3' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1102,7 +1412,8 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-28 22:30:00
|
|
|
|
|
select W_END + interval '3' HOUR as day1, W_END + interval '4' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1113,7 +1424,8 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-28 23:30:00
|
|
|
|
|
select W_END + interval '4' HOUR as day1, W_END + interval '5' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1125,7 +1437,8 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-29 00:30:00
|
|
|
|
|
select W_END + interval '5' HOUR as day1, W_END + interval '6' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1137,7 +1450,8 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
left join (
|
|
|
|
|
-- 2022-07-29 01:30:00
|
|
|
|
|
select W_END + interval '6' HOUR as day1, W_END + interval '7' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1148,7 +1462,8 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
from IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
left join (
|
|
|
|
|
select W_END + interval '7' HOUR as day1, W_END + interval '8' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1158,9 +1473,9 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
select '03:30' as name, nvl(count(1), 0) as qty, 9 as ord
|
|
|
|
|
from IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
left join (
|
|
|
|
|
|
|
|
|
|
select W_END + interval '8' HOUR as day1, W_END + interval '9' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1170,9 +1485,9 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
select '04:30' as name, nvl(count(1), 0) as qty, 10 as ord
|
|
|
|
|
from IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
left join (
|
|
|
|
|
|
|
|
|
|
select W_END + interval '9' HOUR as day1, W_END + interval '10' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1182,9 +1497,9 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
select '05:30' as name, nvl(count(1), 0) as qty, 11 as ord
|
|
|
|
|
from IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
left join (
|
|
|
|
|
|
|
|
|
|
select W_END + interval '10' HOUR as day1, W_END + interval '11' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1194,9 +1509,9 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
select '06:30' as name, nvl(count(1), 0) as qty, 12 as ord
|
|
|
|
|
from IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
left join (
|
|
|
|
|
|
|
|
|
|
select W_END + interval '11' HOUR as day1, W_END + interval '12' HOUR as day2
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
from (select W_END, row_number() over (order by CREATE_TIME desc) as qt
|
|
|
|
|
from haiwei.BASE_DAY_WBTIME)
|
|
|
|
|
where qt = 1
|
|
|
|
|
) t1 on 1 = 1
|
|
|
|
|
where DETIAL_TYPE_CODE = '1004'
|
|
|
|
|
@ -1301,14 +1616,15 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
select sum(qty) as qty,
|
|
|
|
|
name,
|
|
|
|
|
sum(rate) as rate
|
|
|
|
|
from
|
|
|
|
|
(select nvl(qty1,0) as qty,
|
|
|
|
|
from (select nvl(qty1, 0) as qty,
|
|
|
|
|
name,
|
|
|
|
|
nvl(round((qty1 / a.qty) * 100, 2), 0) as rate
|
|
|
|
|
from (
|
|
|
|
|
select to_char(PRODUCTION_DATE, 'hh24') || ':30' as name, count(1) as qty
|
|
|
|
|
from IMOS_PR_PRODUCT_BARCODE ippb
|
|
|
|
|
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb
|
|
|
|
|
left join (select *
|
|
|
|
|
from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc)
|
|
|
|
|
where ROWNUM = 1) wb
|
|
|
|
|
on 1 = 1
|
|
|
|
|
where ippb.PRODUCTION_DATE between
|
|
|
|
|
case
|
|
|
|
|
@ -1331,10 +1647,13 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
and to_char(CREATION_DATE, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
group by to_char(CREATION_DATE, 'hh24')) on name = name1
|
|
|
|
|
union
|
|
|
|
|
select 0 as qty ,case
|
|
|
|
|
select 0 as qty,
|
|
|
|
|
case
|
|
|
|
|
when #{state} = 1 then '07:30'
|
|
|
|
|
when #{state} = 2 then '19:30'
|
|
|
|
|
end as name ,0 as rate from dual
|
|
|
|
|
end as name,
|
|
|
|
|
0 as rate
|
|
|
|
|
from dual
|
|
|
|
|
)
|
|
|
|
|
group by name
|
|
|
|
|
order by name
|
|
|
|
|
@ -1342,21 +1661,46 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="zz_selectInStoreTag" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select * from (select RHYTHM as qty, '节拍' as name from haiwei.BASE_RHYTHM where ROWNUM = 1 order by ID desc)
|
|
|
|
|
select *
|
|
|
|
|
from (select RHYTHM as qty, '节拍' as name from haiwei.BASE_RHYTHM where ROWNUM = 1 order by ID desc)
|
|
|
|
|
</select>
|
|
|
|
|
<select id="zz_selectProductInTarget" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
-- select sum(QTY) as qty, '目标' as name
|
|
|
|
|
-- from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
-- where DAY between (TRUNC(sysdate, 'D') + 1) and (TRUNC(sysdate, 'D') + 7)
|
|
|
|
|
-- union
|
|
|
|
|
select sum(QTY) as qty, '进度目标' as name
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
-- select sum(QTY) as qty, '进度目标' as name
|
|
|
|
|
-- from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
-- where to_char(DAY, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
select case
|
|
|
|
|
when sysdate < W_END then QTY
|
|
|
|
|
else
|
|
|
|
|
case when QTY_B = 0 then QTY else QTY_B end end as qty,
|
|
|
|
|
'进度目标' as name
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY bqty
|
|
|
|
|
left join (select *
|
|
|
|
|
from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc)
|
|
|
|
|
where ROWNUM = 1) wb
|
|
|
|
|
on 1 = 1
|
|
|
|
|
where to_char(DAY, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
union
|
|
|
|
|
select count(1) as qty, '实际' as name
|
|
|
|
|
from IMOS.IMOS_PR_PRODUCT_BARCODE
|
|
|
|
|
where to_char(PRODUCTION_DATE, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
</select>
|
|
|
|
|
<select id="zz_countNightProductInTag" resultType="integer">
|
|
|
|
|
select case
|
|
|
|
|
when sysdate < W_END then 0
|
|
|
|
|
else QTY_B
|
|
|
|
|
end as qty
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY bqty
|
|
|
|
|
left join (select *
|
|
|
|
|
from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc)
|
|
|
|
|
where ROWNUM = 1) wb
|
|
|
|
|
on 1 = 1
|
|
|
|
|
where to_char(DAY, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="zz_selectInStoreOrderInfo" resultType="com.ruoyi.system.domain.OrderInfo">
|
|
|
|
|
select ippi.ORDER_NO as plan_code,
|
|
|
|
|
@ -1372,7 +1716,8 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
ippi.CREATION_DATE as day
|
|
|
|
|
from IMOS_PR_PRODUCT_IN ippi
|
|
|
|
|
left join IMOS.IMOS_PR_ORDER po on ippi.ORDER_NO = po.ORDER_NO
|
|
|
|
|
where to_char(ippi.CREATION_DATE, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd') and ippi. DELETE_FLAG=0
|
|
|
|
|
where to_char(ippi.CREATION_DATE, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
|
|
|
|
|
and ippi.DELETE_FLAG = 0
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="mtk_selectOrderInfoBy3dTatle" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
@ -1408,7 +1753,8 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
from (
|
|
|
|
|
select DAY, ROWNUM as qt
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY < to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
where DAY < to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '00:00:00',
|
|
|
|
|
'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
order by DAY desc)
|
|
|
|
|
where qt < 4)
|
|
|
|
|
and ORDER_QTY - ACTUAL_QTY < 6
|
|
|
|
|
@ -1421,10 +1767,12 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
from (
|
|
|
|
|
select DAY, ROWNUM as qt
|
|
|
|
|
from haiwei.BASE_PRODUCT_QTY
|
|
|
|
|
where DAY < to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '00:00:00', 'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
where DAY < to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '00:00:00',
|
|
|
|
|
'yyyy-MM-dd hh24:mi:ss')
|
|
|
|
|
order by DAY desc)
|
|
|
|
|
where qt < 4)
|
|
|
|
|
) * 100, 2) as qty, '清单率' as name
|
|
|
|
|
) * 100, 2) as qty,
|
|
|
|
|
'清单率' as name
|
|
|
|
|
from DUAL
|
|
|
|
|
union
|
|
|
|
|
select count(1) as qty, '入库订单统计' as name
|
|
|
|
|
@ -1505,7 +1853,9 @@ where 600 < ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
<select id="zz_selectOneBadRateMb" resultType="com.ruoyi.system.domain.BoxOutput">
|
|
|
|
|
select * from (select rate,'不合格率目标' from haiwei.BASE_ONE_UNQUQLIFIED_RATE order by CREATE_TIME desc) where ROWNUM=1
|
|
|
|
|
select *
|
|
|
|
|
from (select rate, '不合格率目标' from haiwei.BASE_ONE_UNQUQLIFIED_RATE order by CREATE_TIME desc)
|
|
|
|
|
where ROWNUM = 1
|
|
|
|
|
</select>
|
|
|
|
|
<select id="zz_countNightProductIn" resultType="integer">
|
|
|
|
|
select count(1)
|
|
|
|
|
|