fix 会员系统门户端资料下载权限
This commit is contained in:
+9
-1
@@ -353,5 +353,13 @@ public class PayMeetingSituationController extends JeroController<PayMeetingSitu
|
||||
return Result.OK("签到成功!");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 会员系统判断手机号是否为参会人
|
||||
*/
|
||||
@ApiOperation(value = "会员系统判断手机号是否为参会人")
|
||||
@GetMapping(value = "/standardsCheckPhone")
|
||||
public Result<Integer> standardsCheckPhone(String meetingId, String phone) {
|
||||
Integer integer = payMeetingSituationService.standardsCheckPhone(meetingId, phone);
|
||||
return Result.OK(integer);
|
||||
}
|
||||
}
|
||||
|
||||
+4
-1
@@ -22,6 +22,9 @@ public interface PayMeetingSituationMapper extends BaseMapper<PayMeetingSituatio
|
||||
|
||||
IPage<PayMeetingSituation> pageListContract(Page<PayMeetingSituation> page,
|
||||
@Param(Constants.WRAPPER) QueryWrapper<PayMeetingSituation> queryWrapper);
|
||||
|
||||
IPage<PayMeetingSituation> pageListContractWorkGroup(Page<PayMeetingSituation> page,
|
||||
@Param(Constants.WRAPPER) QueryWrapper<PayMeetingSituation> queryWrapper);
|
||||
@Param(Constants.WRAPPER) QueryWrapper<PayMeetingSituation> queryWrapper);
|
||||
|
||||
Integer standardsCheckPhone(@Param("meetingId") String meetingId, @Param("phone") String phone);
|
||||
}
|
||||
|
||||
+10
@@ -168,4 +168,14 @@
|
||||
left join pay_working_group pwg on pwg.id = pm.working_group_id
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
<select id="standardsCheckPhone" resultType="java.lang.Integer">
|
||||
select count(pms.id)
|
||||
from pay_meeting_situation pms
|
||||
left join pay_contacts_management pcm on pms.company_contact_id = pcm.id
|
||||
where pcm.phone = #{phone}
|
||||
and pms.meeting_id = #{meetingId}
|
||||
and pms.check_result = 1
|
||||
and pms.register_check_result = 1
|
||||
</select>
|
||||
</mapper>
|
||||
+2
@@ -84,4 +84,6 @@ public interface IPayMeetingSituationService extends IService<PayMeetingSituatio
|
||||
|
||||
@Nullable
|
||||
Class<?> getaClass(Integer meetingType);
|
||||
|
||||
Integer standardsCheckPhone(String meetingId, String phone);
|
||||
}
|
||||
|
||||
+10
@@ -1396,4 +1396,14 @@ public class PayMeetingSituationServiceImpl extends ServiceImpl<PayMeetingSituat
|
||||
}
|
||||
return classToExport;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer standardsCheckPhone(String meetingId, String phone) {
|
||||
Integer integer = baseMapper.standardsCheckPhone(meetingId, PasswordUtil.encrypt(phone));
|
||||
if (integer<=0){
|
||||
throw new JeroBootException("只有参会人员和有效期内的缴费会员可以下载和预览文件!");
|
||||
}else {
|
||||
return integer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user