|
|
@@ -24,12 +24,17 @@
|
|
|
IFNULL (t5.major_name,'') AS majorIdName,
|
|
|
IFNULL (t1.RESOURCE_TYPE,'') AS resourceType,
|
|
|
IFNULL (rt.NAME,'') AS resourceTypeName,
|
|
|
+ IFNULL (t1.RESOURCE_TWO_TYPE,'') AS resourceTwoType,
|
|
|
+ IFNULL (rt2.NAME,'') AS resourceTwoTypeName,
|
|
|
+ CONCAT(t1.RESOURCE_TYPE,',',t1.RESOURCE_TWO_TYPE) AS resourceAllType,
|
|
|
+ CONCAT(rt.NAME,',',rt2.NAME) AS resourceALLTypeName,
|
|
|
IFNULL (t1.COURSE_ID,'') as courseId,
|
|
|
IFNULL (t3.COURSE_NAME,'') AS courseIdName
|
|
|
FROM COURSE_AUDIT_RECORD t1
|
|
|
LEFT JOIN RESOURCE_USERFILE t2 ON t2.USER_FILE_ID = t1.USERFILE_ID AND t2.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN RESOURCE_FILE rf ON t2.FILE_ID= rf.FILE_ID
|
|
|
LEFT JOIN resource_type rt ON t1.RESOURCE_TYPE =rt.ID AND rt.DELETE_FLAG ='NOT_DELETE'
|
|
|
+ LEFT JOIN resource_type rt2 ON t1.RESOURCE_TWO_TYPE =rt2.ID AND rt2.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN COURSE_INFO t3 ON t1.COURSE_ID =t3.COURSE_ID AND t3.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN college t4 ON t1.COLLEGE_ID=t4.id AND t4.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN major t5 ON t1.MAJOR_ID=t5.id AND t5.DELETE_FLAG ='NOT_DELETE'
|
|
|
@@ -64,8 +69,11 @@
|
|
|
<if test="param.majorId!=null and param.majorId != ''">
|
|
|
and t1.MAJOR_ID=#{param.majorId}
|
|
|
</if>
|
|
|
- <if test="param.courseType!=null and param.courseType != ''">
|
|
|
- and t1.COURSE_TYPE=#{param.courseType}
|
|
|
+ <if test="param.resourceType!=null and param.resourceType != ''">
|
|
|
+ and t1.RESOURCE_TYPE=#{param.resourceType}
|
|
|
+ </if>
|
|
|
+ <if test="param.resourceTwoType!=null and param.resourceTwoType != ''">
|
|
|
+ and t1.RESOURCE_TWO_TYPE=#{param.resourceTwoType}
|
|
|
</if>
|
|
|
<if test="param.suffix!=null and param.suffix != ''">
|
|
|
and t2.EXTEND_NAME like CONCAT('%',#{param.suffix}, '%')
|
|
|
@@ -120,15 +128,18 @@
|
|
|
<if test="param.majorId!=null and param.majorId != ''">
|
|
|
and t1.MAJOR_ID=#{param.majorId}
|
|
|
</if>
|
|
|
- <if test="param.courseType!=null and param.courseType != ''">
|
|
|
- and t1.COURSE_TYPE=#{param.courseType}
|
|
|
+ <if test="param.resourceType!=null and param.resourceType != ''">
|
|
|
+ and t1.RESOURCE_TYPE=#{param.resourceType}
|
|
|
+ </if>
|
|
|
+ <if test="param.resourceTwoType!=null and param.resourceTwoType != ''">
|
|
|
+ and t1.RESOURCE_TWO_TYPE=#{param.resourceTwoType}
|
|
|
</if>
|
|
|
<if test="param.suffix!=null and param.suffix != ''">
|
|
|
and t2.EXTEND_NAME like CONCAT('%',#{param.suffix}, '%')
|
|
|
</if>
|
|
|
<if test="param.funcType!=null and param.funcType != ''">
|
|
|
<if test=" param.funcType == 1">
|
|
|
- and t1.IS_RECOMMEND='1'
|
|
|
+ and TRIM(t1.IS_RECOMMEND)='1'
|
|
|
</if>
|
|
|
|
|
|
</if>
|
|
|
@@ -167,6 +178,10 @@
|
|
|
IFNULL (t5.major_name,'') AS majorIdName,
|
|
|
IFNULL (t1.RESOURCE_TYPE,'') AS resourceType,
|
|
|
IFNULL (rt.NAME,'') AS resourceTypeName,
|
|
|
+ IFNULL (t1.RESOURCE_TWO_TYPE,'') AS resourceTwoType,
|
|
|
+ IFNULL (rt2.NAME,'') AS resourceTwoTypeName,
|
|
|
+ CONCAT(t1.RESOURCE_TYPE,',',t1.RESOURCE_TWO_TYPE) AS resourceAllType,
|
|
|
+ CONCAT(rt.NAME,',',rt2.NAME) AS resourceALLTypeName,
|
|
|
IFNULL (t1.KEYWORD ,'') as keyword,
|
|
|
IFNULL (t1.KEYWORD_VALUE ,'') as keywordValue,
|
|
|
IFNULL (t1.COURSE_ID,'') as courseId,
|
|
|
@@ -179,6 +194,7 @@
|
|
|
LEFT JOIN RESOURCE_USERFILE t2 ON t2.USER_FILE_ID = t1.USERFILE_ID AND t2.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN RESOURCE_FILE rf ON t2.FILE_ID= rf.FILE_ID
|
|
|
LEFT JOIN resource_type rt ON t1.RESOURCE_TYPE =rt.ID AND rt.DELETE_FLAG ='NOT_DELETE'
|
|
|
+ LEFT JOIN resource_type rt2 ON t1.RESOURCE_TWO_TYPE =rt2.ID AND rt2.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN COURSE_INFO t3 ON t1.COURSE_ID =t3.COURSE_ID AND t3.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN college t4 ON t1.COLLEGE_ID=t4.id AND t4.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN major t5 ON t1.MAJOR_ID=t5.id AND t5.DELETE_FLAG ='NOT_DELETE'
|
|
|
@@ -207,10 +223,15 @@
|
|
|
IFNULL (t5.major_name,'') AS majorIdName,
|
|
|
IFNULL (t1.RESOURCE_TYPE,'') AS resourceType,
|
|
|
IFNULL (rt.NAME,'') AS resourceTypeName,
|
|
|
+ IFNULL (t1.RESOURCE_TWO_TYPE,'') AS resourceTwoType,
|
|
|
+ IFNULL (rt2.NAME,'') AS resourceTwoTypeName,
|
|
|
+ CONCAT(t1.RESOURCE_TYPE,',',t1.RESOURCE_TWO_TYPE) AS resourceAllType,
|
|
|
+ CONCAT(rt.NAME,',',rt2.NAME) AS resourceALLTypeName,
|
|
|
IFNULL (t1.KEYWORD ,'') as keyword,
|
|
|
IFNULL (t1.KEYWORD_VALUE ,'') as keywordValue
|
|
|
FROM COURSE_AUDIT_RECORD t1
|
|
|
LEFT JOIN resource_type rt ON t1.RESOURCE_TYPE =rt.ID AND rt.DELETE_FLAG ='NOT_DELETE'
|
|
|
+ LEFT JOIN resource_type rt2 ON t1.RESOURCE_TWO_TYPE =rt2.ID AND rt2.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN college t4 ON t1.COLLEGE_ID=t4.id AND t4.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN major t5 ON t1.MAJOR_ID=t5.id AND t5.DELETE_FLAG ='NOT_DELETE'
|
|
|
LEFT JOIN college t42 ON t1.COLLEGE_TWO_ID=t42.id AND t42.DELETE_FLAG ='NOT_DELETE'
|