소스 검색

新建文件 SmartLateTimeMapper.xml

刘子麟 1 년 전
부모
커밋
b077eddc34
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      src/main/resources/mapper/template/SmartLateTimeMapper.xml

+ 12 - 0
src/main/resources/mapper/template/SmartLateTimeMapper.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.template.mapper.SmartLateTimeMapper">
+
+    <select id="getGroup" resultType="com.template.model.pojo.SmartLateTime">
+        SELECT
+            *
+        FROM
+            `smart_late_time`
+        WHERE FIND_IN_SET(id,#{smartLateTimeGroup})
+    </select>
+</mapper>