mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-29 07:25:05 +08:00
新增 运营商--分润会员对应关系表、实体、Service
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<?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.ShareprofitMerchantMemberRelationMapper">
|
||||
|
||||
<resultMap type="com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation" id="ShareprofitMerchantMemberRelationResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="merchantId" column="merchant_id" />
|
||||
<result property="memberPhoneNumber" column="member_phone_number" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectShareprofitMerchantMemberRelationVo">
|
||||
select id, merchant_id, member_phone_number, create_time from shareprofit_merchant_member_relation
|
||||
</sql>
|
||||
|
||||
<select id="selectShareprofitMerchantMemberRelationList" parameterType="com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation" resultMap="ShareprofitMerchantMemberRelationResult">
|
||||
<include refid="selectShareprofitMerchantMemberRelationVo"/>
|
||||
<where>
|
||||
<if test="merchantId != null "> and merchant_id = #{merchantId}</if>
|
||||
<if test="memberPhoneNumber != null and memberPhoneNumber != ''"> and member_phone_number = #{memberPhoneNumber}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectShareprofitMerchantMemberRelationById" parameterType="Long" resultMap="ShareprofitMerchantMemberRelationResult">
|
||||
<include refid="selectShareprofitMerchantMemberRelationVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertShareprofitMerchantMemberRelation" parameterType="com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into shareprofit_merchant_member_relation
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="merchantId != null">merchant_id,</if>
|
||||
<if test="memberPhoneNumber != null">member_phone_number,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="merchantId != null">#{merchantId},</if>
|
||||
<if test="memberPhoneNumber != null">#{memberPhoneNumber},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateShareprofitMerchantMemberRelation" parameterType="com.jsowell.pile.domain.shareprofit.ShareprofitMerchantMemberRelation">
|
||||
update shareprofit_merchant_member_relation
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="merchantId != null">merchant_id = #{merchantId},</if>
|
||||
<if test="memberPhoneNumber != null">member_phone_number = #{memberPhoneNumber},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteShareprofitMerchantMemberRelationById" parameterType="Long">
|
||||
delete from shareprofit_merchant_member_relation where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteShareprofitMerchantMemberRelationByIds" parameterType="String">
|
||||
delete from shareprofit_merchant_member_relation where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
16
jsowell-pile/src/main/resources/rebel.xml
Normal file
16
jsowell-pile/src/main/resources/rebel.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
This is the JRebel configuration file. It maps the running application to your IDE workspace, enabling JRebel reloading for this project.
|
||||
Refer to https://manuals.jrebel.com/jrebel/standalone/config.html for more information.
|
||||
-->
|
||||
<application generated-by="intellij" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_3.xsd">
|
||||
|
||||
<id>jsowell-pile</id>
|
||||
|
||||
<classpath>
|
||||
<dir name="D:/ideaProjects/jsowell-charger-web/jsowell-pile/target/classes">
|
||||
</dir>
|
||||
</classpath>
|
||||
|
||||
</application>
|
||||
Reference in New Issue
Block a user