|
|
@ -37,6 +37,15 @@ public class IoCollectOrderBizService extends ServiceImpl<IoCollectOrderBizMappe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String setProductName(CollectOrderBizResponse collectOrderBizResponse){
|
|
|
|
public String setProductName(CollectOrderBizResponse collectOrderBizResponse){
|
|
|
|
|
|
|
|
String[] parts = collectOrderBizResponse.getWorkplaceQueueCode().split("-");
|
|
|
|
|
|
|
|
String shelf = "";
|
|
|
|
|
|
|
|
String layer = "";
|
|
|
|
|
|
|
|
// 检查分割后的数组长度是否符合预期
|
|
|
|
|
|
|
|
if (parts.length == 3) {
|
|
|
|
|
|
|
|
// 分别赋值给对应的变量
|
|
|
|
|
|
|
|
shelf = parts[0]; // 货架
|
|
|
|
|
|
|
|
layer = parts[1]; // 层
|
|
|
|
|
|
|
|
}
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
if (collectOrderBizResponse.getRegionName() != null && !collectOrderBizResponse.getRegionName().isEmpty()) {
|
|
|
|
if (collectOrderBizResponse.getRegionName() != null && !collectOrderBizResponse.getRegionName().isEmpty()) {
|
|
|
|
sb.append(collectOrderBizResponse.getRegionName());
|
|
|
|
sb.append(collectOrderBizResponse.getRegionName());
|
|
|
@ -47,18 +56,25 @@ public class IoCollectOrderBizService extends ServiceImpl<IoCollectOrderBizMappe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sb.append(collectOrderBizResponse.getFreightName());
|
|
|
|
sb.append(collectOrderBizResponse.getFreightName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (collectOrderBizResponse.getQueueName() != null && !collectOrderBizResponse.getQueueName().isEmpty()) {
|
|
|
|
if (layer != null && !layer.isEmpty()) {
|
|
|
|
if (sb.length() > 0) {
|
|
|
|
if (sb.length() > 0) {
|
|
|
|
sb.append("-");
|
|
|
|
sb.append("-");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sb.append(collectOrderBizResponse.getQueueName());
|
|
|
|
sb.append(layer + "层");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (collectOrderBizResponse.getWorkplaceQueueCode() != null && !collectOrderBizResponse.getWorkplaceQueueCode().isEmpty()) {
|
|
|
|
|
|
|
|
|
|
|
|
// if (collectOrderBizResponse.getQueueName() != null && !collectOrderBizResponse.getQueueName().isEmpty()) {
|
|
|
|
// if (sb.length() > 0) {
|
|
|
|
// if (sb.length() > 0) {
|
|
|
|
// sb.append("-");
|
|
|
|
// sb.append("-");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
sb.append("(").append(collectOrderBizResponse.getWorkplaceQueueCode()).append(")");
|
|
|
|
// sb.append(collectOrderBizResponse.getQueueName());
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (collectOrderBizResponse.getWorkplaceQueueCode() != null && !collectOrderBizResponse.getWorkplaceQueueCode().isEmpty()) {
|
|
|
|
|
|
|
|
// if (sb.length() > 0) {
|
|
|
|
|
|
|
|
// sb.append("-");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// sb.append("(").append(collectOrderBizResponse.getWorkplaceQueueCode()).append(")");
|
|
|
|
|
|
|
|
// }
|
|
|
|
return sb.toString();
|
|
|
|
return sb.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|