|
|
@@ -379,18 +379,20 @@ public class OrderProjectApiController extends CertifyApiController {
|
|
|
if(e.getType()!=null) {
|
|
|
String[] split = e.getType().split(",");
|
|
|
StringBuilder stringBuilder = new StringBuilder();
|
|
|
- Arrays.stream(split).forEach(
|
|
|
- s->{
|
|
|
- if (ApprovalTypeEnums.QT.getCode().equals(Integer.valueOf(s))){
|
|
|
- stringBuilder.append(ApprovalTypeEnums.getDesc(s))
|
|
|
- .append("(").append(e.getTypeExplain()).append(")")
|
|
|
- .append(",");
|
|
|
- }else {
|
|
|
- stringBuilder.append(ApprovalTypeEnums.getDesc(s)).append(",");
|
|
|
+ int index= 1;
|
|
|
+ for (String s : split) {
|
|
|
+ if (index ==Integer.parseInt(s)){
|
|
|
+ if (ApprovalTypeEnums.QT.getCode().equals(Integer.valueOf(s))){
|
|
|
+ stringBuilder.append(ApprovalTypeEnums.getDesc(s))
|
|
|
+ .append("(").append(e.getTypeExplain()).append(")")
|
|
|
+ .append(",");
|
|
|
+ }else {
|
|
|
+ stringBuilder.append(ApprovalTypeEnums.getDesc(s)).append(",");
|
|
|
+ }
|
|
|
+ index++;
|
|
|
+ if (index==8)index=0;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
- );
|
|
|
e.setType(stringBuilder.substring(0,stringBuilder.length()-1));
|
|
|
}
|
|
|
}
|