2024-09-25 16:05:17 +08:00
|
|
|
<?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.jsowell.pile.mapper.StationSplitConfigMapper">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.jsowell.pile.domain.StationSplitConfig">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
<!--@Table station_split_config-->
|
|
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
|
|
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
|
|
|
|
|
<result column="station_id" jdbcType="VARCHAR" property="stationId" />
|
|
|
|
|
<result column="adapay_member_id" jdbcType="VARCHAR" property="adapayMemberId" />
|
|
|
|
|
<result column="electricity_split_ratio" jdbcType="DECIMAL" property="electricitySplitRatio" />
|
|
|
|
|
<result column="service_split_ratio" jdbcType="DECIMAL" property="serviceSplitRatio" />
|
|
|
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
|
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
<result column="del_flag" jdbcType="CHAR" property="delFlag" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
id, merchant_id, station_id, adapay_member_id, electricity_split_ratio, service_split_ratio,
|
|
|
|
|
create_by, create_time, update_by, update_time, del_flag
|
|
|
|
|
</sql>
|
|
|
|
|
|
2024-09-25 17:07:17 +08:00
|
|
|
<select id="queryByStationId" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from station_split_config
|
|
|
|
|
where del_flag = '0'
|
|
|
|
|
and station_id = #{stationId}
|
|
|
|
|
</select>
|
2024-09-25 16:05:17 +08:00
|
|
|
</mapper>
|