md
This commit is contained in:
parent
784af0930c
commit
817a2dff9e
@ -386,11 +386,12 @@ public class EmisCommonController extends EmisBaseController
|
|||||||
|
|
||||||
|
|
||||||
@GetMapping("/getBillPng/{uuid}")
|
@GetMapping("/getBillPng/{uuid}")
|
||||||
public AjaxResult getBillPng(HttpServletRequest request, HttpServletResponse response,@PathVariable("uuid")String uuid )
|
public void getBillPng(HttpServletRequest request, HttpServletResponse response,@PathVariable("uuid")String uuid )
|
||||||
{
|
{
|
||||||
// "https://api.emis.tanex56.com/api/bizsvr/emis/common/getBillPng/123123212.png"
|
// "https://api.emis.tanex56.com/api/bizsvr/emis/common/getBillPng/123123212.png"
|
||||||
if(StringUtils.isEmpty(uuid)){
|
if(StringUtils.isEmpty(uuid)){
|
||||||
return AjaxResult.error("参数错误");
|
log.debug("参数错误");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
// redissonService.setStr("PRINT-IMG-"+uuid,"",300);
|
// redissonService.setStr("PRINT-IMG-"+uuid,"",300);
|
||||||
/*
|
/*
|
||||||
@ -403,7 +404,8 @@ public class EmisCommonController extends EmisBaseController
|
|||||||
String PRINT_KEY="PRINT-IMG-"+uuid.trim();
|
String PRINT_KEY="PRINT-IMG-"+uuid.trim();
|
||||||
String printParamStr=redissonService.getStr(PRINT_KEY);
|
String printParamStr=redissonService.getStr(PRINT_KEY);
|
||||||
if(StringUtils.isEmpty(printParamStr)){
|
if(StringUtils.isEmpty(printParamStr)){
|
||||||
return AjaxResult.error("图片已过期");
|
log.debug("图片已过期");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSONObject jObj = JSONObject.parseObject(printParamStr);
|
JSONObject jObj = JSONObject.parseObject(printParamStr);
|
||||||
@ -423,16 +425,17 @@ public class EmisCommonController extends EmisBaseController
|
|||||||
tplPrint.genPNG(order, os);
|
tplPrint.genPNG(order, os);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
return AjaxResult.error("运单信息失败");
|
log.debug("获取运单信息失败");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}catch (Exception ex){
|
}catch (Exception ex){
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
return AjaxResult.error("异常");
|
log.debug("系统异常");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
return AjaxResult.success("成功");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user