|
|
@@ -371,9 +371,11 @@ public class StatisticServiceImpl implements StatisticService {
|
|
|
weekDto.setDayName(getDayName(dateStr));
|
|
|
String sql = "select count(*) value from t_rypxcjb where ji_hua_lei_xing_='在岗培训' and shi_fou_guo_shen_='未发布' " +
|
|
|
" and di_dian_='%s' and date_format(pei_xun_shi_jian_,'%%Y-%%m-%%d')='%s' ";
|
|
|
- sql = String.format(sql,getDiDian(),dateStr);
|
|
|
if (BeanUtils.isNotEmpty(dept)){
|
|
|
- sql = String.format(sql+" and bian_zhi_bu_men_ = '%s'",dept);
|
|
|
+ sql = sql+" and bian_zhi_bu_men_ = '%s'";
|
|
|
+ sql = String.format(sql,getDiDian(),dateStr,dept);
|
|
|
+ }else {
|
|
|
+ sql = String.format(sql,getDiDian(),dateStr);
|
|
|
}
|
|
|
Map<String,Object> map = commonDao.queryOne(sql);
|
|
|
weekDto.setValue(map.get("value"));
|