|
|
@@ -379,21 +379,23 @@ public class OrderProjectApiController extends CertifyApiController {
|
|
|
if(e.getType()!=null) {
|
|
|
String[] split = e.getType().split(",");
|
|
|
StringBuilder stringBuilder = new StringBuilder();
|
|
|
- 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;
|
|
|
+ int index = 1;
|
|
|
+ for (int i = 1; i < 9; i++) {
|
|
|
+ for (String s : split) {
|
|
|
+ if (index ==Integer.parseInt(s)){
|
|
|
+ if (ApprovalTypeEnums.QT.getCode().equals(Integer.parseInt(s))){
|
|
|
+ stringBuilder.append(ApprovalTypeEnums.getDesc(s))
|
|
|
+ .append("(").append(e.getTypeExplain()).append(")")
|
|
|
+ .append(",");
|
|
|
+ }else {
|
|
|
+ stringBuilder.append(ApprovalTypeEnums.getDesc(s)).append(",");
|
|
|
}
|
|
|
}
|
|
|
- e.setType(stringBuilder.substring(0,stringBuilder.length()-1));
|
|
|
+ }
|
|
|
+ index++;
|
|
|
+ if (index==8)index=0;
|
|
|
+ }
|
|
|
+ if(stringBuilder.length()>0)e.setType(stringBuilder.substring(0,stringBuilder.length()-1));
|
|
|
}
|
|
|
}
|
|
|
|