上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: Executing aggregation: [ { "$match" : { "planId" : { "$in" : [ "176715c10b0960b161c6181e0532e779" , "3ffb1d4e001135129ede50d1678e5769" , "496af0ea0bdb 阅读全文
posted @ 2019-10-08 17:38 zhoudingzhao 阅读(579) 评论(0) 推荐(0) 编辑
摘要: db.getCollection('gxyWarnEntity').find({ "schoolId" : "f11c8ea12f457dbc19c768a8bb6357f8", "batchId" : "594f724d6974c107bd702cc6ef39183a", "$or" : [{ " 阅读全文
posted @ 2019-10-08 14:51 zhoudingzhao 阅读(6501) 评论(0) 推荐(0) 编辑
摘要: mongodb 的 enterprise 集合存储企业信息: 集合的javaBean: 使用 @TextIndexed 注解给企业名称加上文本索引 ,拥有text index的collection才支持全文检索 。 查询的java 代码: db.getCollection('enterprise') 阅读全文
posted @ 2019-09-27 14:14 zhoudingzhao 阅读(1147) 评论(0) 推荐(0) 编辑
摘要: 时间 参数在 postman 中发送的形式如上(字符串的形式): 在Controller 中定义的字段: 阅读全文
posted @ 2019-09-26 20:59 zhoudingzhao 阅读(557) 评论(0) 推荐(0) 编辑
摘要: 一: 发送:rabbitSender.addSignWarnConfig(schoolDto); 二: 在 RabbitSender 文件中发送消息到mq中(在不同的服务中发送的是字符串): 阅读全文
posted @ 2019-09-24 19:22 zhoudingzhao 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1、selectById 根据主键查询一个对象,如果没有查到,则返回null: GxySchoolDto isExist = gxySchoolMapper.selectById(schoolEntity.getSchoolId());2、selectOne 根据 查询对象 queryWrapper 阅读全文
posted @ 2019-09-18 21:42 zhoudingzhao 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 输出: 今天你签到了吗? 张三老师提醒你,记得及时签到哦 阅读全文
posted @ 2019-09-18 15:27 zhoudingzhao 阅读(331) 评论(0) 推荐(0) 编辑
摘要: GxyJobEntity gxyJobEntity1 = new GxyJobEntity(); gxyJobEntity1.setUserId("user001"); gxyJobEntity1.setPlanId("plan001"); gxyJobEntity1.setStudentId("s 阅读全文
posted @ 2019-09-18 10:17 zhoudingzhao 阅读(8535) 评论(1) 推荐(1) 编辑
摘要: mongodb 表 mogu_attendance 的集合如上: 按照 orgEntity 中的字段比如 schoolId 查询: mongodb查询如下: db.getCollection('mogu_attendance').find( { "orgEntity.schoolId" : "f11 阅读全文
posted @ 2019-09-14 20:01 zhoudingzhao 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 如果 对象 GxyJobEntity 中两个属性 studentId 和 planId 相等,则保留一个,去掉多余的。 输出: set:0-->[]a:GxyJobEntity [jobId=null, studentId=stu001, planId=plan001, userId=user001 阅读全文
posted @ 2019-09-10 14:27 zhoudingzhao 阅读(737) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页