Commit 98842865 authored by litengwei's avatar litengwei

省测卡片问题

parent f17495dd
...@@ -2034,7 +2034,6 @@ public class PlanTaskServiceImpl implements IPlanTaskService { ...@@ -2034,7 +2034,6 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
if (StringUtils.isEmpty(bizOrgCode) && StringUtil.isNotEmpty(companyCode)) { if (StringUtils.isEmpty(bizOrgCode) && StringUtil.isNotEmpty(companyCode)) {
bizOrgCode = planTaskMapper.queryByCompanyCode(companyCode); bizOrgCode = planTaskMapper.queryByCompanyCode(companyCode);
} }
DecimalFormat df = new DecimalFormat("#.00");
List<Map<String, Object>> statics = planTaskMapper.getStatics(bizOrgCode); List<Map<String, Object>> statics = planTaskMapper.getStatics(bizOrgCode);
int xcdw = 0; int xcdw = 0;
int hgdw = 0; int hgdw = 0;
...@@ -2065,10 +2064,10 @@ public class PlanTaskServiceImpl implements IPlanTaskService { ...@@ -2065,10 +2064,10 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
for (Map<String, Object> map : statics for (Map<String, Object> map : statics
) { ) {
if(map.get("code").equals("xfxchgzb")) { if(map.get("code").equals("xfxchgzb")) {
map.put("value",df.format( hgdw / xcdw )); map.put("value",(hgdw / xcdw)*100);
} }
if(map.get("code").equals("xfxclcl")) { if(map.get("code").equals("xfxclcl")) {
map.put("value",df.format( lcdw / xcdw )); map.put("value",(lcdw / xcdw)*100 );
} }
} }
} }
......
...@@ -5959,6 +5959,7 @@ ...@@ -5959,6 +5959,7 @@
wl_equipment_specific wes wl_equipment_specific wes
WHERE WHERE
wes.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%') wes.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%')
</select> </select>
<select id="selectCarStats" resultType="java.util.Map"> <select id="selectCarStats" resultType="java.util.Map">
...@@ -5968,8 +5969,11 @@ ...@@ -5968,8 +5969,11 @@
0 AS redCodeCount 0 AS redCodeCount
FROM FROM
wl_car wc wl_car wc
LEFT JOIN wl_equipment wle ON wle.id = wc.equipment_id
LEFT JOIN wl_equipment_category wec ON wle.category_id = wec.id
WHERE WHERE
wc.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%') wc.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%')
and LEFT (wec.CODE, 6) = '210101'
</select> </select>
<select id="getFireWaterInfo" resultType="Map"> <select id="getFireWaterInfo" resultType="Map">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment