kangwei: 完善“运营季报”接口的数据格式
修改水厂结算接口bug
正在显示
3 个修改的文件
包含
10 行增加
和
3 行删除
... | @@ -43,7 +43,7 @@ | ... | @@ -43,7 +43,7 @@ |
43 | <!-- 根据入库单ids,获取水厂结算单详情--> | 43 | <!-- 根据入库单ids,获取水厂结算单详情--> |
44 | <select id="queryWaterDepartSettlementByMaterialIds" resultType="com.skua.modules.erp.vo.ErpSettlementItemVO"> | 44 | <select id="queryWaterDepartSettlementByMaterialIds" resultType="com.skua.modules.erp.vo.ErpSettlementItemVO"> |
45 | select d.depart_name, dc.contract_name ,dc.project_name, dc.contract_code, dm.distribut_price 'unit_price' , pm.good_brand , pm.good_origin, mf.jishu_file_path, mf.appearance_info, mf.matched_info ,mf.handle_msg,mf.sender_sign,mf.receiver_sign, dm.tax_amount , | 45 | select d.depart_name, dc.contract_name ,dc.project_name, dc.contract_code, dm.distribut_price 'unit_price' , pm.good_brand , pm.good_origin, mf.jishu_file_path, mf.appearance_info, mf.matched_info ,mf.handle_msg,mf.sender_sign,mf.receiver_sign, dm.tax_amount , |
46 | round(dm.distribut_price * mi.material_num,2) total_price, round(pm.distribut_price * mi.material_num *100 /(100+ ifnull(dm.tax_amount,0)) ,2) total_price_tax, | 46 | round(dm.distribut_price * mi.material_num,2) total_price, round(pm.unit_price * mi.material_num *100 /(100+ ifnull(dm.tax_amount,0)) ,2) total_price_tax, |
47 | mi.depart_id , mi.distribut_contract_id ,mi.purchase_contract_id, mi.material_num, | 47 | mi.depart_id , mi.distribut_contract_id ,mi.purchase_contract_id, mi.material_num, |
48 | mi.arrive_time ,mi.remark,mi.sparepart_type,mi.sparepart_id,mi.sparepart_name,mi.sparepart_code,mi.specification, mi.measuring_unit,mi.good_code,mi.id 'material_in_id' | 48 | mi.arrive_time ,mi.remark,mi.sparepart_type,mi.sparepart_id,mi.sparepart_name,mi.sparepart_code,mi.specification, mi.measuring_unit,mi.good_code,mi.id 'material_in_id' |
49 | from erp_material_in mi | 49 | from erp_material_in mi | ... | ... |
... | @@ -115,7 +115,7 @@ public class OperationReportServiceImpl implements IOperationReportService { | ... | @@ -115,7 +115,7 @@ public class OperationReportServiceImpl implements IOperationReportService { |
115 | //水电耗高于控制目标--水务公司列表 | 115 | //水电耗高于控制目标--水务公司列表 |
116 | dataViewName4411 = ReportViewUtil.buildView(ReportConstant.view4411,"ydh,dhcmbzyy", departId, seasonTimeVO.getStartTime(), seasonTimeVO.getEndTime()); | 116 | dataViewName4411 = ReportViewUtil.buildView(ReportConstant.view4411,"ydh,dhcmbzyy", departId, seasonTimeVO.getStartTime(), seasonTimeVO.getEndTime()); |
117 | sql = "select * from ( "; | 117 | sql = "select * from ( "; |
118 | sql += " select d.depart_name 'departName', aaa.depart_id , avg(aaa.ydh) realConsume , IFNULL(tc.target_power,2) 'targetConsume' ,GROUP_CONCAT(aaa.dhcmbzyy) 'causeAnalysis' from "+ dataViewName4411+" aaa";; | 118 | sql += " select d.depart_name 'departName', aaa.depart_id , round(avg(aaa.ydh),2) realConsume , IFNULL(tc.target_power,2) 'targetConsume' ,GROUP_CONCAT(aaa.dhcmbzyy) 'causeAnalysis' from "+ dataViewName4411+" aaa";; |
119 | sql += " left join report_target_config tc on (tc.depart_id = aaa.depart_id and tc.target_year='2024')"; | 119 | sql += " left join report_target_config tc on (tc.depart_id = aaa.depart_id and tc.target_year='2024')"; |
120 | sql += " left join sys_depart d on d.id = aaa.depart_id "; | 120 | sql += " left join sys_depart d on d.id = aaa.depart_id "; |
121 | sql += " group by aaa.depart_id )bbb where bbb.realConsume > bbb.targetConsume "; | 121 | sql += " group by aaa.depart_id )bbb where bbb.realConsume > bbb.targetConsume "; |
... | @@ -126,7 +126,7 @@ public class OperationReportServiceImpl implements IOperationReportService { | ... | @@ -126,7 +126,7 @@ public class OperationReportServiceImpl implements IOperationReportService { |
126 | //药剂成本高于控制目标--水务公司列表 | 126 | //药剂成本高于控制目标--水务公司列表 |
127 | dataViewName4411 = ReportViewUtil.buildView(ReportConstant.view4411,"yyh,yhcyqyy", departId, seasonTimeVO.getStartTime(), seasonTimeVO.getEndTime()); | 127 | dataViewName4411 = ReportViewUtil.buildView(ReportConstant.view4411,"yyh,yhcyqyy", departId, seasonTimeVO.getStartTime(), seasonTimeVO.getEndTime()); |
128 | sql = "select * from ( "; | 128 | sql = "select * from ( "; |
129 | sql += " select d.depart_name 'departName', aaa.depart_id , avg(aaa.yyh) realConsume , IFNULL(tc.target_drug,2) 'targetConsume' ,GROUP_CONCAT(aaa.yhcyqyy) 'causeAnalysis' from "+ dataViewName4411+" aaa";; | 129 | sql += " select d.depart_name 'departName', aaa.depart_id , round(avg(aaa.yyh),2) realConsume , IFNULL(tc.target_drug,2) 'targetConsume' ,GROUP_CONCAT(aaa.yhcyqyy) 'causeAnalysis' from "+ dataViewName4411+" aaa";; |
130 | sql += " left join report_target_config tc on (tc.depart_id = aaa.depart_id and tc.target_year='2024')"; | 130 | sql += " left join report_target_config tc on (tc.depart_id = aaa.depart_id and tc.target_year='2024')"; |
131 | sql += " left join sys_depart d on d.id = aaa.depart_id "; | 131 | sql += " left join sys_depart d on d.id = aaa.depart_id "; |
132 | sql += " group by aaa.depart_id )bbb where bbb.realConsume > bbb.targetConsume "; | 132 | sql += " group by aaa.depart_id )bbb where bbb.realConsume > bbb.targetConsume "; | ... | ... |
... | @@ -53,4 +53,11 @@ public class InspectionTaskOverviewDetailVO { | ... | @@ -53,4 +53,11 @@ public class InspectionTaskOverviewDetailVO { |
53 | } | 53 | } |
54 | return processedAbnormalRate; | 54 | return processedAbnormalRate; |
55 | } | 55 | } |
56 | |||
57 | public Integer getNormalInspectionTaskCount() { | ||
58 | normalInspectionTaskCount = checkedInspectionTaskCount - abnormalInspectionTaskCount; | ||
59 | return normalInspectionTaskCount; | ||
60 | } | ||
61 | |||
62 | |||
56 | } | 63 | } | ... | ... |
-
请 注册 或 登录 后发表评论