浏览代码

我的学习按资料名类型查询

lamphua 2 个月前
父节点
当前提交
ed2fa40214

+ 1
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectController.java 查看文件

418
 
418
 
419
     //各部门承担项目数量
419
     //各部门承担项目数量
420
     public void getProjectDeptStatistic(CmcProject cmcProject, JSONObject deptObject) {
420
     public void getProjectDeptStatistic(CmcProject cmcProject, JSONObject deptObject) {
421
-        for (int i = 107; i <= 116; i++) {
421
+        for (int i = 107; i <= 115; i++) {
422
             cmcProject.setUndertakingDept(String.valueOf(i));
422
             cmcProject.setUndertakingDept(String.valueOf(i));
423
             List<CmcProject> deptList = new ArrayList<>();
423
             List<CmcProject> deptList = new ArrayList<>();
424
             if (i != 113)
424
             if (i != 113)

+ 2
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcStudyMapper.xml 查看文件

49
             <if test="lastPoint != null  and lastPoint != ''"> and s.last_point = #{lastPoint}</if>
49
             <if test="lastPoint != null  and lastPoint != ''"> and s.last_point = #{lastPoint}</if>
50
             <if test="lastTime != null "> and YEAR(s.last_time) = YEAR(#{lastTime})</if>
50
             <if test="lastTime != null "> and YEAR(s.last_time) = YEAR(#{lastTime})</if>
51
             <if test="getHours != null "> and s.get_hours = #{getHours}</if>
51
             <if test="getHours != null "> and s.get_hours = #{getHours}</if>
52
+            <if test="title != null "> and r.title like concat('%', #{title}, '%')</if>
53
+            <if test="type != null "> and r.type like concat('%', #{type}, '%')</if>
52
         </where>
54
         </where>
53
     </select>
55
     </select>
54
     
56
     

正在加载...
取消
保存