mybatis plus saveBatch报错问题


sessionRecordHumanService.saveBatch(dataList); 具体报错如下:

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 

### Error updating database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.xdf.data.service.api.dao.tidb.SessionRecordHumanMapper.insert

### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.data.service.api.dao.tidb.SessionRecordHumanMapper.insert

@Service
public class SessionRecordHumanServiceImpl extends ServiceImpl<SessionRecordHumanMapper, SessionRecordHumanDO> implements SessionRecordHumanService {

}

 测试环境没问题,发布到生产环境报错如上,后按如下修改解决

复制代码
@Service
public class SessionRecordHumanServiceImpl extends ServiceImpl<SessionRecordHumanMapper, SessionRecordHumanDO> implements SessionRecordHumanService {



    @Override
    public void saveBatch(List<SessionRecordHumanDO> list) {
        super.saveBatch(list);
    }
}
复制代码

 

posted @   LUDAGOGO  阅读(789)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示