1.
String[] members=ArrayDATA_IDS;
String usernames = "";
for(String id :members)
{
usernames += phone+",";
}
usernames +=",";
usernames = usernames.replaceAll(",,", "");
2.
var str = '';
for(var i=0;i < document.getElementsByName('ids').length;i++)
{
if(document.getElementsByName('ids')[i].checked){
if(str=='') str += document.getElementsByName('ids')[i].value;
else str += ',' + document.getElementsByName('ids')[i].value;
}
}
3.
List<String> sqlList = new ArrayList<String>();
String sqls = "";
for (TRingLetterLog tRingLetterLog : lists) {
sqls = "insert into T_RING_LETTER_LOG (RL_ID,ORG_ID,RL_BODY_JSON,RL_STATUS,RL_TYPE,RL_CREATE_TIME,RL_OPERATOR) values"
+ " ('"+tRingLetterLog.getRlId()+"',"
+ "'" +tRingLetterLog.getOrgId()+ "',"
+ "'" +tRingLetterLog.getRlBodyJson()+ "',"
+ "'" +tRingLetterLog.getRlStatus()+ "',"
+ "'" +tRingLetterLog.getRlType()+ "',"
+ "sysdate,"
+ "'" +tRingLetterLog.getRlOperator()+ "'"
+ ")";
sqlList.add(sqls);
}