日照智慧社区接口服务
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.
 
 
 
 
 

61 lines
1.6 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.ScreenPartyUserRankDataDao">
<delete id="deletePartyUserRankData">
delete from screen_party_user_rank_data
where CUSTOMER_ID = #{customerId} AND GRID_ID = #{gridId} AND USER_ID = #{userId}
</delete>
<insert id="batchInsertPartyUserRankData" parameterType="map">
insert into screen_party_user_rank_data
(
ID,
CUSTOMER_ID,
GRID_ID,
GRID_NAME,
ORG_ID,
ORG_NAME,
PARTY_FLAG,
USER_ID,
SURNAME,
`NAME`,
USER_NAME,
POINT_TOTAL,
DEL_FLAG,
REVISION,
CREATED_BY,
CREATED_TIME,
UPDATED_BY,
UPDATED_TIME,
DATA_END_TIME,
ALL_PARENT_IDS
) values
<foreach collection="list" item="item" index="index" separator=",">
(
(SELECT REPLACE(UUID(), '-', '') AS id),
#{customerId},
#{item.gridId},
#{item.gridName},
#{item.orgId},
#{item.orgName},
#{item.partyFlag},
#{item.userId},
#{item.surname},
#{item.name},
#{item.userName},
#{item.pointTotal},
0,
0,
'APP_USER',
now(),
'APP_USER',
now(),
#{item.dataEndTime},
#{item.allParentIds}
)
</foreach>
</insert>
</mapper>