|
@@ -200,12 +200,17 @@ public class ReimbursementInfoController {
|
|
|
@ApiOperation(value = "根据发票号查询是否已经或正在报销")
|
|
|
public Map<String,Object> getEffectiveDataByInvoiceNumber(String invoiceNumber,String id){
|
|
|
Map map = new HashMap();
|
|
|
- Integer count = service.getEffectiveDataByInvoiceNumber(invoiceNumber,id);
|
|
|
- if(count>0){
|
|
|
+ if(org.apache.commons.lang3.StringUtils.isBlank(invoiceNumber)){
|
|
|
map.put("success",false);
|
|
|
- map.put("message","发票号:" + invoiceNumber + " 已发起或完成报销,请勿重复报销");
|
|
|
+ map.put("message","发票号不可为空");
|
|
|
}else{
|
|
|
- map.put("success",true);
|
|
|
+ Integer count = service.getEffectiveDataByInvoiceNumber(invoiceNumber,id);
|
|
|
+ if(count>0){
|
|
|
+ map.put("success",false);
|
|
|
+ map.put("message","发票号:" + invoiceNumber + " 已发起或完成报销,请勿重复报销");
|
|
|
+ }else{
|
|
|
+ map.put("success",true);
|
|
|
+ }
|
|
|
}
|
|
|
return map;
|
|
|
}
|