|
@@ -26,7 +26,6 @@
|
|
|
<result column="status_" jdbcType="TINYINT" property="status"/>
|
|
|
<result column="certificate_type_" property="certificateType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="tenant_id_" property="tenantId" />
|
|
|
- <result column="type_" property="type" />
|
|
|
<result column="type_" property="type" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -49,6 +48,9 @@
|
|
|
<if test="organId != null and organId != ''">
|
|
|
AND FIND_IN_SET(organ_id_,#{organId})
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ AND type_ = #{type}
|
|
|
+ </if>
|
|
|
<if test="status != null">
|
|
|
AND status_ = #{status}
|
|
|
</if>
|
|
@@ -58,9 +60,6 @@
|
|
|
<if test="id != null">
|
|
|
AND id_ = #{id}
|
|
|
</if>
|
|
|
- <if test="search != null and search != ''">
|
|
|
- AND (id_ = #{search} OR name_ LIKE CONCAT('%',#{search},'%') )
|
|
|
- </if>
|
|
|
<if test="orderNo != null">
|
|
|
AND order_no_ = #{orderNo}
|
|
|
</if>
|
|
@@ -80,7 +79,11 @@
|
|
|
AND city_ LIKE CONCAT('%', #{city},'%')
|
|
|
</if>
|
|
|
<if test="subject != null">
|
|
|
- AND subject_= #{subject}
|
|
|
+ AND subject_ = #{subject}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="subjectId != null">
|
|
|
+ AND subject_id_= #{subjectId}
|
|
|
</if>
|
|
|
<if test="mobile != null">
|
|
|
AND mobile_= #{mobile}
|
|
@@ -94,6 +97,9 @@
|
|
|
<if test="endTime != null">
|
|
|
<![CDATA[AND DATE_FORMAT(create_time_,"%Y-%m-%d") <= #{endTime}]]>
|
|
|
</if>
|
|
|
+ <if test="search != null and search != ''">
|
|
|
+ and (user_id_ like concat('%',#{search},'%') or name_ like CONCAT('%',#{search},'%') or mobile_ like CONCAT('%',#{search},'%') )
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
|
|
@@ -337,4 +343,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>
|