String sendDocNum = "";
for (DocNum docNum: docNumList) {
sendDocNum+ = docNum.toString() + ",";
}
if (sendDocNum.length() > 0) {
//sendDocNum.length() - 1 的原因:从零开始的,含头不含尾。
sendDocNum = sendDocNum.substring(0, sendDocNum.length() - 1);
}
/**
* 查询机构组织名称,并以逗号分隔的方式返回
*
* @param list
* @return
*/
private String loadSsbmbh(List<SYS_JS_JGBMEntity> list){
StringBuilder sb = new StringBuilder();
for (SYS_JS_JGBMEntity entity : list) {
if (StrUtils.isEmpty(entity.getZZJGBH())) {
continue;
}
if (StrUtils.isBlank(sb.toString())) {
sb.append(entity.getZZJGBH());
} else {
sb.append("," + entity.getZZJGBH());
}
}
return sb.toString();
}