提交 55153b67 编写于 作者: F fengjin

添加按照房间号和入住时间查找住房信息的功能

上级 708798a3
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
<update id="updataByCustomerIdToremainder" parameterType="com.hqyj.seven.pojo.Customer"> <update id="updataByCustomerIdToremainder" parameterType="com.hqyj.seven.pojo.Customer">
update customer set remainder=remainder-#{money} where customer_id=#{id} update customer set remainder=remainder-#{money} where customer_id=#{id}
</update> </update>
<select id="queryByCustomer" resultType="com.hqyj.seven.pojo.Customer">
select * from customer where customer_id=#{CustomerId}
</select>
<!-- <resultMap id="customerBaseResultMap" type="com.hqyj.seven.pojo.Customer">--> <!-- <resultMap id="customerBaseResultMap" type="com.hqyj.seven.pojo.Customer">-->
<!-- <id column="customer_id" property="customerId" />--> <!-- <id column="customer_id" property="customerId" />-->
<!-- <result column="cname" property="name" />--> <!-- <result column="cname" property="name" />-->
......
...@@ -11,5 +11,7 @@ ...@@ -11,5 +11,7 @@
(#{house_id},#{customer_id},#{customer_info},#{start_time},#{end_time_estimate},#{end_time_actual},#{fee_total}, (#{house_id},#{customer_id},#{customer_info},#{start_time},#{end_time_estimate},#{end_time_actual},#{fee_total},
#{fee_info},#{user_id},#{state},#{price}) #{fee_info},#{user_id},#{state},#{price})
</insert> </insert>
<select id="queryByHouseIdAndTime" resultType="com.hqyj.seven.pojo.Enter">
select * from enter where house_id=#{HouseId} and start_time=#{time}
</select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册