记得上下班打卡 | git大法好,push需谨慎

Commit af856b09 authored by 胡佳晨's avatar 胡佳晨

Merge branch 'test'

parents cae69328 5f576324
...@@ -23,7 +23,8 @@ public class AdamEntersParam implements java.io.Serializable { ...@@ -23,7 +23,8 @@ public class AdamEntersParam implements java.io.Serializable {
@ApiModelProperty(position = 13, required = true, value = "证件类型:1-大陆身份证,2-港澳通行证,3-台胞证,4-护照,5-军官证", allowableValues = "1,2,3,4,5") @ApiModelProperty(position = 13, required = true, value = "证件类型:1-大陆身份证,2-港澳通行证,3-台胞证,4-护照,5-军官证", allowableValues = "1,2,3,4,5")
@NotNull @Min(1) @Max(5) @NotNull @Min(1) @Max(5)
private Integer type; private Integer type;
@ApiModelProperty(position = 14, required = true, value = "入场人证件号[11]", example = "110101110001010111") @ApiModelProperty(position = 14, required = true, value = "入场人证件号[30]", example = "110101110001010111")
// @Pattern(regexp = LnsRegex.Valid.CHINESE_ID_CARD, message = "身份证号格式有误") @Pattern(regexp = LnsRegex.Valid.LETTER_NUMBER, message = "证件号格式有误")
@Size(min = 1, max = 30)
private String idCard; private String idCard;
} }
...@@ -80,7 +80,8 @@ ...@@ -80,7 +80,8 @@
refundOpenTime: $("input[name^='refundOpenTime']").val(), refundOpenTime: $("input[name^='refundOpenTime']").val(),
refundCloseTime: $("input[name^='refundCloseTime']").val() refundCloseTime: $("input[name^='refundCloseTime']").val()
} }
if ($("input[name^='refundCloseTime']").text() == "" || $("input[name^='refundOpenTime']").text()) {
if ($("input[name^='refundCloseTime']").val() == "" || $("input[name^='refundOpenTime']").val() == "") {
alert("定时时间不能为空"); alert("定时时间不能为空");
} else { } else {
$.operate.post(prefix + "/refundConfig/change", $.operate.post(prefix + "/refundConfig/change",
......
...@@ -22,5 +22,9 @@ public class LnsRegex { ...@@ -22,5 +22,9 @@ public class LnsRegex {
* 身份证号(15位||18位) * 身份证号(15位||18位)
*/ */
public static final String CHINESE_ID_CARD = "(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)"; public static final String CHINESE_ID_CARD = "(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)";
/**
* 字母、数字组合
*/
public static final String LETTER_NUMBER = "^[A-Z0-9]+$";
} }
} }
...@@ -1164,7 +1164,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService { ...@@ -1164,7 +1164,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
} }
BigDecimal refundSinglePrice = dataUtils.getCanRefundOrderEntitiesPrice(orderTicketVo, kylinOrderRefundsVoBaseList, orderTicketEntitiesId); BigDecimal refundSinglePrice = dataUtils.getCanRefundOrderEntitiesPrice(orderTicketVo, kylinOrderRefundsVoBaseList, orderTicketEntitiesId);
if (refundSinglePrice.doubleValue() <= 0) { if (refundSinglePrice.compareTo(BigDecimal.ZERO)>0) {
return ResponseDto.failure(ErrorMapping.get("20022")); return ResponseDto.failure(ErrorMapping.get("20022"));
} }
Map token = CurrentUtil.getTokenClaims(); Map token = CurrentUtil.getTokenClaims();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment