|
@@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="PropertyRepair" id="PropertyRepairResult">
|
|
<resultMap type="PropertyRepair" id="PropertyRepairResult">
|
|
<result property="repairId" column="repair_id" />
|
|
<result property="repairId" column="repair_id" />
|
|
|
|
+ <result property="userId" column="user_id" />
|
|
<result property="portalId" column="portal_id" />
|
|
<result property="portalId" column="portal_id" />
|
|
<result property="houseAddress" column="house_address" />
|
|
<result property="houseAddress" column="house_address" />
|
|
<result property="repairTime" column="repair_time" />
|
|
<result property="repairTime" column="repair_time" />
|
|
@@ -31,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPropertyRepairVo">
|
|
<sql id="selectPropertyRepairVo">
|
|
- select repair_id, portal_id, house_address, repair_time, phone_number, repair_title, maintenance_category, repair_details, repair_images, repair_status, staff_name, staff_id, staff_phone, visit_time, visit_photo, completion_time, completion_photo, repair_completion_details, create_by, create_time, update_by, update_time, remark from property_repair
|
|
|
|
|
|
+ select repair_id, portal_id, house_address, repair_time,user_id, phone_number, repair_title, maintenance_category, repair_details, repair_images, repair_status, staff_name, staff_id, staff_phone, visit_time, visit_photo, completion_time, completion_photo, repair_completion_details, create_by, create_time, update_by, update_time, remark from property_repair
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectPropertyRepairList" parameterType="PropertyRepair" resultMap="PropertyRepairResult">
|
|
<select id="selectPropertyRepairList" parameterType="PropertyRepair" resultMap="PropertyRepairResult">
|
|
@@ -52,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="visitTime != null "> and visit_time = #{visitTime}</if>
|
|
<if test="visitTime != null "> and visit_time = #{visitTime}</if>
|
|
<if test="visitPhoto != null and visitPhoto != ''"> and visit_photo = #{visitPhoto}</if>
|
|
<if test="visitPhoto != null and visitPhoto != ''"> and visit_photo = #{visitPhoto}</if>
|
|
<if test="completionTime != null "> and completion_time = #{completionTime}</if>
|
|
<if test="completionTime != null "> and completion_time = #{completionTime}</if>
|
|
|
|
+ <if test="userId != null "> and user_id = #{userId}</if>
|
|
<if test="completionPhoto != null and completionPhoto != ''"> and completion_photo = #{completionPhoto}</if>
|
|
<if test="completionPhoto != null and completionPhoto != ''"> and completion_photo = #{completionPhoto}</if>
|
|
<if test="repairCompletionDetails != null and repairCompletionDetails != ''"> and repair_completion_details = #{repairCompletionDetails}</if>
|
|
<if test="repairCompletionDetails != null and repairCompletionDetails != ''"> and repair_completion_details = #{repairCompletionDetails}</if>
|
|
</where>
|
|
</where>
|
|
@@ -72,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
insert into property_repair
|
|
insert into property_repair
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="portalId != null">portal_id,</if>
|
|
<if test="portalId != null">portal_id,</if>
|
|
|
|
+ <if test="userId != null">user_id,</if>
|
|
<if test="houseAddress != null and houseAddress != ''">house_address,</if>
|
|
<if test="houseAddress != null and houseAddress != ''">house_address,</if>
|
|
<if test="repairTime != null">repair_time,</if>
|
|
<if test="repairTime != null">repair_time,</if>
|
|
<if test="phoneNumber != null">phone_number,</if>
|
|
<if test="phoneNumber != null">phone_number,</if>
|
|
@@ -96,6 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="portalId != null">#{portalId},</if>
|
|
<if test="portalId != null">#{portalId},</if>
|
|
|
|
+ <if test="userId != null">#{userId},</if>
|
|
<if test="houseAddress != null and houseAddress != ''">#{houseAddress},</if>
|
|
<if test="houseAddress != null and houseAddress != ''">#{houseAddress},</if>
|
|
<if test="repairTime != null">#{repairTime},</if>
|
|
<if test="repairTime != null">#{repairTime},</if>
|
|
<if test="phoneNumber != null">#{phoneNumber},</if>
|
|
<if test="phoneNumber != null">#{phoneNumber},</if>
|
|
@@ -124,6 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
update property_repair
|
|
update property_repair
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="portalId != null">portal_id = #{portalId},</if>
|
|
<if test="portalId != null">portal_id = #{portalId},</if>
|
|
|
|
+ <if test="userId != null">user_id = #{userId},</if>
|
|
<if test="houseAddress != null and houseAddress != ''">house_address = #{houseAddress},</if>
|
|
<if test="houseAddress != null and houseAddress != ''">house_address = #{houseAddress},</if>
|
|
<if test="repairTime != null">repair_time = #{repairTime},</if>
|
|
<if test="repairTime != null">repair_time = #{repairTime},</if>
|
|
<if test="phoneNumber != null">phone_number = #{phoneNumber},</if>
|
|
<if test="phoneNumber != null">phone_number = #{phoneNumber},</if>
|