@@ -15,4 +15,6 @@ public interface IcCardMapper {
SysSchoolDTO getSchoolIdByName(@Param("name") String name);
+
+ String selectTemplateId(@Param("schoolId") Long schoolId, @Param("code") String code);
}
@@ -17,4 +17,8 @@
and school_id=#{schoolId}
and ifnull(openid,'') != '' limit 0,1
</select>
+ <select id="selectTemplateId" resultType="string">
+ SELECT st_templateid FROM school_template WHERE ST_SCHOOLID = #{schoolId} and st_code = #{code}
+ </select>
</mapper>