Forráskód Böngészése

设计绩效-人员筛选默认为平面组长,设计组长,制片,平面,策划,拍摄

yangzian 2 éve
szülő
commit
4d5c8e552f

+ 13 - 3
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/achievements/mapper/xml/DesignerMapper.xml

@@ -288,9 +288,19 @@
         LEFT JOIN `jeecg-boot`.sys_user_role ur ON ur.user_id = u.id
         LEFT JOIN `jeecg-boot`.sys_role r ON r.id = ur.role_id
         <where>
-            <if test="roleName != null and roleName != ''">
-                and r.role_name LIKE concat('%',#{roleName},'%') or r.role_code LIKE concat('%',#{roleName},'%')
-            </if>
+             <choose>
+                    <when test="roleName != null and roleName != ''">
+                        and r.role_name LIKE concat('%',#{roleName},'%') or r.role_code LIKE concat('%',#{roleName},'%')
+                    </when>
+                    <otherwise>
+                        and (r.role_name LIKE '%平面组长%'
+                        or r.role_name LIKE '%设计组长%'
+                        or r.role_name LIKE '%制片%'
+                        or r.role_name LIKE '%平面%'
+                        or r.role_name LIKE '%策划%'
+                        or r.role_name LIKE '%拍摄%')
+                    </otherwise>
+             </choose>
         </where>
     </select>