11/22 查询字段优化1.0

dev_unify
wangwei 4 months ago
parent 5be468c250
commit db8e7651c0

@ -1,6 +1,7 @@
package com.glxp.api.controller.basic;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.annotation.AuthRuleAnnotation;
import com.glxp.api.annotation.Log;
@ -63,6 +64,11 @@ public class BasicInCodeController {
List<IoOrderDetailBizResponse> ioOrderDetailBizResponseList = ioOrderDetailBizService.filterList(filterOrderDetailBizRequest);
for (IoOrderDetailBizResponse ioOrderDetailBizResponse : ioOrderDetailBizResponseList){
if (StrUtil.isEmpty(ioOrderDetailBizResponse.getSpec() )){
ioOrderDetailBizResponse.setSpec(ioOrderDetailBizResponse.getBzgg());
}
}
PageInfo<IoOrderDetailBizResponse> pageInfo = new PageInfo<>(ioOrderDetailBizResponseList);
PageSimpleResponse<IoOrderDetailBizResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());

@ -257,6 +257,8 @@ public class IoOrderResponse {
private boolean checkType;
private String bzgg;
public String getFromName() {

@ -31,7 +31,8 @@
select io_order_detail_biz.*,
bp.packUnit,
bp.prepnSpec,
bp.prepnUnit
bp.prepnUnit,
bp.bzgg
from io_order_detail_biz
left join basic_udirel bu on bu.id = io_order_detail_biz.bindRlFk
left join basic_products bp on bu.uuid = bp.uuid

Loading…
Cancel
Save