设备稼动率报表

master
yinq 2 years ago
parent 737c4351cf
commit 0e1595f701

@ -628,6 +628,20 @@ public class ReportController {
}
}
/**
*
* @param
* @return
*/
@GetMapping("/operationRateOfEquipmentReport")
public R operationRateOfEquipmentReport(@RequestParam(required = false) Map paramMap){
try {
return R.ok(reportService.operationRateOfEquipmentReport(paramMap));
} catch (Exception e) {
return R.failed(e.getMessage());
}
}
/**
*
* @param

@ -328,4 +328,11 @@ public interface ReportMapper {
* @return
*/
List<Map<String, String>> inventoryTableSave(Map paramMap);
/**
*
* @param paramMap
* @return
*/
List<Map<String, String>> operationRateOfEquipmentReport(Map paramMap);
}

@ -320,4 +320,11 @@ public interface ReportService {
* @return
*/
List<Map<String, String>> inventoryTableSave(Map paramMap);
/**
*
* @param paramMap
* @return
*/
List<Map<String, String>> operationRateOfEquipmentReport(Map paramMap);
}

@ -1786,6 +1786,19 @@ public class ReportServiceImpl implements ReportService {
return reportMapper.inventoryTableSave(paramMap);
}
/**
*
* @param paramMap
* @return
*/
@Override
public List<Map<String, String>> operationRateOfEquipmentReport(Map paramMap) {
String site = CommonMethods.getSite();
paramMap.put("site", site);
paramMap.put("locale", LocaleContextHolder.getLocale().getLanguage());
return reportMapper.operationRateOfEquipmentReport(paramMap);
}
/**
*
* @param paramMap

@ -3307,6 +3307,29 @@ SELECT zab.CREATED_DATE_TIME,
</if>
</where>
</select>
<select id="operationRateOfEquipmentReport" resultType="java.util.Map">
SELECT *
FROM OPERATION_RATE_OF_EQUIPMENT_REPORT V
WHERE 1=1
<if test="workCenter != null and workCenter != ''">
AND V.WORK_CENTER = #{workCenter}
</if>
<if test="resrce != null and resrce != ''">
AND V.RESRCE = #{resrce}
</if>
<if test="sapDescription != null and sapDescription != ''">
AND V.SAP_WORK_CENTER_DESCRIPTION like '%${sapDescription}%'
</if>
<if test="resrceDescription != null and resrceDescription != ''">
AND V.RESRCE_DESCRIPTION like '%${resrceDescription}%'
</if>
<if test="startDate != null and startDate != ''">
AND V.SEND_DATE >= #{startDate}
</if>
<if test="endDate != null and endDate != ''">
AND V.SEND_DATE &lt;= #{endDate}
</if>
</select>
</mapper>
Loading…
Cancel
Save