diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/StudyFormFillMapper.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/StudyFormFillMapper.java index 3bd50b7..7259c9c 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/StudyFormFillMapper.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/StudyFormFillMapper.java @@ -62,4 +62,11 @@ public interface StudyFormFillMapper extends BaseMapper */ void updateZdgxjl(@Param("id") Long id,@Param("zdgxjl") String zdgxjl); + /** + * 前序表单列表 + * @param queryWrapper + * @return + */ + List queryQxbdList(@Param("ew") Wrapper queryWrapper); + } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java index f6a3ff8..9a36f4c 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java @@ -84,18 +84,18 @@ public class StudyFormFillServiceImpl extends ServiceImpl queryQxList(StudyFormFill form) { QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.eq("study_id",form.getStudyId()); - queryWrapper.and(q->q.eq("bdzt",StudyFormFillBdztEnum.ywc.getValue()) - .or().eq("bdzt",StudyFormFillBdztEnum.ywcfh.getValue())); + queryWrapper.eq("f.del_flag","0"); + queryWrapper.eq("f.study_id",form.getStudyId()); + queryWrapper.and(q->q.eq("f.bdzt",StudyFormFillBdztEnum.ywc.getValue()) + .or().eq("f.bdzt",StudyFormFillBdztEnum.ywcfh.getValue())); if(StringUtils.isNoneBlank(form.getUserMc())){ - queryWrapper.like("user_mc",form.getUserMc()); + queryWrapper.like("f.user_mc",form.getUserMc()); } if(StringUtils.isNoneBlank(form.getBdmc())){ - queryWrapper.like("bdmc",form.getBdmc()); + queryWrapper.like("f.bdmc",form.getBdmc()); } - queryWrapper.select("id,bdbh,bdmc,user_mc,create_time,bdzt,bdnr"); - queryWrapper.orderByDesc("id"); - return list(queryWrapper); + queryWrapper.orderByDesc("f.id"); + return baseMapper.queryQxbdList(queryWrapper); } /** diff --git a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudyFormFillMapper.xml b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudyFormFillMapper.xml index c46f24e..682377c 100644 --- a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudyFormFillMapper.xml +++ b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudyFormFillMapper.xml @@ -42,5 +42,16 @@ update t_study_form_fill set zdgxjl=#{zdgxjl} where id=#{id}; + + \ No newline at end of file