修改 展示看板

master
wangh 4 years ago
parent 5fe4e659f0
commit 75b42102fb

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

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

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

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

Loading…
Cancel
Save