`id`,`tenant_id`,`parent_tenant_id`,`batch_no`,`phone`,`begintime`,`endtime`,`status`,`status_msg`,`sign`,`createtime`,`updatetime`,`msg_id`,`callback_id`,`business_id`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `batch_no` like concat('%', #{batchNo},'%')
and `phone` like concat('%', #{phone},'%')
and `begintime` = #{begintime}
and `endtime` = #{endtime}
and `status` = #{status}
and `status_msg` like concat('%', #{statusMsg},'%')
and `sign` like concat('%', #{sign},'%')
and `createtime` = #{createtime}
AND `createtime` >= #{createStartTime}
and id in
#{idItem}
order by ${sortColumns}
update wx_msg_callback set status=#{status},status_msg=#{statusMsg} where `batch_no` = #{batchNo}