From bcc2fa8323a61920c7d2a6139c38fc25b17baa7f Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期二, 10 一月 2023 19:14:37 +0800 Subject: [PATCH] 数据库公用方法添加 --- src/main/java/com/hx/common/xml/CommonMapper.xml | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/hx/common/xml/CommonMapper.xml b/src/main/java/com/hx/common/xml/CommonMapper.xml index 968338a..62c4dc1 100644 --- a/src/main/java/com/hx/common/xml/CommonMapper.xml +++ b/src/main/java/com/hx/common/xml/CommonMapper.xml @@ -3,7 +3,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!-- namespace:璇apper.xml鏄犲皠鏂囦欢鐨� 鍞竴鏍囪瘑 --> -<mapper namespace="com.hx.common.dao.CommonMapper"> +<mapper namespace="com.hx.common.dao.mapper.CommonMapper"> <update id="updateSentence" parameterType="com.hx.mybatisTool.SqlSentence" > ${sqlSentence} </update> @@ -11,4 +11,9 @@ <select id="selectListMap" resultType="java.util.Map" parameterType="com.hx.mybatisTool.SqlSentence" > ${sqlSentence} </select> + + <select id="selectCountSql" resultType="int" parameterType="com.hx.mybatisTool.SqlSentence" > + ${sqlSentence} + </select> + </mapper> \ No newline at end of file -- Gitblit v1.8.0