PDA库存查询修改1
This commit is contained in:
@@ -326,24 +326,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<sql id="materialQueryListByGroup">
|
||||
<choose>
|
||||
<when test="queryType != null and queryType == 1">
|
||||
group by a.shipper_id, a.shipper_code, a.shipper_name
|
||||
order by a.shipper_name
|
||||
group by a.shipper_id
|
||||
order by max(a.shipper_name)
|
||||
</when>
|
||||
<when test="queryType != null and queryType == 2">
|
||||
group by b.material_base_info_id, a.shipper_id, b.material_code, b.material_name, a.shipper_code, a.shipper_name
|
||||
order by b.material_name, a.shipper_name
|
||||
group by b.material_base_info_id, a.shipper_id
|
||||
order by max(b.material_name), max(a.shipper_name)
|
||||
</when>
|
||||
<when test="queryType != null and queryType == 3">
|
||||
group by b.material_base_info_id, a.shipper_id, a.batch_number, b.material_code, b.material_name, a.shipper_code, a.shipper_name
|
||||
order by b.material_name, a.shipper_name, a.batch_number
|
||||
group by b.material_base_info_id, a.shipper_id, a.batch_number
|
||||
order by max(b.material_name), max(a.shipper_name), a.batch_number
|
||||
</when>
|
||||
<when test="queryType != null and queryType == 4">
|
||||
group by a.storage_location_id, a.storage_location_code, a.storage_location_name, a.storage_section_id, a.storage_code, a.storage_name
|
||||
order by a.storage_location_code
|
||||
group by a.storage_location_id
|
||||
order by max(a.storage_location_code)
|
||||
</when>
|
||||
<when test="queryType != null and queryType == 5">
|
||||
group by b.material_base_info_id, a.storage_location_id, a.shipper_id, b.material_code, b.material_name, a.storage_location_code, a.storage_location_name, a.shipper_code, a.shipper_name
|
||||
order by b.material_name, a.storage_location_code, a.shipper_name
|
||||
group by b.material_base_info_id, a.storage_location_id, a.shipper_id
|
||||
order by max(b.material_name), max(a.storage_location_code), max(a.shipper_name)
|
||||
</when>
|
||||
<when test="queryType != null and queryType == 6">
|
||||
group by a.container_id, a.container_code, a.container_type, a.container_type_name
|
||||
|
||||
Reference in New Issue
Block a user