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.
52 lines
1.5 KiB
52 lines
1.5 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.plugins.ScreenContractInfoDao">
|
|
|
|
<delete id="deleteBatch" parameterType="map">
|
|
delete from screen_contract_info where CUSTOMER_ID=#{customerId}
|
|
</delete>
|
|
|
|
<insert id="insertBatch" parameterType="map">
|
|
INSERT INTO `screen_contract_info` (
|
|
`ID`,
|
|
`CUSTOMER_ID`,
|
|
`DATE_ID`,
|
|
`CONTRACT_ID`,
|
|
`CONTRACT_NAME`,
|
|
`CATEGORY_CODE`,
|
|
`CATEGORY_NAME`,
|
|
`DUE_DATE`,
|
|
`TOWN_IDS`,
|
|
`TOWN_NAMES`,
|
|
`DEL_FLAG`,
|
|
`REVISION`,
|
|
`CREATED_BY`,
|
|
`CREATED_TIME`,
|
|
`UPDATED_BY`,
|
|
`UPDATED_TIME`
|
|
)
|
|
VALUES
|
|
<foreach collection ="list" item="item" index= "index" separator =",">
|
|
(
|
|
(SELECT REPLACE(UUID(), '-', '') AS id),
|
|
#{customerId},
|
|
#{dateId},
|
|
#{item.contractId},
|
|
#{item.contractName},
|
|
#{item.categoryCode},
|
|
#{item.categoryName},
|
|
#{item.dueDate},
|
|
#{item.townIds},
|
|
#{item.townNames},
|
|
'0',
|
|
0,
|
|
'APP_USER',
|
|
NOW(),
|
|
'APP_USER',
|
|
NOW()
|
|
)
|
|
</foreach>
|
|
</insert>
|
|
|
|
</mapper>
|