29 lines
856 B
C++
29 lines
856 B
C++
/*
|
||
* @Description: file content
|
||
* @Author: why
|
||
* @version:
|
||
* @Date: 2025-02-21 14:04:30
|
||
* @LastEditors: why
|
||
* @LastEditTime: 2025-02-26 15:13:26
|
||
*/
|
||
#include <string>
|
||
#include <vector>
|
||
#include "bizservice.h"
|
||
class InsertRecord : public IBizService
|
||
{
|
||
public:
|
||
void Init(initparam_t *param);
|
||
int HandleMsg(const msg_t msg,msg_t &outMsg, handparam_t *param);
|
||
std::string GetFID();
|
||
InsertRecord();
|
||
~InsertRecord();
|
||
private:
|
||
handparam_t * handpara;
|
||
initparam_t * initpara;
|
||
std::vector<std::string> topic;//0:dst 1:src 2:sid 3:fid
|
||
void topic_split(const std::string& str, char delimiter);
|
||
int SQLBatch_exc(std::vector<std::string> &sql_list,std::vector<std::string> &result);
|
||
std::string now_to_string();
|
||
time_t string_to_now(std::string stamp);
|
||
};
|