一、项目背景
springboot + mybatis调用MySQL存储过程
二、具体实现
Dao层实现:
void dataClean(@Param("updateTime") String updateTime);
Mapper.xml实现:
{call DataClean(#{updateTime, mode=IN})}
Service层调用:
//调用存储过程 dataMapper.dataClean(updateTime);

一、项目背景
springboot + mybatis调用MySQL存储过程
二、具体实现
Dao层实现:
void dataClean(@Param("updateTime") String updateTime);
Mapper.xml实现:
{call DataClean(#{updateTime, mode=IN})}
Service层调用:
//调用存储过程 dataMapper.dataClean(updateTime);