package com.gang; import java.util.Calendar; import java.util.Date; import java.util.HashSet; import java.util.StringJoiner; public class Harbor007 { public static void main(String[] args) { /* Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.SECOND,10); Date time = calendar.getTime(); System.out.println(time);*/ /* HashSet<String> set = new HashSet<>(); set.add("1"); set.add("1"); set.add("1"); System.out.println(set);*/ StringJoiner notFourMustError = new StringJoiner(","); notFourMustError.add("刘备"); notFourMustError.add("王道哈哈"); StringJoiner result = new StringJoiner(","); System.out.println(notFourMustError); result.add(notFourMustError + "部分事项未审核,请审核后在结束会议"); System.out.println(result.toString()); } }
if (notFourMustError.length() != 0 || allFailErrorMessage.length() != 0) { StringJoiner result = new StringJoiner(","); if (notFourMustError.length() != 0) { result.add(notFourMustError + "部分事项未审核,请审核后在结束会议"); } if (allFailErrorMessage.length() != 0) { result.add(allFailErrorMessage + "影响任免,不允许结束会议"); } throw new SystemAccountException(result.toString()); }
<select id="loadPerson" resultType="map"> select <trim suffixOverrides=","> gbrm06.RECORDID as recordId, gbrm06.GLOBALID as globalId, gbrm06.a00 as a00, gbrm06.A0101 as a0101, gbrm06.A0104 as a0104, gbrm06.FLOWTYPEID as flowTypeId, gbrm06.FLOWTYPENAME as flowTypeName, gbrm06.GBRM0601 as gbrm0601, gbrm06.GBRM0602 as gbrm0602, gbrm06.GBRM0603 as gbrm0603, gbrm06.GBRM0605 as gbrm0605, gbrm06.GBRM0605A as gbrm0605a, gbrm06.gbrm0680 as gbrm0680, gbrm06.gbrm0608 as gbrm0608, gbrm06.registrationtype as registrationtype, case when PUSHTIME is null then false else true end as pushed, ${fieldSql} </trim> from gbrm06 <if test="joinSql != null and joinSql != ''"> ${joinSql} </if> where gbrm06.DELETEFLAG = 0 and gbrm06.MEETTYPE = #{meetType} and gbrm06.USERGROUPID = #{userGroupId} <if test="a0101 != null and a0101 != ''"> and gbrm06.A0101 = #{a0101} </if> and gbrm06.ISSHOW = 1 <choose> <when test="groupId != null and groupId != ''"> <choose> <when test="groupType != null and groupType == 2"> and gbrm06.GBRM0607 = #{groupId} order by gbrm06.GBRM0607A desc </when> <otherwise> and gbrm06.GBRM0606 = #{groupId} order by gbrm06.GBRM0606A desc </otherwise> </choose> </when> <otherwise> order by gbrm06.PORDER desc </otherwise> </choose> </select>
package com.gang;
import java.util.Arrays;
import java.util.List;
import java.util.StringJoiner;
import java.util.stream.Collectors;
public class Test08 {
public static void main(String[] args) {
List<String> list = Arrays.asList("大大", "的武当派开完票");
System.out.println(list.stream().collect(Collectors.joining("$$$")));
}
}