2/21 摆放位置 1.0

dev_2.5_optimize
wangwei 4 months ago
parent 46c3304a47
commit bd46bf98c0

@ -193,6 +193,16 @@ public class CollectOrderBizResponse {
*/
private Integer relCodeCount;
private String freightName;
private String layerName;
private String regionName;
private String queueName;
private String productLocation;
// /**

@ -11,6 +11,7 @@ import com.glxp.api.res.collect.CollectOrderBizResponse;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@ -29,9 +30,38 @@ public class IoCollectOrderBizService extends ServiceImpl<IoCollectOrderBizMappe
PageHelper.offsetPage(offset, collectOrderRequest.getLimit());
}
List<CollectOrderBizResponse> data = collectOrderBizMapper.filterList(collectOrderRequest);
for (CollectOrderBizResponse collectOrderBizResponse : data){
collectOrderBizResponse.setProductLocation(setProductName(collectOrderBizResponse));
}
return data;
}
public String setProductName(CollectOrderBizResponse collectOrderBizResponse){
StringBuilder sb = new StringBuilder();
if (collectOrderBizResponse.getRegionName() != null && !collectOrderBizResponse.getRegionName().isEmpty()) {
sb.append(collectOrderBizResponse.getRegionName());
}
if (collectOrderBizResponse.getFreightName() != null && !collectOrderBizResponse.getFreightName().isEmpty()) {
if (sb.length() > 0) {
sb.append("-");
}
sb.append(collectOrderBizResponse.getFreightName());
}
if (collectOrderBizResponse.getQueueName() != null && !collectOrderBizResponse.getQueueName().isEmpty()) {
if (sb.length() > 0) {
sb.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();
}
public List<IoCollectOrderBiz> listByBillNo(String billNo) {
List<IoCollectOrderBiz> list = super.list(Wrappers.lambdaQuery(IoCollectOrderBiz.class)

@ -9,11 +9,19 @@
bp.manufactory,
COALESCE(bp.bzgg, icob.ggxh) AS spec,
bp.prepnSpec AS prepnSpec,
sys_workplace_queue.code
swf.name freightName,
swl.name layerName,
swr.regionName,
sys_workplace_queue.code as workplaceQueueCode,
sys_workplace_queue.name queueName
FROM io_collect_order_biz icob
left join basic_udirel bu on icob.relId = bu.id
left join basic_products bp on bu.uuid = bp.uuid
left join sys_workplace_queue on icob.queueCode = sys_workplace_queue.code
left join sys_workplace_queue on sys_workplace_queue.relId = bu.id
left join sys_workplace_layer swl on swl.code = sys_workplace_queue.layerCode
left join sys_workplace_freight swf on swf.code = sys_workplace_queue.freightCode
left join sys_workplace_region swr on swr.regionCode = swf.freightRow
<where>
<if test="thrCode != '' and thrCode != null">
AND icob.thrCode LIKE concat('%', #{thrCode}, '%')

Loading…
Cancel
Save