From 2fcd97552d16718cc7997629fd637a73a5a4483f Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: 星期一, 19 六月 2023 14:44:19 +0800
Subject: [PATCH] 删除

---
 src/main/java/com/gk/firework/Mapper/mybatis/SaleProductInfoMapper.xml |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/SaleProductInfoMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/SaleProductInfoMapper.xml
new file mode 100644
index 0000000..4378f49
--- /dev/null
+++ b/src/main/java/com/gk/firework/Mapper/mybatis/SaleProductInfoMapper.xml
@@ -0,0 +1,27 @@
+<?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.gk.firework.Mapper.SaleProductInfoMapper" >
+  <resultMap id="BaseResultMap" type="com.gk.firework.Domain.SaleProductInfo" >
+    <!--          -->
+    <id column="id" property="id" jdbcType="BIGINT" />
+    <result column="itemcode" property="itemcode" jdbcType="VARCHAR" />
+    <result column="itemname" property="itemname" jdbcType="VARCHAR" />
+    <result column="directioncode" property="directioncode" jdbcType="VARCHAR" />
+    <result column="price" property="price" jdbcType="DECIMAL" />
+    <result column="specification" property="specification" jdbcType="VARCHAR" />
+    <result column="createdby" property="createdby" jdbcType="VARCHAR" />
+    <result column="createdat" property="createdat" jdbcType="TIMESTAMP" />
+    <result column="isuse" property="isuse" jdbcType="TINYINT" />
+  </resultMap>
+  <sql id="Base_Column_List" >
+    id, itemcode, itemname, directioncode, price, specification, createdby, createdat,isuse
+  </sql>
+  <select id="selectRandom" resultType="com.gk.firework.Domain.SaleProductInfo">
+    SELECT *from saleproduct
+    where isuse = 0
+    ORDER BY RAND()
+    limit #{n}
+  </select>
+
+
+</mapper>

--
Gitblit v1.9.2