liujc 2 年之前
父節點
當前提交
efb86fb1a2
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      mec-biz/src/main/resources/config/mybatis/DegreeRegistrationMapper.xml

+ 7 - 1
mec-biz/src/main/resources/config/mybatis/DegreeRegistrationMapper.xml

@@ -26,7 +26,6 @@
         <result column="status_" jdbcType="TINYINT" property="status"/>
         <result column="certificate_type_" property="certificateType"/>
 		<result column="tenant_id_" property="tenantId" />
-		<result column="type_" property="type" />
 		<result column="type_" property="type"  typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
     </resultMap>
 
@@ -341,4 +340,11 @@
     <select id="findByByOrderId" resultMap="DegreeRegistration">
         SELECT * FROM degree_registration WHERE order_no_ = #{orderNo}
     </select>
+
+    <select id="selectByDegreeId" resultMap="DegreeRegistration">
+        SELECT *
+        FROM degree_registration
+        WHERE degree_id_ = #{degreeId}
+          AND status_ = 1
+    </select>
 </mapper>