|
|
@ -179,6 +179,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getProjectDetailNight" resultType="com.op.quality.domain.QcStaticTable">
|
|
|
|
|
|
|
|
select qctd.record_id recordId,
|
|
|
|
|
|
|
|
qctd.project_id projectId,
|
|
|
|
|
|
|
|
qctd.status,
|
|
|
|
|
|
|
|
qctd.remark,
|
|
|
|
|
|
|
|
CONVERT(VARCHAR(5),qctd.create_time, 108),
|
|
|
|
|
|
|
|
concat(qctd.project_id,
|
|
|
|
|
|
|
|
case when '21:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '20:30' then '08'
|
|
|
|
|
|
|
|
when '22:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '21:30' then '09'
|
|
|
|
|
|
|
|
when '23:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '22:30' then '10'
|
|
|
|
|
|
|
|
when '23:59'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '23:30' then '11'
|
|
|
|
|
|
|
|
when '01:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '00:00' then '11'
|
|
|
|
|
|
|
|
when '02:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '01:30' then '12'
|
|
|
|
|
|
|
|
when '03:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '02:30' then '13'
|
|
|
|
|
|
|
|
when '04:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '03:30' then '14'
|
|
|
|
|
|
|
|
when '05:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '04:30' then '15'
|
|
|
|
|
|
|
|
when '06:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '05:30' then '16'
|
|
|
|
|
|
|
|
when '07:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '06:30' then '18'
|
|
|
|
|
|
|
|
when '08:30'>= CONVERT(VARCHAR(5),qctd.create_time, 108) and CONVERT(VARCHAR(5),qctd.create_time, 108)> '07:30' then '19'
|
|
|
|
|
|
|
|
else '-' end
|
|
|
|
|
|
|
|
)ymdms
|
|
|
|
|
|
|
|
from qc_check_task qct
|
|
|
|
|
|
|
|
left join qc_check_task_detail qctd on qct.record_id = qctd.belong_to
|
|
|
|
|
|
|
|
where qct.order_no = #{orderNo} and qct.check_type = 'checkTypeSCXJ' and qct.check_status = '2'
|
|
|
|
|
|
|
|
order by qctd.create_time
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getBatchnos" resultType="java.lang.String">
|
|
|
|
<select id="getBatchnos" resultType="java.lang.String">
|
|
|
|
select powb.batch_code batchCode
|
|
|
|
select powb.batch_code batchCode
|
|
|
|
from pro_order_workorder_batch powb
|
|
|
|
from pro_order_workorder_batch powb
|
|
|
|