|
|
|
@ -153,18 +153,18 @@ public class PrintLogServiceImpl extends ServiceImpl<PrintLogMapper, PrintLog> i
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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":500}
|
|
|
|
|
* 根据返回值,更新打印机信息-printName及打印是否成功信息isPrint
|
|
|
|
|
*//*
|
|
|
|
|
*/
|
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(post);
|
|
|
|
|
Integer code = jsonObject.getInteger("code");
|
|
|
|
|
String msg = jsonObject.getString("msg");
|
|
|
|
|
if (code != 0){
|
|
|
|
|
throw BusinessException.build(msg);
|
|
|
|
|
}*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|