mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
新增 后管修改鉴权卡绑定
This commit is contained in:
@@ -35,11 +35,28 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPileAuthCardById" parameterType="Long" resultMap="PileAuthCardResult">
|
||||
<include refid="selectPileAuthCardVo"/>
|
||||
where id = #{id}
|
||||
<!-- <select id="selectPileAuthCardById" parameterType="Long" resultMap="PileAuthCardResult">-->
|
||||
<!-- <include refid="selectPileAuthCardVo"/>-->
|
||||
<!-- where id = #{id}-->
|
||||
<!-- </select>-->
|
||||
|
||||
<select id="getCardInfoById" parameterType="Long" resultType="com.jsowell.pile.vo.web.PileAuthCardVO">
|
||||
select
|
||||
t1.id,
|
||||
t1.logic_card as logicCard,
|
||||
t1.physics_card as physicsCard,
|
||||
t1.status,
|
||||
t1.create_time as createTime,
|
||||
t1.member_id as memberId,
|
||||
t2.mobile_number as phoneNumber,
|
||||
t2.nick_name as nickName
|
||||
from pile_auth_card t1
|
||||
join member_basic_info t2 on t1.member_id = t2.member_id
|
||||
where t1.del_flag = '0'
|
||||
and t1.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertPileAuthCard" parameterType="com.jsowell.pile.domain.PileAuthCard" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into pile_auth_card
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -73,7 +90,6 @@
|
||||
<if test="physicsCard != null">physics_card = #{physicsCard},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="memberId != null">member_id = #{memberId},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
@@ -122,14 +138,18 @@
|
||||
t1.id,
|
||||
t1.logic_card as logicCard,
|
||||
t1.physics_card as physicsCard,
|
||||
t1.status,
|
||||
t1.create_time as createTime,
|
||||
t1.member_id as memberId,
|
||||
t2.mobile_number as phoneNumber,
|
||||
t2.nick_name as nickName
|
||||
from pile_auth_card t1
|
||||
join member_basic_info t2 on t1.member_id = t2.member_id
|
||||
where t1.del_flag = '0'
|
||||
<if test="logicCard != null and logicCard != ''"> and logic_card = #{logicCard}</if>
|
||||
<if test="physicsCard != null and physicsCard != ''"> and physics_card = #{physicsCard}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="memberId != null and memberId != ''"> and member_id = #{memberId}</if>
|
||||
<if test="logicCard != null and logicCard != ''"> and t1.logic_card = #{logicCard}</if>
|
||||
<if test="physicsCard != null and physicsCard != ''"> and t1.physics_card = #{physicsCard}</if>
|
||||
<if test="status != null and status != ''"> and t1.status = #{status}</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''"> and t2.mobile_number = #{phoneNumber}</if>
|
||||
<if test="memberId != null and memberId != ''"> and t1.member_id = #{memberId}</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user