Merge remote-tracking branch 'origin/dev_WMS20260401' into dev_WMS20260401
This commit is contained in:
+18
-18
@@ -89,24 +89,24 @@
|
||||
a.shipper_name, a.order_type_code, a.order_type_name, a.supplier_id, a.supplier_code, a.supplier_name, a.expect_time, a.supply_chain_number,
|
||||
a.priority_level_code, a.priority_level_name, a.direct_warehouse, a.annex_url, a.material_quantity, a.quantity,
|
||||
-- 计划入库数量:入库明细表 in_material_detail 的 quantity 汇总
|
||||
(select ifnull(sum(imd.quantity), 0)
|
||||
from in_material_detail imd
|
||||
where imd.in_order_number = a.in_order_number
|
||||
and imd.del_flag = 1
|
||||
and (imd.level is null or imd.level = 1)
|
||||
) as plan_in_quantity,
|
||||
-- 收货数量:收货单表 stock_receipt_order 的 receipt_quantity 汇总
|
||||
(select ifnull(sum(sro.receipt_quantity), 0)
|
||||
from stock_receipt_order sro
|
||||
where sro.in_order_number = a.in_order_number
|
||||
and sro.del_flag = 1
|
||||
) as receipt_quantity,
|
||||
-- 上架数量:上架单表 stock_shelf_order 的 shelves_quantity 汇总
|
||||
(select ifnull(sum(sso.shelves_quantity), 0)
|
||||
from stock_shelf_order sso
|
||||
where sso.in_order_number = a.in_order_number
|
||||
and sso.del_flag = 1
|
||||
) as shelves_quantity,
|
||||
<!-- (select ifnull(sum(imd.quantity), 0)-->
|
||||
<!-- from in_material_detail imd-->
|
||||
<!-- where imd.in_order_number = a.in_order_number-->
|
||||
<!-- and imd.del_flag = 1-->
|
||||
<!-- and (imd.level is null or imd.level = 1)-->
|
||||
<!-- ) as plan_in_quantity,-->
|
||||
<!-- -- 收货数量:收货单表 stock_receipt_order 的 receipt_quantity 汇总-->
|
||||
<!-- (select ifnull(sum(sro.receipt_quantity), 0)-->
|
||||
<!-- from stock_receipt_order sro-->
|
||||
<!-- where sro.in_order_number = a.in_order_number-->
|
||||
<!-- and sro.del_flag = 1-->
|
||||
<!-- ) as receipt_quantity,-->
|
||||
<!-- -- 上架数量:上架单表 stock_shelf_order 的 shelves_quantity 汇总-->
|
||||
<!-- (select ifnull(sum(sso.shelves_quantity), 0)-->
|
||||
<!-- from stock_shelf_order sso-->
|
||||
<!-- where sso.in_order_number = a.in_order_number-->
|
||||
<!-- and sso.del_flag = 1-->
|
||||
<!-- ) as shelves_quantity,-->
|
||||
a.weight_limit, a.volume_limit, a.cancel_order, a.cancel_remark, a.cancel_by,
|
||||
a.cancel_by_name, a.cancel_time, a.close_order, a.close_remark, a.close_by, a.close_by_name, a.close_time, a.remark, a.create_time, a.create_by,
|
||||
a.create_by_name, a.update_time, a.update_by, a.update_by_name, a.del_flag, over_stock_id, over_stock_status, over_stock_type,
|
||||
|
||||
+21
-21
@@ -287,27 +287,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and date_format(a.audit_time,'%Y-%m-%d') <= #{auditTimeEnd}
|
||||
</if>
|
||||
<!-- 出库明细:物料名称、物料编码(同一明细行同时满足;与出库明细口径一致)。关联 material_base_info 避免明细冗余名称与主档不一致时筛不到 -->
|
||||
<if test="(materialName != null and materialName != '') or (materialCode != null and materialCode != '')">
|
||||
and exists (
|
||||
select 1 from out_material_detail omd
|
||||
left join material_base_info mb on omd.material_base_info_id = mb.material_base_info_id and mb.del_flag = 1
|
||||
where omd.out_order_number = a.out_order_number
|
||||
and omd.del_flag = 1
|
||||
and (omd.level is null or omd.level = 1)
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and (
|
||||
omd.material_name like concat('%', #{materialName}, '%')
|
||||
or mb.material_name like concat('%', #{materialName}, '%')
|
||||
)
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and (
|
||||
omd.material_code like concat('%', #{materialCode}, '%')
|
||||
or mb.material_code like concat('%', #{materialCode}, '%')
|
||||
)
|
||||
</if>
|
||||
)
|
||||
</if>
|
||||
<!-- <if test="(materialName != null and materialName != '') or (materialCode != null and materialCode != '')">-->
|
||||
<!-- and exists (-->
|
||||
<!-- select 1 from out_material_detail omd-->
|
||||
<!-- left join material_base_info mb on omd.material_base_info_id = mb.material_base_info_id and mb.del_flag = 1-->
|
||||
<!-- where omd.out_order_number = a.out_order_number-->
|
||||
<!-- and omd.del_flag = 1-->
|
||||
<!-- and (omd.level is null or omd.level = 1)-->
|
||||
<!-- <if test="materialName != null and materialName != ''">-->
|
||||
<!-- and (-->
|
||||
<!-- omd.material_name like concat('%', #{materialName}, '%')-->
|
||||
<!-- or mb.material_name like concat('%', #{materialName}, '%')-->
|
||||
<!-- )-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="materialCode != null and materialCode != ''">-->
|
||||
<!-- and (-->
|
||||
<!-- omd.material_code like concat('%', #{materialCode}, '%')-->
|
||||
<!-- or mb.material_code like concat('%', #{materialCode}, '%')-->
|
||||
<!-- )-->
|
||||
<!-- </if>-->
|
||||
<!-- )-->
|
||||
<!-- </if>-->
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
|
||||
+1
-1
@@ -422,7 +422,7 @@ public class MenuApplicationService {
|
||||
if (CollectionUtil.isNotEmpty(customAuthList)){
|
||||
customAuthList.forEach(e->{
|
||||
Map<String,String> map = new HashMap<>();
|
||||
map.put("menuId",e.getMenuId().toString());
|
||||
map.put("menuId",e.getMenuId() == null ? "" : e.getMenuId().toString());
|
||||
map.put("tableJson",e.getTableJson());
|
||||
map.put("formJson",e.getFormJson());
|
||||
map.put("buttonJson",e.getButtonJson());
|
||||
|
||||
@@ -65,7 +65,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
material_classify_name, a.material_type, a.material_type_name, a.pack_id, a.pack_code, a.pack_name, a.unit_code, a.unit_name, a.brand_id, a.brand_code, a.brand_name, a.shelf_life, a.weight_limit, a.volume_limit, a.material_shape,
|
||||
material_shape_name, a.material_size, a.material_length, a.material_width, a.material_height, a.remark, a.nullify, a.create_time, a.create_by, a.create_by_name, a.update_time, a.update_by, a.update_by_name, a.del_flag, a.common,
|
||||
sku_code, a.unit_price, a.currency, a.origin_country, a.hs_code, a.declaration_unit, a.statutory_unit, a.statutory_second_unit,
|
||||
specification_model as specification_model,nvl(sum(b.INVENTORY_QUANTITY),0) as stock_quantity from material_base_info a left join MATERIAL_INVENTORY b on a.material_base_info_id = b.material_base_info_id
|
||||
specification_model as specification_model,nvl(b.stock_qty,0) as stock_quantity from material_base_info a left join (
|
||||
select material_base_info_id, sum(INVENTORY_QUANTITY) as stock_qty from MATERIAL_INVENTORY group by material_base_info_id
|
||||
) b on a.material_base_info_id = b.material_base_info_id
|
||||
</sql>
|
||||
|
||||
<sql id="JoinMaterialBaseInfoPo">
|
||||
|
||||
Reference in New Issue
Block a user