打印请求

master
zpl 3 years ago
parent b5fd5cf3d8
commit 09a57fad02

@ -153,18 +153,18 @@ public class PrintLogServiceImpl extends ServiceImpl<PrintLogMapper, PrintLog> i
} }
public void printServer(List<LabelPrintDto> list){ public void printServer(List<LabelPrintDto> list){
/*String post = HttpUtil.post(printServer, JSON.toJSONString(list), 60000); String post = HttpUtil.post(printServer, JSON.toJSONString(list), 60000);
*//** /**
* {"msg":"打印成功","code":0} * {"msg":"打印成功","code":0}
* {"msg":"打印失败","code":500} * {"msg":"打印失败","code":500}
* -printNameisPrint * -printNameisPrint
*//* */
JSONObject jsonObject = JSONObject.parseObject(post); JSONObject jsonObject = JSONObject.parseObject(post);
Integer code = jsonObject.getInteger("code"); Integer code = jsonObject.getInteger("code");
String msg = jsonObject.getString("msg"); String msg = jsonObject.getString("msg");
if (code != 0){ if (code != 0){
throw BusinessException.build(msg); throw BusinessException.build(msg);
}*/ }
} }

Loading…
Cancel
Save