You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.0 KiB
73 lines
2.0 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.epmet.dao.screen.ScreenEventDataDao">
|
|
|
|
<delete id="deleteEventData">
|
|
delete from screen_event_data
|
|
where CUSTOMER_ID = #{customerId} AND EVENT_ID = #{eventId} AND ORG_ID = #{orgId}
|
|
</delete>
|
|
|
|
<insert id="batchInsertEventData" parameterType="java.util.List">
|
|
insert into screen_event_data
|
|
(
|
|
ID,
|
|
CUSTOMER_ID,
|
|
ORG_TYPE,
|
|
ORG_ID,
|
|
PARENT_ID,
|
|
ORG_NAME,
|
|
EVENT_ID,
|
|
EVENT_TITLE,
|
|
EVENT_CREATE_TIME,
|
|
LINK_MOBILE,
|
|
EVENT_CONTENT,
|
|
EVENT_IMG_URL,
|
|
EVENT_LEVEL,
|
|
EVENT_ADDRESS,
|
|
LONGITUDE,
|
|
LATITUDE,
|
|
LAST_PROCESS_DEPT,
|
|
LAST_PROCESS_DATE,
|
|
DEL_FLAG,
|
|
REVISION,
|
|
CREATED_BY,
|
|
CREATED_TIME,
|
|
UPDATED_BY,
|
|
UPDATED_TIME,
|
|
EVENT_STATUS_CODE,
|
|
EVENT_STATUS_DESC
|
|
) values
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
(
|
|
(SELECT REPLACE(UUID(), '-', '') AS id),
|
|
#{item.customerId},
|
|
#{item.orgType},
|
|
#{item.orgId},
|
|
#{item.parentId},
|
|
#{item.orgName},
|
|
#{item.eventId},
|
|
#{item.eventTitle},
|
|
#{item.eventCreateTime},
|
|
#{item.linkMobile},
|
|
#{item.eventContent},
|
|
#{item.eventImgUrl},
|
|
#{item.eventLevel},
|
|
#{item.eventAddress},
|
|
#{item.longitude},
|
|
#{item.latitude},
|
|
#{item.lastProcessDept},
|
|
#{item.lastProcessDate},
|
|
0,
|
|
0,
|
|
'APP_USER',
|
|
now(),
|
|
'APP_USER',
|
|
now(),
|
|
#{item.eventStatusCode},
|
|
#{item.eventStatusDesc}
|
|
)
|
|
</foreach>
|
|
</insert>
|
|
|
|
</mapper>
|
|
|