申请抵扣税号排除

release
yishiqihuasheng 2 years ago
parent 949f331cca
commit 06051312de
  1. 15
      dxhy-base/src/main/java/com/dxhy/base/service/invoicecheck/BaseInvoiceManualCheckServiceImpl.java

@ -13,6 +13,7 @@ import com.dxhy.common.constant.DictConstant;
import com.dxhy.common.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.jetbrains.annotations.NotNull;
import org.springframework.stereotype.Service;
@ -460,12 +461,16 @@ public class BaseInvoiceManualCheckServiceImpl extends MpBaseServiceImpl<BaseTDx
gfshList1.add(cur.getTaxno());
}
}
if(ObjectUtils.isEmpty(gfshList1)|| gfshList1.size()==0){
json.put("code","501");
json.put("message","税号已经申请抵扣");
return super.responseResult(json);
}else {
pramsMap.put("gfsh",gfshList1);
}
} else {
json.put("hjsl", "0");
json.put("hjje", "0");
json.put("hjse", "0");
json.put("total", 0);
json.put("datalist", new ArrayList<>());
json.put("code", "501");
json.put("message", "账号下无可用税号");
return super.responseResult(json);
}

Loading…
Cancel
Save