master
philip 4 years ago
parent 786c371f5d
commit bc81539ac5

@ -525,12 +525,10 @@ public class ProdReadyTaskServiceImpl extends ServiceImpl<ProdReadyTaskMapper, P
* -printNameisPrint * -printNameisPrint
*/ */
JSONObject jsonObject = JSONObject.parseObject(post); JSONObject jsonObject = JSONObject.parseObject(post);
String code = jsonObject.getString("code"); Integer code = jsonObject.getInteger("code");
if (code == null) { String msg = jsonObject.getString("msg");
if (code != 0){
} throw BusinessException.build(msg);
if (post.indexOf("500") != -1) {
throw BusinessException.build("打印失败!");
} }
if (printLogList.isEmpty()) { if (printLogList.isEmpty()) {
printTag.setIsPrint("true"); printTag.setIsPrint("true");

Loading…
Cancel
Save