| | |
| | | import com.hx.other.service.vo.ai.SqlVo; |
| | | import com.hx.resultTool.Result; |
| | | import com.hx.util.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Qualifier; |
| | | import org.springframework.jdbc.core.JdbcTemplate; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | @Resource |
| | | private SqlQueryTempService sqlQueryTempService; |
| | | |
| | | @Resource |
| | | @Autowired |
| | | @Qualifier("readJdbcTemplate") |
| | | private JdbcTemplate jdbcTemplate; |
| | | |
| | | @Resource |
| | |
| | | } |
| | | |
| | | SqlVo sqlVo = new SqlVo(); |
| | | sqlVo.setNow(sql); |
| | | sqlVo.setOrigin(queryRecord.getAiResult()); |
| | | sqlVo.setQueryContent(queryRecord.getAiQueryContent()); |
| | | sqlVo.setIsArr(1); |