浏览代码

新建文件 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>