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.

72 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.ScreenDifficultyDataDao">
<delete id="deleteDifficultyData">
delete from screen_difficulty_data
where CUSTOMER_ID = #{customerId} AND EVENT_ID = #{eventId} AND ORG_ID = #{orgId}
</delete>
<insert id="batchInsertDifficultyData" parameterType="map">
insert into screen_difficulty_data
(
ID,
CUSTOMER_ID,
ORG_TYPE,
ORG_ID,
PARENT_ID,
ORG_NAME,
EVENT_ID,
EVENT_IMG_URL,
EVENT_SOURCE,
EVENT_CONTENT,
EVENT_COST_TIME,
EVENT_RE_ORG,
EVENT_HANDLED_COUNT,
EVENT_CATEGORY_CODE,
EVENT_CATEGORY_NAME,
EVENT_STATUS_CODE,
EVENT_STATUS_DESC,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME,
LATEST_OPERATE_DESC,
DATA_END_TIME
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{item.orgType},
#{item.orgId},
#{item.parentId},
#{item.orgName},
#{item.eventId},
#{item.eventImgUrl},
#{item.eventSource},
#{item.eventContent},
#{item.eventCostTime},
#{item.eventReOrg},
#{item.eventHandledCount},
#{item.eventCategoryCode},
#{item.eventCategoryName},
#{item.eventStatusCode},
#{item.eventStatusDesc},
0,
0,
'APP_USER',
now(),
'APP_USER',
now(),
#{item.latestOperateDesc},
#{item.dataEndTime}
)
</foreach>
</insert>
</mapper>