20200506-zlp-2
首页新增教师学位统计
This commit is contained in:
		| @@ -61,6 +61,17 @@ public class ByTeacherJbxxController extends BaseController | ||||
|         return getDataTable(list2); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询教师基本信息列表 | ||||
|      */ | ||||
|     @PreAuthorize("@ss.hasPermi('system:teacher:list')") | ||||
|     @GetMapping("/listgroupxw") | ||||
|     public TableDataInfo listGroupXw(ByTeacherJbxx byTeacherJbxx) | ||||
|     { | ||||
|         List<ByTeacherJbxx> list = byTeacherJbxxService.selectByTeacherJbGroupXw(byTeacherJbxx); | ||||
|         return getDataTable(list); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 导出教师基本信息列表 | ||||
|      */ | ||||
|   | ||||
| @@ -27,6 +27,14 @@ public interface ByTeacherJbxxMapper | ||||
|      */ | ||||
|     public List<ByTeacherJbxx> selectByTeacherJbxxList(ByTeacherJbxx byTeacherJbxx); | ||||
|  | ||||
|     /** | ||||
|      * 查询教师基本信息列表 | ||||
|      * | ||||
|      * | ||||
|      * @return 教师基本信息集合 | ||||
|      */ | ||||
|     public List<ByTeacherJbxx> selectByTeacherJbGroupXw(ByTeacherJbxx byTeacherJbxx); | ||||
|  | ||||
|     /** | ||||
|      * 新增教师基本信息 | ||||
|      *  | ||||
|   | ||||
| @@ -27,6 +27,14 @@ public interface IByTeacherJbxxService | ||||
|      */ | ||||
|     public List<ByTeacherJbxx> selectByTeacherJbxxList(ByTeacherJbxx byTeacherJbxx); | ||||
|  | ||||
|     /** | ||||
|      * 查询教师基本信息列表 | ||||
|      * | ||||
|      * | ||||
|      * @return 教师基本信息集合 | ||||
|      */ | ||||
|     public List<ByTeacherJbxx> selectByTeacherJbGroupXw(ByTeacherJbxx byTeacherJbxx); | ||||
|  | ||||
|     /** | ||||
|      * 新增教师基本信息 | ||||
|      *  | ||||
|   | ||||
| @@ -11,86 +11,90 @@ import com.ruoyi.project.system.service.IByTeacherJbxxService; | ||||
|  | ||||
| /** | ||||
|  * 教师基本信息Service业务层处理 | ||||
|  *  | ||||
|  * | ||||
|  * @author tsbz | ||||
|  * @date 2020-04-21 | ||||
|  */ | ||||
| @Service | ||||
| public class ByTeacherJbxxServiceImpl implements IByTeacherJbxxService  | ||||
| { | ||||
| public class ByTeacherJbxxServiceImpl implements IByTeacherJbxxService { | ||||
|     @Autowired | ||||
|     private ByTeacherJbxxMapper byTeacherJbxxMapper; | ||||
|  | ||||
|     /** | ||||
|      * 查询教师基本信息 | ||||
|      *  | ||||
|      * | ||||
|      * @param id 教师基本信息ID | ||||
|      * @return 教师基本信息 | ||||
|      */ | ||||
|     @Override | ||||
|     public ByTeacherJbxx selectByTeacherJbxxById(Long id) | ||||
|     { | ||||
|     public ByTeacherJbxx selectByTeacherJbxxById(Long id) { | ||||
|         return byTeacherJbxxMapper.selectByTeacherJbxxById(id); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询教师基本信息列表 | ||||
|      *  | ||||
|      * | ||||
|      * @param byTeacherJbxx 教师基本信息 | ||||
|      * @return 教师基本信息 | ||||
|      */ | ||||
|     @Override | ||||
|     @DataScope(deptAlias = "u") | ||||
|     public List<ByTeacherJbxx> selectByTeacherJbxxList(ByTeacherJbxx byTeacherJbxx) | ||||
|     { | ||||
|     public List<ByTeacherJbxx> selectByTeacherJbxxList(ByTeacherJbxx byTeacherJbxx) { | ||||
|         return byTeacherJbxxMapper.selectByTeacherJbxxList(byTeacherJbxx); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询教师基本信息列表 | ||||
|      * | ||||
|      * @return 教师基本信息集合 | ||||
|      */ | ||||
|     @Override | ||||
|     @DataScope(deptAlias = "u") | ||||
|     public List<ByTeacherJbxx> selectByTeacherJbGroupXw(ByTeacherJbxx byTeacherJbxx) { | ||||
|         return byTeacherJbxxMapper.selectByTeacherJbGroupXw(byTeacherJbxx); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增教师基本信息 | ||||
|      *  | ||||
|      * | ||||
|      * @param byTeacherJbxx 教师基本信息 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int insertByTeacherJbxx(ByTeacherJbxx byTeacherJbxx) | ||||
|     { | ||||
|     public int insertByTeacherJbxx(ByTeacherJbxx byTeacherJbxx) { | ||||
|         return byTeacherJbxxMapper.insertByTeacherJbxx(byTeacherJbxx); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改教师基本信息 | ||||
|      *  | ||||
|      * | ||||
|      * @param byTeacherJbxx 教师基本信息 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int updateByTeacherJbxx(ByTeacherJbxx byTeacherJbxx) | ||||
|     { | ||||
|     public int updateByTeacherJbxx(ByTeacherJbxx byTeacherJbxx) { | ||||
|         return byTeacherJbxxMapper.updateByTeacherJbxx(byTeacherJbxx); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 批量删除教师基本信息 | ||||
|      *  | ||||
|      * | ||||
|      * @param ids 需要删除的教师基本信息ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteByTeacherJbxxByIds(Long[] ids) | ||||
|     { | ||||
|     public int deleteByTeacherJbxxByIds(Long[] ids) { | ||||
|         return byTeacherJbxxMapper.deleteByTeacherJbxxByIds(ids); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除教师基本信息信息 | ||||
|      *  | ||||
|      * | ||||
|      * @param id 教师基本信息ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteByTeacherJbxxById(Long id) | ||||
|     { | ||||
|     public int deleteByTeacherJbxxById(Long id) { | ||||
|         return byTeacherJbxxMapper.deleteByTeacherJbxxById(id); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -69,6 +69,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|         <!-- 数据范围过滤 --> | ||||
|         ${dataScope} | ||||
|     </select> | ||||
|  | ||||
|     <select id="selectByTeacherJbGroupXw" parameterType="ByTeacherJbxx" resultMap="ByTeacherJbxxResult"> | ||||
|         select (CASE WHEN (select dict_label from sys_dict_data where dict_type='sys_jsxl' and dict_value=t.xl ) is null THEN '未设置' ELSE (select dict_label from sys_dict_data where dict_type='sys_jsxl' and dict_value=t.xl ) END )xl,count(*) byyx | ||||
|         from by_teacher_jbxx t | ||||
|         left join sys_user u on t.userid = u.user_id | ||||
|         where u.del_flag='0' | ||||
|  | ||||
|         <!-- 数据范围过滤 --> | ||||
|         ${dataScope} | ||||
|  | ||||
|         group by t.xl | ||||
|     </select> | ||||
|      | ||||
|     <select id="selectByTeacherJbxxById" parameterType="Long" resultMap="ByTeacherJbxxResult"> | ||||
|         <include refid="selectByTeacherJbxxVo"/> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user