| | |
| | | @ApiOperation("分页查询所有数据") |
| | | @PostMapping("queryAll") |
| | | public R selectAll(@RequestBody CommonPage commonPage) { |
| | | commonPage.setCommunityId(this.getCommunityId()); |
| | | return communityService.selectAllComActSocialProjectMember(commonPage); |
| | | } |
| | | |
| | |
| | | @ApiOperation("新增数据") |
| | | @PostMapping |
| | | public R insert(@RequestBody ComActSocialProjectMemberVO comActSocialProjectMemberVO) { |
| | | comActSocialProjectMemberVO.setCommunityId(this.getCommunityId()); |
| | | return communityService.insertComActSocialProjectMember(comActSocialProjectMemberVO); |
| | | } |
| | | /** |
| | |
| | | @ApiOperation("批量新增数据") |
| | | @PostMapping("/batch") |
| | | public R insertBatch(@RequestBody ComActSocialProjectMemberVO comActSocialMember) { |
| | | comActSocialMember.setCommunityId(this.getCommunityId()); |
| | | return this.communityService.comActSocialMemberInsertBatch(comActSocialMember); |
| | | } |
| | | |
| | |
| | | </select> |
| | | |
| | | <select id="selectOneById" resultType="com.panzhihua.common.model.vos.community.raffle.ComActRaffleRecordVO"> |
| | | select t.*, t1.`name`, t1.image,t2.phone, t2.`name` as username, t3.name as staffName |
| | | select t.*, t1.`name` as prizeName, t1.image,t2.phone, t2.`name` as username, t3.name as staffName |
| | | from com_act_raffle_record t |
| | | LEFT JOIN com_act_raffle_prize t1 on t.prize_id = t1.id |
| | | left join sys_user t2 on t.user_id = t2.user_id |
| | |
| | | <if test="commonPage.endTime !=null"> |
| | | and #{commonPage.endTime} >= t.create_time |
| | | </if> |
| | | <if test="commonPage.paramId !=null"> |
| | | and t.parent_id = #{commonPage.paramId} |
| | | </if> |
| | | </where> |
| | | order by t.create_time desc |
| | | </select> |
| | |
| | | } |
| | | ComActVO comActVO = userDao.selectCommunity(loginUserInfoVO.getCommunityId()); |
| | | if (!ObjectUtils.isEmpty(comActVO)) { |
| | | loginUserInfoVO.setComActVO(comActVO); |
| | | loginUserInfoVO.setCommunityName(comActVO.getName()); |
| | | } |
| | | //是否是社区物业人员 |