add项目齐套率报表

master
yinq 2 years ago
parent 025d9cf35b
commit d2878e0b51

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

@ -255,4 +255,10 @@ public interface ReportMapper {
Map<String, String> getCapacityLoadUNPlanHours();
/**
*
* @param paramMap
* @return
*/
List<Map<String, String>> projectAlignmentRateReport(Map paramMap);
}

@ -264,4 +264,12 @@ public interface ReportService {
* @return
*/
Map<String, Object> workHoursBoard(String user);
/**
*
* @param paramMap
* @return
*/
List<Map<String, String>> projectAlignmentRateReport(Map paramMap);
}

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

@ -2777,5 +2777,26 @@ SELECT zab.CREATED_DATE_TIME,
ELSE 0 END)) "tardinessWork"
FROM Z_SFC_DISPATCH ZSD
</select>
<select id="projectAlignmentRateReport" resultType="java.util.Map" parameterType="java.util.HashMap">
SELECT * FROM PROJECT_ALIGNMENT_RATE_REPORT PARR
<where>
1=1
<if test="shopOrder != null and shopOrder != ''">
AND PARR.SHOP_ORDER = #{shopOrder}
</if>
<if test="itemNumber != null and itemNumber != ''">
AND PARR.ITEM_NUMBER = #{itemNumber}
</if>
<if test="workOrder != null and workOrder != ''">
AND PARR.WORK_ORDER = #{workOrder}
</if>
<if test="item != null and item != ''">
AND PARR.ITEM = #{item}
</if>
<if test="itemDescription != null and itemDescription != ''">
AND PARR.ITEM_DESCRIPTION = #{itemDescription}
</if>
</where>
</select>
</mapper>
Loading…
Cancel
Save