|
@@ -1255,10 +1255,10 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
|
|
|
@Override
|
|
|
public QualificationDTO addQualification(long userId, QualificationVO qualificationVO){
|
|
|
- String regex = "^[a-z0-9A-Z]+$";
|
|
|
- if (!qualificationVO.getNumber().matches(regex)) {
|
|
|
- throw new HttpBadRequestException("请输入正确的证书编号");
|
|
|
- }
|
|
|
+// String regex = "^[a-z0-9A-Z]+$";
|
|
|
+// if (!qualificationVO.getNumber().matches(regex)) {
|
|
|
+// throw new HttpBadRequestException("请输入正确的证书编号");
|
|
|
+// }
|
|
|
Date now = new Date();
|
|
|
if(qualificationVO.getTime().after(now)){
|
|
|
throw new HttpBadRequestException("请输入正确的发证时间");
|