response/target/classes/mapper/YpxxSpflMapper.xml
2025-06-27 10:04:22 +08:00

40 lines
1.1 KiB
XML

<?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.example.demo.mapper.YpxxSpflMapper">
<resultMap id="BaseResultMap" type="com.example.demo.domain.YpxxSpfl">
<result property="spDl" column="SP_DL" jdbcType="OTHER"/>
<result property="spYl" column="SP_YL" jdbcType="OTHER"/>
<result property="spPz" column="SP_PZ" jdbcType="OTHER"/>
<result property="spXl" column="SP_XL" jdbcType="OTHER"/>
</resultMap>
<sql id="Base_Column_List">
SP_DL,SP_YL,SP_PZ,
SP_XL
</sql>
<select id="getSpflList" resultType="com.example.demo.domain.YpxxSpfl">
SELECT
SP_DL ,
SP_YL ,
SP_PZ ,
SP_XL
from
YPXX_SPFL e2
where
SP_YL = '蔬菜'
group by
SP_DL ,
SP_YL ,
SP_PZ ,
SP_XL
order by
SP_DL ,
SP_YL ,
SP_PZ ,
SP_XL
</select>
</mapper>