| | |
| | | @ApiOperation(value = "我的提交办事指南列表",response = JinhuiQuestnaireUserAnswerVO.class) |
| | | @GetMapping("/answer/getList") |
| | | public R answerGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize) |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "transactType", required = false) String transactType) |
| | | { |
| | | return jinhuiCommunityService.answerGetList(pageNum,pageSize,getUserId()+""); |
| | | return jinhuiCommunityService.answerGetList(pageNum,pageSize,getUserId()+"",transactType); |
| | | } |
| | | |
| | | /** |
| | |
| | | @GetMapping("/JinhuiWorkGuide/answer/getList") |
| | | public R answerGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "userId", required = false) String userId); |
| | | @RequestParam(value = "userId", required = false) String userId, |
| | | @RequestParam(value = "transactType", required = false) String transactType); |
| | | |
| | | /** |
| | | * 获取详情 |
| | |
| | | @GetMapping("/answer/getList") |
| | | public R answerGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "userId", required = false) String userId) |
| | | @RequestParam(value = "userId", required = false) String userId, |
| | | @RequestParam(value = "transactType", required = false) String transactType) |
| | | { |
| | | return jinhuiCommunityService.answerGetList(pageNum,pageSize,userId); |
| | | return jinhuiCommunityService.answerGetList(pageNum,pageSize,userId,transactType); |
| | | } |
| | | |
| | | /** |
| | |
| | | @GetMapping("answer/getList") |
| | | public R answerGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "userId", required = false) String userId) |
| | | @RequestParam(value = "userId", required = false) String userId, |
| | | @RequestParam(value = "transactType", required = false) String transactType) |
| | | { |
| | | return answerService.getList(pageNum,pageSize,userId); |
| | | return answerService.getList(pageNum,pageSize,userId, transactType); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | IPage<JinhuiQuestnaireUserAnswer> getList(Page page, |
| | | @Param("userId") String userId); |
| | | @Param("userId") String userId, |
| | | @Param("transactType") String transactType); |
| | | |
| | | /** |
| | | * 详情 |
| | |
| | | * @param |
| | | * @return |
| | | */ |
| | | R getList(int pageNum,int pageSize,String userId); |
| | | R getList(int pageNum,int pageSize,String userId,String transactType); |
| | | |
| | | JinhuiQuestnaireUserAnswer getDetails(String id,String questnaireId,String userId,String transactType); |
| | | /** |
| | |
| | | { |
| | | |
| | | @Override |
| | | public R getList(int pageNum,int pageSize,String userId) |
| | | public R getList(int pageNum,int pageSize,String userId,String transactType) |
| | | { |
| | | Page page = new Page<JinhuiQuestnaireUserAnswer>(pageNum,pageSize); |
| | | return R.ok(baseMapper.getList(page,userId)); |
| | | return R.ok(baseMapper.getList(page,userId,transactType)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | <if test="userId!=null and userId!='' "> |
| | | jcaqa.user_id=#{userId} |
| | | </if> |
| | | <if test="transactType!=null and transactType!='' "> |
| | | jjcaqa.transact_type=#{transactType} |
| | | </if> |
| | | |
| | | </where> |
| | | order by jcaqa.creation_time desc |
| | | </select> |