Lius
2024-12-17 2d727903343feb01fedc988370091395c368faf2
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/MdcPartProcessInfoServiceImpl.java
@@ -149,5 +149,56 @@
        //update-end---author:wangshuai ---date:20211227  for:[JTC-116]导出人写死了------------
        mv.addObject(NormalExcelConstants.DATA_LIST, mdcPartProcessInfos);
        return mv;
    }
    /**
     * 查询设备某天总加工时间
     *
     * @param equipmentId
     * @param validDate
     * @return
     */
    @Override
    public Integer selectTotalProcessLong(String equipmentId, String validDate) {
        Integer totalProcessLong = this.baseMapper.selectTotalProcessLong(equipmentId, validDate);
        if (totalProcessLong == null) {
            return 0;
        } else {
            return totalProcessLong;
        }
    }
    /**
     * 查询设备某天总加工数量
     *
     * @param equipmentId
     * @param validDate
     * @return
     */
    @Override
    public Integer selectTotalProcessCount(String equipmentId, String validDate) {
        Integer totalProcessCount = this.baseMapper.selectTotalProcessCount(equipmentId, validDate);
        if (totalProcessCount == null) {
            return 0;
        } else {
            return totalProcessCount;
        }
    }
    /**
     * 查询设备某天总加工合格数量
     *
     * @param equipmentId
     * @param validDate
     * @return
     */
    @Override
    public Integer selectTotalPassCount(String equipmentId, String validDate) {
        Integer totalPassCount = this.baseMapper.selectTotalPassCount(equipmentId, validDate);
        if (totalPassCount == null) {
            return 0;
        } else {
            return totalPassCount;
        }
    }
}