临时表

目标表

SmsCatagory smsCatagory = new SmsCatagory();
smsCatagory.setGasStationId();
smsCatagory.setType();
......
sendTaskService.batchInsertByTemp(smsCatagory);
xml:
<insert id="batchInsertByTemp">
INSERT INTO `cs_sms_catagory` (
id,
order_no,
gas_station_id,
type
)
SELECT
MD5(UUID()),
m.mobile,
#{gasStationId},
#{type}
FROM `cs_sms_mobile_tmp` m
</insert>
![[每日习题]进制转换 参数解析——牛客习题](https://img-blog.csdnimg.cn/936927d209fe4f379df0528c7b764781.png)
















