mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
commit
This commit is contained in:
@@ -0,0 +1,262 @@
|
||||
<?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.PileMerchantInfoMapper">
|
||||
<resultMap type="com.jsowell.pile.domain.PileMerchantInfo" id="PileMerchantInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="merchantName" column="merchant_name"/>
|
||||
<result property="address" column="address"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="organizationCode" column="organization_code"/>
|
||||
<result property="managerName" column="manager_name"/>
|
||||
<result property="managerPhone" column="manager_phone"/>
|
||||
<result property="servicePhone" column="service_phone"/>
|
||||
<result property="logoUrl" column="logo_url"/>
|
||||
<result property="appId" column="app_id"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,
|
||||
merchant_name,
|
||||
address,
|
||||
status,
|
||||
organization_code,
|
||||
manager_name,
|
||||
manager_phone,
|
||||
service_phone,
|
||||
logo_url,
|
||||
app_id,
|
||||
dept_id,
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time,
|
||||
del_flag
|
||||
</sql>
|
||||
|
||||
<sql id="selectPileMerchantInfoVo">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from pile_merchant_info t
|
||||
</sql>
|
||||
|
||||
<select id="selectPileMerchantInfoList" parameterType="com.jsowell.pile.domain.PileMerchantInfo"
|
||||
resultMap="PileMerchantInfoResult">
|
||||
<include refid="selectPileMerchantInfoVo"/>
|
||||
<where>
|
||||
<if test="merchantName != null and merchantName != ''">
|
||||
and merchant_name like concat('%', #{merchantName}, '%')
|
||||
</if>
|
||||
<if test="address != null and address != ''">
|
||||
and address = #{address}
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
and status = #{status}
|
||||
</if>
|
||||
<if test="organizationCode != null and organizationCode != ''">
|
||||
and organization_code = #{organizationCode}
|
||||
</if>
|
||||
<if test="managerName != null and managerName != ''">
|
||||
and manager_name like concat('%', #{managerName}, '%')
|
||||
</if>
|
||||
<if test="managerPhone != null and managerPhone != ''">
|
||||
and manager_phone = #{managerPhone}
|
||||
</if>
|
||||
<if test="servicePhone != null and servicePhone != ''">
|
||||
and service_phone = #{servicePhone}
|
||||
</if>
|
||||
<if test="logoUrl != null and logoUrl != ''">
|
||||
and logo_url = #{logoUrl}
|
||||
</if>
|
||||
<!-- 数据范围过滤 -->
|
||||
${params.dataScope}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPileMerchantInfoById" parameterType="Long" resultMap="PileMerchantInfoResult">
|
||||
<include refid="selectPileMerchantInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPileMerchantInfo" parameterType="com.jsowell.pile.domain.PileMerchantInfo">
|
||||
insert into pile_merchant_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="merchantName != null">
|
||||
merchant_name,
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
<if test="organizationCode != null">
|
||||
organization_code,
|
||||
</if>
|
||||
<if test="managerName != null">
|
||||
manager_name,
|
||||
</if>
|
||||
<if test="managerPhone != null">
|
||||
manager_phone,
|
||||
</if>
|
||||
<if test="servicePhone != null">
|
||||
service_phone,
|
||||
</if>
|
||||
<if test="logoUrl != null">
|
||||
logo_url,
|
||||
</if>
|
||||
<if test="appId != null">
|
||||
app_id,
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
dept_id,
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id},
|
||||
</if>
|
||||
<if test="merchantName != null">
|
||||
#{merchantName},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
#{address},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status},
|
||||
</if>
|
||||
<if test="organizationCode != null">
|
||||
#{organizationCode},
|
||||
</if>
|
||||
<if test="managerName != null">
|
||||
#{managerName},
|
||||
</if>
|
||||
<if test="managerPhone != null">
|
||||
#{managerPhone},
|
||||
</if>
|
||||
<if test="servicePhone != null">
|
||||
#{servicePhone},
|
||||
</if>
|
||||
<if test="logoUrl != null">
|
||||
#{logoUrl},
|
||||
</if>
|
||||
<if test="appId != null">
|
||||
#{appId},
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
#{deptId},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
#{delFlag},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePileMerchantInfo" parameterType="com.jsowell.pile.domain.PileMerchantInfo">
|
||||
update pile_merchant_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="merchantName != null">
|
||||
merchant_name = #{merchantName},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address = #{address},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status},
|
||||
</if>
|
||||
<if test="organizationCode != null">
|
||||
organization_code = #{organizationCode},
|
||||
</if>
|
||||
<if test="managerName != null">
|
||||
manager_name = #{managerName},
|
||||
</if>
|
||||
<if test="managerPhone != null">
|
||||
manager_phone = #{managerPhone},
|
||||
</if>
|
||||
<if test="servicePhone != null">
|
||||
service_phone = #{servicePhone},
|
||||
</if>
|
||||
<if test="logoUrl != null">
|
||||
logo_url = #{logoUrl},
|
||||
</if>
|
||||
<if test="appId != null">
|
||||
app_id = #{appId},
|
||||
</if>
|
||||
<if test="createBy != null">
|
||||
create_by = #{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag = #{delFlag},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePileMerchantInfoById" parameterType="Long">
|
||||
delete
|
||||
from pile_merchant_info
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePileMerchantInfoByIds" parameterType="String">
|
||||
delete
|
||||
from pile_merchant_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectPileMerchantInfoByAppId" resultMap="PileMerchantInfoResult">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from pile_merchant_info
|
||||
where
|
||||
app_id = #{appId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user