Ver Fonte

业务层次列表参数业务

change há 4 anos atrás
pai
commit
f7dc8030f5

+ 4 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/vo/CourseBusinessVo.java

@@ -81,4 +81,8 @@ public class CourseBusinessVo {
 	@Excel(name = "模板选用ID")
 	@ApiModelProperty("模板选用ID")
 	private Integer templateStatus;
+
+	@Excel(name = "模板选用名称")
+	@ApiModelProperty("模板选用名称")
+	private String templateName;
 }

+ 4 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/CourseBusinessMapper.xml

@@ -26,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="projectName" column="project_name"/>
         <result property="educationId" column="education_id"/>
         <result property="templateStatus" column="template_status"/>
+        <result property="templateName" column="template_name"/>
     </resultMap>
 
     <select id="queryList" parameterType="com.zhongzheng.modules.course.bo.CourseBusinessQueryBo"  resultMap="CourseBusinessVoResult">
@@ -33,11 +34,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             b.*,
             e.education_name,
             e.id as education_id,
-            p.project_name
+            p.project_name,
+            t.name as template_name
         FROM
             course_business b
                 LEFT JOIN course_project_type p on b.project_id =p.id
                 LEFT JOIN course_education_type e ON p.education_id = e.id
+                LEFT JOIN order_input_template t ON b.template_status = t.id
         where 1=1
         and p.status != -1
         and e.status != -1