聊天室创建工单
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
<update id="updateChatRoom" parameterType="org.xyzh.api.workcase.dto.TbChatRoomDTO">
|
||||
UPDATE workcase.tb_chat_room
|
||||
<set>
|
||||
<if test="workcaseId != null">workcase_id = #{workcaseId},</if>
|
||||
<if test="roomName != null and roomName != ''">room_name = #{roomName},</if>
|
||||
<if test="roomType != null and roomType != ''">room_type = #{roomType},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
<resultMap id="BaseResultMap" type="org.xyzh.api.workcase.dto.TbWorkcaseDTO">
|
||||
<id column="workcase_id" property="workcaseId" jdbcType="VARCHAR"/>
|
||||
<result column="room_id" property="roomId" jdbcType="VARCHAR"/>
|
||||
<result column="optsn" property="optsn" jdbcType="VARCHAR"/>
|
||||
<result column="user_id" property="userId" jdbcType="VARCHAR"/>
|
||||
<result column="username" property="username" jdbcType="VARCHAR"/>
|
||||
@@ -27,13 +28,13 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
workcase_id, optsn, user_id, username, phone, type, device, device_code, device_name_plate, device_name_plate_img,
|
||||
workcase_id, room_id, optsn, user_id, username, phone, type, device, device_code, device_name_plate, device_name_plate_img,
|
||||
address, description, imgs, emergency, status, processor, creator, create_time, update_time, delete_time, deleted
|
||||
</sql>
|
||||
|
||||
<insert id="insertWorkcase" parameterType="org.xyzh.api.workcase.dto.TbWorkcaseDTO">
|
||||
INSERT INTO workcase.tb_workcase (
|
||||
optsn, workcase_id, user_id, username, phone, type, device_name_plate_img, creator
|
||||
optsn, workcase_id, room_id, user_id, username, phone, type, device_name_plate_img, creator
|
||||
<if test="device != null">, device</if>
|
||||
<if test="deviceCode != null">, device_code</if>
|
||||
<if test="deviceNamePlate != null">, device_name_plate</if>
|
||||
@@ -44,7 +45,7 @@
|
||||
<if test="status != null">, status</if>
|
||||
<if test="processor != null">, processor</if>
|
||||
) VALUES (
|
||||
#{optsn}, #{workcaseId}, #{userId}, #{username}, #{phone}, #{type}, #{deviceNamePlateImg}, #{creator}
|
||||
#{optsn}, #{workcaseId}, #{roomId}, #{userId}, #{username}, #{phone}, #{type}, #{deviceNamePlateImg}, #{creator}
|
||||
<if test="device != null">, #{device}</if>
|
||||
<if test="deviceCode != null">, #{deviceCode}</if>
|
||||
<if test="deviceNamePlate != null">, #{deviceNamePlate}</if>
|
||||
|
||||
Reference in New Issue
Block a user