提交 ae0a7dce authored 作者: zhouzhigang's avatar zhouzhigang

审核不通过的时候将样书券返回给用户

上级 bb246984
......@@ -46,16 +46,16 @@ public class SampleBookServiceImpl extends BaseModelServiceImpl<SampleBook,Integ
Integer endNum = 0;
Integer num = sampleBookMapper.getAmount(memberId);
//获取样书申请记录中当前用户的审核未通过的条数
Integer applyNumber = sampleBookMapper.getApplyNum(memberId);
//Integer applyNumber = sampleBookMapper.getApplyNum(memberId);
if(num == null){
num = 0;
}
if(num > applyNum){
endNum = num - applyNumber;
}
// if(num > applyNum){
// endNum = num - applyNumber;
// }
if(endNum != null){
if(endNum < applyNum){
if(num != null){
if(num < applyNum){
throw new BusinessValidateException("样书券数量不足");
}
}else{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论