Explorar o código

新建文件 SmartLateTimeMapper.xml

刘子麟 hai 1 ano
pai
achega
b077eddc34
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  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>