mirror of
https://github.com/FreeeBird/hotel.git
synced 2025-09-14 11:19:45 +08:00
更新
This commit is contained in:
@@ -9,8 +9,8 @@ server:
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
username: muamua
|
||||
password: muamua
|
||||
username: root
|
||||
password: liyiyong1997
|
||||
url: jdbc:mysql://localhost:3306/hotel?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=true
|
||||
mybatis:
|
||||
type-aliases-package: classpath*:cn.mafangui.hotel.entity
|
||||
|
@@ -45,7 +45,7 @@
|
||||
update_time)
|
||||
values (#{checkInId,jdbcType=INTEGER}, #{orderId,jdbcType=INTEGER},#{roomId,jdbcType=INTEGER}, #{roomNumber,jdbcType=VARCHAR},
|
||||
#{peoCount,jdbcType=INTEGER}, #{persons,jdbcType=VARCHAR},
|
||||
#{ids,jdbcType=VARCHAR}, #{checkInTime,jdbcType=TIMESTAMP}, now(),now())
|
||||
#{ids,jdbcType=VARCHAR}, now(), now(),now())
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="cn.mafangui.hotel.entity.CheckIn">
|
||||
insert into check_in
|
||||
|
@@ -32,10 +32,11 @@
|
||||
<include refid="Base_Column_List" />
|
||||
from order_info
|
||||
</select>
|
||||
<select id="selectByNameAndPhone" parameterType="String" resultMap="BaseResultMap">
|
||||
<select id="selectByNameAndPhone" parameterType="cn.mafangui.hotel.entity.Order" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from order_info where name = #{name,jdbcType=VARCHAR} and phone = #{phone,jdbcType=VARCHAR}
|
||||
and order_status = #{orderStatus,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="selectByUserId" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
|
@@ -34,6 +34,10 @@
|
||||
select * from worker_info
|
||||
where username = #{username,jdbcType=VARCHAR} and password = #{password,jdbcType=VARCHAR} and role = #{role,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<select id="selectByUsernamePassword" parameterType="String" resultMap="BaseResultMap">
|
||||
select * from worker_info
|
||||
where username = #{username,jdbcType=VARCHAR} and password = #{password,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<select id="selectByRole" parameterType="String" resultMap="BaseResultMap">
|
||||
select * from worker_info
|
||||
where role = #{role,jdbcType=VARCHAR}
|
||||
|
Reference in New Issue
Block a user