修改 发泡

master
wangh 4 years ago
parent b798e1d430
commit 9da5b1f019

@ -103,7 +103,10 @@ public class FPBroadController {
@PostMapping("/selectTeamGroups") @PostMapping("/selectTeamGroups")
@ApiOperation("班组是早晚") @ApiOperation("班组是早晚")
public int selectTeamGroups(){ public String selectTeamGroups(){
return iBroadDruidService.selectTeamGroups(); Integer state=iBroadDruidService.selectTeamGroups();
Map<String,Integer> map=new HashMap<>();
map.put("班组",state);
return JSONObject.toJSONString(map);
} }
} }

@ -435,30 +435,38 @@
</select> </select>
<select id="selectNowXkOutPut1" resultType="int"> <select id="selectNowXkOutPut1" resultType="int">
select nvl(sum(actual_qty), 0) select nvl(sum(actual_qty), 0)
from IMOS.IMOS_PR_PLAN from IMOS.IMOS_PR_PLAN ipp
left join (select * from haiwei.BASE_DAY_WBTIME where ROWNUM = 1 order by CREATE_TIME desc) wb on 1=1
where plan_date is not null where plan_date is not null
and process_code = 1002 and process_code = 1002
and delete_flag = '0' and delete_flag = '0'
-- and to_char(plan_date, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd') and ipp.CREATION_DATE between case when sysdate &lt; = wb.W_END then W_START else W_END end
and CREATION_DATE &gt; and case when sysdate &lt; = wb.W_END then W_END else B_END end
case -- select nvl(sum(actual_qty), 0)
when to_char(sysdate, 'hh24') &gt; 7 and to_char(sysdate, 'hh24') &lt; 20 then to_date( -- from IMOS.IMOS_PR_PLAN
to_char(SYSDATE, 'yyyy-MM-dd') || '07:30:00', -- where plan_date is not null
'yyyy-MM-dd hh24:mi:ss') -- and process_code = 1002
when to_char(sysdate, 'hh24') &lt; 7 then to_date(to_char(SYSDATE - 1, 'yyyy-MM-dd') || '19:30:00', -- and delete_flag = '0'
'yyyy-MM-dd hh24:mi:ss') -- -- and to_char(plan_date, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
else to_date(to_char(SYSDATE - 1, 'yyyy-MM-dd') || '19:30:00', 'yyyy-MM-dd hh24:mi:ss') -- and CREATION_DATE &gt;
end -- case
and CREATION_DATE &lt; -- when to_char(sysdate, 'hh24') &gt; 7 and to_char(sysdate, 'hh24') &lt; 20 then to_date(
case -- to_char(SYSDATE, 'yyyy-MM-dd') || '07:30:00',
when to_char(sysdate, 'hh24') &gt; 7 and to_char(sysdate, 'hh24') &lt; 20 then to_date( -- 'yyyy-MM-dd hh24:mi:ss')
to_char(SYSDATE, 'yyyy-MM-dd') || '19:30:00', -- when to_char(sysdate, 'hh24') &lt; 7 then to_date(to_char(SYSDATE - 1, 'yyyy-MM-dd') || '19:30:00',
'yyyy-MM-dd hh24:mi:ss') -- 'yyyy-MM-dd hh24:mi:ss')
when to_char(sysdate, 'hh24') &lt; 7 then to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '07:30:00', -- else to_date(to_char(SYSDATE - 1, 'yyyy-MM-dd') || '19:30:00', 'yyyy-MM-dd hh24:mi:ss')
'yyyy-MM-dd hh24:mi:ss') -- end
else to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '24:00:00', 'yyyy-MM-dd hh24:mi:ss') -- and CREATION_DATE &lt;
end -- case
-- when to_char(sysdate, 'hh24') &gt; 7 and to_char(sysdate, 'hh24') &lt; 20 then to_date(
-- to_char(SYSDATE, 'yyyy-MM-dd') || '19:30:00',
-- 'yyyy-MM-dd hh24:mi:ss')
-- when to_char(sysdate, 'hh24') &lt; 7 then to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '07:30:00',
-- 'yyyy-MM-dd hh24:mi:ss')
-- else to_date(to_char(SYSDATE, 'yyyy-MM-dd') || '24:00:00', 'yyyy-MM-dd hh24:mi:ss')
-- end
</select> </select>
<select id="selectXK_H_QTY" resultType="int"> <select id="selectXK_H_QTY" resultType="int">
@ -470,6 +478,6 @@
values (#{name},#{nowOut},#{cha},#{zs}) values (#{name},#{nowOut},#{cha},#{zs})
</insert> </insert>
<select id="selectTeamGroups" resultType="integer"> <select id="selectTeamGroups" resultType="integer">
select case when sysdate &lt; W_END then 0 else 1 end from BASE_DAY_WBTIME where ROWNUM=1 order by CREATE_TIME desc select case when sysdate &lt; = W_END then 0 else 1 end from BASE_DAY_WBTIME where ROWNUM=1 order by CREATE_TIME desc
</select> </select>
</mapper> </mapper>
Loading…
Cancel
Save