临时表
目标表
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>