|
|
@@ -1162,7 +1162,7 @@ public class cashbill extends Controller {
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
- return getErrReturnObject().setErrMsg("选择审核且已导出的收入凭证的数量不能为0").toString();
|
|
|
+ //return getErrReturnObject().setErrMsg("选择审核且已导出的收入凭证的数量不能为0").toString();
|
|
|
}
|
|
|
TxtFactory txtFactory =new TxtFactory("Logisticslabel");
|
|
|
txtFactory.write(buf.toString());
|
|
|
@@ -1173,15 +1173,21 @@ public class cashbill extends Controller {
|
|
|
}
|
|
|
|
|
|
HashMap<String, Object> result = new HashMap<>();
|
|
|
+ JSONArray jsonArray =new JSONArray();
|
|
|
result.put("url", url);
|
|
|
if(agentList.isEmpty()){
|
|
|
- result.put("errinfo", "");
|
|
|
+ result.put("errinfo",jsonArray);
|
|
|
}else{
|
|
|
StringBuffer fagentnums = new StringBuffer();
|
|
|
for(String str : agentList){
|
|
|
fagentnums.append(str+",");
|
|
|
}
|
|
|
- result.put("errinfo", "以下经销商"+fagentnums.toString().substring(0, fagentnums.toString().length()-1)+"凭证未导出,原因:未维护U8科目");
|
|
|
+
|
|
|
+ JSONObject object = new JSONObject();
|
|
|
+ object.put("agents", fagentnums.toString().substring(0, fagentnums.toString().length()-1));
|
|
|
+ object.put("errmsg", "未维护U8科目");
|
|
|
+ jsonArray.add(object);
|
|
|
+ result.put("errinfo", jsonArray);
|
|
|
}
|
|
|
|
|
|
dbConnect.runSqlUpdate(sqlList);
|