<?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="org.springblade.modules.dvoule.mapper.DvouleMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="DvolueResultMap" type="org.springblade.modules.dvoule.entity.Dvoule">
|
<result column="id" property="id"/>
|
<result column="stcd" property="stcd"/>
|
<result column="hz" property="hz"/>
|
<result column="fy" property="fy"/>
|
<result column="oy" property="oy"/>
|
<result column="ty" property="ty"/>
|
<result column="toy" property="toy"/>
|
</resultMap>
|
<select id="selecthz" resultType="java.util.HashMap">
|
SELECT * FROM swz_chazhi WHERE stcd=#{stcd}
|
</select>
|
<select id="selectCz" resultMap="DvolueResultMap">
|
SELECT
|
id,
|
hz,
|
cast( fy AS DECIMAL ( 18, 0 ) ) AS fy,
|
cast( oy AS DECIMAL ( 18, 0 ) ) AS oy,
|
cast( ty AS DECIMAL ( 18, 0 ) ) AS ty,
|
cast( toy AS DECIMAL ( 18, 0 ) ) AS toy
|
FROM
|
swz_chazhi where 1=1
|
</select>
|
|
|
<select id="selectInfo" resultType="int">
|
SELECT COUNT(*) as number FROM swz_chazhi WHERE stcd=#{pid}
|
</select>
|
|
<delete id="deleteInfo">
|
delete from swz_chazhi WHERE stcd=#{pid}
|
</delete>
|
|
</mapper>
|