소유권 변경 스케줄링
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
<result property="buildingId" column="building_id"/>
|
||||
<result property="buildingName" column="building_name"/>
|
||||
<result property="userGuid" column="user_guid"/>
|
||||
<result property="userName" column="user_name"/>
|
||||
<result property="isReserve" column="is_reserve"/>
|
||||
<result property="reservationDt" column="reservation_dt"/>
|
||||
<result property="status" column="status"/>
|
||||
@@ -240,6 +241,8 @@
|
||||
, a.land_id
|
||||
, a.land_name
|
||||
, a.user_guid
|
||||
, a.user_name
|
||||
, a.is_reserve
|
||||
, a.reservation_dt
|
||||
, a.status
|
||||
, (SELECT email FROM admin WHERE id = a.create_by ) AS create_by
|
||||
@@ -250,6 +253,20 @@
|
||||
WHERE a.id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="getLandOwnerChangeInfo" parameterType="java.lang.Integer" resultMap="LandOwnerChangeResultMap" >
|
||||
SELECT
|
||||
a.id
|
||||
, a.land_id
|
||||
, a.land_name
|
||||
, a.user_guid
|
||||
, a.user_name
|
||||
, a.is_reserve
|
||||
, a.reservation_dt
|
||||
, a.status
|
||||
FROM land_ownership_changes a
|
||||
WHERE a.land_id = #{landId}
|
||||
</select>
|
||||
|
||||
<select id="getMessage" parameterType="java.lang.Long" resultMap="MessageResultMap" >
|
||||
SELECT
|
||||
*
|
||||
@@ -265,8 +282,8 @@
|
||||
</insert>
|
||||
|
||||
<insert id="postLandOwnerChange" parameterType="com.caliverse.admin.domain.request.LandRequest" useGeneratedKeys="true" keyProperty="id">
|
||||
INSERT INTO land_ownership_changes (land_id, land_name, building_id, building_name, user_guid, is_reserve, reservation_dt, create_by, update_by)
|
||||
VALUES (#{landId}, #{landName}, #{buildingId}, #{buildingName}, #{userGuid}, #{isReserve}, #{reservationDt}, #{createBy}, #{updateBy})
|
||||
INSERT INTO land_ownership_changes (land_id, land_name, building_id, building_name, user_guid, user_name, is_reserve, reservation_dt, create_by, update_by)
|
||||
VALUES (#{landId}, #{landName}, #{buildingId}, #{buildingName}, #{userGuid}, #{userName}, #{isReserve}, #{reservationDt}, #{createBy}, #{updateBy})
|
||||
</insert>
|
||||
|
||||
<insert id="insertMessage" parameterType="map">
|
||||
@@ -311,6 +328,15 @@
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteLandOwnerChanges" parameterType="map">
|
||||
UPDATE land_ownership_changes
|
||||
SET deleted = 1
|
||||
,status = 'CANCEL'
|
||||
, update_by = #{updateBy}
|
||||
, update_dt = NOW()
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="updateStatusLandAuction" parameterType="map">
|
||||
UPDATE land_auction
|
||||
SET status = #{status}
|
||||
|
||||
Reference in New Issue
Block a user