소스 검색

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

lamphua 1 개월 전
부모
커밋
ed2fa40214

+ 1
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectController.java 파일 보기

@@ -418,7 +418,7 @@ public class CmcProjectController extends BaseController
418 418
 
419 419
     //各部门承担项目数量
420 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 422
             cmcProject.setUndertakingDept(String.valueOf(i));
423 423
             List<CmcProject> deptList = new ArrayList<>();
424 424
             if (i != 113)

+ 2
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcStudyMapper.xml 파일 보기

@@ -49,6 +49,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
49 49
             <if test="lastPoint != null  and lastPoint != ''"> and s.last_point = #{lastPoint}</if>
50 50
             <if test="lastTime != null "> and YEAR(s.last_time) = YEAR(#{lastTime})</if>
51 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 54
         </where>
53 55
     </select>
54 56
     

Loading…
취소
저장