bug 5902
This commit is contained in:
parent
440ff09a8b
commit
581845ce98
|
|
@ -88,7 +88,7 @@ public class AccCardController extends BaseController {
|
||||||
accCard.setOperationType(CardRecordTypeEnum.APPLY.getKey());
|
accCard.setOperationType(CardRecordTypeEnum.APPLY.getKey());
|
||||||
return toAjax(accCardService.insertAccCard(accCard));
|
return toAjax(accCardService.insertAccCard(accCard));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return error("系统错误, " + e.getMessage());
|
return error(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -104,7 +104,7 @@ public class AccCardController extends BaseController {
|
||||||
try {
|
try {
|
||||||
return toAjax(accCardService.updateAccCard(accCard));
|
return toAjax(accCardService.updateAccCard(accCard));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return error("系统错误, " + e.getMessage());
|
return error(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -118,7 +118,7 @@ public class AccCardController extends BaseController {
|
||||||
accCard.setOperationType(CardRecordTypeEnum.CHANGE.getKey());
|
accCard.setOperationType(CardRecordTypeEnum.CHANGE.getKey());
|
||||||
return toAjax(accCardService.updateAccCard(accCard));
|
return toAjax(accCardService.updateAccCard(accCard));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return error("系统错误, " + e.getMessage());
|
return error(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -133,7 +133,7 @@ public class AccCardController extends BaseController {
|
||||||
accCard.setCardStatus(CardStatusEnum.LOSS.getKey());
|
accCard.setCardStatus(CardStatusEnum.LOSS.getKey());
|
||||||
return toAjax(accCardService.updateAccCard(accCard));
|
return toAjax(accCardService.updateAccCard(accCard));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return error("系统错误, " + e.getMessage());
|
return error(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -148,7 +148,7 @@ public class AccCardController extends BaseController {
|
||||||
accCard.setCardStatus(CardStatusEnum.NORMAL.getKey());
|
accCard.setCardStatus(CardStatusEnum.NORMAL.getKey());
|
||||||
return toAjax(accCardService.updateAccCard(accCard));
|
return toAjax(accCardService.updateAccCard(accCard));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return error("系统错误, " + e.getMessage());
|
return error(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -163,7 +163,7 @@ public class AccCardController extends BaseController {
|
||||||
accCard.setCardStatus(CardStatusEnum.REFUND.getKey());
|
accCard.setCardStatus(CardStatusEnum.REFUND.getKey());
|
||||||
return toAjax(accCardService.updateAccCard(accCard));
|
return toAjax(accCardService.updateAccCard(accCard));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return error("系统错误, " + e.getMessage());
|
return error(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ public class AccCardServiceImpl implements IAccCardService {
|
||||||
saveAccCardChangeRecord(accCard);
|
saveAccCardChangeRecord(accCard);
|
||||||
return count;
|
return count;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ServiceException("发卡异常, " + e.getMessage());
|
throw new ServiceException(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -154,7 +154,7 @@ public class AccCardServiceImpl implements IAccCardService {
|
||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ServiceException("更新异常, " + e.getMessage());
|
throw new ServiceException(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where user_id = #{userId} and card_status in (1,4,5)
|
where user_id = #{userId} and card_status in (1,4,5)
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectAccCardCountByCardSerialNum" parameterType="Long" resultType="Integer">
|
<select id="selectAccCardCountByCardSerialNum" parameterType="String" resultType="Integer">
|
||||||
select count(1)
|
select count(1)
|
||||||
from acc_card
|
from acc_card
|
||||||
where serial_num = #{serialNum}
|
where serial_num = #{serialNum}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue