修改 展示看板

master
wangh 4 years ago
parent 5fe4e659f0
commit 75b42102fb

@ -66,6 +66,7 @@ public class BoxBroadController {
@PostMapping("/getProductPlanInfo")
@ApiOperation("箱壳工单详情")
public String getProductPlanInfo() {
List<OrderInfo> planInfo = service.getUHullPlanInfo("1002");
String jsonInfo = JSONArray.toJSONString(planInfo);

@ -11,7 +11,7 @@ import java.util.List;
*/
@Repository
public interface BroadDataMapper {
BoxPlanCompletion selectplanCompletion(String gxid);
BoxPlanCompletion selectplanCompletion();
List<BoxStock> selectStock(String id);

@ -25,7 +25,7 @@ public class BroadDataServiceImpl implements IBroadDataService
@Override
public BoxPlanCompletion selectplanCompletion(String gxid) {
return mapper.selectplanCompletion(gxid);
return mapper.selectplanCompletion();
}
@Override

@ -12,15 +12,19 @@
</resultMap>
<select id="selectplanCompletion" resultType="com.ruoyi.system.domain.BoxPlanCompletion">
select nvl(sum(PLAN_QTY), 0) planned_number,
nvl(sum(actual_qty), 0) quantity_number,
plan_shift
select (SELECT *
FROM (select PLAN_NUMBER
from haiwei.BASE_BOX_PLAN
where rownum = 1
ORDER BY CREATE_TIME DESC)) AS planned_number,
nvl(sum(actual_qty), 0) AS quantity_number
from IMOS_PR_PLAN
where plan_date is not null
and process_code = #{gxid}
and process_code = 1002
and delete_flag = '0'
and to_char(plan_date, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
group by to_char(plan_date, 'yyyy-MM-dd'), PLAN_SHIFT
group by to_char(plan_date, 'yyyy-MM-dd')
</select>
<select id="selectStock" resultType="com.ruoyi.system.domain.BoxStock">
@ -89,7 +93,7 @@
PLAN_QTY as plan_number,
ACTUAL_QTY as actual_number,
round(ACTUAL_QTY / PLAN_QTY * 100,2) as rate,
START_TIME
START_TIME as day
from IMOS_PR_PLAN t
where process_code = 1002
and delete_flag = '0'
@ -98,12 +102,14 @@
</select>
<select id="selectOutputByTime" resultType="com.ruoyi.system.domain.BoxOutput">
select TO_CHAR(CREATION_DATE, 'hh24') as name ,Count(TASK_ID) as qty
from IMOS_LO_TASK_HISTORY
where detial_type_code = '1002' and TASK_TYPE !='O'
and TO_CHAR(CREATION_DATE, 'YYYY-MM-DD') = TO_CHAR(SYSDATE, 'YYYY-MM-DD')
group by TO_CHAR(CREATION_DATE, 'hh24')
order by TO_CHAR(CREATION_DATE, 'hh24')
select TO_CHAR(CREATION_DATE, 'hh24')||':30' as name ,Count(TASK_ID) as qty
from IMOS_LO_TASK_HISTORY
where detial_type_code = '1002'
and TASK_TYPE != 'O'
and TO_CHAR(CREATION_DATE, 'YYYY-MM-DD') = TO_CHAR(SYSDATE, 'YYYY-MM-DD')
and TO_CHAR(CREATION_DATE, 'hh24') > 7
group by TO_CHAR(CREATION_DATE, 'hh24')
order by name
</select>

Loading…
Cancel
Save