blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/animalheat/mapper/AnimalHeatMapper.xml
@@ -45,6 +45,9 @@ <if test="animalHeatVo.status!=null"> and status=#{animalHeatVo.status} </if> <if test="animalHeatVo.begTime!=null and animalHeatVo.begTime!='' and animalHeatVo.endTime!=null and animalHeatVo.endTime!='' "> and date(create_time) between #{animalHeatVo.begTime} and #{animalHeatVo.endTime} </if> ORDER BY create_time desc </select> blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/healthcode/mapper/healthcodeMapper.xml
@@ -137,6 +137,18 @@ <if test="healthcodeVO.type!=null"> and type=#{healthcodeVO.type} </if> <if test="healthcodeVO.province!=null"> and province like concat('%',#{healthcodeVO.province},'%') </if> <if test="healthcodeVO.city!=null"> and city like concat('%',#{healthcodeVO.city},'%') </if> <if test="healthcodeVO.district!=null"> and district like concat('%',#{healthcodeVO.district},'%') </if> <if test="healthcodeVO.begTime!=null and healthcodeVO.begTime!='' and healthcodeVO.endTime!=null and healthcodeVO.endTime!='' "> and date(dtime) between #{healthcodeVO.begTime} and #{healthcodeVO.endTime} </if> ORDER BY dtime desc </select> blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/healthcode/service/impl/HealthcodeServiceImpl.java
@@ -75,6 +75,10 @@ */ @Override public IPage<Healthcode> selectHealthcodeListPage(IPage<Healthcode> page, HealthcodeVO healthcodeVO) { //判断城市 if(null != healthcodeVO.getProvince()){ //根据拿到的省id 查询出城市名称 } return page.setRecords(baseMapper.selectHealthcodeListPage(page,healthcodeVO)); } }