|
@@ -54,7 +54,7 @@ public class PatientCardsService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<String> hasValidIdCard(IdCardAnalyzeResult card) {
|
|
|
- String tColumn = (card.getCardType() == 1) ? "patient_id" : "ic_card_no";
|
|
|
+ String tColumn = (card.getCardType() == 0) ? "patient_id" : "ic_card_no";
|
|
|
if (IdCardUtil.isValidatedIdCard(card.getSocialNo())) {
|
|
|
dao.updateSocialNo(tColumn, card.getCardNo(), card.getSocialNo());
|
|
|
return ResultVoUtil.success();
|