26 lines
813 B
XML
26 lines
813 B
XML
<?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.four.patient.mapper.GiftMapper">
|
|
<insert id="insertGiftLog">
|
|
insert into gift_record(giver_id, gift_id, gift_giving_time)
|
|
values (#{giverId}, #{giftId}, #{giftGivingTime})
|
|
</insert>
|
|
<update id="updPatientMoney">
|
|
update sys_user set user_money=#{patientMoney} where user_id=#{userid}
|
|
</update>
|
|
|
|
|
|
<select id="ShowGiftAll" resultType="com.four.common.duck.gift.Gift">
|
|
select *
|
|
from gift
|
|
</select>
|
|
|
|
<select id="findByGiftId" resultType="com.four.common.duck.gift.Gift">
|
|
select *
|
|
from gift
|
|
where gift_id = #{giftId}
|
|
</select>
|
|
</mapper>
|