You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.7 KiB
45 lines
1.7 KiB
<?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.dao.ZhiwuDao">
|
|
|
|
<!-- 可根据自己的需求,是否要使用 -->
|
|
<resultMap type="com.entity.ZhiwuEntity" id="zhiwuMap">
|
|
<result property="zhiwumingcheng" column="zhiwumingcheng"/>
|
|
<result property="fenlei" column="fenlei"/>
|
|
<result property="tupian" column="tupian"/>
|
|
<result property="shengzhangzhouqi" column="shengzhangzhouqi"/>
|
|
<result property="yingyangjiazhi" column="yingyangjiazhi"/>
|
|
<result property="shifeipinzhong" column="shifeipinzhong"/>
|
|
<result property="guangzhaozhouqi" column="guangzhaozhouqi"/>
|
|
<result property="turangyaoqiu" column="turangyaoqiu"/>
|
|
<result property="wendujianyi" column="wendujianyi"/>
|
|
<result property="shidujianyi" column="shidujianyi"/>
|
|
<result property="beizhu" column="beizhu"/>
|
|
</resultMap>
|
|
|
|
<select id="selectListVO"
|
|
resultType="com.entity.vo.ZhiwuVO" >
|
|
SELECT * FROM zhiwu zhiwu
|
|
<where> 1=1 ${ew.sqlSegment}</where>
|
|
</select>
|
|
|
|
<select id="selectVO"
|
|
resultType="com.entity.vo.ZhiwuVO" >
|
|
SELECT zhiwu.* FROM zhiwu zhiwu
|
|
<where> 1=1 ${ew.sqlSegment}</where>
|
|
</select>
|
|
|
|
<select id="selectListView"
|
|
resultType="com.entity.view.ZhiwuView" >
|
|
|
|
SELECT zhiwu.* FROM zhiwu zhiwu
|
|
<where> 1=1 ${ew.sqlSegment}</where>
|
|
</select>
|
|
|
|
<select id="selectView"
|
|
resultType="com.entity.view.ZhiwuView" >
|
|
SELECT * FROM zhiwu zhiwu <where> 1=1 ${ew.sqlSegment}</where>
|
|
</select>
|
|
|
|
</mapper> |