|
@@ -69,7 +69,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public List<TrainingDashBoardDTO> getTrainingDashBoard(String dept, String types11, String dates,String typeProportion,String version) throws Exception{
|
|
|
|
|
|
|
+ public List<TrainingDashBoardDTO> getTrainingDashBoard(String dept, String types11, String dates,String typeProportion,String version){
|
|
|
// public List<TrainingDashBoardDTO> getTrainingDashBoard(String dept, String types11, String dates,String typeProportion) {
|
|
// public List<TrainingDashBoardDTO> getTrainingDashBoard(String dept, String types11, String dates,String typeProportion) {
|
|
|
List<TrainingDashBoardDTO> list = new ArrayList<>();
|
|
List<TrainingDashBoardDTO> list = new ArrayList<>();
|
|
|
TrainingDashBoardDTO dashBoardDTO = new TrainingDashBoardDTO();
|
|
TrainingDashBoardDTO dashBoardDTO = new TrainingDashBoardDTO();
|
|
@@ -898,7 +898,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public TrainGuardAutoPlanDto getPlanRate(String dept,String dateCondition,String version) throws Exception{
|
|
|
|
|
|
|
+ public TrainGuardAutoPlanDto getPlanRate(String dept,String dateCondition,String version){
|
|
|
//public TrainGuardAutoPlanDto getPlanRate(String dept,String dateCondition){
|
|
//public TrainGuardAutoPlanDto getPlanRate(String dept,String dateCondition){
|
|
|
TrainGuardAutoPlanDto planDto = new TrainGuardAutoPlanDto();
|
|
TrainGuardAutoPlanDto planDto = new TrainGuardAutoPlanDto();
|
|
|
String planSql = "";
|
|
String planSql = "";
|
|
@@ -908,7 +908,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
try {
|
|
try {
|
|
|
ve = settingUtil.getPx();
|
|
ve = settingUtil.getPx();
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
- throw new Exception("json转换异常");
|
|
|
|
|
|
|
+ logger.warn("json转换异常");
|
|
|
}
|
|
}
|
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
|
planSql = "select count(*) as auto from t_lhrypxjlb where ji_hua_wai_jian_ in(select id_ from t_ndrypxjhzb " +
|
|
planSql = "select count(*) as auto from t_lhrypxjlb where ji_hua_wai_jian_ in(select id_ from t_ndrypxjhzb " +
|
|
@@ -938,7 +938,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
return planDto;
|
|
return planDto;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public List<TrainWeekDto> getLastSeven(String dept,String version)throws Exception{
|
|
|
|
|
|
|
+ public List<TrainWeekDto> getLastSeven(String dept,String version){
|
|
|
//public List<TrainWeekDto> getLastSeven(String dept){
|
|
//public List<TrainWeekDto> getLastSeven(String dept){
|
|
|
List<TrainWeekDto> weekDtoList = new ArrayList<>();
|
|
List<TrainWeekDto> weekDtoList = new ArrayList<>();
|
|
|
List<String> lastWeek = getLastSevenDaysDates();
|
|
List<String> lastWeek = getLastSevenDaysDates();
|
|
@@ -951,7 +951,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
try {
|
|
try {
|
|
|
ve = settingUtil.getPx();
|
|
ve = settingUtil.getPx();
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
- throw new Exception("json转换异常");
|
|
|
|
|
|
|
+ logger.warn("json转换异常");
|
|
|
}
|
|
}
|
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
|
sql = "select count(*) value from t_lhrypxjlb where pei_xun_zhuang_ta='未发布' " +
|
|
sql = "select count(*) value from t_lhrypxjlb where pei_xun_zhuang_ta='未发布' " +
|
|
@@ -987,7 +987,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//public TrainObjectDto getObjectRate(String dept,String dateCondition){
|
|
//public TrainObjectDto getObjectRate(String dept,String dateCondition){
|
|
|
- public TrainObjectDto getObjectRate(String dept,String dateCondition,String version)throws Exception{
|
|
|
|
|
|
|
+ public TrainObjectDto getObjectRate(String dept,String dateCondition,String version){
|
|
|
TrainObjectDto objectDto = new TrainObjectDto();
|
|
TrainObjectDto objectDto = new TrainObjectDto();
|
|
|
objectDto.setRemark("在岗培训对象占比");
|
|
objectDto.setRemark("在岗培训对象占比");
|
|
|
List<TrainRateDto> rateDtoList = new ArrayList<>();
|
|
List<TrainRateDto> rateDtoList = new ArrayList<>();
|
|
@@ -997,7 +997,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
try {
|
|
try {
|
|
|
ve = settingUtil.getPx();
|
|
ve = settingUtil.getPx();
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
- throw new Exception("json转换异常");
|
|
|
|
|
|
|
+ logger.warn("json转换异常");
|
|
|
}
|
|
}
|
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
|
sql = "select pei_xun_lei_xing_,count(pei_xun_lei_xing_)as nums from t_lhrypxjlb where " +
|
|
sql = "select pei_xun_lei_xing_,count(pei_xun_lei_xing_)as nums from t_lhrypxjlb where " +
|
|
@@ -1030,7 +1030,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//public TrainTypeDto getTypeRate(String dept,String dateCondition,String typeProportion){
|
|
//public TrainTypeDto getTypeRate(String dept,String dateCondition,String typeProportion){
|
|
|
- public TrainTypeDto getTypeRate(String dept,String dateCondition,String typeProportion,String version)throws Exception{
|
|
|
|
|
|
|
+ public TrainTypeDto getTypeRate(String dept,String dateCondition,String typeProportion,String version){
|
|
|
TrainTypeDto typeDto = new TrainTypeDto();
|
|
TrainTypeDto typeDto = new TrainTypeDto();
|
|
|
typeDto.setRemark("在岗培训类别占比");
|
|
typeDto.setRemark("在岗培训类别占比");
|
|
|
List<TrainRateDto> rateDtoList = new ArrayList<>();
|
|
List<TrainRateDto> rateDtoList = new ArrayList<>();
|
|
@@ -1051,7 +1051,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
try {
|
|
try {
|
|
|
ve = settingUtil.getPx();
|
|
ve = settingUtil.getPx();
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
- throw new Exception("json转换异常");
|
|
|
|
|
|
|
+ logger.warn("json转换异常");
|
|
|
}
|
|
}
|
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
|
sql = "select pei_xun_lei_bie_,count(pei_xun_lei_bie_)as nums from t_lhrypxjlb where " +
|
|
sql = "select pei_xun_lei_bie_,count(pei_xun_lei_bie_)as nums from t_lhrypxjlb where " +
|
|
@@ -1084,7 +1084,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//public TrainYearPreWorkDto getYearPre(String dept,String year){
|
|
//public TrainYearPreWorkDto getYearPre(String dept,String year){
|
|
|
- public TrainYearPreWorkDto getYearPre(String dept,String year,String version)throws Exception{
|
|
|
|
|
|
|
+ public TrainYearPreWorkDto getYearPre(String dept,String year,String version){
|
|
|
TrainYearPreWorkDto preWorkDto = new TrainYearPreWorkDto();
|
|
TrainYearPreWorkDto preWorkDto = new TrainYearPreWorkDto();
|
|
|
preWorkDto.setRemark("本年度岗前培训类别占比");
|
|
preWorkDto.setRemark("本年度岗前培训类别占比");
|
|
|
List<TrainRateDto> rateDtoList = new ArrayList<>();
|
|
List<TrainRateDto> rateDtoList = new ArrayList<>();
|
|
@@ -1094,7 +1094,7 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
try {
|
|
try {
|
|
|
ve = settingUtil.getPx();
|
|
ve = settingUtil.getPx();
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
- throw new Exception("json转换异常");
|
|
|
|
|
|
|
+ logger.warn("json转换异常");
|
|
|
}
|
|
}
|
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
|
sql = "select pei_xun_lei_bie_,count(pei_xun_lei_bie_)as nums from t_lhrypxjlb where " +
|
|
sql = "select pei_xun_lei_bie_,count(pei_xun_lei_bie_)as nums from t_lhrypxjlb where " +
|
|
@@ -1129,13 +1129,13 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//public List<Map<String, Object>> getCurrentYearData(List<String> dateStr, String dept,String year) {
|
|
//public List<Map<String, Object>> getCurrentYearData(List<String> dateStr, String dept,String year) {
|
|
|
- public List<Map<String, Object>> getCurrentYearData(List<String> dateStr, String dept,String year,String version)throws Exception {
|
|
|
|
|
|
|
+ public List<Map<String, Object>> getCurrentYearData(List<String> dateStr, String dept,String year,String version) {
|
|
|
String baseSql ="";
|
|
String baseSql ="";
|
|
|
String ve = "";
|
|
String ve = "";
|
|
|
try {
|
|
try {
|
|
|
ve = settingUtil.getPx();
|
|
ve = settingUtil.getPx();
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
- throw new Exception("json转换异常");
|
|
|
|
|
|
|
+ logger.warn("json转换异常");
|
|
|
}
|
|
}
|
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
|
baseSql = "SELECT count(*) AS total FROM t_lhrypxjlb WHERE pei_xun_zhuang_ta = '已结束' and di_dian_='%s'";
|
|
baseSql = "SELECT count(*) AS total FROM t_lhrypxjlb WHERE pei_xun_zhuang_ta = '已结束' and di_dian_='%s'";
|
|
@@ -1162,13 +1162,13 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//public List<TrainRankDto> getUserTrainRank(String dept,String dateCondition){
|
|
//public List<TrainRankDto> getUserTrainRank(String dept,String dateCondition){
|
|
|
- public List<TrainRankDto> getUserTrainRank(String dept,String dateCondition,String version) throws Exception{
|
|
|
|
|
|
|
+ public List<TrainRankDto> getUserTrainRank(String dept,String dateCondition,String version){
|
|
|
String sql = "";
|
|
String sql = "";
|
|
|
String ve = "";
|
|
String ve = "";
|
|
|
try {
|
|
try {
|
|
|
ve = settingUtil.getPx();
|
|
ve = settingUtil.getPx();
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
- throw new Exception("json转换异常");
|
|
|
|
|
|
|
+ logger.warn("json转换异常");
|
|
|
}
|
|
}
|
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
if(BeanUtils.isNotEmpty(ve) && "1".equals(ve)){
|
|
|
sql = "SELECT a.ren_yuan_id_ userId,e.NAME_ userName,a.rank as count from (select ren_yuan_id_,COUNT(ren_yuan_id_)as rank from t_qdxxb " +
|
|
sql = "SELECT a.ren_yuan_id_ userId,e.NAME_ userName,a.rank as count from (select ren_yuan_id_,COUNT(ren_yuan_id_)as rank from t_qdxxb " +
|