Open rui8832 opened 3 months ago
v3.5.7
当前查询条件:
// 查询条件:联系人 if (StringUtils.isNotEmpty(req.getContactName()) && !SqlInjectionUtils.check(req.getContactName())) { // 阿弥陀佛,罪过罪过 String sql_contact = String.format( "SELECT clue_id FROM cl_clue_contact WHERE `name` LIKE '%%%s%%'", req.getContactName()); lqwr.inSql(ClClueInfoEntity::getId, sql_contact); }
期望查询条件:
// 查询条件:联系人 if (StringUtils.isNotEmpty(req.getContactName())) { LambdaQueryWrapper<ClClueContactEntity> lqwr_contact = new LambdaQueryWrapper<>(); lqwr_contact.select(ClClueContactEntity::getClueId); lqwr_contact.like(ClClueContactEntity::getName, "%" + req.getContactName() + "%"); lqwr.inSql(ClClueInfoEntity::getId, lqwr_contact); }
No response
当前程序版本
v3.5.7
功能改进
当前查询条件:
期望查询条件:
参考资料
No response