|
@@ -398,14 +398,14 @@ public class TaApplicationController extends BaseController {
|
398
|
398
|
if (StringUtils.isEmpty(makeCardParam.getCardNo())) {
|
399
|
399
|
return ResponseBean.error("卡号不能为空");
|
400
|
400
|
} else {
|
401
|
|
-// TaCardNo taCardNo = iTaCardNoService.getUnuseCard(makeCardParam.getCardNo());
|
402
|
|
-// if (taCardNo != null) {
|
403
|
|
-// return ResponseBean.error("卡号无效或者已使用");
|
404
|
|
-// }
|
405
|
|
-//
|
406
|
|
-// // 将卡号置为已使用
|
407
|
|
-// taCardNo.setStatus(Constants.STATUS_NORMAL);
|
408
|
|
-// iTaCardNoService.updateById(taCardNo);
|
|
401
|
+ TaCardNo taCardNo = iTaCardNoService.getUnuseCard(makeCardParam.getCardNo());
|
|
402
|
+ if (taCardNo != null) {
|
|
403
|
+ return ResponseBean.error("卡号无效或者已使用");
|
|
404
|
+ }
|
|
405
|
+
|
|
406
|
+ // 将卡号置为已使用
|
|
407
|
+ taCardNo.setStatus(Constants.STATUS_NORMAL);
|
|
408
|
+ iTaCardNoService.updateById(taCardNo);
|
409
|
409
|
|
410
|
410
|
TaPetIdentity taPetIdentity = iTaPetIdentityService.getExistBy("card_no", makeCardParam.getCardNo(), false, true);
|
411
|
411
|
if (null != taPetIdentity) {
|