集成wms服务模块
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
_ _
|
||||
| | | |
|
||||
_ __ ___ | |__ __| |________ ___ __ ___ ___
|
||||
| '_ ` _ \| '_ \ / _` |______\ \ /\ / / '_ ` _ \/ __|
|
||||
| | | | | | | | | (_| | \ V V /| | | | | \__ \
|
||||
|_| |_| |_|_| |_|\__,_| \_/\_/ |_| |_| |_|___/
|
||||
@@ -0,0 +1,45 @@
|
||||
# Tomcat
|
||||
server:
|
||||
port: 8016
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: mhd-wms-service
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
#server-addr: 127.0.0.1:8848
|
||||
# 演示环境
|
||||
# server-addr: 47.92.229.169:8848
|
||||
# 测试开发环境
|
||||
# server-addr: 192.168.10.18:8848
|
||||
# Saas环境
|
||||
# server-addr: 8.130.64.92:8848
|
||||
# 大运通泰生产环境
|
||||
# server-addr: 39.107.137.158:8848
|
||||
# 线上测试环境
|
||||
server-addr: 116.204.23.92:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
#server-addr: 127.0.0.1:8848
|
||||
# 演示环境
|
||||
# server-addr: 47.92.229.169:8848
|
||||
# 测试开发环境
|
||||
# server-addr: 192.168.10.18:8848
|
||||
# Saas环境
|
||||
# server-addr: 8.130.64.92:8848
|
||||
# 大运通泰生产环境
|
||||
# server-addr: 39.107.137.158:8848
|
||||
# 线上测试环境
|
||||
server-addr: 116.204.23.92:8848
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="logs/mhd-wms" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
<!-- 控制台输出 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 系统日志输出 -->
|
||||
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/info.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>INFO</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/error.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>ERROR</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 系统模块日志级别控制 -->
|
||||
<logger name="com.mhd" level="info" />
|
||||
<!-- Spring日志级别控制 -->
|
||||
<logger name="org.springframework" level="warn" />
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
<!--系统操作日志-->
|
||||
<root level="info">
|
||||
<appender-ref ref="file_info" />
|
||||
<appender-ref ref="file_error" />
|
||||
</root>
|
||||
</configuration>
|
||||
@@ -0,0 +1,325 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.outMaterialDetail.repository.mapper.OutMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.outMaterialDetail.repository.po.OutMaterialDetailPO" id="MaterialDetailResult">
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="outOrderNumber" column="out_order_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="weightLimit" column="weight_limit" />
|
||||
<result property="volumeLimit" column="volume_limit" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="allocationQuantity" column="allocation_quantity" />
|
||||
<result property="pickingQuantity" column="picking_quantity" />
|
||||
<result property="checkQuantity" column="check_quantity" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="level" column="level" />
|
||||
<result property="parentUniqueId" column="parent_unique_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="overStockId" column="over_stock_id" />
|
||||
<result property="overStockStatus" column="over_stock_status" />
|
||||
<result property="overStockType" column="over_stock_type" />
|
||||
<result property="genPickingOrder" column="gen_picking_order" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialDetailPo">
|
||||
a.material_detail_id, a.organization_id, a.organization_name, a.top_organization_id, a.unique_id, a.out_order_number, a.material_base_info_id, a.line_number, a.material_code, a.material_name, a.bar_code, a.weight_limit, a.volume_limit,
|
||||
a.quantity, a.already_allocation_quantity, a.allocation_quantity, a.picking_quantity, a.check_quantity, ROUND((a.quantity - a.check_quantity), 2) AS wait_check_quantity,
|
||||
a.pack_id, a.pack_code, a.pack_name, a.pack_detail_id, a.unit_code, a.unit_name, a.material_warehouse_control_id, a.serial_number_manage,
|
||||
a.warehouse_id, a.warehouse_code, a.warehouse_name, a.storage_section_id, a.storage_code, a.storage_name, a.storage_location_id, a.storage_location_code, a.storage_location_name, a.level, a.parent_unique_id, a.allow_modify,
|
||||
a.material_inventory_id, a.batch_number, a.container_id, a.container_code, a.container_type, a.container_type_name, a.material_status_code, a.material_status_name,
|
||||
a.remark, a.create_time, a.create_by,gen_picking_order,
|
||||
a.create_by_name, a.update_time, a.update_by, a.update_by_name, a.del_flag, a.over_stock_id, a.over_stock_status, a.over_stock_type
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialDetailPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="outOrderNumber != null and outOrderNumber != '' ">
|
||||
and a.out_order_number = #{outOrderNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and a.material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and a.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and a.material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and a.bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="allocationQuantity != null ">
|
||||
and a.allocation_quantity = #{allocationQuantity}
|
||||
</if>
|
||||
<if test="pickingQuantity != null ">
|
||||
and a.picking_quantity = #{pickingQuantity}
|
||||
</if>
|
||||
<if test="checkQuantity != null ">
|
||||
and a.check_quantity = #{checkQuantity}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and a.pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and a.pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and a.pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and a.pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and a.unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and a.unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and a.material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and a.serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and a.storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and a.storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and a.storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and a.storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and a.storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and a.storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="level != null ">
|
||||
and a.level = #{level}
|
||||
</if>
|
||||
<if test="genPickingOrder != null ">
|
||||
and a.gen_picking_order = #{genPickingOrder}
|
||||
</if>
|
||||
<if test="parentUniqueId != null ">
|
||||
and a.parent_unique_id = #{parentUniqueId}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="outOrderNumberList != null and outOrderNumberList.size > 0 ">
|
||||
and a.out_order_number in
|
||||
<foreach collection="outOrderNumberList" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<sql id="joinMaterialDetailPoWhere">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="overStockStatus != null ">
|
||||
and a.over_stock_status = #{overStockStatus}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and a.material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialBaseInfoIdList != null and materialBaseInfoIdList != ''">
|
||||
and a.material_base_info_id in
|
||||
<foreach collection="materialBaseInfoIdList" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<sql id="joinStockOutOrderPoWhere">
|
||||
<if test="outOrderNumber != null and outOrderNumber != ''">
|
||||
and b.out_order_number = #{outOrderNumber}
|
||||
</if>
|
||||
<if test="warehouseId != null and warehouseId != '' ">
|
||||
and b.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="shipperId != null and shipperId != ''">
|
||||
and b.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperIdList != null and shipperIdList != ''">
|
||||
and b.shipper_id in
|
||||
<foreach collection="shipperIdList" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="outOrderExpectStartTime != null and outOrderExpectStartTime != ''"><!-- 开始时间检索 -->
|
||||
and date_format(b.expect_time,'%y%m%d') >= date_format(#{outOrderExpectStartTime},'%y%m%d')
|
||||
</if>
|
||||
<if test="outOrderExpectEndTime != null and outOrderExpectEndTime != ''"><!-- 结束时间检索 -->
|
||||
and date_format(b.expect_time,'%y%m%d') <= date_format(#{outOrderExpectEndTime},'%y%m%d')
|
||||
</if>
|
||||
<if test="outOrderTypeCode != null and outOrderTypeCode != ''">
|
||||
and b.order_type_code = #{outOrderTypeCode}
|
||||
</if>
|
||||
<!-- 出库状态: 1-已创建 2-已审核 3-部分分配 4-已分配 5-拣货中 6-波次中 7-拣货完成 8-复核中 9-已出库 10-已取消 11-已关闭 -->
|
||||
<if test="outStatus != null ">
|
||||
and b.status = #{outStatus}
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and b.del_flag = #{delFlag} </when>
|
||||
<otherwise> and b.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.outMaterialDetail.repository.todo.OutMaterialDetailDO" resultMap="MaterialDetailResult">
|
||||
select
|
||||
<include refid="selectMaterialDetailPo"/>
|
||||
from out_material_detail a
|
||||
<where>
|
||||
<include refid="selectMaterialDetailPo1"/>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="queryOutOrderList" parameterType="com.mhd.wms.domain.overStock.repository.todo.QueryOrderOverStockDO" resultMap="MaterialDetailResult">
|
||||
select
|
||||
<include refid="selectMaterialDetailPo"/>
|
||||
<include refid="com.mhd.wms.domain.stockOutOrder.repository.mapper.StockOutOrderMapper.joinStockOutOrderPo"/>
|
||||
from out_material_detail a
|
||||
left join stock_out_order b on a.out_order_number = b.out_order_number
|
||||
<where>
|
||||
<include refid="joinMaterialDetailPoWhere"/>
|
||||
<include refid="joinStockOutOrderPoWhere"/>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="batchAddAllocationQuantityByIds" parameterType="com.mhd.wms.domain.outMaterialDetail.repository.todo.OutMaterialDetailDO">
|
||||
UPDATE out_material_detail
|
||||
<set>
|
||||
allocation_quantity = CASE material_detail_id
|
||||
<foreach collection="children" item="item" index="index" separator=",">
|
||||
WHEN #{item.materialDetailId} THEN allocation_quantity + #{item.allocationQuantity}
|
||||
</foreach>
|
||||
END,
|
||||
update_by = #{item.updateBy},
|
||||
update_by_name = #{item.updateByName},
|
||||
update_time = now()
|
||||
</set>
|
||||
WHERE material_detail_id IN
|
||||
<foreach collection="children" item="item" index="index" open="(" separator="," close=")">
|
||||
#{item.materialDetailId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="batchAddPickingQuantityByIds" parameterType="com.mhd.wms.domain.outMaterialDetail.repository.todo.OutMaterialDetailDO">
|
||||
UPDATE out_material_detail
|
||||
<set>
|
||||
picking_quantity = CASE material_detail_id
|
||||
<foreach collection="children" item="item" index="index" separator=",">
|
||||
WHEN #{item.materialDetailId} THEN picking_quantity + #{item.pickingQuantity}
|
||||
</foreach>
|
||||
END,
|
||||
update_by = #{updateBy},
|
||||
update_by_name = #{updateByName},
|
||||
update_time = now()
|
||||
</set>
|
||||
WHERE material_detail_id IN
|
||||
<foreach collection="children" item="item" index="index" open="(" separator="," close=")">
|
||||
#{item.materialDetailId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="batchAddPickingQuantityByUniqueIds" parameterType="com.mhd.wms.domain.outMaterialDetail.repository.todo.OutMaterialDetailDO">
|
||||
UPDATE out_material_detail
|
||||
<set>
|
||||
picking_quantity = CASE unique_id
|
||||
<foreach collection="children" item="item" index="index" separator=",">
|
||||
WHEN #{item.uniqueId} THEN picking_quantity + #{item.pickingQuantity}
|
||||
</foreach>
|
||||
END,
|
||||
<trim prefix="picking_quantity = CASE unique_id" suffix="END,">
|
||||
<foreach collection="children" item="item" index="index">
|
||||
WHEN #{item.uniqueId} THEN picking_quantity + #{item.pickingQuantity}
|
||||
</foreach>
|
||||
</trim>
|
||||
update_by = #{updateBy},
|
||||
update_by_name = #{updateByName},
|
||||
update_time = now()
|
||||
</set>
|
||||
WHERE unique_id IN
|
||||
<foreach collection="children" item="item" index="index" open="(" separator="," close=")">
|
||||
#{item.uniqueId}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.commonSettings.repository.mapper.CommonSettingsMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.commonSettings.repository.po.CommonSettingsPO" id="CommonSettingsResult">
|
||||
<result property="commonSettingsId" column="common_settings_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="route" column="route" />
|
||||
<result property="level" column="level" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectCommonSettingsPo">
|
||||
select common_settings_id, parent_id, name, route, level, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, organization_id, organization_name, top_organization_id from common_settings
|
||||
</sql>
|
||||
|
||||
<sql id="selectCommonSettingsPo1">
|
||||
<where>
|
||||
<if test="parentId != null ">
|
||||
and parent_id = #{parentId}
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
and name like concat('%', #{name}, '%')
|
||||
</if>
|
||||
<if test="route != null and route != ''">
|
||||
and route = #{route}
|
||||
</if>
|
||||
<if test="level != null ">
|
||||
and level = #{level}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.commonSettings.repository.todo.CommonSettingsDO" resultMap="CommonSettingsResult">
|
||||
<include refid="selectCommonSettingsPo"/>
|
||||
<include refid="selectCommonSettingsPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.containerUsageRecord.repository.mapper.ContainerUsageRecordMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.containerUsageRecord.repository.po.ContainerUsageRecordPO" id="ContainerUsageRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="containerId" column="container_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="containerCode" column="container_code" />
|
||||
<result property="containerType" column="container_type" />
|
||||
<result property="containerTypeName" column="container_type_name" />
|
||||
<result property="containerVolume" column="container_volume" />
|
||||
<result property="useType" column="use_type" />
|
||||
<result property="node" column="node" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectContainerUsageRecordPo">
|
||||
select id, container_id, organization_id, organization_name, top_organization_id, container_code, container_type, container_type_name, container_volume, use_type, node, material_base_info_id, material_code, material_name, bar_code, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from container_usage_record
|
||||
</sql>
|
||||
|
||||
<sql id="selectContainerUsageRecordPo1">
|
||||
<where>
|
||||
<if test="containerId != null ">
|
||||
and container_id = #{containerId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="containerCode != null and containerCode != ''">
|
||||
and container_code = #{containerCode}
|
||||
</if>
|
||||
<if test="containerType != null and containerType != ''">
|
||||
and container_type = #{containerType}
|
||||
</if>
|
||||
<if test="containerTypeName != null and containerTypeName != ''">
|
||||
and container_type_name like concat('%', #{containerTypeName}, '%')
|
||||
</if>
|
||||
<if test="containerVolume != null ">
|
||||
and container_volume = #{containerVolume}
|
||||
</if>
|
||||
<if test="useType != null ">
|
||||
and use_type = #{useType}
|
||||
</if>
|
||||
<if test="node != null ">
|
||||
and node = #{node}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.containerUsageRecord.repository.todo.ContainerUsageRecordDO" resultMap="ContainerUsageRecordResult">
|
||||
<include refid="selectContainerUsageRecordPo"/>
|
||||
<include refid="selectContainerUsageRecordPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,276 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.deliveTask.repository.mapper.DeliveTaskMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.deliveTask.repository.po.DeliveTaskPO" id="DeliveTaskResult">
|
||||
<result property="deliverTaskId" column="deliver_task_id" />
|
||||
<result property="taskNumber" column="task_number" />
|
||||
<result property="trackingNumber" column="tracking_number" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="taskType" column="task_type" />
|
||||
<result property="taskStatus" column="task_status" />
|
||||
<result property="taskDistribution" column="task_distribution" />
|
||||
<result property="taskDistributionTime" column="task_distribution_time" />
|
||||
<result property="taskDistributionId" column="task_distribution_id" />
|
||||
<result property="taskDistributionName" column="task_distribution_name" />
|
||||
<result property="operatorsBy" column="operators_by" />
|
||||
<result property="operatorsName" column="operators_name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="reassignTime" column="reassign_time" />
|
||||
<result property="reassignById" column="reassign_by_id" />
|
||||
<result property="reassignByName" column="reassign_by_name" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.deliveTask.repository.po.DeliveTaskSumPO" id="DeliveTaskResultSum">
|
||||
<result property="receivedQuantity" column="receivedQuantity" />
|
||||
<result property="listingQuantity" column="listingQuantity" />
|
||||
<result property="pickQuantity" column="pickQuantity" />
|
||||
<result property="recheckQuantity" column="recheckQuantity" />
|
||||
<result property="displacementQuantity" column="displacementQuantity" />
|
||||
<result property="stockQuantity" column="stockQuantity" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.deliveTask.repository.po.DeliveTaskPO" id="DeliveTaskResultTabSum">
|
||||
<result property="designateSum" column="designateSum" />
|
||||
<result property="taskSum" column="taskSum" />
|
||||
</resultMap>
|
||||
<sql id="selectDeliveTaskPo">
|
||||
select deliver_task_id, task_number, tracking_number, organization_id, organization_name, top_organization_id, warehouse_id, warehouse_code, warehouse_name, task_type, task_status, task_distribution, task_distribution_time, task_distribution_id, task_distribution_name, operators_by, operators_name, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag, reassign_time, reassign_by_id, reassign_by_name from delive_task
|
||||
</sql>
|
||||
|
||||
<sql id="selectDeliveTaskPo1">
|
||||
<where>
|
||||
del_flag = 1
|
||||
|
||||
<if test="taskNumber != null and taskNumber != ''">
|
||||
and task_number = #{taskNumber}
|
||||
</if>
|
||||
<if test="trackingNumber != null and trackingNumber != ''">
|
||||
and tracking_number = #{trackingNumber}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="taskType != null and taskType != 0 ">
|
||||
and task_type = #{taskType}
|
||||
</if>
|
||||
<if test="taskStatus != null ">
|
||||
and task_status = #{taskStatus}
|
||||
</if>
|
||||
<if test="taskDistribution != null ">
|
||||
and task_distribution = #{taskDistribution}
|
||||
</if>
|
||||
<if test="taskDistributionTime != null ">
|
||||
and task_distribution_time = #{taskDistributionTime}
|
||||
</if>
|
||||
<if test="taskDistributionId != null ">
|
||||
and task_distribution_id = #{taskDistributionId}
|
||||
</if>
|
||||
<if test="taskDistributionName != null and taskDistributionName != ''">
|
||||
and task_distribution_name like concat('%', #{taskDistributionName}, '%')
|
||||
</if>
|
||||
<if test="tabType != null and tabType==1">
|
||||
and operators_by = #{operatorsBy}
|
||||
</if>
|
||||
<if test="tabType != null and tabType==2">
|
||||
and (operators_by = ''
|
||||
OR operators_by IS NULL)
|
||||
</if>
|
||||
|
||||
<if test="operatorsName != null and operatorsName != ''">
|
||||
and operators_name like concat('%', #{operatorsName}, '%')
|
||||
</if>
|
||||
<if test="reassignTime != null ">
|
||||
and reassign_time = #{reassignTime}
|
||||
</if>
|
||||
<if test="reassignById != null ">
|
||||
and reassign_by_id = #{reassignById}
|
||||
</if>
|
||||
<if test="reassignByName != null and reassignByName != ''">
|
||||
and reassign_by_name like concat('%', #{reassignByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="selectDeliveTaskPo2">
|
||||
|
||||
|
||||
<if test="taskNumber != null and taskNumber != ''">
|
||||
and task_number = #{taskNumber}
|
||||
</if>
|
||||
<if test="trackingNumber != null and trackingNumber != ''">
|
||||
and tracking_number = #{trackingNumber}
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="taskType != null ">
|
||||
and task_type = #{taskType}
|
||||
</if>
|
||||
<if test="taskStatus != null ">
|
||||
and task_status = #{taskStatus}
|
||||
</if>
|
||||
<if test="taskDistribution != null ">
|
||||
and task_distribution = #{taskDistribution}
|
||||
</if>
|
||||
<if test="taskDistributionTime != null ">
|
||||
and task_distribution_time = #{taskDistributionTime}
|
||||
</if>
|
||||
<if test="taskDistributionId != null ">
|
||||
and task_distribution_id = #{taskDistributionId}
|
||||
</if>
|
||||
<if test="taskDistributionName != null and taskDistributionName != ''">
|
||||
and task_distribution_name like concat('%', #{taskDistributionName}, '%')
|
||||
</if>
|
||||
<if test="reassignTime != null ">
|
||||
and reassign_time = #{reassignTime}
|
||||
</if>
|
||||
<if test="reassignById != null ">
|
||||
and reassign_by_id = #{reassignById}
|
||||
</if>
|
||||
<if test="reassignByName != null and reassignByName != ''">
|
||||
and reassign_by_name like concat('%', #{reassignByName}, '%')
|
||||
</if>
|
||||
</sql>
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.deliveTask.repository.todo.DeliveTaskDO" resultMap="DeliveTaskResult">
|
||||
<include refid="selectDeliveTaskPo"/>
|
||||
<include refid="selectDeliveTaskPo1"/>
|
||||
order by create_time desc
|
||||
</select>
|
||||
<select id="queryListApp" parameterType="com.mhd.wms.domain.deliveTask.repository.todo.DeliveTaskDO" resultMap="DeliveTaskResult">
|
||||
<include refid="selectDeliveTaskPo"/>
|
||||
<include refid="selectDeliveTaskPo1"/>
|
||||
order by create_time desc
|
||||
</select>
|
||||
<select id="workbenchQuery" parameterType="java.lang.Long" resultMap="DeliveTaskResultSum">
|
||||
SELECT
|
||||
(
|
||||
SELECT
|
||||
COUNT(1)
|
||||
FROM
|
||||
stock_receipt_order
|
||||
WHERE
|
||||
del_flag = 1
|
||||
AND status < 3
|
||||
and operators_by = #{operatorsBy}
|
||||
) receivedQuantity,
|
||||
(
|
||||
SELECT
|
||||
COUNT(1)
|
||||
FROM
|
||||
stock_shelf_order
|
||||
WHERE
|
||||
del_flag = 1
|
||||
AND status < 3
|
||||
and operators_by = #{operatorsBy}
|
||||
) listingQuantity,
|
||||
(
|
||||
SELECT
|
||||
COUNT(1)
|
||||
FROM
|
||||
stock_out_task_order
|
||||
WHERE
|
||||
del_flag = 1
|
||||
AND status < 3
|
||||
and operators_by = #{operatorsBy}
|
||||
) pickQuantity,
|
||||
(
|
||||
SELECT
|
||||
COUNT(1)
|
||||
FROM
|
||||
stock_out_order
|
||||
WHERE
|
||||
del_flag = 1
|
||||
AND review = 1
|
||||
AND check_status < 3
|
||||
and check_operators_by = #{operatorsBy}
|
||||
) recheckQuantity,
|
||||
(
|
||||
SELECT
|
||||
COUNT(1)
|
||||
FROM
|
||||
shift_manage
|
||||
WHERE
|
||||
del_flag = 1
|
||||
AND audit_status = 3
|
||||
AND shift_status < 4
|
||||
and operators_by = #{operatorsBy}
|
||||
) displacementQuantity,
|
||||
(
|
||||
SELECT
|
||||
COUNT(1)
|
||||
FROM
|
||||
investigation_manage
|
||||
WHERE
|
||||
del_flag = 1
|
||||
AND audit_status = 3
|
||||
AND investigation_status < 4
|
||||
and operators_by = #{operatorsBy}
|
||||
) stockQuantity
|
||||
|
||||
</select>
|
||||
<select id="querySum" parameterType="com.mhd.wms.domain.deliveTask.repository.todo.DeliveTaskDO" resultMap="DeliveTaskResultTabSum">
|
||||
SELECT
|
||||
(
|
||||
SELECT
|
||||
COUNT(1)
|
||||
FROM
|
||||
delive_task
|
||||
WHERE
|
||||
del_flag = 1
|
||||
AND operators_by = #{operatorsBy}
|
||||
<include refid="selectDeliveTaskPo2"/>
|
||||
) designateSum,
|
||||
(
|
||||
SELECT
|
||||
COUNT(1)
|
||||
FROM
|
||||
delive_task
|
||||
WHERE
|
||||
del_flag = 1
|
||||
AND (operators_by = ''
|
||||
OR operators_by IS NULL)
|
||||
<include refid="selectDeliveTaskPo2"/>
|
||||
) taskSum
|
||||
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.differentManage.repository.mapper.DifferentManageMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.differentManage.repository.po.DifferentManagePO" id="DifferentManageResult">
|
||||
<result property="differentManageId" column="different_manage_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="differentNumber" column="different_number" />
|
||||
<result property="investigationNumber" column="investigation_number" />
|
||||
<result property="investigationStatus" column="investigation_status" />
|
||||
<result property="investigationRange" column="investigation_range" />
|
||||
<result property="investigationType" column="investigation_type" />
|
||||
<result property="investigationMethod" column="investigation_method" />
|
||||
<result property="investigationFrequency" column="investigation_frequency" />
|
||||
<result property="investigationManBy" column="investigation_man_by" />
|
||||
<result property="investigationManName" column="investigation_man_name" />
|
||||
<result property="operatorsBy" column="operators_by" />
|
||||
<result property="operatorsName" column="operators_name" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="nullify" column="nullify" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="postedFlag" column="posted_flag" />
|
||||
<result property="reCountedFlag" column="re_counted_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectDifferentManagePo">
|
||||
select different_manage_id, organization_id, organization_name, top_organization_id, different_number, investigation_number, investigation_status, investigation_range, investigation_type, investigation_method, investigation_frequency, investigation_man_by, investigation_man_name, operators_by, operators_name, warehouse_id, warehouse_code, warehouse_name, nullify, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name,posted_flag,re_counted_flag, del_flag from different_manage
|
||||
</sql>
|
||||
|
||||
<sql id="selectDifferentManagePo1">
|
||||
<where>
|
||||
and del_flag = 1
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="differentNumber != null and differentNumber != ''">
|
||||
and different_number = #{differentNumber}
|
||||
</if>
|
||||
<if test="investigationNumber != null and investigationNumber != ''">
|
||||
and investigation_number = #{investigationNumber}
|
||||
</if>
|
||||
<if test="investigationStatus != null ">
|
||||
and investigation_status = #{investigationStatus}
|
||||
</if>
|
||||
<if test="investigationRange != null and investigationRange != ''">
|
||||
and investigation_range = #{investigationRange}
|
||||
</if>
|
||||
<if test="investigationType != null ">
|
||||
and investigation_type = #{investigationType}
|
||||
</if>
|
||||
<if test="investigationMethod != null ">
|
||||
and investigation_method = #{investigationMethod}
|
||||
</if>
|
||||
<if test="investigationFrequency != null ">
|
||||
and investigation_frequency = #{investigationFrequency}
|
||||
</if>
|
||||
<if test="investigationManBy != null ">
|
||||
and investigation_man_by = #{investigationManBy}
|
||||
</if>
|
||||
<if test="investigationManName != null and investigationManName != ''">
|
||||
and investigation_man_name like concat('%', #{investigationManName}, '%')
|
||||
</if>
|
||||
<if test="operatorsBy != null ">
|
||||
and operators_by = #{operatorsBy}
|
||||
</if>
|
||||
<if test="operatorsName != null and operatorsName != ''">
|
||||
and operators_name like concat('%', #{operatorsName}, '%')
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="nullify != null ">
|
||||
and nullify = #{nullify}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="postedFlag != null ">
|
||||
and posted_flag = #{postedFlag}
|
||||
</if>
|
||||
<if test="reCountedFlag != null ">
|
||||
and re_counted_flag = #{reCountedFlag}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.differentManage.repository.todo.DifferentManageDO" resultMap="DifferentManageResult">
|
||||
<include refid="selectDifferentManagePo"/>
|
||||
<include refid="selectDifferentManagePo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,144 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.handoverTaskOrder.repository.mapper.HandoverTaskOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.handoverTaskOrder.repository.po.HandoverTaskOrderPO" id="HandoverTaskOrderResult">
|
||||
<result property="handoverTaskOrderId" column="handover_task_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="serialNumber" column="serial_number" />
|
||||
<result property="taskNumber" column="task_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="platformId" column="platform_id" />
|
||||
<result property="platformCode" column="platform_code" />
|
||||
<result property="platformName" column="platform_name" />
|
||||
<result property="platformUseTimeId" column="platform_use_time_id" />
|
||||
<result property="platformUseStartTime" column="platform_use_start_time" />
|
||||
<result property="platformUseEndTime" column="platform_use_end_time" />
|
||||
<result property="platformUseStatus" column="platform_use_status" />
|
||||
<result property="orderTypeCode" column="order_type_code" />
|
||||
<result property="orderTypeName" column="order_type_name" />
|
||||
<result property="expectTime" column="expect_time" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="orderNumber" column="order_number" />
|
||||
<result property="pickingOrderNumber" column="picking_order_number" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectHandoverTaskOrderPo">
|
||||
a.handover_task_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.serial_number, a.task_number, a.status, a.platform_id,
|
||||
a.platform_code, a.platform_name, a.platform_use_time_id, a.platform_use_start_time, a.platform_use_end_time, a.platform_use_status,
|
||||
a.order_type_code, a.order_type_name, a.expect_time, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id,
|
||||
a.shipper_name, a.order_number, a.picking_order_number, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectHandoverTaskOrderPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="handoverTaskOrderId != null ">
|
||||
and a.handover_task_order_id = #{handoverTaskOrderId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="serialNumber != null and serialNumber != ''">
|
||||
and a.serial_number = #{serialNumber}
|
||||
</if>
|
||||
<if test="taskNumber != null and taskNumber != ''">
|
||||
and a.task_number = #{taskNumber}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and a.status = #{status}
|
||||
</if>
|
||||
<if test="platformId != null ">
|
||||
and a.platform_id = #{platformId}
|
||||
</if>
|
||||
<if test="platformCode != null and platformCode != ''">
|
||||
and a.platform_code = #{platformCode}
|
||||
</if>
|
||||
<if test="platformName != null and platformName != ''">
|
||||
and a.platform_name like concat('%', #{platformName}, '%')
|
||||
</if>
|
||||
<if test="platformUseTimeId != null ">
|
||||
and a.platform_use_time_id = #{platformUseTimeId}
|
||||
</if>
|
||||
<if test="platformUseStartTime != null ">
|
||||
and a.platform_use_start_time = #{platformUseStartTime}
|
||||
</if>
|
||||
<if test="platformUseEndTime != null ">
|
||||
and a.platform_use_end_time = #{platformUseEndTime}
|
||||
</if>
|
||||
<if test="platformUseStatus != null ">
|
||||
and a.platform_use_status = #{platformUseStatus}
|
||||
</if>
|
||||
<if test="orderTypeCode != null and orderTypeCode != ''">
|
||||
and a.order_type_code = #{orderTypeCode}
|
||||
</if>
|
||||
<if test="orderTypeName != null and orderTypeName != ''">
|
||||
and a.order_type_name like concat('%', #{orderTypeName}, '%')
|
||||
</if>
|
||||
<if test="expectTime != null ">
|
||||
and a.expect_time = #{expectTime}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and a.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and a.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="orderNumber != null and orderNumber != ''">
|
||||
and a.order_number = #{orderNumber}
|
||||
</if>
|
||||
<if test="pickingOrderNumber != null and pickingOrderNumber != ''">
|
||||
and a.picking_order_number = #{pickingOrderNumber}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.handoverTaskOrder.repository.todo.HandoverTaskOrderDO" resultMap="HandoverTaskOrderResult">
|
||||
select
|
||||
<include refid="selectHandoverTaskOrderPo"/>
|
||||
from handover_task_order a
|
||||
<where>
|
||||
<include refid="selectHandoverTaskOrderPo1"/>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,289 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inMaterialDetail.repository.mapper.InMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inMaterialDetail.repository.po.InMaterialDetailPO" id="MaterialDetailResult">
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="receiptQuantity" column="receipt_quantity" />
|
||||
<result property="shelvesQuantity" column="shelves_quantity" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="qualityInspectionManage" column="quality_inspection_manage" />
|
||||
<result property="qualityInspectionStage" column="quality_inspection_stage" />
|
||||
<result property="qualityInspectionRule" column="quality_inspection_rule" />
|
||||
<result property="qualityInspectionTerm" column="quality_inspection_term" />
|
||||
<result property="qualityInspectionResults" column="quality_inspection_results" />
|
||||
<result property="allowOvercharge" column="allow_overcharge" />
|
||||
<result property="overchargeRatio" column="overcharge_ratio" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
<result property="materialStatusCode" column="material_status_code" />
|
||||
<result property="materialStatusName" column="material_status_name" />
|
||||
<result property="distributeRuleId" column="distribute_rule_id" />
|
||||
<result property="distributeRuleCode" column="distribute_rule_code" />
|
||||
<result property="distributeRuleName" column="distribute_rule_name" />
|
||||
<result property="containerId" column="container_id" />
|
||||
<result property="containerCode" column="container_code" />
|
||||
<result property="containerType" column="container_type" />
|
||||
<result property="containerTypeName" column="container_type_name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="overStockId" column="over_stock_id" />
|
||||
<result property="overStockStatus" column="over_stock_status" />
|
||||
<result property="overStockType" column="over_stock_type" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialDetailPo">
|
||||
a.material_detail_id, a.organization_id, a.organization_name, a.top_organization_id, a.unique_id, a.in_order_number, a.material_base_info_id,
|
||||
a.material_code, a.material_name, a.bar_code, a.quantity, a.receipt_quantity, a.shelves_quantity,
|
||||
a.receipt_status, a.shelves_status, a.pack_id, a.pack_code, a.pack_name,
|
||||
a.pack_detail_id, a.unit_code, a.unit_name, a.material_warehouse_control_id, a.serial_number_manage, a.quality_inspection_manage,
|
||||
a.quality_inspection_stage, a.quality_inspection_rule, a.quality_inspection_ratio, a.quality_inspection_term, a.quality_inspection_results, a.allow_overcharge,
|
||||
a.overcharge_ratio, a.batch_number, a.material_status_code, a.material_status_name, a.distribute_rule_id, a.distribute_rule_code,
|
||||
a.distribute_rule_name, a.container_id, a.container_code, a.container_type, a.container_type_name,
|
||||
a.warehouse_id, a.warehouse_code, a.warehouse_name, a.storage_section_id, a.storage_code, a.storage_name, a.storage_location_id, a.storage_location_code, a.storage_location_name,
|
||||
a.level, a.parent_unique_id, 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, a.over_stock_id, a.over_stock_status, a.over_stock_type
|
||||
,CASE
|
||||
WHEN (a.quantity - a.receipt_quantity) < 0 THEN 0
|
||||
ELSE (a.quantity - a.receipt_quantity)
|
||||
END AS wait_receipt_quantity,
|
||||
CASE
|
||||
WHEN (a.receipt_quantity - a.shelves_quantity) < 0 THEN 0
|
||||
ELSE (a.receipt_quantity - a.shelves_quantity)
|
||||
END AS wait_shelves_quantity
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialDetailPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="inOrderNumber != null and inOrderNumber != '' ">
|
||||
and a.in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and a.material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and a.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and a.material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and a.bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="receiptQuantity != null ">
|
||||
and a.receipt_quantity = #{receiptQuantity}
|
||||
</if>
|
||||
<if test="shelvesQuantity != null ">
|
||||
and a.shelves_quantity = #{shelvesQuantity}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and a.pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and a.pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and a.pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and a.pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and a.unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and a.unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and a.material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and a.serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="qualityInspectionManage != null ">
|
||||
and a.quality_inspection_manage = #{qualityInspectionManage}
|
||||
</if>
|
||||
<if test="qualityInspectionStage != null ">
|
||||
and a.quality_inspection_stage = #{qualityInspectionStage}
|
||||
</if>
|
||||
<if test="qualityInspectionRule != null ">
|
||||
and a.quality_inspection_rule = #{qualityInspectionRule}
|
||||
</if>
|
||||
<if test="qualityInspectionTerm != null ">
|
||||
and a.quality_inspection_term = #{qualityInspectionTerm}
|
||||
</if>
|
||||
<if test="qualityInspectionResults != null ">
|
||||
and a.quality_inspection_results = #{qualityInspectionResults}
|
||||
</if>
|
||||
<if test="allowOvercharge != null ">
|
||||
and a.allow_overcharge = #{allowOvercharge}
|
||||
</if>
|
||||
<if test="overchargeRatio != null ">
|
||||
and a.overcharge_ratio = #{overchargeRatio}
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber != ''">
|
||||
and a.batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="materialStatusCode != null and materialStatusCode != ''">
|
||||
and a.material_status_code = #{materialStatusCode}
|
||||
</if>
|
||||
<if test="materialStatusName != null and materialStatusName != ''">
|
||||
and a.material_status_name like concat('%', #{materialStatusName}, '%')
|
||||
</if>
|
||||
<if test="distributeRuleId != null ">
|
||||
and a.distribute_rule_id = #{distributeRuleId}
|
||||
</if>
|
||||
<if test="distributeRuleCode != null and distributeRuleCode != ''">
|
||||
and a.distribute_rule_code = #{distributeRuleCode}
|
||||
</if>
|
||||
<if test="distributeRuleName != null and distributeRuleName != ''">
|
||||
and a.distribute_rule_name like concat('%', #{distributeRuleName}, '%')
|
||||
</if>
|
||||
<if test="containerId != null ">
|
||||
and a.container_id = #{containerId}
|
||||
</if>
|
||||
<if test="containerCode != null and containerCode != ''">
|
||||
and a.container_code = #{containerCode}
|
||||
</if>
|
||||
<if test="containerType != null and containerType != ''">
|
||||
and a.container_type = #{containerType}
|
||||
</if>
|
||||
<if test="containerTypeName != null and containerTypeName != ''">
|
||||
and a.container_type_name like concat('%', #{containerTypeName}, '%')
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="inOrderNumberList != null and inOrderNumberList.size > 0 ">
|
||||
and a.in_order_number in
|
||||
<foreach collection="inOrderNumberList" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<sql id="joinMaterialDetailPoWhere">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="overStockStatus != null ">
|
||||
and a.over_stock_status = #{overStockStatus}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and a.material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialBaseInfoIdList != null and materialBaseInfoIdList != ''">
|
||||
and a.material_base_info_id in
|
||||
<foreach collection="materialBaseInfoIdList" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<sql id="joinStockInOrderPoWhere">
|
||||
<if test="outOrderNumber != null and outOrderNumber != ''">
|
||||
and b.out_order_number = #{outOrderNumber}
|
||||
</if>
|
||||
<if test="warehouseId != null and warehouseId != '' ">
|
||||
and b.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="shipperId != null and shipperId != ''">
|
||||
and b.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperIdList != null and shipperIdList != ''">
|
||||
and b.shipper_id in
|
||||
<foreach collection="shipperIdList" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="inOrderExpectStartTime != null and inOrderExpectStartTime != ''"><!-- 开始时间检索 -->
|
||||
and date_format(b.expect_time,'%y%m%d') >= date_format(#{inOrderExpectStartTime},'%y%m%d')
|
||||
</if>
|
||||
<if test="inOrderExpectEndTime != null and inOrderExpectEndTime != ''"><!-- 结束时间检索 -->
|
||||
and date_format(b.expect_time,'%y%m%d') <= date_format(#{inOrderExpectEndTime},'%y%m%d')
|
||||
</if>
|
||||
<if test="inOrderTypeCode != null and inOrderTypeCode != ''">
|
||||
and b.order_type_code = #{outOrderTypeCode}
|
||||
</if>
|
||||
<!-- 入库状态: 1-已创建 2-已审核 3-收货中 4-上架中 5-已入库 -->
|
||||
<if test="inStatus != null ">
|
||||
and b.status = #{inStatus}
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and b.del_flag = #{delFlag} </when>
|
||||
<otherwise> and b.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inMaterialDetail.repository.todo.InMaterialDetailDO" resultMap="MaterialDetailResult">
|
||||
select
|
||||
<include refid="selectMaterialDetailPo"/>
|
||||
|
||||
from in_material_detail a
|
||||
<where>
|
||||
<include refid="selectMaterialDetailPo1"/>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="queryInOrderList" parameterType="com.mhd.wms.domain.overStock.repository.todo.QueryOrderOverStockDO" resultMap="MaterialDetailResult">
|
||||
select
|
||||
<include refid="selectMaterialDetailPo"/>
|
||||
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPo"/>
|
||||
from in_material_detail a
|
||||
LEFT JOIN stock_in_order b ON a.in_order_number = b.in_order_number
|
||||
<where>
|
||||
<include refid="joinMaterialDetailPoWhere"/>
|
||||
<include refid="joinStockInOrderPoWhere"/>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inMaterialDetailSerialNumber.repository.mapper.InMaterialDetailSerialNumberMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inMaterialDetailSerialNumber.repository.po.InMaterialDetailSerialNumberPO" id="MaterialDetailSerialNumberResult">
|
||||
<result property="materialDetailSerialNumberId" column="material_detail_serial_number_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialDetailUniqueId" column="material_detail_unique_id" />
|
||||
<result property="serialNumber" column="serial_number" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialDetailSerialNumberPo">
|
||||
a.material_detail_serial_number_id, a.organization_id, a.organization_name, a.top_organization_id, a.order_number,a.material_detail_unique_id,
|
||||
a.serial_number, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialDetailSerialNumberPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialDetailUniqueId != null ">
|
||||
and a.material_detail_unique_id = #{materialDetailUniqueId}
|
||||
</if>
|
||||
<if test="orderNumber != null and orderNumber != ''">
|
||||
and a.order_number = #{orderNumber}
|
||||
</if>
|
||||
<if test="serialNumber != null and serialNumber != ''">
|
||||
and a.serial_number = #{serialNumber}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="orderNumbers != null and orderNumbers.size > 0 ">
|
||||
and a.order_number in
|
||||
<foreach collection="orderNumbers" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inMaterialDetailSerialNumber.repository.todo.InMaterialDetailSerialNumberDO" resultMap="MaterialDetailSerialNumberResult">
|
||||
select
|
||||
<include refid="selectMaterialDetailSerialNumberPo"/>
|
||||
from in_material_detail_serial_number a
|
||||
<where>
|
||||
<include refid="selectMaterialDetailSerialNumberPo1"/>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inOrderAbnormal.repository.mapper.InOrderAbnormalMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inOrderAbnormal.repository.po.InOrderAbnormalPO" id="InOrderAbnormalResult">
|
||||
<result property="inOrderAbnormalId" column="in_order_abnormal_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="abnormalNumber" column="abnormal_number" />
|
||||
<result property="inOrderNumber" column="in_order_number" />
|
||||
<result property="receiptOrderNumber" column="receipt_order_number" />
|
||||
<result property="shelfOrderNumber" column="shelf_order_number" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="actualQuantity" column="actual_quantity" />
|
||||
<result property="abnormalType" column="abnormal_type" />
|
||||
<result property="abnormalReason" column="abnormal_reason" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInOrderAbnormalPo">
|
||||
a.in_order_abnormal_id, a.organization_id, a.organization_name, a.top_organization_id, a.abnormal_number, a.in_order_number,
|
||||
a.receipt_order_number,a.shelf_order_number, a.type, a.quantity, a.actual_quantity, a.allow_actual_quantity, a.abnormal_actual_quantity, a.abnormal_type, a.abnormal_reason,
|
||||
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
|
||||
</sql>
|
||||
|
||||
<sql id="selectInOrderAbnormalPo1">
|
||||
<if test="inOrderAbnormalId != null ">
|
||||
and a.in_order_abnormal_id = #{inOrderAbnormalId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="abnormalNumber != null and abnormalNumber != ''">
|
||||
and a.abnormal_number = #{abnormalNumber}
|
||||
</if>
|
||||
<if test="inOrderNumber != null and inOrderNumber != ''">
|
||||
and a.in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="receiptOrderNumber != null and receiptOrderNumber != ''">
|
||||
and a.receipt_order_number = #{receiptOrderNumber}
|
||||
</if>
|
||||
<if test="shelfOrderNumber != null and shelfOrderNumber != ''">
|
||||
and a.shelf_order_number = #{shelfOrderNumber}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="actualQuantity != null ">
|
||||
and a.actual_quantity = #{actualQuantity}
|
||||
</if>
|
||||
<if test="abnormalType != null ">
|
||||
and a.abnormal_type = #{abnormalType}
|
||||
</if>
|
||||
<if test="abnormalReason != null and abnormalReason != ''">
|
||||
and a.abnormal_reason = #{abnormalReason}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inOrderAbnormal.repository.todo.InOrderAbnormalDO" resultMap="InOrderAbnormalResult">
|
||||
select
|
||||
<include refid="selectInOrderAbnormalPo"/>
|
||||
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPo"/>
|
||||
from in_order_abnormal a
|
||||
LEFT JOIN stock_in_order b ON a.in_order_number = b.in_order_number
|
||||
<where>
|
||||
<include refid="selectInOrderAbnormalPo1"/>
|
||||
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPoWhere"/>
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inventoryAdjustmentRecord.repository.mapper.InventoryAdjustmentRecordMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inventoryAdjustmentRecord.repository.po.InventoryAdjustmentRecordPO" id="InventoryAdjustmentRecordResult">
|
||||
<result property="inventoryAdjustmentId" column="inventory_adjustment_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialInventoryId" column="material_inventory_id" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="adjustType" column="adjust_type" />
|
||||
<result property="adjustDirection" column="adjust_direction" />
|
||||
<result property="adjustBeforeStatusCode" column="adjust_before_status_code" />
|
||||
<result property="adjustBeforeStatusName" column="adjust_before_status_name" />
|
||||
<result property="adjustAfterStatusCode" column="adjust_after_status_code" />
|
||||
<result property="adjustAfterStatusName" column="adjust_after_status_name" />
|
||||
<result property="inventoryBeforeQuantity" column="inventory_before_quantity" />
|
||||
<result property="allocationBeforeQuantity" column="allocation_before_quantity" />
|
||||
<result property="freezeBeforeQuantity" column="freeze_before_quantity" />
|
||||
<result property="inventoryAfterQuantity" column="inventory_after_quantity" />
|
||||
<result property="allocationAfterQuantity" column="allocation_after_quantity" />
|
||||
<result property="freezeAfterQuantity" column="freeze_after_quantity" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInventoryAdjustmentRecordPo">
|
||||
select inventory_adjustment_id, organization_id, organization_name, top_organization_id, material_inventory_id, material_base_info_id, material_code, material_name, bar_code, shipper_id, shipper_name, warehouse_id, warehouse_code, warehouse_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, adjust_type, adjust_direction, adjust_before_status_code, adjust_before_status_name, adjust_after_status_code, adjust_after_status_name, inventory_before_quantity, allocation_before_quantity, freeze_before_quantity, inventory_after_quantity, allocation_after_quantity, freeze_after_quantity, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from inventory_adjustment_record
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectInventoryAdjustmentRecordPo1">
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialInventoryId != null ">
|
||||
and material_inventory_id = #{materialInventoryId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="adjustType != null ">
|
||||
and adjust_type = #{adjustType}
|
||||
</if>
|
||||
<if test="adjustDirection != null ">
|
||||
and adjust_direction = #{adjustDirection}
|
||||
</if>
|
||||
<if test="adjustBeforeStatusCode != null ">
|
||||
and adjust_before_status_code = #{adjustBeforeStatusCode}
|
||||
</if>
|
||||
<if test="adjustBeforeStatusName != null ">
|
||||
and adjust_before_status_name = #{adjustBeforeStatusName}
|
||||
</if>
|
||||
<if test="adjustAfterStatusCode != null ">
|
||||
and adjust_after_status_code = #{adjustAfterStatusCode}
|
||||
</if>
|
||||
<if test="adjustAfterStatusName != null ">
|
||||
and adjust_after_status_name = #{adjustAfterStatusName}
|
||||
</if>
|
||||
<if test="inventoryBeforeQuantity != null ">
|
||||
and inventory_before_quantity = #{inventoryBeforeQuantity}
|
||||
</if>
|
||||
<if test="allocationBeforeQuantity != null ">
|
||||
and allocation_before_quantity = #{allocationBeforeQuantity}
|
||||
</if>
|
||||
<if test="freezeBeforeQuantity != null ">
|
||||
and freeze_before_quantity = #{freezeBeforeQuantity}
|
||||
</if>
|
||||
<if test="inventoryAfterQuantity != null ">
|
||||
and inventory_after_quantity = #{inventoryAfterQuantity}
|
||||
</if>
|
||||
<if test="allocationAfterQuantity != null ">
|
||||
and allocation_after_quantity = #{allocationAfterQuantity}
|
||||
</if>
|
||||
<if test="freezeAfterQuantity != null ">
|
||||
and freeze_after_quantity = #{freezeAfterQuantity}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryAdjustmentRecord.repository.todo.InventoryAdjustmentRecordDO" resultMap="InventoryAdjustmentRecordResult">
|
||||
<include refid="selectInventoryAdjustmentRecordPo"/>
|
||||
<include refid="selectInventoryAdjustmentRecordPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inventoryAllocationRule.repository.mapper.InventoryAllocationRuleMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inventoryAllocationRule.repository.po.InventoryAllocationRulePO" id="InventoryAllocationRuleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="ruleNum" column="rule_num" />
|
||||
<result property="ruleName" column="rule_name" />
|
||||
<result property="enabled" column="enabled" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInventoryAllocationRulePo">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, rule_num, rule_name, enabled, remark from inventory_allocation_rule
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectInventoryAllocationRulePo1">
|
||||
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="ruleNum != null and ruleNum != ''">
|
||||
and rule_num = #{ruleNum}
|
||||
</if>
|
||||
<if test="ruleName != null and ruleName != ''">
|
||||
and rule_name like concat('%', #{ruleName}, '%')
|
||||
</if>
|
||||
<if test="enabled != null ">
|
||||
and enabled = #{enabled}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryAllocationRule.repository.todo.InventoryAllocationRuleDO" resultMap="InventoryAllocationRuleResult">
|
||||
<include refid="selectInventoryAllocationRulePo"/>
|
||||
<include refid="selectInventoryAllocationRulePo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inventoryAllocationRuleDetail.repository.mapper.InventoryAllocationRuleDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inventoryAllocationRuleDetail.repository.po.InventoryAllocationRuleDetailPO" id="InventoryAllocationRuleDetailResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="inventoryAllocationRuleId" column="inventory_allocation_rule_id" />
|
||||
<result property="locationKindId" column="location_kind_id" />
|
||||
<result property="locationKind" column="location_kind" />
|
||||
<result property="locationTypeId" column="location_type_id" />
|
||||
<result property="locationType" column="location_type" />
|
||||
<result property="mixingSlgId" column="mixing_slg_id" />
|
||||
<result property="mixingSlg" column="mixing_slg" />
|
||||
<result property="materialStatusId" column="material_status_id" />
|
||||
<result property="materialStatus" column="material_status" />
|
||||
<result property="seqNum" column="seq_num" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInventoryAllocationRuleDetailPo">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, inventory_allocation_rule_id, location_kind_id, location_kind, location_type_id, location_type, mixing_slg_id, mixing_slg, material_status_id, material_status, seq_num from inventory_allocation_rule_detail
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectInventoryAllocationRuleDetailPo1">
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="inventoryAllocationRuleId != null ">
|
||||
and inventory_allocation_rule_id = #{inventoryAllocationRuleId}
|
||||
</if>
|
||||
<if test="locationKindId != null ">
|
||||
and location_kind_id = #{locationKindId}
|
||||
</if>
|
||||
<if test="locationKind != null and locationKind != ''">
|
||||
and location_kind = #{locationKind}
|
||||
</if>
|
||||
<if test="locationTypeId != null ">
|
||||
and location_type_id = #{locationTypeId}
|
||||
</if>
|
||||
<if test="locationType != null and locationType != ''">
|
||||
and location_type = #{locationType}
|
||||
</if>
|
||||
<if test="mixingSlgId != null ">
|
||||
and mixing_slg_id = #{mixingSlgId}
|
||||
</if>
|
||||
<if test="mixingSlg != null and mixingSlg != ''">
|
||||
and mixing_slg = #{mixingSlg}
|
||||
</if>
|
||||
<if test="materialStatusId != null ">
|
||||
and material_status_id = #{materialStatusId}
|
||||
</if>
|
||||
<if test="materialStatus != null and materialStatus != ''">
|
||||
and material_status = #{materialStatus}
|
||||
</if>
|
||||
<if test="seqNum != null ">
|
||||
and seq_num = #{seqNum}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryAllocationRuleDetail.repository.todo.InventoryAllocationRuleDetailDO" resultMap="InventoryAllocationRuleDetailResult">
|
||||
<include refid="selectInventoryAllocationRuleDetailPo"/>
|
||||
<include refid="selectInventoryAllocationRuleDetailPo1"/>
|
||||
</select>
|
||||
|
||||
<select id="selectListByInventoryAllocationRuleId" parameterType="java.lang.Long" resultMap="InventoryAllocationRuleDetailResult">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, inventory_allocation_rule_id, location_kind_id, location_kind, location_type_id, location_type, mixing_slg_id, mixing_slg, material_status_id, material_status, seq_num from inventory_allocation_rule_detail
|
||||
where del_flag = 1 and inventory_allocation_rule_id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectIdsByInventoryAllocationRuleIds" parameterType="java.lang.Long" resultType="java.lang.Long">
|
||||
select id from inventory_allocation_rule_detail
|
||||
where del_flag = 1 and inventory_allocation_rule_id in
|
||||
<foreach collection="array" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
+387
@@ -0,0 +1,387 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inventoryStandingDetail.repository.mapper.InventoryStandingDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inventoryStandingDetail.repository.po.InventoryStandingDetailPO" id="InventoryStandingDetailResult">
|
||||
<result property="inventoryStandingDetailId" column="inventory_standing_detail_id" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialBarCode" column="material_bar_code" />
|
||||
<result property="trackingNumber" column="tracking_number" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="nodeStatus" column="node_status" />
|
||||
<result property="materialQuantity" column="material_quantity" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInventoryStandingDetailPo">
|
||||
select inventory_standing_detail_id, material_name, material_code, material_bar_code, tracking_number, warehouse_id, warehouse_code, warehouse_name, node_status, material_quantity, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from inventory_standing_detail
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectInventoryStandingDetailPo1">
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialBarCode != null and materialBarCode != ''">
|
||||
and material_bar_code = #{materialBarCode}
|
||||
</if>
|
||||
<if test="trackingNumber != null and trackingNumber != ''">
|
||||
and tracking_number = #{trackingNumber}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="nodeStatus != null ">
|
||||
and node_status = #{nodeStatus}
|
||||
</if>
|
||||
<if test="materialQuantity != null ">
|
||||
and material_quantity = #{materialQuantity}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryStandingDetail.repository.todo.InventoryStandingDetailDO" resultMap="InventoryStandingDetailResult">
|
||||
<include refid="selectInventoryStandingDetailPo"/>
|
||||
<include refid="selectInventoryStandingDetailPo1"/>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.statementStatistics.po.WarehousingReportPO" id="queryWarehousingReportListResult">
|
||||
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="materialBarCode" column="material_bar_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="materialQuantity" column="material_quantity" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="inventoryIncreaseDecrease" column="inventoryIncreaseDecrease" />
|
||||
<result property="changeQuantity" column="changeQuantity" />
|
||||
<result property="outboundQuantity" column="outboundQuantity" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
<select id="queryWarehousingReportList" parameterType="com.mhd.wms.domain.statementStatistics.todo.WarehousingReportDO"
|
||||
resultMap="queryWarehousingReportListResult">
|
||||
select a.warehouse_name,
|
||||
b.shipper_name,
|
||||
a.material_name,
|
||||
a.material_code,
|
||||
a.material_bar_code,
|
||||
sum(a.material_quantity) material_quantity,
|
||||
b.unit_name,
|
||||
b.pack_name,
|
||||
DATE_FORMAT(a.create_time, '%Y-%m-%d') create_time
|
||||
from inventory_standing_detail a
|
||||
left join material_base_info b on a.material_code=b.material_code
|
||||
where a.node_status=2 and a.del_flag=1
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and b.shipper_name = #{shipperName}
|
||||
</if>
|
||||
|
||||
<if test="warehouseId != null and warehouseId != '' ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
|
||||
<if test="warehouseName != null and warehouseName != '' ">
|
||||
and a.warehouse_name = #{warehouseName}
|
||||
</if>
|
||||
|
||||
<if test="materialName != null and materialName != '' ">
|
||||
and a.material_name = #{materialName}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != '' ">
|
||||
and a.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialBarCode != null and materialBarCode != '' ">
|
||||
and a.material_bar_code = #{materialBarCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != '' ">
|
||||
and b.unit_name = #{unitName}
|
||||
</if>
|
||||
<if test="packName != null and packName != '' ">
|
||||
and b.pack_name = #{packName}
|
||||
</if>
|
||||
|
||||
<if test="createTimeStart != null">
|
||||
and DATE_FORMAT(a.create_time, '%Y-%m-%d')>= #{createTimeStart}
|
||||
</if>
|
||||
<if test="createTimeEnd != null ">
|
||||
and DATE_FORMAT(a.create_time, '%Y-%m-%d') <= #{createTimeEnd}
|
||||
</if>
|
||||
GROUP BY a.material_code,DATE_FORMAT(a.create_time, '%Y-%m-%d')
|
||||
<if test="materialQuantityStart != null and materialQuantityEnd != null" >
|
||||
having sum(a.material_quantity)>= #{materialQuantityStart}
|
||||
and sum(a.material_quantity)<= #{materialQuantityEnd}
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
<select id="queryOutboundReportList" parameterType="com.mhd.wms.domain.statementStatistics.todo.WarehousingReportDO"
|
||||
resultMap="queryWarehousingReportListResult">
|
||||
select a.warehouse_name,
|
||||
b.shipper_name,
|
||||
a.material_name,
|
||||
a.material_code,
|
||||
a.material_bar_code,
|
||||
sum(a.material_quantity) material_quantity,
|
||||
b.unit_name,
|
||||
b.pack_name,
|
||||
DATE_FORMAT(a.create_time, '%Y-%m-%d') create_time
|
||||
from inventory_standing_detail a
|
||||
left join material_base_info b on a.material_code=b.material_code
|
||||
where a.node_status=3 and a.del_flag=1
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and b.shipper_name = #{shipperName}
|
||||
</if>
|
||||
|
||||
<if test="warehouseId != null and warehouseId != '' ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
|
||||
<if test="warehouseName != null and warehouseName != '' ">
|
||||
and a.warehouse_name = #{warehouseName}
|
||||
</if>
|
||||
|
||||
<if test="materialName != null and materialName != '' ">
|
||||
and a.material_name = #{materialName}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != '' ">
|
||||
and a.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialBarCode != null and materialBarCode != '' ">
|
||||
and a.material_bar_code = #{materialBarCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != '' ">
|
||||
and b.unit_name = #{unitName}
|
||||
</if>
|
||||
<if test="packName != null and packName != '' ">
|
||||
and b.pack_name = #{packName}
|
||||
</if>
|
||||
|
||||
<if test="createTimeStart != null and createTimeStart != '' ">
|
||||
and DATE_FORMAT(a.create_time, '%Y-%m-%d')>= #{createTimeStart}
|
||||
</if>
|
||||
<if test="createTimeEnd != null and createTimeEnd != '' ">
|
||||
and DATE_FORMAT(a.create_time, '%Y-%m-%d') <= #{createTimeEnd}
|
||||
</if>
|
||||
GROUP BY
|
||||
a.material_code,DATE_FORMAT(a.create_time, '%Y-%m-%d')
|
||||
|
||||
<if test="materialQuantityStart != null and materialQuantityEnd != null" >
|
||||
having sum(a.material_quantity)>= #{materialQuantityStart}
|
||||
and sum(a.material_quantity)<= #{materialQuantityEnd}
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
<select id="queryWarehousingAndOutboundReportList" parameterType="com.mhd.wms.domain.statementStatistics.todo.WarehousingReportDO"
|
||||
resultMap="queryWarehousingReportListResult">
|
||||
SELECT
|
||||
a.warehouse_name,
|
||||
b.shipper_name,
|
||||
a.material_name,
|
||||
a.material_code,
|
||||
a.material_bar_code,
|
||||
b.unit_name,
|
||||
b.pack_name,
|
||||
DATE_FORMAT(a.create_time, '%Y-%m-%d') create_time,
|
||||
IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
) material_quantity,
|
||||
IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d') ),
|
||||
0
|
||||
) outboundQuantity,
|
||||
ABS(
|
||||
IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
) - IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
)
|
||||
) changeQuantity,
|
||||
(
|
||||
CASE
|
||||
|
||||
WHEN IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d') ),
|
||||
0
|
||||
)> IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d') ),
|
||||
0
|
||||
) THEN
|
||||
'增加'
|
||||
WHEN IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
) < IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d') ),
|
||||
0
|
||||
) THEN
|
||||
'减少' ELSE '不变'
|
||||
END
|
||||
) inventoryIncreaseDecrease
|
||||
FROM
|
||||
inventory_standing_detail a
|
||||
LEFT JOIN material_base_info b ON a.material_code = b.material_code
|
||||
WHERE
|
||||
a.node_status IN ( 2, 3 )
|
||||
AND a.del_flag = 1
|
||||
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and b.shipper_name = #{shipperName}
|
||||
</if>
|
||||
|
||||
<if test="warehouseId != null and warehouseId != '' ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
|
||||
<if test="warehouseName != null and warehouseName != '' ">
|
||||
and a.warehouse_name = #{warehouseName}
|
||||
</if>
|
||||
|
||||
<if test="materialName != null and materialName != '' ">
|
||||
and a.material_name = #{materialName}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != '' ">
|
||||
and a.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialBarCode != null and materialBarCode != '' ">
|
||||
and a.material_bar_code = #{materialBarCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != '' ">
|
||||
and b.unit_name = #{unitName}
|
||||
</if>
|
||||
<if test="packName != null and packName != '' ">
|
||||
and b.pack_name = #{packName}
|
||||
</if>
|
||||
|
||||
<if test="materialQuantityStart != null">
|
||||
and IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
)>= #{materialQuantityStart}
|
||||
</if>
|
||||
<if test="materialQuantityEnd != null">
|
||||
and IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
) <= #{materialQuantityEnd}
|
||||
</if>
|
||||
|
||||
<if test="outboundQuantityStart != null">
|
||||
and IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d') ),
|
||||
0
|
||||
)>= #{outboundQuantityStart}
|
||||
</if>
|
||||
<if test="outboundQuantityEnd != null">
|
||||
and IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d') ),
|
||||
0
|
||||
) <= #{outboundQuantityEnd}
|
||||
</if>
|
||||
|
||||
<if test="changeQuantityStart != null">
|
||||
and ABS(
|
||||
IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
) - IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
)
|
||||
) >= #{changeQuantityStart}
|
||||
</if>
|
||||
<if test="changeQuantityEnd != null">
|
||||
and ABS(
|
||||
IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
) - IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
)
|
||||
) <= #{changeQuantityEnd}
|
||||
</if>
|
||||
|
||||
<if test="inventoryincreaseDecrease != null and inventoryincreaseDecrease != '' and inventoryincreaseDecrease=='增加' ">
|
||||
and IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d') ),
|
||||
0
|
||||
)> IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d') ),
|
||||
0
|
||||
)
|
||||
</if>
|
||||
<if test="inventoryincreaseDecrease != null and inventoryincreaseDecrease != '' and inventoryincreaseDecrease=='减少' ">
|
||||
and IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
) < IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d') ),
|
||||
0
|
||||
)
|
||||
</if>
|
||||
<if test="inventoryincreaseDecrease != null and inventoryincreaseDecrease != '' and inventoryincreaseDecrease=='不变' ">
|
||||
and IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 2 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d')),
|
||||
0
|
||||
) = IFNULL(
|
||||
( SELECT sum( material_quantity ) FROM inventory_standing_detail c WHERE c.node_status = 3 AND DATE_FORMAT(c.create_time, '%Y-%m-%d')= DATE_FORMAT(a.create_time, '%Y-%m-%d') ),
|
||||
0
|
||||
)
|
||||
</if>
|
||||
|
||||
<if test="createTimeStart != null and createTimeStart != '' ">
|
||||
and DATE_FORMAT(a.create_time, '%Y-%m-%d')>= #{createTimeStart}
|
||||
</if>
|
||||
<if test="createTimeEnd != null and createTimeEnd != '' ">
|
||||
and DATE_FORMAT(a.create_time, '%Y-%m-%d') <= #{createTimeEnd}
|
||||
</if>
|
||||
GROUP BY
|
||||
a.material_code,DATE_FORMAT(a.create_time, '%Y-%m-%d')
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
+285
@@ -0,0 +1,285 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inventoryStandingReport.repository.mapper.InventoryStandingReportMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inventoryStandingReport.repository.po.InventoryStandingReportPO" id="InventoryStandingReportResult">
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="nodeStatus" column="node_status" />
|
||||
<result property="materialQuantity" column="material_quantity" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inventoryStandingReport.repository.po.InventoryStandingDetailReportPO" id="InventoryStandingDetailReportResult">
|
||||
<result property="businessNo" column="business_no" />
|
||||
<result property="sourceNo" column="source_no" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="workQuantity" column="work_quantity" />
|
||||
<result property="abnormal" column="abnormal" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectInventoryStandingReportPo">
|
||||
select inventory_standing_id, material_name, material_code, bar_code, shipper_id, shipper_name, warehouse_id, warehouse_code, warehouse_name, node_status, material_quantity, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from inventory_standing_report
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectInventoryStandingReportPo2">
|
||||
SELECT
|
||||
material_base_info_id,
|
||||
bar_code,
|
||||
material_code,
|
||||
material_name,
|
||||
shipper_id,
|
||||
shipper_name,
|
||||
warehouse_id,
|
||||
warehouse_code,
|
||||
warehouse_name,
|
||||
organization_id,
|
||||
top_organization_id,
|
||||
node_status,
|
||||
node_name,
|
||||
material_quantity
|
||||
FROM
|
||||
(
|
||||
(
|
||||
SELECT
|
||||
rmd.material_base_info_id,
|
||||
rmd.bar_code,
|
||||
rmd.material_code,
|
||||
rmd.material_name,
|
||||
sio1.shipper_id,
|
||||
sio1.shipper_name,
|
||||
sio1.warehouse_id,
|
||||
sio1.warehouse_code,
|
||||
sio1.warehouse_name,
|
||||
sio1.organization_id,
|
||||
sio1.top_organization_id,
|
||||
1 AS node_status,
|
||||
"收货" AS node_name,
|
||||
SUM( rmd.quantity ) AS material_quantity
|
||||
FROM
|
||||
receipt_material_detail rmd
|
||||
LEFT JOIN stock_receipt_order sro1 ON sro1.receipt_order_number = rmd.receipt_order_number
|
||||
LEFT JOIN stock_in_order sio1 ON sro1.in_order_number = sio1.in_order_number
|
||||
WHERE
|
||||
rmd.receipt_status IN ( 1, 2 )
|
||||
GROUP BY
|
||||
rmd.material_base_info_id,
|
||||
sio1.shipper_id,
|
||||
sio1.warehouse_id
|
||||
) UNION ALL
|
||||
(
|
||||
SELECT
|
||||
smd.material_base_info_id,
|
||||
smd.bar_code,
|
||||
smd.material_code,
|
||||
smd.material_name,
|
||||
sio2.shipper_id,
|
||||
sio2.shipper_name,
|
||||
sio2.warehouse_id,
|
||||
sio2.warehouse_code,
|
||||
sio2.warehouse_name,
|
||||
sio2.organization_id,
|
||||
sio2.top_organization_id,
|
||||
2 AS node_status,
|
||||
"上架" AS node_name,
|
||||
SUM( smd.quantity ) AS material_quantity
|
||||
FROM
|
||||
shelf_material_detail smd
|
||||
LEFT JOIN stock_shelf_order sso ON sso.shelf_order_number = smd.shelf_order_number
|
||||
LEFT JOIN stock_in_order sio2 ON sso.in_order_number = sio2.in_order_number
|
||||
WHERE
|
||||
smd.shelves_status IN ( 1, 2 )
|
||||
GROUP BY
|
||||
smd.material_base_info_id,
|
||||
sio2.shipper_id,
|
||||
sio2.warehouse_id
|
||||
) UNION ALL
|
||||
(
|
||||
SELECT
|
||||
pmd.material_base_info_id,
|
||||
pmd.bar_code,
|
||||
pmd.material_code,
|
||||
pmd.material_name,
|
||||
po.shipper_id,
|
||||
po.shipper_name,
|
||||
po.warehouse_id,
|
||||
po.warehouse_code,
|
||||
po.warehouse_name,
|
||||
po.organization_id,
|
||||
po.top_organization_id,
|
||||
3 AS node_status,
|
||||
"拣货" AS node_name,
|
||||
SUM( pmd.quantity ) AS material_quantity
|
||||
FROM
|
||||
picking_material_detail pmd
|
||||
LEFT JOIN picking_order po ON po.picking_order_number = pmd.picking_order_number
|
||||
WHERE
|
||||
po.STATUS IN ( 1, 2 )
|
||||
GROUP BY
|
||||
pmd.material_base_info_id,
|
||||
po.shipper_id,
|
||||
po.warehouse_id
|
||||
) UNION ALL
|
||||
(
|
||||
SELECT
|
||||
omd.material_base_info_id,
|
||||
omd.bar_code,
|
||||
omd.material_code,
|
||||
omd.material_name,
|
||||
soo.shipper_id,
|
||||
soo.shipper_name,
|
||||
soo.warehouse_id,
|
||||
soo.warehouse_code,
|
||||
soo.warehouse_name,
|
||||
soo.organization_id,
|
||||
soo.top_organization_id,
|
||||
4 AS node_status,
|
||||
"复核" AS node_name,
|
||||
SUM( omd.quantity ) AS material_quantity
|
||||
FROM
|
||||
out_material_detail omd
|
||||
LEFT JOIN stock_out_order soo ON soo.out_order_number = omd.out_order_number
|
||||
WHERE
|
||||
soo.STATUS IN ( 7, 8 )
|
||||
GROUP BY
|
||||
omd.material_base_info_id,
|
||||
soo.shipper_id,
|
||||
soo.warehouse_id
|
||||
)
|
||||
) AS a
|
||||
where 1 = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectInventoryStandingReportPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="nodeStatus != null ">
|
||||
and node_status = #{nodeStatus}
|
||||
</if>
|
||||
<if test="materialQuantity != null ">
|
||||
and material_quantity = #{materialQuantity}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryStandingReport.repository.todo.InventoryStandingReportDO" resultMap="InventoryStandingReportResult">
|
||||
<include refid="selectInventoryStandingReportPo"/>
|
||||
<include refid="selectInventoryStandingReportPo1"/>
|
||||
</select>
|
||||
|
||||
<select id="queryListForRealTime" parameterType="com.mhd.wms.domain.inventoryStandingReport.repository.todo.InventoryStandingReportDO" resultMap="InventoryStandingReportResult">
|
||||
<include refid="selectInventoryStandingReportPo2"/>
|
||||
<include refid="selectInventoryStandingReportPo1"/>
|
||||
ORDER BY
|
||||
material_base_info_id
|
||||
</select>
|
||||
|
||||
<select id="getInfoForReceipt" parameterType="com.mhd.wms.domain.inventoryStandingReport.repository.todo.InventoryStandingReportDO" resultMap="InventoryStandingDetailReportResult">
|
||||
SELECT
|
||||
rmd.receipt_order_number AS business_no,
|
||||
sio.in_order_number AS source_no,
|
||||
rmd.quantity,
|
||||
rmd.receipt_quantity AS work_quantity,
|
||||
sro.abnormal
|
||||
FROM
|
||||
receipt_material_detail rmd
|
||||
LEFT JOIN stock_receipt_order sro ON sro.receipt_order_number = rmd.receipt_order_number
|
||||
LEFT JOIN stock_in_order sio ON sro.in_order_number = sio.in_order_number
|
||||
WHERE
|
||||
sro.status IN ( 1, 2 )
|
||||
<include refid="whereForGetInfo"/>
|
||||
</select>
|
||||
|
||||
<sql id="whereForGetInfo">
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and rmd.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="shipperId != null and shipperId != ''">
|
||||
and sio.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and sio.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="getInfoForShelf" parameterType="com.mhd.wms.domain.inventoryStandingReport.repository.todo.InventoryStandingReportDO" resultMap="InventoryStandingDetailReportResult">
|
||||
SELECT
|
||||
rmd.shelf_order_number AS business_no,
|
||||
sso.in_order_number AS source_no,
|
||||
rmd.quantity,
|
||||
rmd.shelves_quantity AS work_quantity,
|
||||
sso.abnormal
|
||||
FROM
|
||||
shelf_material_detail rmd
|
||||
LEFT JOIN stock_shelf_order sso ON sso.shelf_order_number = rmd.shelf_order_number
|
||||
LEFT JOIN stock_in_order sio ON sso.in_order_number = sio.in_order_number
|
||||
WHERE
|
||||
sso.STATUS IN (
|
||||
1,
|
||||
2
|
||||
)
|
||||
<include refid="whereForGetInfo"/>
|
||||
</select>
|
||||
|
||||
<select id="getInfoForPick" parameterType="com.mhd.wms.domain.inventoryStandingReport.repository.todo.InventoryStandingReportDO" resultMap="InventoryStandingDetailReportResult">
|
||||
SELECT
|
||||
rmd.picking_order_number AS business_no,
|
||||
sio.order_number AS source_no,
|
||||
rmd.quantity,
|
||||
rmd.picking_quantity AS work_quantity,
|
||||
sio.abnormal
|
||||
FROM
|
||||
picking_material_detail rmd
|
||||
LEFT JOIN picking_order sio ON sio.picking_order_number = rmd.picking_order_number
|
||||
WHERE
|
||||
sio.STATUS IN ( 1, 2 )
|
||||
<include refid="whereForGetInfo"/>
|
||||
</select>
|
||||
<select id="getInfoForReCheck" parameterType="com.mhd.wms.domain.inventoryStandingReport.repository.todo.InventoryStandingReportDO" resultMap="InventoryStandingDetailReportResult">
|
||||
SELECT
|
||||
rmd.out_order_number AS business_no,
|
||||
rmd.quantity,
|
||||
rmd.check_quantity AS work_quantity
|
||||
FROM
|
||||
out_material_detail rmd
|
||||
LEFT JOIN stock_out_order sio ON sio.out_order_number = rmd.out_order_number
|
||||
WHERE
|
||||
sio.STATUS IN ( 7, 8 )
|
||||
<include refid="whereForGetInfo"/>
|
||||
</select>
|
||||
</mapper>
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inventoryTurnoverRule.repository.mapper.InventoryTurnoverRuleMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inventoryTurnoverRule.repository.po.InventoryTurnoverRulePO" id="InventoryTurnoverRuleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="ruleNum" column="rule_num" />
|
||||
<result property="ruleName" column="rule_name" />
|
||||
<result property="enabled" column="enabled" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInventoryTurnoverRulePo">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, rule_num, rule_name, enabled, remark from inventory_turnover_rule
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectInventoryTurnoverRulePo1">
|
||||
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="ruleNum != null and ruleNum != ''">
|
||||
and rule_num = #{ruleNum}
|
||||
</if>
|
||||
<if test="ruleName != null and ruleName != ''">
|
||||
and rule_name like concat('%', #{ruleName}, '%')
|
||||
</if>
|
||||
<if test="enabled != null and enabled != ''">
|
||||
and enabled = #{enabled}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryTurnoverRule.repository.todo.InventoryTurnoverRuleDO" resultMap="InventoryTurnoverRuleResult">
|
||||
<include refid="selectInventoryTurnoverRulePo"/>
|
||||
<include refid="selectInventoryTurnoverRulePo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inventoryTurnoverRuleDetail.repository.mapper.InventoryTurnoverRuleDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inventoryTurnoverRuleDetail.repository.po.InventoryTurnoverRuleDetailPO" id="InventoryTurnoverRuleDetailResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="inventoryTurnoverRuleId" column="inventory_turnover_rule_id" />
|
||||
<result property="batchAttributeId" column="batch_attribute_id" />
|
||||
<result property="batchAttribute" column="batch_attribute" />
|
||||
<result property="sortord" column="sortord" />
|
||||
<result property="seqNum" column="seq_num" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInventoryTurnoverRuleDetailPo">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, inventory_turnover_rule_id, batch_attribute_id, batch_attribute, sortord, seq_num from inventory_turnover_rule_detail
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectInventoryTurnoverRuleDetailPo1">
|
||||
<where>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="inventoryTurnoverRuleId != null ">
|
||||
and inventory_turnover_rule_id = #{inventoryTurnoverRuleId}
|
||||
</if>
|
||||
<if test="batchAttributeId != null and batchAttributeId != ''">
|
||||
and batch_attribute_id = #{batchAttributeId}
|
||||
</if>
|
||||
<if test="batchAttribute != null and batchAttribute != ''">
|
||||
and batch_attribute = #{batchAttribute}
|
||||
</if>
|
||||
<if test="sortord != null and sortord != ''">
|
||||
and sortord = #{sortord}
|
||||
</if>
|
||||
<if test="seqNum != null ">
|
||||
and seq_num = #{seqNum}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryTurnoverRuleDetail.repository.todo.InventoryTurnoverRuleDetailDO" resultMap="InventoryTurnoverRuleDetailResult">
|
||||
<include refid="selectInventoryTurnoverRuleDetailPo"/>
|
||||
<include refid="selectInventoryTurnoverRuleDetailPo1"/>
|
||||
</select>
|
||||
|
||||
<select id="selectIdsByInventoryTurnoverRuleId" parameterType="java.lang.Long" resultType="java.lang.Long">
|
||||
select id from inventory_turnover_rule_detail
|
||||
where del_flag = 1 and inventory_turnover_rule_id = #{inventoryTurnoverRuleId}
|
||||
</select>
|
||||
|
||||
<select id="selectListByInventoryTurnoverRuleId" parameterType="java.lang.Long" resultMap="InventoryTurnoverRuleDetailResult">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, inventory_turnover_rule_id, batch_attribute_id, batch_attribute, sortord, seq_num from inventory_turnover_rule_detail
|
||||
where del_flag = 1 and inventory_turnover_rule_id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectListByInventoryTurnoverRuleIds" parameterType="Long" resultType="java.lang.Long">
|
||||
select id from inventory_turnover_rule_detail
|
||||
where inventory_turnover_rule_id in
|
||||
<foreach collection="array" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
+162
@@ -0,0 +1,162 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.inventoryWarningAnalyze.repository.mapper.InventoryWarningAnalyzeMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.inventoryWarningAnalyze.repository.po.InventoryWarningAnalyzePO" id="InventoryWarningAnalyzeResult">
|
||||
<result property="inventoryWarningAnalyzeId" column="inventory_warning_analyze_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="shipperCode" column="shipper_code" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitQuantity" column="unit_quantity" />
|
||||
<result property="inventoryQuantity" column="inventory_quantity" />
|
||||
<result property="warningAnalyzeNumber" column="warning_analyze_number" />
|
||||
<result property="warningAnalyzeType" column="warning_analyze_type" />
|
||||
<result property="warningStandardQuantity" column="warning_standard_quantity" />
|
||||
<result property="warningTime" column="warning_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInventoryWarningAnalyzePo">
|
||||
select inventory_warning_analyze_id, organization_id, organization_name, top_organization_id,
|
||||
material_base_info_id, material_name, material_code, warehouse_id, warehouse_code, warehouse_name,
|
||||
storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code,
|
||||
storage_location_name, shipper_id, shipper_name, shipper_code, pack_id, pack_code, pack_name,
|
||||
pack_detail_id, unit_code, unit_name, unit_quantity, inventory_quantity, warning_analyze_number,
|
||||
warning_analyze_type, warning_standard_quantity, warning_time, remark, create_time, create_by,
|
||||
create_by_name, update_time, update_by, update_by_name, del_flag, bar_code from inventory_warning_analyze
|
||||
</sql>
|
||||
|
||||
<sql id="selectInventoryWarningAnalyzePo1">
|
||||
<where>
|
||||
and del_flag = 1
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="shipperCode != null and shipperCode != ''">
|
||||
and shipper_code = #{shipperCode}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null ">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitQuantity != null ">
|
||||
and unit_quantity = #{unitQuantity}
|
||||
</if>
|
||||
<if test="inventoryQuantity != null ">
|
||||
and inventory_quantity = #{inventoryQuantity}
|
||||
</if>
|
||||
<if test="warningAnalyzeNumber != null and warningAnalyzeNumber != ''">
|
||||
and warning_analyze_number = #{warningAnalyzeNumber}
|
||||
</if>
|
||||
<if test="warningAnalyzeType != null ">
|
||||
and warning_analyze_type = #{warningAnalyzeType}
|
||||
</if>
|
||||
<if test="warningStandardQuantity != null ">
|
||||
and warning_standard_quantity = #{warningStandardQuantity}
|
||||
</if>
|
||||
<if test="warningTime != null ">
|
||||
and warning_time = #{warningTime}
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.inventoryWarningAnalyze.repository.todo.InventoryWarningAnalyzeDO" resultMap="InventoryWarningAnalyzeResult">
|
||||
<include refid="selectInventoryWarningAnalyzePo"/>
|
||||
<include refid="selectInventoryWarningAnalyzePo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,155 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.investigationManage.repository.mapper.InvestigationManageMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.investigationManage.repository.po.InvestigationManagePO" id="InvestigationManageResult">
|
||||
<result property="investigationManageId" column="investigation_manage_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="investigationNumber" column="investigation_number" />
|
||||
<result property="oldInvestigationNumber" column="old_investigation_number" />
|
||||
<result property="investigationStatus" column="investigation_status" />
|
||||
<result property="investigationRange" column="investigation_range" />
|
||||
<result property="investigationType" column="investigation_type" />
|
||||
<result property="investigationMethod" column="investigation_method" />
|
||||
<result property="investigationFrequency" column="investigation_frequency" />
|
||||
<result property="differentNumber" column="different_number" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="auditStatus" column="audit_status" />
|
||||
<result property="auditRemark" column="audit_remark" />
|
||||
<result property="auditBy" column="audit_by" />
|
||||
<result property="auditByName" column="audit_by_name" />
|
||||
<result property="auditTime" column="audit_time" />
|
||||
<result property="taskDistribution" column="task_distribution" />
|
||||
<result property="taskDistributionTime" column="task_distribution_time" />
|
||||
<result property="operatorsBy" column="operators_by" />
|
||||
<result property="operatorsName" column="operators_name" />
|
||||
<result property="nullify" column="nullify" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInvestigationManagePo">
|
||||
select investigation_manage_id, organization_id, organization_name, top_organization_id, investigation_number, old_investigation_number,investigation_status, investigation_range, investigation_type, investigation_method, investigation_frequency, different_number, warehouse_id, warehouse_code, warehouse_name, audit_status, audit_remark, audit_by, audit_by_name, audit_time, task_distribution, task_distribution_time, operators_by, operators_name, nullify, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from investigation_manage
|
||||
</sql>
|
||||
|
||||
<sql id="selectInvestigationManagePo1">
|
||||
<where>
|
||||
and del_flag = 1
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="investigationNumber != null and investigationNumber != ''">
|
||||
and investigation_number like concat('%',#{investigationNumber},'%')
|
||||
</if><if test="oldInvestigationNumber != null and oldInvestigationNumber != ''">
|
||||
and old_investigation_number = concat('%',#{oldInvestigationNumber},'%')
|
||||
</if>
|
||||
<if test="investigationStatus != null ">
|
||||
and investigation_status = #{investigationStatus}
|
||||
</if>
|
||||
<if test="investigationRange != null and investigationRange != ''">
|
||||
and investigation_range = #{investigationRange}
|
||||
</if>
|
||||
<if test="investigationType != null ">
|
||||
and investigation_type = #{investigationType}
|
||||
</if>
|
||||
<if test="investigationMethod != null ">
|
||||
and investigation_method = #{investigationMethod}
|
||||
</if>
|
||||
<if test="investigationFrequency != null ">
|
||||
and investigation_frequency = #{investigationFrequency}
|
||||
</if>
|
||||
<if test="differentNumber != null and differentNumber != ''">
|
||||
and different_number = #{differentNumber}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="auditStatus != null ">
|
||||
and audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="auditRemark != null and auditRemark != ''">
|
||||
and audit_remark = #{auditRemark}
|
||||
</if>
|
||||
<if test="auditBy != null ">
|
||||
and audit_by = #{auditBy}
|
||||
</if>
|
||||
<if test="auditByName != null and auditByName != ''">
|
||||
and audit_by_name like concat('%', #{auditByName}, '%')
|
||||
</if>
|
||||
<if test="auditTime != null ">
|
||||
and audit_time = #{auditTime}
|
||||
</if>
|
||||
<if test="taskDistribution != null ">
|
||||
and task_distribution = #{taskDistribution}
|
||||
</if>
|
||||
<if test="taskDistributionTime != null ">
|
||||
and task_distribution_time = #{taskDistributionTime}
|
||||
</if>
|
||||
<if test="operatorsBy != null ">
|
||||
and operators_by = #{operatorsBy}
|
||||
</if>
|
||||
<if test="operatorsName != null and operatorsName != ''">
|
||||
and operators_name like concat('%', #{operatorsName}, '%')
|
||||
</if>
|
||||
<if test="nullify != null ">
|
||||
and nullify = #{nullify}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="createStartTime != null">
|
||||
and date_format(create_time,'%Y-%m-%d %H:%i:%s') <![CDATA[>=]]> #{createStartTime}
|
||||
</if>
|
||||
<if test="createEndTime != null">
|
||||
and date_format(create_time,'%Y-%m-%d %H:%i:%s') <![CDATA[<=]]> #{createEndTime}
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
and remark like concat('%',#{remark},'%')
|
||||
</if>
|
||||
<if test="investigationManageIds != null and investigationManageIds.size > 0 ">
|
||||
and investigation_manage_id in
|
||||
<foreach collection="investigationManageIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.investigationManage.repository.todo.InvestigationManageDO" resultMap="InvestigationManageResult">
|
||||
<include refid="selectInvestigationManagePo"/>
|
||||
<include refid="selectInvestigationManagePo1"/>
|
||||
order by create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
+229
@@ -0,0 +1,229 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.investigetionManageDetail.repository.mapper.InvestigetionManageDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.investigetionManageDetail.repository.po.InvestigetionManageDetailPO" id="InvestigetionManageDetailResult">
|
||||
<result property="investigationManageDetailId" column="investigation_manage_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="investigationNumber" column="investigation_number" />
|
||||
<result property="investigationStatus" column="investigation_status" />
|
||||
<result property="investigationRange" column="investigation_range" />
|
||||
<result property="investigationType" column="investigation_type" />
|
||||
<result property="investigationMethod" column="investigation_method" />
|
||||
<result property="investigationFrequency" column="investigation_frequency" />
|
||||
<result property="differentNumber" column="different_number" />
|
||||
<result property="investigationQuantity" column="investigation_quantity" />
|
||||
<result property="differentQuantity" column="different_quantity" />
|
||||
<result property="investigationResult" column="investigation_result" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialInventoryId" column="material_inventory_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="inventoryQuantity" column="inventory_quantity" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="containerId" column="container_id" />
|
||||
<result property="containerCode" column="container_code" />
|
||||
<result property="containerType" column="container_type" />
|
||||
<result property="containerTypeName" column="container_type_name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="materialStatusCode" column="material_status_code" />
|
||||
<result property="materialStatusName" column="material_status_name" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectInvestigetionManageDetailPo">
|
||||
select investigation_manage_detail_id, organization_id, organization_name, top_organization_id, investigation_number, investigation_status, investigation_range, investigation_type, investigation_method, investigation_frequency, different_number, investigation_quantity, different_quantity, material_inventory_id,investigation_result, material_base_info_id, material_code, material_name, bar_code, inventory_quantity, quantity, warehouse_id, warehouse_code, warehouse_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, pack_id, pack_code, pack_name, pack_detail_id, unit_code, unit_name, unit_number, material_warehouse_control_id, serial_number_manage, container_id, container_code, container_type, container_type_name, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag,
|
||||
material_status_code , material_status_name from investigetion_manage_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectInvestigetionManageDetailPo1">
|
||||
<where>
|
||||
and del_flag = 1
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="investigationNumber != null and investigationNumber != ''">
|
||||
and investigation_number = #{investigationNumber}
|
||||
</if>
|
||||
<if test="investigationStatus != null ">
|
||||
and investigation_status = #{investigationStatus}
|
||||
</if>
|
||||
<if test="investigationRange != null and investigationRange != ''">
|
||||
and investigation_range = #{investigationRange}
|
||||
</if>
|
||||
<if test="investigationType != null ">
|
||||
and investigation_type = #{investigationType}
|
||||
</if>
|
||||
<if test="investigationMethod != null ">
|
||||
and investigation_method = #{investigationMethod}
|
||||
</if>
|
||||
<if test="investigationFrequency != null ">
|
||||
and investigation_frequency = #{investigationFrequency}
|
||||
</if>
|
||||
<if test="differentNumber != null and differentNumber != ''">
|
||||
and different_number = #{differentNumber}
|
||||
</if>
|
||||
<if test="investigationQuantity != null ">
|
||||
and investigation_quantity = #{investigationQuantity}
|
||||
</if>
|
||||
<if test="differentQuantity != null ">
|
||||
and different_quantity = #{differentQuantity}
|
||||
</if>
|
||||
<if test="investigationResult != null ">
|
||||
and investigation_result = #{investigationResult}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="inventoryQuantity != null ">
|
||||
and inventory_quantity = #{inventoryQuantity}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null ">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="containerId != null ">
|
||||
and container_id = #{containerId}
|
||||
</if>
|
||||
<if test="containerCode != null and containerCode != ''">
|
||||
and container_code = #{containerCode}
|
||||
</if>
|
||||
<if test="containerType != null and containerType != ''">
|
||||
and container_type = #{containerType}
|
||||
</if>
|
||||
<if test="containerTypeName != null and containerTypeName != ''">
|
||||
and container_type_name like concat('%', #{containerTypeName}, '%')
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
and remark like concat('%',#{remark},'%')
|
||||
</if>
|
||||
<if test="materialStatusCode != null and materialStatusCode != ''">
|
||||
and material_status_code = #{materialStatusCode}
|
||||
</if>
|
||||
<if test="materialStatusName != null and materialStatusName != ''">
|
||||
and material_status_name like concat('%', #{materialStatusName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
<update id="updateCheck">
|
||||
update investigation_manage set investigation_status = 2,audit_status = #{auditStatus}
|
||||
where investigation_number = #{investigationNumber}
|
||||
</update>
|
||||
<update id="updateCheckDetail">
|
||||
update investigetion_manage_detail set investigation_status = 2
|
||||
where investigation_number = #{investigationNumber}
|
||||
</update>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.investigetionManageDetail.repository.todo.InvestigetionManageDetailDO" resultMap="InvestigetionManageDetailResult">
|
||||
<include refid="selectInvestigetionManageDetailPo"/>
|
||||
<include refid="selectInvestigetionManageDetailPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.materialBarCode.repository.mapper.MaterialBarCodeMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialBarCode.repository.po.MaterialBarCodePO" id="MaterialBarCodeResult">
|
||||
<result property="materialBarCodeId" column="material_bar_code_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialBarCodePo">
|
||||
select material_bar_code_id, organization_id, organization_name, top_organization_id, material_base_info_id, bar_code, pack_id, pack_code, pack_name, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from material_bar_code
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialBarCodePo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.materialBarCode.repository.todo.MaterialBarCodeDO" resultMap="MaterialBarCodeResult">
|
||||
<include refid="selectMaterialBarCodePo"/>
|
||||
<include refid="selectMaterialBarCodePo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,226 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.materialBaseInfo.repository.mapper.MaterialBaseInfoMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialBaseInfo.repository.po.MaterialBaseInfoPO" id="MaterialBaseInfoResult">
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperCode" column="shipper_code" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="materialClassifyCode" column="material_classify_code" typeHandler="com.mhd.common.core.handler.ListTypeHandler" />
|
||||
<result property="materialClassifyName" column="material_classify_name" typeHandler="com.mhd.common.core.handler.ListTypeHandler" />
|
||||
<result property="materialType" column="material_type" />
|
||||
<result property="materialTypeName" column="material_type_name" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="brandId" column="brand_id" />
|
||||
<result property="brandCode" column="brand_code" />
|
||||
<result property="brandName" column="brand_name" />
|
||||
<result property="shelfLife" column="shelf_life" />
|
||||
<result property="weightLimit" column="weight_limit" />
|
||||
<result property="volumeLimit" column="volume_limit" />
|
||||
<result property="materialShape" column="material_shape" />
|
||||
<result property="materialShapeName" column="material_shape_name" />
|
||||
<result property="materialSize" column="material_size" />
|
||||
<result property="materialLength" column="material_length" />
|
||||
<result property="materialWidth" column="material_width" />
|
||||
<result property="materialHeight" column="material_height" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="nullify" column="nullify" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="common" column="common" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialBaseInfoPo">
|
||||
select material_base_info_id, organization_id, organization_name, top_organization_id, shipper_id, shipper_code, shipper_name, material_code, material_name, bar_code, material_classify_code, material_classify_name, material_type, material_type_name, pack_id, pack_code, pack_name, unit_code, unit_name, brand_id, brand_code, brand_name, shelf_life, weight_limit, volume_limit, material_shape, material_shape_name, material_size, material_length, material_width, material_height, remark, nullify, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag,common from material_base_info
|
||||
</sql>
|
||||
|
||||
<sql id="JoinMaterialBaseInfoPo">
|
||||
,b.shipper_id, b.shipper_code, b.shipper_name, b.material_code, b.material_name, b.bar_code, b.material_classify_code, b.material_classify_name,
|
||||
b.material_type, b.material_type_name, b.common
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialBaseInfoPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperCode != null and shipperCode != ''">
|
||||
and shipper_code like concat('%', #{shipperCode}, '%')
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="materialClassifyCode != null and materialClassifyCode != ''">
|
||||
and material_classify_code = #{materialClassifyCode}
|
||||
</if>
|
||||
<if test="materialClassifyName != null and materialClassifyName != ''">
|
||||
and material_classify_name like concat('%', #{materialClassifyName}, '%')
|
||||
</if>
|
||||
<if test="materialType != null and materialType != ''">
|
||||
and material_type = #{materialType}
|
||||
</if>
|
||||
<if test="materialTypeName != null and materialTypeName != ''">
|
||||
and material_type_name like concat('%', #{materialTypeName}, '%')
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="brandId != null ">
|
||||
and brand_id = #{brandId}
|
||||
</if>
|
||||
<if test="brandCode != null and brandCode != ''">
|
||||
and brand_code = #{brandCode}
|
||||
</if>
|
||||
<if test="brandName != null and brandName != ''">
|
||||
and brand_name like concat('%', #{brandName}, '%')
|
||||
</if>
|
||||
<if test="shelfLife != null ">
|
||||
and shelf_life = #{shelfLife}
|
||||
</if>
|
||||
<if test="weightLimit != null ">
|
||||
and weight_limit = #{weightLimit}
|
||||
</if>
|
||||
<if test="volumeLimit != null ">
|
||||
and volume_limit = #{volumeLimit}
|
||||
</if>
|
||||
<if test="materialShape != null and materialShape != ''">
|
||||
and material_shape = #{materialShape}
|
||||
</if>
|
||||
<if test="materialShapeName != null and materialShapeName != ''">
|
||||
and material_shape_name like concat('%', #{materialShapeName}, '%')
|
||||
</if>
|
||||
<if test="materialSize != null and materialSize != ''">
|
||||
and material_size = #{materialSize}
|
||||
</if>
|
||||
<if test="materialLength != null ">
|
||||
and material_length = #{materialLength}
|
||||
</if>
|
||||
<if test="materialWidth != null ">
|
||||
and material_width = #{materialWidth}
|
||||
</if>
|
||||
<if test="materialHeight != null ">
|
||||
and material_height = #{materialHeight}
|
||||
</if>
|
||||
<if test="nullify != null ">
|
||||
and nullify = #{nullify}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="compoundOrQuery != null and compoundOrQuery != ''">
|
||||
and ( instr(material_name, #{compoundOrQuery}) > 0
|
||||
or
|
||||
instr(material_code, #{compoundOrQuery}) > 0
|
||||
or
|
||||
instr(bar_code, #{compoundOrQuery}) > 0
|
||||
)
|
||||
</if>
|
||||
<!-- 传 1:只查公共 , 2:只查自己的 ,3:公共的和自己的 -->
|
||||
<choose>
|
||||
<when test="common != null and (common == 1 or common == 2) "> and common = #{common} </when>
|
||||
<otherwise> and (
|
||||
1 = 1
|
||||
or common = 1 )</otherwise>
|
||||
</choose>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<sql id="JoinMaterialBaseInfoPoWhere">
|
||||
<if test="shipperId != null ">
|
||||
and shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperCode != null and shipperCode != ''">
|
||||
and shipper_code like concat('%', #{shipperCode}, '%')
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="materialClassifyCode != null and materialClassifyCode != ''">
|
||||
and material_classify_code = #{materialClassifyCode}
|
||||
</if>
|
||||
<if test="materialClassifyName != null and materialClassifyName != ''">
|
||||
and material_classify_name like concat('%', #{materialClassifyName}, '%')
|
||||
</if>
|
||||
<if test="materialType != null and materialType != ''">
|
||||
and material_type = #{materialType}
|
||||
</if>
|
||||
<if test="materialTypeName != null and materialTypeName != ''">
|
||||
and material_type_name like concat('%', #{materialTypeName}, '%')
|
||||
</if>
|
||||
<if test="shipperInfo != null and shipperInfo != ''">
|
||||
and (shipper_code like concat('%', #{shipperInfo}, '%') or shipper_name like concat('%', #{shipperInfo}, '%'))
|
||||
</if>
|
||||
<if test="materialInfo != null and materialInfo != ''">
|
||||
and (material_code = #{materialInfo} or material_name like concat('%', #{materialInfo}, '%') or bar_code = #{materialInfo})
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.materialBaseInfo.repository.todo.MaterialBaseInfoDO" resultMap="MaterialBaseInfoResult">
|
||||
<include refid="selectMaterialBaseInfoPo"/>
|
||||
<include refid="selectMaterialBaseInfoPo1"/>
|
||||
</select>
|
||||
|
||||
<select id="selectOneByID" parameterType="java.lang.Long" resultMap="MaterialBaseInfoResult">
|
||||
select material_code, material_name, pack_id, pack_code, pack_name, unit_code, unit_name, shipper_id, shipper_name, shipper_code, bar_code, unit_number from material_base_info
|
||||
where material_base_info_id = #{materialBaseInfoId}
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.materialCommon.repository.mapper.MaterialCommonMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialCommon.repository.po.MaterialCommonPO" id="MaterialCommonResult">
|
||||
<result property="materialCommonId" column="material_common_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="temperatureControl" column="temperature_control" />
|
||||
<result property="minTemperature" column="min_temperature" />
|
||||
<result property="maxTemperature" column="max_temperature" />
|
||||
<result property="warmLayer" column="warm_layer" />
|
||||
<result property="warmLayerName" column="warm_layer_name" />
|
||||
<result property="flashPoint" column="flash_point" />
|
||||
<result property="ignitionPoint" column="ignition_point" />
|
||||
<result property="dangerGoods" column="danger_goods" />
|
||||
<result property="dangerLevel" column="danger_level" />
|
||||
<result property="dangerLevelName" column="danger_level_name" />
|
||||
<result property="productionTime" column="production_time" />
|
||||
<result property="expirationTime" column="expiration_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialCommonPo">
|
||||
select material_common_id, organization_id, organization_name, top_organization_id, material_base_info_id, temperature_control, min_temperature, max_temperature, warm_layer, warm_layer_name, flash_point, ignition_point, danger_goods, danger_level, danger_level_name, production_time, expiration_time, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from material_common
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialCommonPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="temperatureControl != null ">
|
||||
and temperature_control = #{temperatureControl}
|
||||
</if>
|
||||
<if test="minTemperature != null ">
|
||||
and min_temperature = #{minTemperature}
|
||||
</if>
|
||||
<if test="maxTemperature != null ">
|
||||
and max_temperature = #{maxTemperature}
|
||||
</if>
|
||||
<if test="warmLayer != null and warmLayer != ''">
|
||||
and warm_layer = #{warmLayer}
|
||||
</if>
|
||||
<if test="warmLayerName != null and warmLayerName != ''">
|
||||
and warm_layer_name like concat('%', #{warmLayerName}, '%')
|
||||
</if>
|
||||
<if test="flashPoint != null and flashPoint != ''">
|
||||
and flash_point = #{flashPoint}
|
||||
</if>
|
||||
<if test="ignitionPoint != null and ignitionPoint != ''">
|
||||
and ignition_point = #{ignitionPoint}
|
||||
</if>
|
||||
<if test="dangerGoods != null ">
|
||||
and danger_goods = #{dangerGoods}
|
||||
</if>
|
||||
<if test="dangerLevel != null and dangerLevel != ''">
|
||||
and danger_level = #{dangerLevel}
|
||||
</if>
|
||||
<if test="dangerLevelName != null and dangerLevelName != ''">
|
||||
and danger_level_name like concat('%', #{dangerLevelName}, '%')
|
||||
</if>
|
||||
<if test="productionTime != null ">
|
||||
and production_time = #{productionTime}
|
||||
</if>
|
||||
<if test="expirationTime != null ">
|
||||
and expiration_time = #{expirationTime}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.materialCommon.repository.todo.MaterialCommonDO" resultMap="MaterialCommonResult">
|
||||
<include refid="selectMaterialCommonPo"/>
|
||||
<include refid="selectMaterialCommonPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,142 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.materialGoodsRule.repository.mapper.MaterialGoodsRuleMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialGoodsRule.repository.po.MaterialGoodsRulePO" id="MaterialGoodsRuleResult">
|
||||
<result property="materialGoodsRuleId" column="material_goods_rule_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="batchCode" column="batch_code" />
|
||||
<result property="batchName" column="batch_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="ruleId" column="rule_id" />
|
||||
<result property="ruleCode" column="rule_code" />
|
||||
<result property="ruleName" column="rule_name" />
|
||||
<result property="specifyRuleId" column="specify_rule_id" />
|
||||
<result property="specifyRuleCode" column="specify_rule_code" />
|
||||
<result property="specifyRuleName" column="specify_rule_name" />
|
||||
<result property="turnoverRuleId" column="turnover_rule_id" />
|
||||
<result property="turnoverRuleCode" column="turnover_rule_code" />
|
||||
<result property="turnoverRuleName" column="turnover_rule_name" />
|
||||
<result property="distributeRuleId" column="distribute_rule_id" />
|
||||
<result property="distributeRuleCode" column="distribute_rule_code" />
|
||||
<result property="distributeRuleName" column="distribute_rule_name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialGoodsRulePo">
|
||||
select material_goods_rule_id, organization_id, organization_name, top_organization_id, material_base_info_id, brand_id, batch_code, batch_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, rule_id, rule_code, rule_name, specify_rule_id, specify_rule_code, specify_rule_name, turnover_rule_id, turnover_rule_code, turnover_rule_name, distribute_rule_id, distribute_rule_code, distribute_rule_name, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from material_goods_rule
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialGoodsRulePo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="brandId != null ">
|
||||
and brand_id = #{brandId}
|
||||
</if>
|
||||
<if test="batchCode != null and batchCode != ''">
|
||||
and batch_code = #{batchCode}
|
||||
</if>
|
||||
<if test="batchName != null and batchName != ''">
|
||||
and batch_name like concat('%', #{batchName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="ruleId != null ">
|
||||
and rule_id = #{ruleId}
|
||||
</if>
|
||||
<if test="ruleCode != null and ruleCode != ''">
|
||||
and rule_code = #{ruleCode}
|
||||
</if>
|
||||
<if test="ruleName != null and ruleName != ''">
|
||||
and rule_name like concat('%', #{ruleName}, '%')
|
||||
</if>
|
||||
<if test="specifyRuleId != null ">
|
||||
and specify_rule_id = #{specifyRuleId}
|
||||
</if>
|
||||
<if test="specifyRuleCode != null and specifyRuleCode != ''">
|
||||
and specify_rule_code = #{specifyRuleCode}
|
||||
</if>
|
||||
<if test="specifyRuleName != null and specifyRuleName != ''">
|
||||
and specify_rule_name like concat('%', #{specifyRuleName}, '%')
|
||||
</if>
|
||||
<if test="turnoverRuleId != null ">
|
||||
and turnover_rule_id = #{turnoverRuleId}
|
||||
</if>
|
||||
<if test="turnoverRuleCode != null and turnoverRuleCode != ''">
|
||||
and turnover_rule_code = #{turnoverRuleCode}
|
||||
</if>
|
||||
<if test="turnoverRuleName != null and turnoverRuleName != ''">
|
||||
and turnover_rule_name like concat('%', #{turnoverRuleName}, '%')
|
||||
</if>
|
||||
<if test="distributeRuleId != null ">
|
||||
and distribute_rule_id = #{distributeRuleId}
|
||||
</if>
|
||||
<if test="distributeRuleCode != null and distributeRuleCode != ''">
|
||||
and distribute_rule_code = #{distributeRuleCode}
|
||||
</if>
|
||||
<if test="distributeRuleName != null and distributeRuleName != ''">
|
||||
and distribute_rule_name like concat('%', #{distributeRuleName}, '%')
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.materialGoodsRule.repository.todo.MaterialGoodsRuleDO" resultMap="MaterialGoodsRuleResult">
|
||||
<include refid="selectMaterialGoodsRulePo"/>
|
||||
<include refid="selectMaterialGoodsRulePo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,601 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.materialInventory.repository.mapper.MaterialInventoryMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialInventory.repository.po.MaterialInventoryPO" id="MaterialInventoryResult">
|
||||
<result property="materialInventoryId" column="material_inventory_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
<result property="materialStatusCode" column="material_status_code" />
|
||||
<result property="materialStatusName" column="material_status_name" />
|
||||
<result property="containerId" column="container_id" />
|
||||
<result property="containerCode" column="container_code" />
|
||||
<result property="containerType" column="container_type" />
|
||||
<result property="containerTypeName" column="container_type_name" />
|
||||
<result property="freezeQuantity" column="freeze_quantity" />
|
||||
|
||||
<result property="inventoryQuantity" column="inventory_quantity" />
|
||||
<result property="allocationQuantity" column="allocation_quantity" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="isAble" column="is_able" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialInventoryPo">
|
||||
a.material_inventory_id, a.organization_id, a.organization_name, a.top_organization_id, a.warehouse_id, a.warehouse_code, a.warehouse_name,
|
||||
a.storage_section_id, a.storage_code, a.storage_name, a.storage_location_id, a.storage_location_code, a.storage_location_name, a.material_base_info_id,a.material_detail_id,
|
||||
a.batch_number,a.material_status_code,a.material_status_name,a.container_id,a.container_code,a.container_type,a.container_type_name,IFNULL(a.freeze_quantity,0) freeze_quantity,a.is_able,
|
||||
IFNULL(a.inventory_quantity,0) inventory_quantity, IFNULL(a.allocation_quantity,0) allocation_quantity, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialInventoryPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and a.storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and a.storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and a.storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and a.storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and a.storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and a.storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and a.material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialDetailId != null ">
|
||||
and a.material_detail_id, = #{materialDetailId}
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber != ''">
|
||||
and a.batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="materialStatusCode != null and materialStatusCode != ''">
|
||||
and a.material_status_code like concat('%', #{materialStatusCode}, '%')
|
||||
</if>
|
||||
<if test="materialStatusName != null and materialStatusName != ''">
|
||||
and a.material_status_name like concat('%', #{materialStatusName}, '%')
|
||||
</if>
|
||||
<if test="containerId != null ">
|
||||
and a.container_id = #{containerId}
|
||||
</if>
|
||||
<if test="containerCode != null and containerCode != ''">
|
||||
and a.container_code like concat('%', #{containerCode}, '%')
|
||||
</if>
|
||||
<if test="containerType != null and containerType != ''">
|
||||
and a.container_type like concat('%', #{containerType}, '%')
|
||||
</if>
|
||||
<if test="containerTypeName != null and containerTypeName != ''">
|
||||
and a.container_type_name like concat('%', #{containerTypeName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="inventoryQuantity != null"> and a.inventory_quantity = #{inventoryQuantity} </when>
|
||||
<otherwise> and a.inventory_quantity != 0 </otherwise>
|
||||
</choose>
|
||||
<if test="allocationQuantity != null ">
|
||||
and a.allocation_quantity = #{allocationQuantity}
|
||||
</if>
|
||||
<if test="freezeQuantity != null ">
|
||||
and a.freeze_quantity = #{freezeQuantity}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
<if test="storageInfo != null and storageInfo != ''">
|
||||
and (a.storage_location_code = #{storageInfo} or material_code = #{storageInfo} or material_name like concat('%', #{storageInfo}, '%') or bar_code = #{storageInfo})
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.materialInventory.repository.todo.MaterialInventoryDO" resultMap="MaterialInventoryResult">
|
||||
select
|
||||
<include refid="selectMaterialInventoryPo"/>
|
||||
<include refid="com.mhd.wms.domain.materialBaseInfo.repository.mapper.MaterialBaseInfoMapper.JoinMaterialBaseInfoPo"/>
|
||||
from material_inventory a
|
||||
left join material_base_info b on a.material_base_info_id = b.material_base_info_id
|
||||
<where>
|
||||
<include refid="selectMaterialInventoryPo1"/>
|
||||
<include refid="com.mhd.wms.domain.materialBaseInfo.repository.mapper.MaterialBaseInfoMapper.JoinMaterialBaseInfoPoWhere"/>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialInventory.repository.po.MaterialInventoryQueryListPO" id="MaterialQueryListResult">
|
||||
<result property="materialInventoryId" column="material_inventory_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="inventoryQuantity" column="inventory_quantity" />
|
||||
<result property="allocationQuantity" column="allocation_quantity" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="materialQueryListByGroup">
|
||||
<choose>
|
||||
<when test="queryType != null and queryType == 1">
|
||||
group by b.shipper_id
|
||||
order by b.shipper_id
|
||||
</when>
|
||||
<when test="queryType != null and queryType == 2">
|
||||
group by b.material_base_info_id
|
||||
order by b.material_base_info_id
|
||||
</when>
|
||||
<when test="queryType != null and queryType == 3">
|
||||
group by a.batch_number
|
||||
order by b.material_name,a.batch_number
|
||||
</when>
|
||||
<when test="queryType != null and queryType == 4">
|
||||
group by a.storage_location_id
|
||||
order by a.storage_location_id
|
||||
</when>
|
||||
<when test="queryType != null and queryType == 5">
|
||||
group by b.material_base_info_id,a.storage_location_id
|
||||
order by b.material_name,a.storage_location_id
|
||||
</when>
|
||||
<when test="queryType != null and queryType == 6">
|
||||
group by a.container_id
|
||||
order by a.container_type_name,b.material_name,a.storage_location_name
|
||||
</when>
|
||||
<otherwise>
|
||||
group by a.material_inventory_id
|
||||
order by b.shipper_name,b.material_name,a.storage_location_name,a.batch_number
|
||||
</otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="materialQueryList"
|
||||
resultType="com.mhd.wms.domain.materialInventory.repository.po.MaterialInventoryQueryListPO" resultMap="MaterialQueryListResult">
|
||||
select
|
||||
<include refid="selectMaterialInventoryPo"/>
|
||||
<include refid="com.mhd.wms.domain.materialBaseInfo.repository.mapper.MaterialBaseInfoMapper.JoinMaterialBaseInfoPo"/>
|
||||
from material_inventory a
|
||||
left join material_base_info b on a.material_base_info_id = b.material_base_info_id
|
||||
<where>
|
||||
<include refid="selectMaterialInventoryPo1"/>
|
||||
<include refid="com.mhd.wms.domain.materialBaseInfo.repository.mapper.MaterialBaseInfoMapper.JoinMaterialBaseInfoPoWhere"/>
|
||||
</where>
|
||||
<include refid="materialQueryListByGroup"/>
|
||||
</select>
|
||||
|
||||
<update id="batchAddInventoryQuantity" parameterType="com.mhd.wms.domain.materialInventory.repository.todo.MaterialInventoryParentDO" >
|
||||
UPDATE material_inventory
|
||||
<set>
|
||||
<trim prefix="inventory_quantity = CASE material_inventory_id" suffix="END,">
|
||||
<foreach collection="materialInventoryDOList" item="item" index="index">
|
||||
WHEN #{item.materialInventoryId} THEN inventory_quantity + #{item.inventoryQuantity}
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="allocation_quantity = CASE material_inventory_id" suffix="END,">
|
||||
<foreach collection="materialInventoryDOList" item="item" index="index">
|
||||
WHEN #{item.materialInventoryId} THEN allocation_quantity + #{item.inventoryQuantity}
|
||||
</foreach>
|
||||
</trim>
|
||||
update_by = #{updateBy},
|
||||
update_by_name = #{updateByName},
|
||||
update_time = #{updateTime}
|
||||
</set>
|
||||
WHERE material_inventory_id IN
|
||||
<foreach collection="materialInventoryDOList" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item.materialInventoryId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="batchSubtractInventoryQuantity" parameterType="com.mhd.wms.domain.materialInventory.repository.todo.MaterialInventoryParentDO" >
|
||||
UPDATE material_inventory
|
||||
<set>
|
||||
<trim prefix="inventory_quantity = CASE material_inventory_id" suffix="END,">
|
||||
<foreach collection="materialInventoryDOList" item="item" index="index">
|
||||
WHEN #{item.materialInventoryId} THEN GREATEST(inventory_quantity - #{item.inventoryQuantity}, 0)
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="allocation_quantity = CASE material_inventory_id" suffix="END,">
|
||||
<foreach collection="materialInventoryDOList" item="item" index="index">
|
||||
WHEN #{item.materialInventoryId} THEN GREATEST( allocation_quantity - #{item.inventoryQuantity}, 0)
|
||||
</foreach>
|
||||
</trim>
|
||||
update_by = #{updateBy},
|
||||
update_by_name = #{updateByName},
|
||||
update_time = #{updateTime}
|
||||
</set>
|
||||
WHERE material_inventory_id IN
|
||||
<foreach collection="materialInventoryDOList" item="item" index="index" separator="," open="(" close=")" >
|
||||
#{item.materialInventoryId}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<update id="batchSubtractAllocationQuantity" parameterType="com.mhd.wms.domain.materialInventory.repository.todo.MaterialInventoryParentDO" >
|
||||
UPDATE material_inventory
|
||||
<set>
|
||||
allocation_quantity = CASE material_inventory_id
|
||||
<foreach collection="materialInventoryDOList" item="item" index="index" separator=",">
|
||||
WHEN #{item.materialInventoryId} THEN GREATEST(allocation_quantity - #{item.inventoryQuantity}, 0)
|
||||
</foreach>
|
||||
END,
|
||||
update_by = #{updateBy},
|
||||
update_by_name = #{updateByName},
|
||||
update_time = #{updateTime}
|
||||
</set>
|
||||
WHERE material_inventory_id IN
|
||||
<foreach collection="materialInventoryDOList" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item.materialInventoryId}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="updateMaterial">
|
||||
update material_inventory
|
||||
set inventory_quantity = #{inventoryQuantity},allocation_quantity = #{allocationQuantity}
|
||||
where material_inventory_id = #{materialInventoryId}
|
||||
</update>
|
||||
<update id="updatePanDian">
|
||||
update material_inventory
|
||||
set inventory_quantity = #{inventoryQuantity}
|
||||
where storage_location_id = #{storageLocationId}
|
||||
and material_baseInfo_id = #{materialBaseInfoId}
|
||||
and container_id = #{containerId}
|
||||
</update>
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.statementStatistics.po.ImmediateInventoryPO" id="queryImmediateInventoryListResult">
|
||||
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="inventoryQuantity" column="inventory_quantity" />
|
||||
<result property="allocationQuantity" column="allocation_quantity" />
|
||||
<result property="freezeQuantity" column="freeze_quantity" />
|
||||
<result property="receivedQuantity" column="received_quantity" />
|
||||
<result property="shelvesQuantity" column="shelves_quantity" />
|
||||
<result property="pickQuantity" column="pick_quantity" />
|
||||
</resultMap>
|
||||
<select id="queryImmediateInventoryList" parameterType="com.mhd.wms.domain.statementStatistics.todo.ImmediateInventoryDO"
|
||||
resultMap="queryImmediateInventoryListResult">
|
||||
select
|
||||
a.warehouse_id,
|
||||
a.warehouse_name,
|
||||
b.shipper_name,
|
||||
b.material_name,
|
||||
b.material_code,
|
||||
b.bar_code,
|
||||
sum(a.inventory_quantity) inventory_quantity,
|
||||
sum(a.allocation_quantity) allocation_quantity,
|
||||
sum(a.freeze_quantity) freeze_quantity,
|
||||
ifnull(
|
||||
(
|
||||
SELECT
|
||||
sum( c.receipt_quantity )
|
||||
FROM
|
||||
receipt_material_detail c
|
||||
LEFT JOIN stock_receipt_order d ON c.receipt_order_number = d.receipt_order_number
|
||||
AND d.del_flag = 1
|
||||
LEFT JOIN stock_in_order e ON d.in_order_number = e.in_order_number
|
||||
WHERE
|
||||
c.del_flag = 1
|
||||
AND e.warehouse_id = a.warehouse_id
|
||||
AND e.shipper_id = b.shipper_id
|
||||
AND c.material_base_info_id = b.material_base_info_id
|
||||
),
|
||||
0
|
||||
) received_quantity,
|
||||
ifnull(
|
||||
(
|
||||
SELECT
|
||||
sum( c.shelves_quantity )
|
||||
FROM
|
||||
shelf_material_detail c
|
||||
LEFT JOIN stock_shelf_order d ON c.shelf_order_number = d.shelf_order_number
|
||||
AND d.del_flag = 1
|
||||
LEFT JOIN stock_in_order e ON d.in_order_number = e.in_order_number
|
||||
WHERE
|
||||
c.del_flag = 1
|
||||
AND e.warehouse_id = a.warehouse_id
|
||||
AND e.shipper_id = b.shipper_id
|
||||
AND c.material_base_info_id = b.material_base_info_id
|
||||
),
|
||||
0
|
||||
) shelves_quantity,
|
||||
ifnull(
|
||||
(
|
||||
SELECT
|
||||
sum( c.picking_quantity )
|
||||
FROM
|
||||
picking_material_detail c
|
||||
LEFT JOIN picking_order d ON c.picking_order_number = d.order_number
|
||||
WHERE
|
||||
c.del_flag = 1
|
||||
AND d.warehouse_id = a.warehouse_id
|
||||
AND d.shipper_id = b.shipper_id
|
||||
AND c.material_base_info_id = b.material_base_info_id
|
||||
),
|
||||
0
|
||||
) pick_quantity
|
||||
FROM
|
||||
material_inventory a
|
||||
left join material_base_info b on a.material_base_info_id=b.material_base_info_id
|
||||
WHERE
|
||||
a.del_flag = 1
|
||||
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and b.shipper_name = #{shipperName}
|
||||
</if>
|
||||
|
||||
<if test="warehouseId != null and warehouseId != '' ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
|
||||
<if test="warehouseName != null and warehouseName != '' ">
|
||||
and a.warehouse_name = #{warehouseName}
|
||||
</if>
|
||||
|
||||
<if test="materialName != null and materialName != '' ">
|
||||
and b.material_name = #{materialName}
|
||||
</if>
|
||||
|
||||
<if test="barCode != null and barCode != '' ">
|
||||
and b.bar_code = #{barCode}
|
||||
</if>
|
||||
|
||||
<if test="inventoryQuantityStart != null ">
|
||||
and sum(a.inventory_quantity) > #{inventoryQuantityStart}
|
||||
</if>
|
||||
|
||||
<if test="inventoryQuantityEnd != null ">
|
||||
and sum(a.inventory_quantity) lt #{inventoryQuantityEnd}
|
||||
</if>
|
||||
|
||||
<if test="allocationQuantityStart != null ">
|
||||
and sum(a.allocation_quantity) > #{allocationQuantityStart}
|
||||
</if>
|
||||
|
||||
<if test="allocationQuantityEnd != null ">
|
||||
and sum(a.allocation_quantity)lt #{allocationQuantityEnd}
|
||||
</if>
|
||||
|
||||
<if test="freezeQuantityStart != null ">
|
||||
and sum(a.freeze_quantity) > #{freezeQuantityStart}
|
||||
</if>
|
||||
|
||||
<if test="freezeQuantityEnd != null ">
|
||||
and sum(a.freeze_quantity) lt #{freezeQuantityEnd}
|
||||
</if>
|
||||
|
||||
<if test="receivedQuantityStart != null ">
|
||||
and ifnull(
|
||||
(
|
||||
SELECT
|
||||
sum( c.receipt_quantity )
|
||||
FROM
|
||||
receipt_material_detail c
|
||||
LEFT JOIN stock_receipt_order d ON c.receipt_order_number = d.receipt_order_number
|
||||
AND d.del_flag = 1
|
||||
LEFT JOIN stock_in_order e ON d.in_order_number = e.in_order_number
|
||||
WHERE
|
||||
c.del_flag = 1
|
||||
AND e.warehouse_id = a.warehouse_id
|
||||
AND e.shipper_id = b.shipper_id
|
||||
AND c.material_base_info_id = b.material_base_info_id
|
||||
),
|
||||
0
|
||||
)> #{receivedQuantityStart}
|
||||
</if>
|
||||
|
||||
<if test="receivedQuantityEnd != null ">
|
||||
and ifnull(
|
||||
(
|
||||
SELECT
|
||||
sum( c.receipt_quantity )
|
||||
FROM
|
||||
receipt_material_detail c
|
||||
LEFT JOIN stock_receipt_order d ON c.receipt_order_number = d.receipt_order_number
|
||||
AND d.del_flag = 1
|
||||
LEFT JOIN stock_in_order e ON d.in_order_number = e.in_order_number
|
||||
WHERE
|
||||
c.del_flag = 1
|
||||
AND e.warehouse_id = a.warehouse_id
|
||||
AND e.shipper_id = b.shipper_id
|
||||
AND c.material_base_info_id = b.material_base_info_id
|
||||
),
|
||||
0
|
||||
) lt #{receivedQuantityEnd}
|
||||
</if>
|
||||
|
||||
<if test="shelvesQuantityStart != null ">
|
||||
and ifnull(
|
||||
(
|
||||
SELECT
|
||||
sum( c.shelves_quantity )
|
||||
FROM
|
||||
shelf_material_detail c
|
||||
LEFT JOIN stock_shelf_order d ON c.shelf_order_number = d.shelf_order_number
|
||||
AND d.del_flag = 1
|
||||
LEFT JOIN stock_in_order e ON d.in_order_number = e.in_order_number
|
||||
WHERE
|
||||
c.del_flag = 1
|
||||
AND e.warehouse_id = a.warehouse_id
|
||||
AND e.shipper_id = b.shipper_id
|
||||
AND c.material_base_info_id = b.material_base_info_id
|
||||
),
|
||||
0
|
||||
) > #{shelvesQuantityStart}
|
||||
</if>
|
||||
|
||||
<if test="shelvesQuantityEnd != null ">
|
||||
and ifnull(
|
||||
(
|
||||
SELECT
|
||||
sum( c.shelves_quantity )
|
||||
FROM
|
||||
shelf_material_detail c
|
||||
LEFT JOIN stock_shelf_order d ON c.shelf_order_number = d.shelf_order_number
|
||||
AND d.del_flag = 1
|
||||
LEFT JOIN stock_in_order e ON d.in_order_number = e.in_order_number
|
||||
WHERE
|
||||
c.del_flag = 1
|
||||
AND e.warehouse_id = a.warehouse_id
|
||||
AND e.shipper_id = b.shipper_id
|
||||
AND c.material_base_info_id = b.material_base_info_id
|
||||
),
|
||||
0
|
||||
) lt #{shelvesQuantityEnd}
|
||||
</if>
|
||||
|
||||
<if test="pickQuantityStart != null ">
|
||||
and ifnull(
|
||||
(
|
||||
SELECT
|
||||
sum( c.picking_quantity )
|
||||
FROM
|
||||
picking_material_detail c
|
||||
LEFT JOIN picking_order d ON c.picking_order_number = d.order_number
|
||||
WHERE
|
||||
c.del_flag = 1
|
||||
AND d.warehouse_id = a.warehouse_id
|
||||
AND d.shipper_id = b.shipper_id
|
||||
AND c.material_base_info_id = b.material_base_info_id
|
||||
),
|
||||
0
|
||||
) > #{pickQuantityStart}
|
||||
</if>
|
||||
|
||||
<if test="pickQuantityEnd != null ">
|
||||
and ifnull(
|
||||
(
|
||||
SELECT
|
||||
sum( c.picking_quantity )
|
||||
FROM
|
||||
picking_material_detail c
|
||||
LEFT JOIN picking_order d ON c.picking_order_number = d.order_number
|
||||
WHERE
|
||||
c.del_flag = 1
|
||||
AND d.warehouse_id = a.warehouse_id
|
||||
AND d.shipper_id = b.shipper_id
|
||||
AND c.material_base_info_id = b.material_base_info_id
|
||||
),
|
||||
0
|
||||
) lt #{pickQuantityEnd}
|
||||
</if>
|
||||
|
||||
GROUP BY
|
||||
a.warehouse_id,
|
||||
a.material_base_info_id,
|
||||
b.shipper_id
|
||||
</select>
|
||||
|
||||
<select id="selectOneByWhere" parameterType="com.mhd.wms.domain.statementStatistics.todo.ImmediateInventoryDO"
|
||||
resultMap="MaterialInventoryResult">
|
||||
SELECT
|
||||
sum(a.inventory_quantity) inventory_quantity,
|
||||
a.organization_id,
|
||||
a.organization_name,
|
||||
a.top_organization_id,
|
||||
a.material_base_info_id,
|
||||
a.warehouse_id,
|
||||
a.warehouse_code,
|
||||
a.warehouse_name,
|
||||
a.storage_section_id,
|
||||
a.storage_code,
|
||||
a.storage_name,
|
||||
a.storage_location_id,
|
||||
a.storage_location_code,
|
||||
a.storage_location_name
|
||||
FROM
|
||||
`material_inventory` a
|
||||
LEFT JOIN material_base_info b on a.material_base_info_id = b.material_base_info_id
|
||||
WHERE
|
||||
a.del_flag = 1 AND b.shipper_id = #{shipperId} AND a.top_organization_id = #{topOrganizationId}
|
||||
<if test="materialBaseInfoId != null and materialBaseInfoId != ''">
|
||||
AND a.material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="warehouseId != null and warehouseId != ''">
|
||||
AND a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="storageSectionId != null and storageSectionId != ''">
|
||||
AND a.storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageLocationId != null and storageLocationId != ''">
|
||||
AND a.storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.materialInventoryWarning.repository.mapper.MaterialInventoryWarningMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialInventoryWarning.repository.po.MaterialInventoryWarningPO" id="MaterialInventoryWarningResult">
|
||||
<result property="materialInventoryWarningId" column="material_inventory_warning_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="minTemperature" column="min_temperature" />
|
||||
<result property="maxTemperature" column="max_temperature" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialInventoryWarningPo">
|
||||
select material_inventory_warning_id, organization_id, organization_name, top_organization_id, material_base_info_id, warehouse_id, warehouse_code, warehouse_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, min_temperature, max_temperature, pack_id, pack_code, pack_name, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from material_inventory_warning
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialInventoryWarningPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="minTemperature != null ">
|
||||
and min_temperature = #{minTemperature}
|
||||
</if>
|
||||
<if test="maxTemperature != null ">
|
||||
and max_temperature = #{maxTemperature}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.materialInventoryWarning.repository.todo.MaterialInventoryWarningDO" resultMap="MaterialInventoryWarningResult">
|
||||
<include refid="selectMaterialInventoryWarningPo"/>
|
||||
<include refid="selectMaterialInventoryWarningPo1"/>
|
||||
</select>
|
||||
|
||||
<select id="queryAllList" resultMap="MaterialInventoryWarningResult">
|
||||
<!--这里使用join,物料删除后也不会产生对应的预警信息-->
|
||||
SELECT
|
||||
a.material_inventory_warning_id,
|
||||
a.material_base_info_id,
|
||||
a.warehouse_id,
|
||||
a.storage_section_id,
|
||||
a.storage_location_id,
|
||||
a.min_temperature,
|
||||
a.max_temperature,
|
||||
a.pack_detail_id,
|
||||
a.unit_code,
|
||||
a.`name`,
|
||||
a.top_organization_id,
|
||||
b.shipper_id
|
||||
FROM
|
||||
material_inventory_warning a
|
||||
JOIN material_base_info b ON a.material_base_info_id = b.material_base_info_id
|
||||
AND b.del_flag = 1
|
||||
WHERE
|
||||
a.del_flag = 1
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.materialMoreDetail.repository.mapper.MaterialMoreDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialMoreDetail.repository.po.MaterialMoreDetailPO" id="MaterialMoreDetailResult">
|
||||
<result property="materialMoreDetailId" column="material_more_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialDetailUniqueId" column="material_detail_unique_id" />
|
||||
<result property="batchId" column="batch_id" />
|
||||
<result property="batchDetailId" column="batch_detail_id" />
|
||||
<result property="batchLabels" column="batch_labels" />
|
||||
<result property="inputControl" column="input_control" />
|
||||
<result property="attributeFormat" column="attribute_format" />
|
||||
<result property="attributeOption" column="attribute_option" />
|
||||
<result property="attributeValue" column="attribute_value" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialMoreDetailPo">
|
||||
a.material_more_detail_id, a.organization_id, a.organization_name, a.top_organization_id, a.order_number, a.material_detail_unique_id, a.batch_id, a.batch_detail_id,
|
||||
a.batch_labels, a.input_control, a.attribute_format, a.attribute_option, a.attribute_value, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialMoreDetailPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="orderNumber != null and orderNumber != ''">
|
||||
and a.order_number = #{orderNumber}
|
||||
</if>
|
||||
<if test="materialDetailUniqueId != null ">
|
||||
and a.material_detail_unique_id = #{materialDetailUniqueId}
|
||||
</if>
|
||||
<if test="batchId != null ">
|
||||
and a.batch_id = #{batchId}
|
||||
</if>
|
||||
<if test="batchDetailId != null ">
|
||||
and a.batch_detail_id = #{batchDetailId}
|
||||
</if>
|
||||
<if test="batchLabels != null and batchLabels != ''">
|
||||
and a.batch_labels = #{batchLabels}
|
||||
</if>
|
||||
<if test="inputControl != null ">
|
||||
and a.input_control = #{inputControl}
|
||||
</if>
|
||||
<if test="attributeFormat != null and attributeFormat != ''">
|
||||
and a.attribute_format = #{attributeFormat}
|
||||
</if>
|
||||
<if test="attributeOption != null and attributeOption != ''">
|
||||
and a.attribute_option = #{attributeOption}
|
||||
</if>
|
||||
<if test="attributeValue != null and attributeValue != ''">
|
||||
and a.attribute_value = #{attributeValue}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="orderNumbers != null and orderNumbers.size > 0 ">
|
||||
and a.order_number in
|
||||
<foreach collection="orderNumbers" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.materialMoreDetail.repository.todo.MaterialMoreDetailDO" resultMap="MaterialMoreDetailResult">
|
||||
select
|
||||
<include refid="selectMaterialMoreDetailPo"/>
|
||||
from material_more_detail a
|
||||
<where>
|
||||
<include refid="selectMaterialMoreDetailPo1"/>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.materialWarehouseControl.repository.mapper.MaterialWarehouseControlMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.materialWarehouseControl.repository.po.MaterialWarehouseControlPO" id="MaterialWarehouseControlResult">
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="temperatureControl" column="temperature_control" />
|
||||
<result property="cycleType" column="cycle_type" />
|
||||
<result property="inValidityPeriod" column="in_validity_period" />
|
||||
<result property="outValidityPeriod" column="out_validity_period" />
|
||||
<result property="allowOvercharge" column="allow_overcharge" />
|
||||
<result property="overchargeRatio" column="overcharge_ratio" />
|
||||
<result property="classify" column="classify" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="qualityInspectionManage" column="quality_inspection_manage" />
|
||||
<result property="qualityInspectionStage" column="quality_inspection_stage" />
|
||||
<result property="qualityInspectionRule" column="quality_inspection_rule" />
|
||||
<result property="qualityInspectionTerm" column="quality_inspection_term" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMaterialWarehouseControlPo">
|
||||
select material_warehouse_control_id, organization_id, organization_name, top_organization_id, material_base_info_id, temperature_control, cycle_type, in_validity_period, out_validity_period, allow_overcharge, overcharge_ratio, classify, serial_number_manage, quality_inspection_manage, quality_inspection_stage, quality_inspection_rule, quality_inspection_term, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from material_warehouse_control
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialWarehouseControlPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="temperatureControl != null ">
|
||||
and temperature_control = #{temperatureControl}
|
||||
</if>
|
||||
<if test="cycleType != null ">
|
||||
and cycle_type = #{cycleType}
|
||||
</if>
|
||||
<if test="inValidityPeriod != null ">
|
||||
and in_validity_period = #{inValidityPeriod}
|
||||
</if>
|
||||
<if test="outValidityPeriod != null ">
|
||||
and out_validity_period = #{outValidityPeriod}
|
||||
</if>
|
||||
<if test="allowOvercharge != null ">
|
||||
and allow_overcharge = #{allowOvercharge}
|
||||
</if>
|
||||
<if test="overchargeRatio != null ">
|
||||
and overcharge_ratio = #{overchargeRatio}
|
||||
</if>
|
||||
<if test="classify != null and classify != ''">
|
||||
and classify = #{classify}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="qualityInspectionManage != null ">
|
||||
and quality_inspection_manage = #{qualityInspectionManage}
|
||||
</if>
|
||||
<if test="qualityInspectionStage != null ">
|
||||
and quality_inspection_stage = #{qualityInspectionStage}
|
||||
</if>
|
||||
<if test="qualityInspectionRule != null ">
|
||||
and quality_inspection_rule = #{qualityInspectionRule}
|
||||
</if>
|
||||
<if test="qualityInspectionTerm != null ">
|
||||
and quality_inspection_term = #{qualityInspectionTerm}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.materialWarehouseControl.repository.todo.MaterialWarehouseControlDO" resultMap="MaterialWarehouseControlResult">
|
||||
<include refid="selectMaterialWarehouseControlPo"/>
|
||||
<include refid="selectMaterialWarehouseControlPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,141 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.mobilizeManage.repository.mapper.MobilizeManageMapper">
|
||||
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.mobilizeManage.repository.po.MobilizeManagePO" id="MobilizeManageResult">
|
||||
<result property="mobilizeManageId" column="mobilize_manage_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="mobilizeNumber" column="mobilize_number" />
|
||||
<result property="mobilizeCode" column="mobilize_code" />
|
||||
<result property="mobilizeStatus" column="mobilize_status" />
|
||||
<result property="mobilizeMaterialQuantity" column="mobilize_material_quantity" />
|
||||
<result property="materialTypeQuantity" column="material_type_quantity" />
|
||||
<result property="inWarehouseId" column="in_warehouse_id" />
|
||||
<result property="inWarehouseCode" column="in_warehouse_code" />
|
||||
<result property="inWarehouseName" column="in_warehouse_name" />
|
||||
<result property="auditStatus" column="audit_status" />
|
||||
<result property="auditRemark" column="audit_remark" />
|
||||
<result property="auditBy" column="audit_by" />
|
||||
<result property="auditByName" column="audit_by_name" />
|
||||
<result property="auditTime" column="audit_time" />
|
||||
<result property="taskDistribution" column="task_distribution" />
|
||||
<result property="taskDistributionTime" column="task_distribution_time" />
|
||||
<result property="operatorsBy" column="operators_by" />
|
||||
<result property="operatorsName" column="operators_name" />
|
||||
<result property="nullify" column="nullify" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="outWarehouseId" column="out_warehouse_id" />
|
||||
<result property="outWarehouseCode" column="out_warehouse_code" />
|
||||
<result property="outWarehouseName" column="out_warehouse_name" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
<sql id="selectMobilizeManagePo">
|
||||
select mobilize_manage_id, organization_id, organization_name, top_organization_id, mobilize_number, mobilize_code, mobilize_status, mobilize_material_quantity, material_type_quantity, in_warehouse_id, in_warehouse_code, in_warehouse_name, audit_status, audit_remark, audit_by, audit_by_name, audit_time, task_distribution, task_distribution_time, operators_by, operators_name, nullify, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag, out_warehouse_id, out_warehouse_code, out_warehouse_name from mobilize_manage
|
||||
</sql>
|
||||
|
||||
<sql id="selectMobilizeManagePo1">
|
||||
<where>
|
||||
and del_flag = 1
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="mobilizeCode != null and mobilizeCode != ''">
|
||||
and mobilize_code = #{mobilizeCode}
|
||||
</if>
|
||||
<if test="mobilizeStatus != null ">
|
||||
and mobilize_status = #{mobilizeStatus}
|
||||
</if>
|
||||
<if test="mobilizeNumber != null ">
|
||||
and mobilize_number = #{mobilizeNumber}
|
||||
</if>
|
||||
<if test="materialTypeQuantity != null ">
|
||||
and material_type_quantity = #{materialTypeQuantity}
|
||||
</if>
|
||||
<if test="mobilizeMaterialQuantity != null ">
|
||||
and mobilize_material_quantity = #{mobilizeMaterialQuantity}
|
||||
</if>
|
||||
<if test="inWarehouseId != null ">
|
||||
and in_warehouse_id = #{inWarehouseId}
|
||||
</if>
|
||||
<if test="inWarehouseCode != null and inWarehouseCode != ''">
|
||||
and in_warehouse_code = #{inWarehouseCode}
|
||||
</if>
|
||||
<if test="inWarehouseName != null and inWarehouseName != ''">
|
||||
and in_warehouse_name like concat('%', #{inWarehouseName}, '%')
|
||||
</if>
|
||||
<if test="outWarehouseId != null ">
|
||||
and out_warehouse_id = #{outWarehouseId}
|
||||
</if>
|
||||
<if test="outWarehouseCode != null and outWarehouseCode != ''">
|
||||
and out_warehouse_code = #{outWarehouseCode}
|
||||
</if>
|
||||
<if test="outWarehouseName != null and outWarehouseName != ''">
|
||||
and out_warehouse_name like concat('%', #{outWarehouseName}, '%')
|
||||
</if>
|
||||
<if test="auditStatus != null ">
|
||||
and audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="auditRemark != null and auditRemark != ''">
|
||||
and audit_remark = #{auditRemark}
|
||||
</if>
|
||||
<if test="auditBy != null ">
|
||||
and audit_by = #{auditBy}
|
||||
</if>
|
||||
<if test="auditByName != null and auditByName != ''">
|
||||
and audit_by_name like concat('%', #{auditByName}, '%')
|
||||
</if>
|
||||
<if test="auditTime != null ">
|
||||
and audit_time = #{auditTime}
|
||||
</if>
|
||||
<if test="taskDistribution != null ">
|
||||
and task_distribution = #{taskDistribution}
|
||||
</if>
|
||||
<if test="taskDistributionTime != null ">
|
||||
and task_distribution_time = #{taskDistributionTime}
|
||||
</if>
|
||||
<if test="operatorsBy != null ">
|
||||
and operators_by = #{operatorsBy}
|
||||
</if>
|
||||
<if test="operatorsName != null and operatorsName != ''">
|
||||
and operators_name like concat('%', #{operatorsName}, '%')
|
||||
</if>
|
||||
<if test="nullify != null ">
|
||||
and nullify = #{nullify}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
<update id="updateQuantity">
|
||||
update mobilize_manage set material_type_quantity = #{materialTypeQuantity},mobilize_material_quantity = #{mobilizeMaterialQuantity}
|
||||
</update>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.mobilizeManage.repository.todo.MobilizeManageDO" resultMap="MobilizeManageResult">
|
||||
<include refid="selectMobilizeManagePo"/>
|
||||
<include refid="selectMobilizeManagePo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.mobilizeManageDetail.repository.mapper.MobilizeManageDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.mobilizeManageDetail.repository.po.MobilizeManageDetailPO" id="MobilizeManageDetailResult">
|
||||
<result property="mobilizeMaterialDetailId" column="mobilize_material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="mobilizeCode" column="mobilize_code" />
|
||||
<result property="mobilizeStatus" column="mobilize_status" />
|
||||
<result property="mobilizeNumber" column="mobilize_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="inventoryQuantity" column="inventory_quantity" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="containerId" column="container_id" />
|
||||
<result property="containerCode" column="container_code" />
|
||||
<result property="containerType" column="container_type" />
|
||||
<result property="containerTypeName" column="container_type_name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectMobilizeManageDetailPo">
|
||||
a.mobilize_material_detail_id, a.organization_id, a.organization_name, a.top_organization_id, a.mobilize_code, a.mobilize_status,
|
||||
a.mobilize_number, a.material_base_info_id, a.material_code, a.material_name, a.bar_code, a.inventory_quantity, a.quantity, a.warehouse_id,
|
||||
a.warehouse_code, a.warehouse_name, a.storage_section_id, a.storage_code, a.storage_name, a.storage_location_id, a.storage_location_code,
|
||||
a.storage_location_name, a.pack_id, a.pack_code, a.pack_name, a.pack_detail_id, a.unit_code, a.unit_name, a.unit_number, a.material_warehouse_control_id,
|
||||
a.serial_number_manage, a.container_id, a.container_code, a.container_type, a.container_type_name, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectMobilizeManageDetailPo1">
|
||||
and a.del_flag = 1
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="mobilizeCode != null and mobilizeCode != ''">
|
||||
and a.mobilize_code = #{mobilizeCode}
|
||||
</if>
|
||||
<if test="mobilizeStatus != null ">
|
||||
and a.mobilize_status = #{mobilizeStatus}
|
||||
</if>
|
||||
<if test="mobilizeNumber != null ">
|
||||
and a.mobilize_number = #{mobilizeNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and a.material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and a.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and a.material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and a.bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="inventoryQuantity != null ">
|
||||
and a.inventory_quantity = #{inventoryQuantity}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and a.storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and a.storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and a.storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and a.storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and a.storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and a.storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and a.pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and a.pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and a.pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null ">
|
||||
and a.pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and a.unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and a.unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and a.unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and a.material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and a.serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="containerId != null ">
|
||||
and a.container_id = #{containerId}
|
||||
</if>
|
||||
<if test="containerCode != null and containerCode != ''">
|
||||
and a.container_code = #{containerCode}
|
||||
</if>
|
||||
<if test="containerType != null and containerType != ''">
|
||||
and a.container_type = #{containerType}
|
||||
</if>
|
||||
<if test="containerTypeName != null and containerTypeName != ''">
|
||||
and a.container_type_name like concat('%', #{containerTypeName}, '%')
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.mobilizeManageDetail.repository.todo.MobilizeManageDetailDO" resultMap="MobilizeManageDetailResult">
|
||||
select
|
||||
<include refid="selectMobilizeManageDetailPo"/>
|
||||
<include refid="com.mhd.wms.domain.materialBaseInfo.repository.mapper.MaterialBaseInfoMapper.JoinMaterialBaseInfoPo"/>
|
||||
from mobilize_manage_detail a
|
||||
left join material_base_info b on a.material_base_info_id = b.material_base_info_id
|
||||
<where>
|
||||
<include refid="selectMobilizeManageDetailPo1"/>
|
||||
<include refid="com.mhd.wms.domain.materialBaseInfo.repository.mapper.MaterialBaseInfoMapper.JoinMaterialBaseInfoPoWhere"/>
|
||||
</where>
|
||||
</select>
|
||||
<select id="selectCountGroup" resultType="java.lang.Integer">
|
||||
SELECT COUNT( 1 ) FROM mobilize_manage_detail WHERE material_base_info_id = #{materialBaseInfoId} and mobilize_status=2
|
||||
</select>
|
||||
</mapper>
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.noticeMaterialDetail.repository.mapper.NoticeMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.noticeMaterialDetail.repository.po.NoticeMaterialDetailPO" id="NoticeMaterialDetailResult">
|
||||
<result property="noticeMaterialDetailId" column="notice_material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="noticeNumber" column="notice_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="qualityInspectionManage" column="quality_inspection_manage" />
|
||||
<result property="qualityInspectionStage" column="quality_inspection_stage" />
|
||||
<result property="qualityInspectionRule" column="quality_inspection_rule" />
|
||||
<result property="qualityInspectionRatio" column="quality_inspection_ratio" />
|
||||
<result property="qualityInspectionTerm" column="quality_inspection_term" />
|
||||
<result property="qualityInspectionResults" column="quality_inspection_results" />
|
||||
<result property="allowOvercharge" column="allow_overcharge" />
|
||||
<result property="overchargeRatio" column="overcharge_ratio" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectNoticeMaterialDetailPo">
|
||||
select notice_material_detail_id, organization_id, organization_name, top_organization_id, unique_id, notice_number, material_base_info_id, material_code, material_name, bar_code, quantity, pack_id, pack_code, pack_name, pack_detail_id, unit_code, unit_name, unit_number, material_warehouse_control_id, serial_number_manage, quality_inspection_manage, quality_inspection_stage, quality_inspection_rule, quality_inspection_ratio, quality_inspection_term, quality_inspection_results, allow_overcharge, overcharge_ratio, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from notice_material_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectNoticeMaterialDetailPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="uniqueId != null ">
|
||||
and unique_id = #{uniqueId}
|
||||
</if>
|
||||
<if test="noticeNumber != null and noticeNumber != ''">
|
||||
and notice_number = #{noticeNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="qualityInspectionManage != null ">
|
||||
and quality_inspection_manage = #{qualityInspectionManage}
|
||||
</if>
|
||||
<if test="qualityInspectionStage != null ">
|
||||
and quality_inspection_stage = #{qualityInspectionStage}
|
||||
</if>
|
||||
<if test="qualityInspectionRule != null ">
|
||||
and quality_inspection_rule = #{qualityInspectionRule}
|
||||
</if>
|
||||
<if test="qualityInspectionRatio != null ">
|
||||
and quality_inspection_ratio = #{qualityInspectionRatio}
|
||||
</if>
|
||||
<if test="qualityInspectionTerm != null ">
|
||||
and quality_inspection_term = #{qualityInspectionTerm}
|
||||
</if>
|
||||
<if test="qualityInspectionResults != null ">
|
||||
and quality_inspection_results = #{qualityInspectionResults}
|
||||
</if>
|
||||
<if test="allowOvercharge != null ">
|
||||
and allow_overcharge = #{allowOvercharge}
|
||||
</if>
|
||||
<if test="overchargeRatio != null ">
|
||||
and overcharge_ratio = #{overchargeRatio}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.noticeMaterialDetail.repository.todo.NoticeMaterialDetailDO" resultMap="NoticeMaterialDetailResult">
|
||||
<include refid="selectNoticeMaterialDetailPo"/>
|
||||
<include refid="selectNoticeMaterialDetailPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.outMaterialDetailSerialNumber.repository.mapper.OutMaterialDetailSerialNumberMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.outMaterialDetailSerialNumber.repository.po.OutMaterialDetailSerialNumberPO" id="OutMaterialDetailSerialNumberResult">
|
||||
<result property="outMaterialDetailSerialNumberId" column="out_material_detail_serial_number_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="type" column="type" />
|
||||
<result property="serialNumber" column="serial_number" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectOutMaterialDetailSerialNumberPo">
|
||||
a.out_material_detail_serial_number_id, a.organization_id, a.organization_name, a.top_organization_id, a.material_detail_unique_id, a.type, a.line_number, a.serial_number, 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 </sql>
|
||||
|
||||
<sql id="selectOutMaterialDetailSerialNumberPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="materialDetailUniqueId != null ">
|
||||
and a.material_detail_unique_id = #{materialDetailUniqueId}
|
||||
</if>
|
||||
<if test="type != null ">
|
||||
and a.type = #{type}
|
||||
</if>
|
||||
|
||||
<if test="serialNumber != null and serialNumber != ''">
|
||||
and a.serial_number = #{serialNumber}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.outMaterialDetailSerialNumber.repository.todo.OutMaterialDetailSerialNumberDO" resultMap="OutMaterialDetailSerialNumberResult">
|
||||
select
|
||||
<include refid="selectOutMaterialDetailSerialNumberPo"/>
|
||||
from out_material_detail_serial_number a
|
||||
<where>
|
||||
<include refid="selectOutMaterialDetailSerialNumberPo1"/>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.outOrderAbnormal.repository.mapper.OutOrderAbnormalMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.outOrderAbnormal.repository.po.OutOrderAbnormalPO" id="OutOrderAbnormalResult">
|
||||
<result property="outOrderAbnormalId" column="out_order_abnormal_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="abnormalNumber" column="abnormal_number" />
|
||||
<result property="outOrderNumber" column="out_order_number" />
|
||||
<result property="pickingOrderNumber" column="picking_order_number" />
|
||||
<result property="outTaskOrderNumber" column="out_task_order_number" />
|
||||
<result property="type" column="type" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="actualQuantity" column="actual_quantity" />
|
||||
<result property="abnormalActualQuantity" column="abnormal_actual_quantity" />
|
||||
<result property="abnormalType" column="abnormal_type" />
|
||||
<result property="abnormalReason" column="abnormal_reason" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectOutOrderAbnormalPo">
|
||||
a.out_order_abnormal_id, a.organization_id, a.organization_name, a.top_organization_id, a.abnormal_number, a.out_order_number, a.picking_order_number, a.out_task_order_number, a.type, a.quantity, a.actual_quantity, a.abnormal_actual_quantity, a.abnormal_type, a.abnormal_reason, 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 </sql>
|
||||
|
||||
<sql id="selectOutOrderAbnormalPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="abnormalNumber != null and abnormalNumber != ''">
|
||||
and a.abnormal_number = #{abnormalNumber}
|
||||
</if>
|
||||
<if test="outOrderNumber != null and outOrderNumber != ''">
|
||||
and a.out_order_number = #{outOrderNumber}
|
||||
</if>
|
||||
<if test="pickingOrderNumber != null and pickingOrderNumber != ''">
|
||||
and a.picking_order_number = #{pickingOrderNumber}
|
||||
</if>
|
||||
<if test="outTaskOrderNumber != null and outTaskOrderNumber != ''">
|
||||
and a.out_task_order_number = #{outTaskOrderNumber}
|
||||
</if>
|
||||
<if test="type != null ">
|
||||
and a.type = #{type}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="actualQuantity != null ">
|
||||
and a.actual_quantity = #{actualQuantity}
|
||||
</if>
|
||||
<if test="abnormalActualQuantity != null ">
|
||||
and a.abnormal_actual_quantity = #{abnormalActualQuantity}
|
||||
</if>
|
||||
<if test="abnormalType != null ">
|
||||
and a.abnormal_type = #{abnormalType}
|
||||
</if>
|
||||
<if test="abnormalReason != null and abnormalReason != ''">
|
||||
and a.abnormal_reason = #{abnormalReason}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<sql id="joinStockOutOrderPoWhere">
|
||||
<if test="warehouseId != null and warehouseId != '' ">
|
||||
and b.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="shipperId != null and shipperId != ''">
|
||||
and b.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="orderTypeCode != null and orderTypeCode != ''">
|
||||
and a.order_type_code = #{orderTypeCode}
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and b.del_flag = #{delFlag} </when>
|
||||
<otherwise> and b.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.outOrderAbnormal.repository.todo.OutOrderAbnormalDO" resultMap="OutOrderAbnormalResult">
|
||||
select
|
||||
<include refid="selectOutOrderAbnormalPo"/>
|
||||
<include refid="com.mhd.wms.domain.stockOutOrder.repository.mapper.StockOutOrderMapper.joinStockOutOrderPo"/>
|
||||
from out_order_abnormal a
|
||||
left join stock_out_order b on a.out_order_number = b.out_order_number
|
||||
<where>
|
||||
<include refid="selectOutOrderAbnormalPo1"/>
|
||||
<include refid="joinStockOutOrderPoWhere"/>
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.overStock.repository.mapper.OverStockMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.overStock.repository.po.OverStockPO" id="OverStockResult">
|
||||
<result property="overStockId" column="over_stock_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperCode" column="shipper_code" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="type" column="type" />
|
||||
<result property="status" column="status" />
|
||||
<result property="inOrderNumber" column="in_order_number" />
|
||||
<result property="inOrderLine" column="in_order_line" />
|
||||
<result property="outOrderNumber" column="out_order_number" />
|
||||
<result property="outOrderLine" column="out_order_line" />
|
||||
<result property="overStockNumber" column="over_stock_number" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectOverStockPo">
|
||||
select over_stock_id, organization_id, organization_name, top_organization_id, shipper_id, shipper_code, shipper_name, material_code, material_name, type, status, in_order_number, in_order_line, out_order_number, out_order_line, over_stock_number, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from over_stock
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectOverStockPo1">
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperCode != null and shipperCode != ''">
|
||||
and shipper_code = #{shipperCode}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="type != null ">
|
||||
and type = #{type}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and status = #{status}
|
||||
</if>
|
||||
<if test="inOrderNumber != null and inOrderNumber != ''">
|
||||
and in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="inOrderLine != null and inOrderLine != ''">
|
||||
and in_order_line = #{inOrderLine}
|
||||
</if>
|
||||
<if test="outOrderNumber != null and outOrderNumber != ''">
|
||||
and out_order_number = #{outOrderNumber}
|
||||
</if>
|
||||
<if test="outOrderLine != null and outOrderLine != ''">
|
||||
and out_order_line = #{outOrderLine}
|
||||
</if>
|
||||
<if test="overStockNumber != null ">
|
||||
and over_stock_number = #{overStockNumber}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.overStock.repository.todo.OverStockDO" resultMap="OverStockResult">
|
||||
<include refid="selectOverStockPo"/>
|
||||
<include refid="selectOverStockPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
+191
@@ -0,0 +1,191 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.pickingMaterialDetail.repository.mapper.PickingMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.pickingMaterialDetail.repository.po.PickingMaterialDetailPO" id="PickingMaterialDetailResult">
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="pickingOrderNumber" column="picking_order_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="weightLimit" column="weight_limit" />
|
||||
<result property="volumeLimit" column="volume_limit" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="pickingQuantity" column="picking_quantity" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectPickingMaterialDetailPo">
|
||||
a.material_detail_id, a.organization_id, a.organization_name, a.top_organization_id, a.unique_id,
|
||||
a.picking_order_number, a.material_base_info_id, a.material_code, a.material_name, a.bar_code, a.weight_limit,
|
||||
a.volume_limit, a.quantity, a.picking_quantity, a.pack_id, a.pack_code, a.pack_name,
|
||||
a.pack_detail_id, a.unit_code, a.unit_name, a.material_warehouse_control_id, a.serial_number_manage,
|
||||
a.material_inventory_id, a.batch_number, a.container_id, a.container_code, a.container_type, a.container_type_name, a.material_status_code, a.material_status_name,
|
||||
a.warehouse_id, a.warehouse_code, a.warehouse_name, a.storage_section_id, a.storage_code, a.storage_name,
|
||||
a.storage_location_id, a.storage_location_code, a.storage_location_name, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectPickingMaterialDetailPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="uniqueId != null ">
|
||||
and a.unique_id = #{uniqueId}
|
||||
</if>
|
||||
<if test="pickingOrderNumber != null and pickingOrderNumber != ''">
|
||||
and a.picking_order_number = #{pickingOrderNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and a.material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and a.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and a.material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and a.bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="weightLimit != null ">
|
||||
and a.weight_limit = #{weightLimit}
|
||||
</if>
|
||||
<if test="volumeLimit != null ">
|
||||
and a.volume_limit = #{volumeLimit}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="pickingQuantity != null ">
|
||||
and a.picking_quantity = #{pickingQuantity}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and a.pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and a.pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and a.pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and a.pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and a.unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and a.unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and a.material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and a.serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and a.storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and a.storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and a.storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and a.storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and a.storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and a.storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.pickingMaterialDetail.repository.todo.PickingMaterialDetailDO" resultMap="PickingMaterialDetailResult">
|
||||
select
|
||||
<include refid="selectPickingMaterialDetailPo"/>
|
||||
from picking_material_detail a
|
||||
<where>
|
||||
<include refid="selectPickingMaterialDetailPo1"/>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="addQuantity" parameterType="com.mhd.wms.domain.pickingMaterialDetail.repository.todo.PickingMaterialDetailDOByUpdate">
|
||||
UPDATE picking_material_detail
|
||||
<set>
|
||||
<trim prefix="picking_quantity = CASE unique_id" suffix="END,">
|
||||
<foreach collection="pickingMaterialDetailList" item="item" index="index">
|
||||
WHEN #{item.uniqueId} THEN picking_quantity + #{item.pickingQuantity}
|
||||
</foreach>
|
||||
</trim>
|
||||
update_by = #{updateBy},
|
||||
update_by_name = #{updateByName},
|
||||
update_time = #{updateTime}
|
||||
</set>
|
||||
WHERE
|
||||
unique_id IN
|
||||
<foreach collection="pickingMaterialDetailList" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item.uniqueId}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,163 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.pickingOrder.repository.mapper.PickingOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.pickingOrder.repository.po.PickingOrderPO" id="PickingOrderResult">
|
||||
<result property="pickingOrderId" column="picking_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="orderNumber" column="order_number" />
|
||||
<result property="pickingOrderNumber" column="picking_order_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="type" column="type" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="materialQuantity" column="material_quantity" />
|
||||
<result property="pickingQuantity" column="picking_quantity" />
|
||||
<result property="abnormal" column="abnormal" />
|
||||
<result property="taskDistribution" column="task_distribution" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectPickingOrderPo">
|
||||
a.picking_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.order_number, a.picking_order_number,
|
||||
a.status, a.type, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id, a.shipper_name, a.quantity, a.weight_limit, a.volume_limit, a.material_quantity,
|
||||
a.picking_quantity, a.picking_material_quantity, a.abnormal, a.task_distribution, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectPickingOrderPo1">
|
||||
<if test="pickingOrderId != null ">
|
||||
and a.picking_order_id = #{pickingOrderId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="orderNumber != null and orderNumber != '' ">
|
||||
and a.order_number = #{orderNumber}
|
||||
</if>
|
||||
<if test="pickingOrderNumber != null and pickingOrderNumber != ''">
|
||||
and a.picking_order_number = #{pickingOrderNumber}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and a.status = #{status}
|
||||
</if>
|
||||
<if test="type != null ">
|
||||
and a.type = #{type}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="pickingQuantity != null ">
|
||||
and a.picking_quantity = #{pickingQuantity}
|
||||
</if>
|
||||
<if test="abnormal != null ">
|
||||
and a.abnormal = #{abnormal}
|
||||
</if>
|
||||
<if test="taskDistribution != null ">
|
||||
and a.task_distribution = #{taskDistribution}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="pickingOrderIdList != null and pickingOrderIdList.size > 0 ">
|
||||
and a.picking_order_id in
|
||||
<foreach collection="pickingOrderIdList" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.pickingOrder.repository.todo.PickingOrderDO" resultMap="PickingOrderResult">
|
||||
select
|
||||
<include refid="selectPickingOrderPo"/>
|
||||
from picking_order a
|
||||
<where>
|
||||
<include refid="selectPickingOrderPo1"/>
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="queryOutOrderById" parameterType="java.lang.Long" resultType="com.mhd.wms.domain.pickingOrder.repository.po.PickingOrderPO">
|
||||
select
|
||||
<include refid="selectPickingOrderPo"/>
|
||||
<include refid="com.mhd.wms.domain.stockOutOrder.repository.mapper.StockOutOrderMapper.joinStockOutOrderPo"/>
|
||||
from picking_order a
|
||||
left join stock_out_order b on a.order_number = b.out_order_number
|
||||
WHERE a.picking_order_id = #{pickingOrderId}
|
||||
</select>
|
||||
|
||||
<select id="queryWaveOrderById" parameterType="java.lang.Long" resultType="com.mhd.wms.domain.pickingOrder.repository.po.PickingOrderPO">
|
||||
select
|
||||
<include refid="selectPickingOrderPo"/>
|
||||
<include refid="com.mhd.wms.domain.waveOrder.repository.mapper.WaveOrderMapper.joinWaveOrderPo"/>
|
||||
from picking_order a
|
||||
left join wave_order b on a.order_number = b.wave_order_number
|
||||
WHERE a.picking_order_id = #{pickingOrderId}
|
||||
</select>
|
||||
|
||||
<select id="queryOutOrderByOrderNumber" parameterType="java.lang.String" resultType="com.mhd.wms.domain.pickingOrder.repository.po.PickingOrderPO">
|
||||
select
|
||||
<include refid="selectPickingOrderPo"/>
|
||||
<include refid="com.mhd.wms.domain.stockOutOrder.repository.mapper.StockOutOrderMapper.joinStockOutOrderPo"/>
|
||||
from picking_order a
|
||||
left join stock_out_order b on a.order_number = b.out_order_number
|
||||
WHERE a.order_number = #{orderNumber}
|
||||
</select>
|
||||
|
||||
<select id="queryWaveOrderByOrderNumber" parameterType="java.lang.String" resultType="com.mhd.wms.domain.pickingOrder.repository.po.PickingOrderPO">
|
||||
select
|
||||
<include refid="selectPickingOrderPo"/>
|
||||
<include refid="com.mhd.wms.domain.waveOrder.repository.mapper.WaveOrderMapper.joinWaveOrderPo"/>
|
||||
from picking_order a
|
||||
left join wave_order b on a.order_number = b.wave_order_number
|
||||
WHERE a.order_number = #{orderNumber}
|
||||
</select>
|
||||
|
||||
<update id="addQuantity" parameterType="com.mhd.wms.domain.pickingOrder.repository.todo.PickingOrderDO" >
|
||||
UPDATE picking_order
|
||||
<set>
|
||||
picking_quantity = picking_quantity + #{pickingQuantity},
|
||||
picking_material_quantity = picking_material_quantity + #{pickingMaterialQuantity},
|
||||
status = #{status},
|
||||
update_by = #{updateBy},
|
||||
update_by_name = #{updateByName},
|
||||
update_time = #{updateTime}
|
||||
</set>
|
||||
WHERE
|
||||
picking_order_number = #{pickingOrderNumber}
|
||||
AND del_flag = 1
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.putawayRule.repository.mapper.PutawayRuleMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.putawayRule.repository.po.PutawayRulePO" id="PutawayRuleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="ruleNum" column="rule_num" />
|
||||
<result property="ruleName" column="rule_name" />
|
||||
<result property="enabled" column="enabled" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectPutawayRulePo">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, rule_num, rule_name, enabled, remark from putaway_rule
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectPutawayRulePo1">
|
||||
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="ruleNum != null and ruleNum != ''">
|
||||
and rule_num = #{ruleNum}
|
||||
</if>
|
||||
<if test="ruleName != null and ruleName != ''">
|
||||
and rule_name like concat('%', #{ruleName}, '%')
|
||||
</if>
|
||||
<if test="enabled != null and enabled != ''">
|
||||
and enabled = #{enabled}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.putawayRule.repository.todo.PutawayRuleDO" resultMap="PutawayRuleResult">
|
||||
<include refid="selectPutawayRulePo"/>
|
||||
<include refid="selectPutawayRulePo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.putawayRuleDetail.repository.mapper.PutawayRuleDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.putawayRuleDetail.repository.po.PutawayRuleDetailPO" id="PutawayRuleDetailResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="putawayRuleId" column="putaway_rule_id" />
|
||||
<result property="mainRuleId" column="main_rule_id" />
|
||||
<result property="mainRule" column="main_rule" />
|
||||
<result property="seqNum" column="seq_num" />
|
||||
<result property="storageSpaceLimit" column="storage_space_limit" />
|
||||
<result property="storageSpaceLimitTypeId" column="storage_space_limit_type_id" />
|
||||
<result property="storageSpaceLimitType" column="storage_space_limit_type" />
|
||||
<result property="usableLocationType" column="usable_location_type" />
|
||||
<result property="locationTypeId" column="location_type_id" />
|
||||
<result property="locationType" column="location_type" />
|
||||
<result property="usableLocationKind" column="usable_location_kind" />
|
||||
<result property="locationKindId" column="location_kind_id" />
|
||||
<result property="locationKind" column="location_kind" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectPutawayRuleDetailPo">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, putaway_rule_id, main_rule_id, main_rule, seq_num, storage_space_limit, storage_space_limit_type_id, storage_space_limit_type, usable_location_type, location_type_id, location_type, usable_location_kind, location_kind_id, location_kind from putaway_rule_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectPutawayRuleDetailPo1">
|
||||
<where>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="putawayRuleId != null ">
|
||||
and putaway_rule_id = #{putawayRuleId}
|
||||
</if>
|
||||
<if test="mainRuleId != null ">
|
||||
and main_rule_id = #{mainRuleId}
|
||||
</if>
|
||||
<if test="mainRule != null and mainRule != ''">
|
||||
and main_rule = #{mainRule}
|
||||
</if>
|
||||
<if test="seqNum != null ">
|
||||
and seq_num = #{seqNum}
|
||||
</if>
|
||||
<if test="storageSpaceLimit != null and storageSpaceLimit != ''">
|
||||
and storage_space_limit = #{storageSpaceLimit}
|
||||
</if>
|
||||
<if test="storageSpaceLimitTypeId != null and storageSpaceLimitTypeId != ''">
|
||||
and storage_space_limit_type_id = #{storageSpaceLimitTypeId}
|
||||
</if>
|
||||
<if test="storageSpaceLimitType != null and storageSpaceLimitType != ''">
|
||||
and storage_space_limit_type = #{storageSpaceLimitType}
|
||||
</if>
|
||||
<if test="usableLocationType != null and usableLocationType != ''">
|
||||
and usable_location_type = #{usableLocationType}
|
||||
</if>
|
||||
<if test="locationTypeId != null and locationTypeId != ''">
|
||||
and location_type_id = #{locationTypeId}
|
||||
</if>
|
||||
<if test="locationType != null and locationType != ''">
|
||||
and location_type = #{locationType}
|
||||
</if>
|
||||
<if test="usableLocationKind != null and usableLocationKind != ''">
|
||||
and usable_location_kind = #{usableLocationKind}
|
||||
</if>
|
||||
<if test="locationKindId != null and locationKindId != ''">
|
||||
and location_kind_id = #{locationKindId}
|
||||
</if>
|
||||
<if test="locationKind != null and locationKind != ''">
|
||||
and location_kind = #{locationKind}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.putawayRuleDetail.repository.todo.PutawayRuleDetailDO" resultMap="PutawayRuleDetailResult">
|
||||
<include refid="selectPutawayRuleDetailPo"/>
|
||||
<include refid="selectPutawayRuleDetailPo1"/>
|
||||
</select>
|
||||
|
||||
<select id="selectListByPutawayRuleId" resultType="java.lang.Long">
|
||||
select id from putaway_rule_detail where putaway_rule_id in
|
||||
<foreach collection="list" item="id" open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.qcRule.repository.mapper.QcRuleMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.qcRule.repository.po.QcRulePO" id="QcRuleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="ruleNum" column="rule_num" />
|
||||
<result property="ruleName" column="rule_name" />
|
||||
<result property="enabled" column="enabled" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectQcRulePo">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, rule_num, rule_name, enabled, remark from qc_rule
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectQcRulePo1">
|
||||
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="ruleNum != null and ruleNum != ''">
|
||||
and rule_num = #{ruleNum}
|
||||
</if>
|
||||
<if test="ruleName != null and ruleName != ''">
|
||||
and rule_name like concat('%', #{ruleName}, '%')
|
||||
</if>
|
||||
<if test="enabled != null ">
|
||||
and enabled = #{enabled}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.qcRule.repository.todo.QcRuleDO" resultMap="QcRuleResult">
|
||||
<include refid="selectQcRulePo"/>
|
||||
<include refid="selectQcRulePo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.qcRuleDetail.repository.mapper.QcRuleDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.qcRuleDetail.repository.po.QcRuleDetailPO" id="QcRuleDetailResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="qcRuleId" column="qc_rule_id" />
|
||||
<result property="qcMinRange" column="qc_min_range" />
|
||||
<result property="qcMaxRange" column="qc_max_range" />
|
||||
<result property="numTypeId" column="num_type_id" />
|
||||
<result property="numType" column="num_type" />
|
||||
<result property="numRatio" column="num_ratio" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectQcRuleDetailPo">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, qc_rule_id, qc_min_range, qc_max_range, num_type_id, num_type, num_ratio from qc_rule_detail
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectQcRuleDetailPo1">
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="qcRuleId != null ">
|
||||
and qc_rule_id = #{qcRuleId}
|
||||
</if>
|
||||
<if test="qcMinRange != null and qcMinRange != ''">
|
||||
and qc_min_range = #{qcMinRange}
|
||||
</if>
|
||||
<if test="qcMaxRange != null and qcMaxRange != ''">
|
||||
and qc_max_range = #{qcMaxRange}
|
||||
</if>
|
||||
<if test="numTypeId != null ">
|
||||
and num_type_id = #{numTypeId}
|
||||
</if>
|
||||
<if test="numType != null and numType != ''">
|
||||
and num_type = #{numType}
|
||||
</if>
|
||||
<if test="numRatio != null ">
|
||||
and num_ratio = #{numRatio}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.qcRuleDetail.repository.todo.QcRuleDetailDO" resultMap="QcRuleDetailResult">
|
||||
<include refid="selectQcRuleDetailPo"/>
|
||||
<include refid="selectQcRuleDetailPo1"/>
|
||||
</select>
|
||||
|
||||
<select id="selectListByQcRuleId" parameterType="java.lang.Long" resultMap="QcRuleDetailResult">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, qc_rule_id, qc_min_range, qc_max_range, num_type_id, num_type, num_ratio from qc_rule_detail
|
||||
where del_flag = 1 and qc_rule_id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="qcRuleDetailMapper" parameterType="Long" resultType="java.lang.Long">
|
||||
select id from qc_rule_detail
|
||||
where del_flag = 1 and qc_rule_id in
|
||||
<foreach collection="array" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,224 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.qualityInspection.repository.mapper.QualityInspectionMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.qualityInspection.repository.po.QualityInspectionPO" id="QualityInspectionResult">
|
||||
<result property="qualityInspectionId" column="quality_inspection_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="qualityInspectionNumber" column="quality_inspection_number" />
|
||||
<result property="inOrderNumber" column="in_order_number" />
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="inspectionQuantity" column="inspection_quantity" />
|
||||
<result property="abnormalQuantity" column="abnormal_quantity" />
|
||||
<result property="qualityInspectionResults" column="quality_inspection_results" />
|
||||
<result property="abnormalReason" column="abnormal_reason" />
|
||||
<result property="qualityInspectionBy" column="quality_inspection_by" />
|
||||
<result property="qualityInspectionName" column="quality_inspection_name" />
|
||||
<result property="qualityInspectionTime" column="quality_inspection_time" />
|
||||
<result property="qualityInspectionUrl" column="quality_inspection_url" />
|
||||
<result property="handleStatus" column="handle_status" />
|
||||
<result property="handleOpinion" column="handle_opinion" />
|
||||
<result property="handleBy" column="handle_by" />
|
||||
<result property="handleByName" column="handle_by_name" />
|
||||
<result property="handleTime" column="handle_time" />
|
||||
<result property="materialStatusCode" column="material_status_code" />
|
||||
<result property="materialStatusName" column="material_status_name" />
|
||||
<result property="abnormalMaterialStatusCode" column="abnormal_material_status_code" />
|
||||
<result property="abnormalMaterialStatusName" column="abnormal_material_status_name" />
|
||||
<result property="warehousing" column="warehousing" />
|
||||
<result property="abnormalHandleUrl" column="abnormal_handle_url" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectQualityInspectionPo">
|
||||
a.quality_inspection_id, a.organization_id, a.organization_name, a.top_organization_id, a.quality_inspection_number, a.in_order_number, a.material_detail_id,
|
||||
a.inspection_quantity, a.abnormal_quantity, a.quality_inspection_results, a.abnormal_reason, a.quality_inspection_by, a.quality_inspection_name,
|
||||
a.quality_inspection_time, a.quality_inspection_url, a.handle_status, a.handle_opinion, a.handle_by, a.handle_by_name, a.handle_time, a.material_status_code,
|
||||
a.material_status_name, a.abnormal_material_status_code, a.abnormal_material_status_name, a.warehousing, a.abnormal_handle_url, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectQualityInspectionPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="qualityInspectionNumber != null and qualityInspectionNumber != ''">
|
||||
and a.quality_inspection_number = #{qualityInspectionNumber}
|
||||
</if>
|
||||
<if test="materialDetailId != null ">
|
||||
and a.material_detail_id = #{materialDetailId}
|
||||
</if>
|
||||
<if test="inspectionQuantity != null ">
|
||||
and a.inspection_quantity = #{inspectionQuantity}
|
||||
</if>
|
||||
<if test="abnormalQuantity != null ">
|
||||
and a.abnormal_quantity = #{abnormalQuantity}
|
||||
</if>
|
||||
<if test="qualityInspectionResults != null ">
|
||||
and a.quality_inspection_results = #{qualityInspectionResults}
|
||||
</if>
|
||||
<if test="abnormalReason != null and abnormalReason != ''">
|
||||
and a.abnormal_reason = #{abnormalReason}
|
||||
</if>
|
||||
<if test="qualityInspectionBy != null ">
|
||||
and a.quality_inspection_by = #{qualityInspectionBy}
|
||||
</if>
|
||||
<if test="qualityInspectionName != null and qualityInspectionName != ''">
|
||||
and a.quality_inspection_name like concat('%', #{qualityInspectionName}, '%')
|
||||
</if>
|
||||
<if test="qualityInspectionTime != null ">
|
||||
and a.quality_inspection_time = #{qualityInspectionTime}
|
||||
</if>
|
||||
<if test="qualityInspectionUrl != null and qualityInspectionUrl != ''">
|
||||
and a.quality_inspection_url = #{qualityInspectionUrl}
|
||||
</if>
|
||||
<if test="handleStatus != null ">
|
||||
and a.handle_status = #{handleStatus}
|
||||
</if>
|
||||
<if test="handleOpinion != null and handleOpinion != ''">
|
||||
and a.handle_opinion = #{handleOpinion}
|
||||
</if>
|
||||
<if test="handleBy != null ">
|
||||
and a.handle_by = #{handleBy}
|
||||
</if>
|
||||
<if test="handleByName != null and handleByName != ''">
|
||||
and a.handle_by_name like concat('%', #{handleByName}, '%')
|
||||
</if>
|
||||
<if test="handleTime != null ">
|
||||
and a.handle_time = #{handleTime}
|
||||
</if>
|
||||
<if test="materialStatusCode != null and materialStatusCode != ''">
|
||||
and a.material_status_code = #{materialStatusCode}
|
||||
</if>
|
||||
<if test="materialStatusName != null and materialStatusName != ''">
|
||||
and a.material_status_name like concat('%', #{materialStatusName}, '%')
|
||||
</if>
|
||||
<if test="abnormalMaterialStatusCode != null and abnormalMaterialStatusCode != ''">
|
||||
and a.abnormal_material_status_code = #{abnormalMaterialStatusCode}
|
||||
</if>
|
||||
<if test="abnormalMaterialStatusName != null and abnormalMaterialStatusName != ''">
|
||||
and a.abnormal_material_status_name like concat('%', #{abnormalMaterialStatusName}, '%')
|
||||
</if>
|
||||
<if test="warehousing != null ">
|
||||
and a.warehousing = #{warehousing}
|
||||
</if>
|
||||
<if test="abnormalHandleUrl != null and abnormalHandleUrl != ''">
|
||||
and a.abnormal_handle_url = #{abnormalHandleUrl}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<sql id="joinStockInOrderPo">
|
||||
,b.in_order_number, b.warehouse_id, b.warehouse_code, b.warehouse_name, b.shipper_id, b.shipper_name
|
||||
</sql>
|
||||
|
||||
<sql id="joinStockInOrderPoWhere">
|
||||
<if test="inOrderNumber != null and inOrderNumber != ''">
|
||||
and b.in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and b.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and b.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and b.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and b.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and b.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<sql id="joinMaterialDetailPo">
|
||||
, c.material_base_info_id, c.material_code, c.material_name, c.quantity, c.receipt_quantity, c.quality_inspection_manage,
|
||||
c.quality_inspection_stage, c.quality_inspection_rule, c.quality_inspection_ratio, c.quality_inspection_term
|
||||
</sql>
|
||||
|
||||
<sql id="joinSelectMaterialDetailPoWhere">
|
||||
<if test="orderNumber != null and orderNumber != '' ">
|
||||
and c.order_number = #{orderNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and c.material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and c.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and c.material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and c.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="receiptQuantity != null ">
|
||||
and c.receipt_quantity = #{receiptQuantity}
|
||||
</if>
|
||||
<if test="shelvesQuantity != null ">
|
||||
and c.shelves_quantity = #{shelvesQuantity}
|
||||
</if>
|
||||
<if test="qualityInspectionManage != null ">
|
||||
and c.quality_inspection_manage = #{qualityInspectionManage}
|
||||
</if>
|
||||
<if test="qualityInspectionStage != null ">
|
||||
and c.quality_inspection_stage = #{qualityInspectionStage}
|
||||
</if>
|
||||
<if test="qualityInspectionRule != null ">
|
||||
and c.quality_inspection_rule = #{qualityInspectionRule}
|
||||
</if>
|
||||
<if test="qualityInspectionTerm != null ">
|
||||
and c.quality_inspection_term = #{qualityInspectionTerm}
|
||||
</if>
|
||||
<if test="qualityInspectionRatio != null ">
|
||||
and c.quality_inspection_ratio = #{qualityInspectionRatio}
|
||||
</if>
|
||||
<if test="qualityInspectionResults != null ">
|
||||
and c.quality_inspection_results = #{qualityInspectionResults}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.qualityInspection.repository.todo.QualityInspectionDO" resultMap="QualityInspectionResult">
|
||||
select
|
||||
<include refid="selectQualityInspectionPo"/>
|
||||
<include refid="joinStockInOrderPo"/>
|
||||
<include refid="joinMaterialDetailPo"/>
|
||||
from quality_inspection a
|
||||
LEFT JOIN stock_in_order b ON a.in_order_number = b.in_order_number
|
||||
LEFT JOIN receipt_material_detail c ON a.material_detail_id = c.material_detail_id
|
||||
<where>
|
||||
<include refid="selectQualityInspectionPo1"/>
|
||||
<include refid="joinStockInOrderPoWhere"/>
|
||||
<include refid="joinStockInOrderPoWhere"/>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
+225
@@ -0,0 +1,225 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.receiptMaterialDetail.repository.mapper.ReceiptMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.receiptMaterialDetail.repository.po.ReceiptMaterialDetailPO" id="ReceiptMaterialDetailResult">
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="receiptOrderNumber" column="receipt_order_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="receiptQuantity" column="receipt_quantity" />
|
||||
<result property="receiptStatus" column="receipt_status" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="qualityInspectionManage" column="quality_inspection_manage" />
|
||||
<result property="qualityInspectionStage" column="quality_inspection_stage" />
|
||||
<result property="qualityInspectionRule" column="quality_inspection_rule" />
|
||||
<result property="qualityInspectionRatio" column="quality_inspection_ratio" />
|
||||
<result property="qualityInspectionTerm" column="quality_inspection_term" />
|
||||
<result property="qualityInspectionResults" column="quality_inspection_results" />
|
||||
<result property="allowOvercharge" column="allow_overcharge" />
|
||||
<result property="overchargeRatio" column="overcharge_ratio" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
<result property="materialStatusCode" column="material_status_code" />
|
||||
<result property="materialStatusName" column="material_status_name" />
|
||||
<result property="distributeRuleId" column="distribute_rule_id" />
|
||||
<result property="distributeRuleCode" column="distribute_rule_code" />
|
||||
<result property="distributeRuleName" column="distribute_rule_name" />
|
||||
<result property="containerId" column="container_id" />
|
||||
<result property="containerCode" column="container_code" />
|
||||
<result property="containerType" column="container_type" />
|
||||
<result property="containerTypeName" column="container_type_name" />
|
||||
<result property="level" column="level" />
|
||||
<result property="parentUniqueId" column="parent_unique_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="genStockShelf" column="gen_stock_shelf" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectReceiptMaterialDetailPo">
|
||||
select material_detail_id, organization_id, organization_name, top_organization_id, unique_id, receipt_order_number, material_base_info_id, material_code, material_name, bar_code, quantity, already_receipt_quantity, receipt_quantity, receipt_status, pack_id, pack_code, pack_name, pack_detail_id, unit_code, unit_name, unit_number, material_warehouse_control_id, serial_number_manage, quality_inspection_manage, quality_inspection_stage, quality_inspection_rule, quality_inspection_ratio, quality_inspection_term, quality_inspection_results, allow_overcharge, overcharge_ratio, batch_number, material_status_code, material_status_name, distribute_rule_id, distribute_rule_code, distribute_rule_name, container_id, container_code, container_type, container_type_name, level, parent_unique_id, in_unique_id, allow_modify, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, gen_stock_shelf, del_flag from receipt_material_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectReceiptMaterialDetailPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="uniqueId != null ">
|
||||
and unique_id = #{uniqueId}
|
||||
</if>
|
||||
<if test="receiptOrderNumber != null and receiptOrderNumber != ''">
|
||||
and receipt_order_number = #{receiptOrderNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="receiptQuantity != null ">
|
||||
and receipt_quantity = #{receiptQuantity}
|
||||
</if>
|
||||
<if test="receiptStatus != null ">
|
||||
and receipt_status = #{receiptStatus}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="qualityInspectionManage != null ">
|
||||
and quality_inspection_manage = #{qualityInspectionManage}
|
||||
</if>
|
||||
<if test="qualityInspectionStage != null ">
|
||||
and quality_inspection_stage = #{qualityInspectionStage}
|
||||
</if>
|
||||
<if test="qualityInspectionRule != null ">
|
||||
and quality_inspection_rule = #{qualityInspectionRule}
|
||||
</if>
|
||||
<if test="qualityInspectionRatio != null ">
|
||||
and quality_inspection_ratio = #{qualityInspectionRatio}
|
||||
</if>
|
||||
<if test="qualityInspectionTerm != null ">
|
||||
and quality_inspection_term = #{qualityInspectionTerm}
|
||||
</if>
|
||||
<if test="qualityInspectionResults != null ">
|
||||
and quality_inspection_results = #{qualityInspectionResults}
|
||||
</if>
|
||||
<if test="allowOvercharge != null ">
|
||||
and allow_overcharge = #{allowOvercharge}
|
||||
</if>
|
||||
<if test="overchargeRatio != null ">
|
||||
and overcharge_ratio = #{overchargeRatio}
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber != ''">
|
||||
and batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="materialStatusCode != null and materialStatusCode != ''">
|
||||
and material_status_code = #{materialStatusCode}
|
||||
</if>
|
||||
<if test="materialStatusName != null and materialStatusName != ''">
|
||||
and material_status_name like concat('%', #{materialStatusName}, '%')
|
||||
</if>
|
||||
<if test="distributeRuleId != null ">
|
||||
and distribute_rule_id = #{distributeRuleId}
|
||||
</if>
|
||||
<if test="distributeRuleCode != null and distributeRuleCode != ''">
|
||||
and distribute_rule_code = #{distributeRuleCode}
|
||||
</if>
|
||||
<if test="distributeRuleName != null and distributeRuleName != ''">
|
||||
and distribute_rule_name like concat('%', #{distributeRuleName}, '%')
|
||||
</if>
|
||||
<if test="containerId != null ">
|
||||
and container_id = #{containerId}
|
||||
</if>
|
||||
<if test="containerCode != null and containerCode != ''">
|
||||
and container_code = #{containerCode}
|
||||
</if>
|
||||
<if test="containerType != null and containerType != ''">
|
||||
and container_type = #{containerType}
|
||||
</if>
|
||||
<if test="containerTypeName != null and containerTypeName != ''">
|
||||
and container_type_name like concat('%', #{containerTypeName}, '%')
|
||||
</if>
|
||||
<if test="level != null ">
|
||||
and level = #{level}
|
||||
</if>
|
||||
<if test="parentUniqueId != null ">
|
||||
and parent_unique_id = #{parentUniqueId}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="genStockShelf != null ">
|
||||
and gen_stock_shelf = #{genStockShelf}
|
||||
</if>
|
||||
<if test="compoundOrQuery != null and compoundOrQuery != ''">
|
||||
and ( instr(material_name, #{compoundOrQuery}) > 0
|
||||
or
|
||||
instr(material_code, #{compoundOrQuery}) > 0
|
||||
or
|
||||
instr(bar_code, #{compoundOrQuery}) > 0
|
||||
)
|
||||
</if>
|
||||
<if test="receiptOrderNumberList != null and receiptOrderNumberList.size > 0 ">
|
||||
and receipt_order_number in
|
||||
<foreach collection="receiptOrderNumberList" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.receiptMaterialDetail.repository.todo.ReceiptMaterialDetailDO" resultMap="ReceiptMaterialDetailResult">
|
||||
<include refid="selectReceiptMaterialDetailPo"/>
|
||||
<include refid="selectReceiptMaterialDetailPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.replenishmentNotice.repository.mapper.ReplenishmentNoticeMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.replenishmentNotice.repository.po.ReplenishmentNoticePO" id="ReplenishmentNoticeResult">
|
||||
<result property="replenishmentNoticeId" column="replenishment_notice_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="outOrderNumber" column="out_order_number" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectReplenishmentNoticePo">
|
||||
a.replenishment_notice_id, a.organization_id, a.organization_name, a.top_organization_id, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.out_order_number, a.shipper_id, a.shipper_name, a.material_code, a.material_name, a.bar_code, a.quantity, 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 </sql>
|
||||
|
||||
<sql id="selectReplenishmentNoticePo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="outOrderNumber != null and outOrderNumber != ''">
|
||||
and a.out_order_number = #{outOrderNumber}
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and a.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and a.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and a.material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and a.material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and a.bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.replenishmentNotice.repository.todo.ReplenishmentNoticeDO" resultMap="ReplenishmentNoticeResult">
|
||||
select
|
||||
<include refid="selectReplenishmentNoticePo"/>
|
||||
from replenishment_notice a
|
||||
<where>
|
||||
<include refid="selectReplenishmentNoticePo1"/>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,143 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.serialNumber.repository.mapper.SerialNumberMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.serialNumber.repository.po.SerialNumberPO" id="SerialNumberResult">
|
||||
<result property="serialNumberId" column="serial_number_id" />
|
||||
<result property="shelfOrderId" column="shelf_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="serialNumber" column="serial_number" />
|
||||
<result property="inOrderNumber" column="in_order_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
<result property="containerId" column="container_id" />
|
||||
<result property="containerCode" column="container_code" />
|
||||
<result property="containerType" column="container_type" />
|
||||
<result property="containerTypeName" column="container_type_name" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectSerialNumberPo">
|
||||
select serial_number_id, shelf_order_id, organization_id, organization_name, top_organization_id, serial_number, in_order_number, material_base_info_id, material_code, material_name, bar_code, warehouse_id, warehouse_code, warehouse_name, storage_section_id,
|
||||
storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, batch_number, container_id, container_code, container_type, container_type_name, status,
|
||||
create_time, create_by, create_by_name, update_time, update_by, update_by_name, material_detail_id, del_flag from serial_number
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectSerialNumberPo1">
|
||||
<if test="shelfOrderId != null ">
|
||||
and shelf_order_id = #{shelfOrderId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="serialNumber != null and serialNumber != ''">
|
||||
and serial_number like concat('%', #{serialNumber}, '%')
|
||||
</if>
|
||||
<if test="inOrderNumber != null and inOrderNumber != ''">
|
||||
and in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialDetailId != null ">
|
||||
and material_detail_id = #{materialDetailId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber != ''">
|
||||
and batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="containerId != null ">
|
||||
and container_id = #{containerId}
|
||||
</if>
|
||||
<if test="containerCode != null and containerCode != ''">
|
||||
and container_code = #{containerCode}
|
||||
</if>
|
||||
<if test="containerType != null and containerType != ''">
|
||||
and container_type = #{containerType}
|
||||
</if>
|
||||
<if test="containerTypeName != null and containerTypeName != ''">
|
||||
and container_type_name like concat('%', #{containerTypeName}, '%')
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and status = #{status}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.serialNumber.repository.todo.SerialNumberDO" resultMap="SerialNumberResult">
|
||||
<include refid="selectSerialNumberPo"/>
|
||||
<include refid="selectSerialNumberPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,231 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.shelfMaterialDetail.repository.mapper.ShelfMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.shelfMaterialDetail.repository.po.ShelfMaterialDetailPO" id="ShelfMaterialDetailResult">
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="shelfOrderNumber" column="shelf_order_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="shelvesQuantity" column="shelves_quantity" />
|
||||
<result property="shelvesStatus" column="shelves_status" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
<result property="materialStatusCode" column="material_status_code" />
|
||||
<result property="materialStatusName" column="material_status_name" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="level" column="level" />
|
||||
<result property="parentUniqueId" column="parent_unique_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectShelfMaterialDetailPo">
|
||||
select material_detail_id, organization_id, organization_name, top_organization_id, unique_id, shelf_order_number, material_base_info_id, material_code, material_name, bar_code, quantity, already_shelves_quantity, shelves_quantity, shelves_status, pack_id, pack_code, pack_name, pack_detail_id, unit_code, unit_name, unit_number, material_warehouse_control_id, serial_number_manage, quality_inspection_manage, quality_inspection_stage, quality_inspection_rule, quality_inspection_ratio, quality_inspection_term, quality_inspection_results, allow_overcharge, overcharge_ratio, batch_number, material_status_code, material_status_name, distribute_rule_id, distribute_rule_code, distribute_rule_name, container_id, container_code, container_type, container_type_name, warehouse_id, warehouse_code, warehouse_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, level, parent_unique_id, in_unique_id, receipt_unique_id, allow_modify, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from shelf_material_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectShelfMaterialDetailPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="uniqueId != null ">
|
||||
and unique_id = #{uniqueId}
|
||||
</if>
|
||||
<if test="shelfOrderNumber != null and shelfOrderNumber != ''">
|
||||
and shelf_order_number = #{shelfOrderNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="shelvesQuantity != null ">
|
||||
and shelves_quantity = #{shelvesQuantity}
|
||||
</if>
|
||||
<if test="alreadyShelvesQuantity != null ">
|
||||
and already_shelves_quantity = #{alreadyShelvesQuantity}
|
||||
</if>
|
||||
<if test="shelvesStatus != null ">
|
||||
and shelves_status = #{shelvesStatus}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="qualityInspectionManage != null ">
|
||||
and quality_inspection_manage = #{qualityInspectionManage}
|
||||
</if>
|
||||
<if test="qualityInspectionStage != null ">
|
||||
and quality_inspection_stage = #{qualityInspectionStage}
|
||||
</if>
|
||||
<if test="qualityInspectionRule != null ">
|
||||
and quality_inspection_rule = #{qualityInspectionRule}
|
||||
</if>
|
||||
<if test="qualityInspectionRatio != null ">
|
||||
and quality_inspection_ratio = #{qualityInspectionRatio}
|
||||
</if>
|
||||
<if test="qualityInspectionTerm != null ">
|
||||
and quality_inspection_term = #{qualityInspectionTerm}
|
||||
</if>
|
||||
<if test="qualityInspectionResults != null ">
|
||||
and quality_inspection_results = #{qualityInspectionResults}
|
||||
</if>
|
||||
<if test="allowOvercharge != null ">
|
||||
and allow_overcharge = #{allowOvercharge}
|
||||
</if>
|
||||
<if test="overchargeRatio != null ">
|
||||
and overcharge_ratio = #{overchargeRatio}
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber != ''">
|
||||
and batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="materialStatusCode != null and materialStatusCode != ''">
|
||||
and material_status_code = #{materialStatusCode}
|
||||
</if>
|
||||
<if test="materialStatusName != null and materialStatusName != ''">
|
||||
and material_status_name like concat('%', #{materialStatusName}, '%')
|
||||
</if>
|
||||
<if test="distributeRuleId != null ">
|
||||
and distribute_rule_id = #{distributeRuleId}
|
||||
</if>
|
||||
<if test="distributeRuleCode != null and distributeRuleCode != ''">
|
||||
and distribute_rule_code = #{distributeRuleCode}
|
||||
</if>
|
||||
<if test="distributeRuleName != null and distributeRuleName != ''">
|
||||
and distribute_rule_name like concat('%', #{distributeRuleName}, '%')
|
||||
</if>
|
||||
<if test="containerId != null ">
|
||||
and container_id = #{containerId}
|
||||
</if>
|
||||
<if test="containerCode != null and containerCode != ''">
|
||||
and container_code = #{containerCode}
|
||||
</if>
|
||||
<if test="containerType != null and containerType != ''">
|
||||
and container_type = #{containerType}
|
||||
</if>
|
||||
<if test="containerTypeName != null and containerTypeName != ''">
|
||||
and container_type_name like concat('%', #{containerTypeName}, '%')
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="level != null ">
|
||||
and level = #{level}
|
||||
</if>
|
||||
<if test="parentUniqueId != null ">
|
||||
and parent_unique_id = #{parentUniqueId}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.shelfMaterialDetail.repository.todo.ShelfMaterialDetailDO" resultMap="ShelfMaterialDetailResult">
|
||||
<include refid="selectShelfMaterialDetailPo"/>
|
||||
<include refid="selectShelfMaterialDetailPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,160 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.shiftManage.repository.mapper.ShiftManageMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.shiftManage.repository.po.ShiftManagePO" id="ShiftManageResult">
|
||||
<result property="shiftManageId" column="shift_manage_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="shiftNumber" column="shift_number" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="shiftQuantity" column="shift_quantity" />
|
||||
<result property="materialTypeQuantity" column="material_type_quantity" />
|
||||
<result property="shiftMaterialQuantity" column="shift_material_quantity" />
|
||||
<result property="shiftStatus" column="shift_status" />
|
||||
<result property="auditStatus" column="audit_status" />
|
||||
<result property="auditRemark" column="audit_remark" />
|
||||
<result property="auditBy" column="audit_by" />
|
||||
<result property="auditByName" column="audit_by_name" />
|
||||
<result property="auditTime" column="audit_time" />
|
||||
<result property="taskDistribution" column="task_distribution" />
|
||||
<result property="taskDistributionTime" column="task_distribution_time" />
|
||||
<result property="operatorsBy" column="operators_by" />
|
||||
<result property="operatorsName" column="operators_name" />
|
||||
<result property="nullify" column="nullify" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectShiftManagePo">
|
||||
select shift_manage_id, organization_id, organization_name, top_organization_id, warehouse_id, warehouse_code, warehouse_name, shift_number, quantity, shift_quantity, material_type_quantity, shift_material_quantity, shift_status, audit_status, audit_remark, audit_by, audit_by_name, audit_time, task_distribution, task_distribution_time, operators_by, operators_name, nullify, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from shift_manage
|
||||
</sql>
|
||||
|
||||
<sql id="selectShiftManagePo1">
|
||||
<where>
|
||||
and del_flag = 1
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shiftNumber != null and shiftNumber != ''">
|
||||
and shift_number like concat('%',#{shiftNumber},'%')
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="shiftQuantity != null ">
|
||||
and shift_quantity = #{shiftQuantity}
|
||||
</if>
|
||||
<if test="materialTypeQuantity != null ">
|
||||
and material_type_quantity = #{materialTypeQuantity}
|
||||
</if>
|
||||
<if test="shiftMaterialQuantity != null ">
|
||||
and shift_material_quantity = #{shiftMaterialQuantity}
|
||||
</if>
|
||||
<if test="shiftStatus != null ">
|
||||
and shift_status = #{shiftStatus}
|
||||
</if>
|
||||
<if test="ltShiftStatus != null ">
|
||||
and shift_status < #{ltShiftStatus}
|
||||
</if>
|
||||
<if test="gtShiftStatus != null ">
|
||||
and shift_status > #{gtShiftStatus}
|
||||
</if>
|
||||
<if test="auditStatus != null ">
|
||||
and audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="auditRemark != null and auditRemark != ''">
|
||||
and audit_remark = #{auditRemark}
|
||||
</if>
|
||||
<if test="auditBy != null ">
|
||||
and audit_by = #{auditBy}
|
||||
</if>
|
||||
<if test="auditByName != null and auditByName != ''">
|
||||
and audit_by_name like concat('%', #{auditByName}, '%')
|
||||
</if>
|
||||
<if test="auditTime != null ">
|
||||
and audit_time = #{auditTime}
|
||||
</if>
|
||||
<if test="taskDistribution != null ">
|
||||
and task_distribution = #{taskDistribution}
|
||||
</if>
|
||||
<if test="taskDistributionTime != null ">
|
||||
and task_distribution_time = #{taskDistributionTime}
|
||||
</if>
|
||||
<if test="operatorsBy != null ">
|
||||
and operators_by = #{operatorsBy}
|
||||
</if>
|
||||
<if test="operatorsName != null and operatorsName != ''">
|
||||
and operators_name like concat('%', #{operatorsName}, '%')
|
||||
</if>
|
||||
<if test="nullify != null ">
|
||||
and nullify = #{nullify}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="createStartTime != null">
|
||||
and date_format(create_time,'%Y-%m-%d %H:%i:%s') <![CDATA[>=]]> #{createStartTime}
|
||||
</if>
|
||||
<if test="createEndTime != null">
|
||||
and date_format(create_time,'%Y-%m-%d %H:%i:%s') <![CDATA[<=]]> #{createEndTime}
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
and remark like concat('%',#{remark},'%')
|
||||
</if>
|
||||
<if test="shiftManageIds != null and shiftManageIds.size > 0 ">
|
||||
and shift_manage_id in
|
||||
<foreach collection="shiftManageIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<insert id="insertAll">
|
||||
|
||||
</insert>
|
||||
<update id="updateQuantity">
|
||||
update shift_manage
|
||||
set material_type_quantity = #{materialTypeQuantity},shift_material_quantity = #{shiftMaterialQuantity},shift_quantity=#{shiftQuantity}
|
||||
where shift_number = #{shiftNumber}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.shiftManage.repository.todo.ShiftManageDO" resultMap="ShiftManageResult">
|
||||
<include refid="selectShiftManagePo"/>
|
||||
<include refid="selectShiftManagePo1"/>
|
||||
order by create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,285 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.shiftMaterialDetail.repository.mapper.ShiftMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.shiftMaterialDetail.repository.po.ShiftMaterialDetailPO" id="ShiftMaterialDetailResult">
|
||||
<result property="shiftIoDetailId" column="shift_io_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="shiftNumber" column="shift_number" />
|
||||
<result property="materialStatusCode" column="material_status_code" />
|
||||
<result property="materialStatusName" column="material_status_name" />
|
||||
<result property="shiftStatus" column="shift_status" />
|
||||
<result property="inventoryQuantity" column="inventory_quantity" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="shiftQuantity" column="shift_quantity" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
<result property="shiftType" column="shift_type" />
|
||||
<result property="oldWarehouseId" column="old_warehouse_id" />
|
||||
<result property="oldWarehouseCode" column="old_warehouse_code" />
|
||||
<result property="oldWarehouseName" column="old_warehouse_name" />
|
||||
<result property="oldStorageSectionId" column="old_storage_section_id" />
|
||||
<result property="oldStorageCode" column="old_storage_code" />
|
||||
<result property="oldStorageName" column="old_storage_name" />
|
||||
<result property="oldStorageLocationId" column="old_storage_location_id" />
|
||||
<result property="oldStorageLocationCode" column="old_storage_location_code" />
|
||||
<result property="oldStorageLocationName" column="old_storage_location_name" />
|
||||
<result property="newWarehouseId" column="new_warehouse_id" />
|
||||
<result property="newWarehouseCode" column="new_warehouse_code" />
|
||||
<result property="newWarehouseName" column="new_warehouse_name" />
|
||||
<result property="newStorageSectionId" column="new_storage_section_id" />
|
||||
<result property="newStorageCode" column="new_storage_code" />
|
||||
<result property="newStorageName" column="new_storage_name" />
|
||||
<result property="newStorageLocationId" column="new_storage_location_id" />
|
||||
<result property="newStorageLocationCode" column="new_storage_location_code" />
|
||||
<result property="newStorageLocationName" column="new_storage_location_name" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="containerId" column="container_id" />
|
||||
<result property="containerCode" column="container_code" />
|
||||
<result property="containerType" column="container_type" />
|
||||
<result property="containerTypeName" column="container_type_name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectShiftMaterialDetailPo">
|
||||
select shift_io_detail_id, organization_id, organization_name, top_organization_id, unique_id, material_inventory_id, material_base_info_id, material_code, material_name, bar_code, shift_number, shift_status, inventory_quantity, quantity, already_shift_quantity, shift_quantity, batch_number,shift_type,old_warehouse_id, old_warehouse_code, old_warehouse_name, old_storage_section_id, old_storage_code, old_storage_name, old_storage_location_id, old_storage_location_code, old_storage_location_name, new_warehouse_id, new_warehouse_code, new_warehouse_name, new_storage_section_id, new_storage_code, new_storage_name, new_storage_location_id, new_storage_location_code, new_storage_location_name, pack_id, pack_code, pack_name, pack_detail_id, unit_code, unit_name, unit_number, material_warehouse_control_id, serial_number_manage, container_id, container_code, container_type, container_type_name, level, parent_unique_id, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag,batch_number,material_status_code,material_status_name from shift_material_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectShiftMaterialDetailPo1">
|
||||
<where>
|
||||
and del_flag = 1
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="uniqueId != null ">
|
||||
and unique_id = #{uniqueId}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="shiftNumber != null and shiftNumber != ''">
|
||||
and shift_number like concat('%',#{shiftNumber},'%')
|
||||
</if>
|
||||
<if test="shiftStatus != null ">
|
||||
and shift_status = #{shiftStatus}
|
||||
</if>
|
||||
<if test="inventoryQuantity != null ">
|
||||
and inventory_quantity = #{inventoryQuantity}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="shiftQuantity != null ">
|
||||
and shift_quantity = #{shiftQuantity}
|
||||
</if>
|
||||
<if test="oldWarehouseId != null ">
|
||||
and old_warehouse_id = #{oldWarehouseId}
|
||||
</if>
|
||||
<if test="oldWarehouseCode != null and oldWarehouseCode != ''">
|
||||
and old_warehouse_code = #{oldWarehouseCode}
|
||||
</if>
|
||||
<if test="oldWarehouseName != null and oldWarehouseName != ''">
|
||||
and old_warehouse_name like concat('%', #{oldWarehouseName}, '%')
|
||||
</if>
|
||||
<if test="oldStorageSectionId != null ">
|
||||
and old_storage_section_id = #{oldStorageSectionId}
|
||||
</if>
|
||||
<if test="oldStorageCode != null and oldStorageCode != ''">
|
||||
and old_storage_code = #{oldStorageCode}
|
||||
</if>
|
||||
<if test="oldStorageName != null and oldStorageName != ''">
|
||||
and old_storage_name like concat('%', #{oldStorageName}, '%')
|
||||
</if>
|
||||
<if test="oldStorageLocationId != null ">
|
||||
and old_storage_location_id = #{oldStorageLocationId}
|
||||
</if>
|
||||
<if test="oldStorageLocationCode != null and oldStorageLocationCode != ''">
|
||||
and old_storage_location_code = #{oldStorageLocationCode}
|
||||
</if>
|
||||
<if test="oldStorageLocationName != null and oldStorageLocationName != ''">
|
||||
and old_storage_location_name like concat('%', #{oldStorageLocationName}, '%')
|
||||
</if>
|
||||
<if test="newWarehouseId != null ">
|
||||
and new_warehouse_id = #{newWarehouseId}
|
||||
</if>
|
||||
<if test="newWarehouseCode != null and newWarehouseCode != ''">
|
||||
and new_warehouse_code = #{newWarehouseCode}
|
||||
</if>
|
||||
<if test="newWarehouseName != null and newWarehouseName != ''">
|
||||
and new_warehouse_name like concat('%', #{newWarehouseName}, '%')
|
||||
</if>
|
||||
<if test="newStorageSectionId != null ">
|
||||
and new_storage_section_id = #{newStorageSectionId}
|
||||
</if>
|
||||
<if test="newStorageCode != null and newStorageCode != ''">
|
||||
and new_storage_code = #{newStorageCode}
|
||||
</if>
|
||||
<if test="newStorageName != null and newStorageName != ''">
|
||||
and new_storage_name like concat('%', #{newStorageName}, '%')
|
||||
</if>
|
||||
<if test="newStorageLocationId != null ">
|
||||
and new_storage_location_id = #{newStorageLocationId}
|
||||
</if>
|
||||
<if test="newStorageLocationCode != null and newStorageLocationCode != ''">
|
||||
and new_storage_location_code = #{newStorageLocationCode}
|
||||
</if>
|
||||
<if test="newStorageLocationName != null and newStorageLocationName != ''">
|
||||
and new_storage_location_name like concat('%', #{newStorageLocationName}, '%')
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null ">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="containerId != null ">
|
||||
and container_id = #{containerId}
|
||||
</if>
|
||||
<if test="containerCode != null and containerCode != ''">
|
||||
and container_code = #{containerCode}
|
||||
</if>
|
||||
<if test="containerType != null and containerType != ''">
|
||||
and container_type = #{containerType}
|
||||
</if>
|
||||
<if test="containerTypeName != null and containerTypeName != ''">
|
||||
and container_type_name like concat('%', #{containerTypeName}, '%')
|
||||
</if>
|
||||
<if test="level != null ">
|
||||
and level = #{level}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">
|
||||
and remark like concat('%',#{remark},'%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<update id="updateShiftMaterialDetail">
|
||||
update shift_material_detail
|
||||
set shift_quantity = #{shiftQuantity},shift_status = #{shiftStatus}
|
||||
where shift_io_detail_id = #{shiftIoDetailId}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.shiftMaterialDetail.repository.todo.ShiftMaterialDetailDO" resultMap="ShiftMaterialDetailResult">
|
||||
<include refid="selectShiftMaterialDetailPo"/>
|
||||
<include refid="selectShiftMaterialDetailPo1"/>
|
||||
order by material_name
|
||||
</select>
|
||||
<select id="queryGroupList"
|
||||
resultType="com.mhd.wms.domain.shiftMaterialDetail.repository.po.ShiftMaterialDetailPO">
|
||||
<include refid="selectShiftMaterialDetailPo"/>
|
||||
<include refid="selectShiftMaterialDetailPo1"/>
|
||||
group by shift_number
|
||||
</select>
|
||||
|
||||
<select id="getShiftMaterialDetailPO"
|
||||
resultType="com.mhd.wms.domain.shiftMaterialDetail.repository.po.ShiftMaterialDetailPO">
|
||||
<include refid="selectShiftMaterialDetailPo"/>
|
||||
where new_warehouse_id = #{newWarehouseId}
|
||||
and new_storage_section_id = #{newStorageSectionId}
|
||||
and new_storage_location_id = #{newStorageLocationId}
|
||||
</select>
|
||||
<select id="getMaterialInventoryPO"
|
||||
resultType="com.mhd.wms.domain.materialInventory.repository.po.MaterialInventoryPO">
|
||||
select *
|
||||
from material_inventory
|
||||
where del_flag = 1
|
||||
<if test="newWarehouseId != null">
|
||||
and warehouse_id = #{newWarehouseId}
|
||||
</if>
|
||||
<if test="newStorageSectionId != null">
|
||||
and storage_section_id = #{newStorageSectionId}
|
||||
</if>
|
||||
<if test="newStorageLocationId != null">
|
||||
and storage_location_id = #{newStorageLocationId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectCountGroup" resultType="java.lang.Integer">
|
||||
SELECT COUNT( 1 ) FROM shift_material_detail WHERE material_base_info_id = #{materialBaseInfoId} and shift_status=2
|
||||
</select>
|
||||
|
||||
<select id="getShiftMaterialDetail"
|
||||
resultType="com.mhd.wms.domain.shiftMaterialDetail.repository.po.ShiftMaterialDetailPO">
|
||||
<include refid="selectShiftMaterialDetailPo"/>
|
||||
where shift_io_detail_id = #{shiftIoDetailId}
|
||||
</select>
|
||||
|
||||
<select id="queryListPDA"
|
||||
resultType="com.mhd.wms.domain.shiftMaterialDetail.repository.po.ShiftMaterialDetailPO">
|
||||
<include refid="selectShiftMaterialDetailPo"/>
|
||||
where shift_status != 1
|
||||
</select>
|
||||
|
||||
|
||||
<update id="updateCheckDetail">
|
||||
update shift_material_detail set shift_status = 2
|
||||
where shift_number = #{shiftNumber}
|
||||
</update>
|
||||
</mapper>
|
||||
+159
@@ -0,0 +1,159 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.sowingDistributionDetails.repository.mapper.SowingDistributionDetailsMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.sowingDistributionDetails.repository.po.SowingDistributionDetailsPO" id="SowingDistributionDetailsResult">
|
||||
<result property="sowingDistributionDetailsId" column="sowing_distribution_details_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="orderNumber" column="order_number" />
|
||||
<result property="type" column="type" />
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="inventoryQuantity" column="inventory_quantity" />
|
||||
<result property="allocationQuantity" column="allocation_quantity" />
|
||||
<result property="pickingQuantity" column="picking_quantity" />
|
||||
<result property="sowingWallCode" column="sowing_wall_code" />
|
||||
<result property="sowingWallNumber" column="sowing_wall_number" />
|
||||
<result property="sowingQuantity" column="sowing_quantity" />
|
||||
<result property="status" column="status" />
|
||||
<result property="sowingTime" column="sowing_time" />
|
||||
<result property="sowingBy" column="sowing_by" />
|
||||
<result property="sowingByName" column="sowing_by_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectSowingDistributionDetailsPo">
|
||||
select sowing_distribution_details_id, organization_id, organization_name, top_organization_id, warehouse_id, warehouse_code, warehouse_name, order_number, type, material_detail_id, material_code, material_name, bar_code, quantity, inventory_quantity, allocation_quantity, picking_quantity, sowing_wall_code, sowing_wall_number, sowing_quantity, status, sowing_time, sowing_by, sowing_by_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, serial_number_manage, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from sowing_distribution_details
|
||||
</sql>
|
||||
|
||||
<sql id="selectSowingDistributionDetailsPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="orderNumber != null and orderNumber != ''">
|
||||
and order_number = #{orderNumber}
|
||||
</if>
|
||||
<if test="type != null ">
|
||||
and type = #{type}
|
||||
</if>
|
||||
<if test="materialDetailId != null ">
|
||||
and material_detail_id = #{materialDetailId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="inventoryQuantity != null ">
|
||||
and inventory_quantity = #{inventoryQuantity}
|
||||
</if>
|
||||
<if test="allocationQuantity != null ">
|
||||
and allocation_quantity = #{allocationQuantity}
|
||||
</if>
|
||||
<if test="pickingQuantity != null ">
|
||||
and picking_quantity = #{pickingQuantity}
|
||||
</if>
|
||||
<if test="sowingWallCode != null and sowingWallCode != ''">
|
||||
and sowing_wall_code = #{sowingWallCode}
|
||||
</if>
|
||||
<if test="sowingWallNumber != null ">
|
||||
and sowing_wall_number = #{sowingWallNumber}
|
||||
</if>
|
||||
<if test="sowingQuantity != null ">
|
||||
and sowing_quantity = #{sowingQuantity}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and status = #{status}
|
||||
</if>
|
||||
<if test="sowingTime != null ">
|
||||
and sowing_time = #{sowingTime}
|
||||
</if>
|
||||
<if test="sowingBy != null ">
|
||||
and sowing_by = #{sowingBy}
|
||||
</if>
|
||||
<if test="sowingByName != null and sowingByName != ''">
|
||||
and sowing_by_name like concat('%', #{sowingByName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.sowingDistributionDetails.repository.todo.SowingDistributionDetailsDO" resultMap="SowingDistributionDetailsResult">
|
||||
<include refid="selectSowingDistributionDetailsPo"/>
|
||||
<include refid="selectSowingDistributionDetailsPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.sowingWall.repository.mapper.SowingWallMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.sowingWall.repository.po.SowingWallPO" id="SowingWallResult">
|
||||
<result property="sowingWallId" column="sowing_wall_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="sowingWallCode" column="sowing_wall_code" />
|
||||
<result property="layerNum" column="layer_num" />
|
||||
<result property="columnNumber" column="column_number" />
|
||||
<result property="openingUp" column="opening_up" />
|
||||
<result property="nullify" column="nullify" />
|
||||
<result property="sowingWallDesc" column="sowing_wall_desc" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectSowingWallPo">
|
||||
select sowing_wall_id, organization_id, organization_name, top_organization_id, sowing_wall_code, layer_num, column_number, opening_up, nullify, sowing_wall_desc, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from sowing_wall
|
||||
</sql>
|
||||
|
||||
<sql id="selectSowingWallPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="sowingWallCode != null and sowingWallCode != ''">
|
||||
and sowing_wall_code = #{sowingWallCode}
|
||||
</if>
|
||||
<if test="layerNum != null ">
|
||||
and layer_num = #{layerNum}
|
||||
</if>
|
||||
<if test="columnNumber != null ">
|
||||
and column_number = #{columnNumber}
|
||||
</if>
|
||||
<if test="openingUp != null ">
|
||||
and opening_up = #{openingUp}
|
||||
</if>
|
||||
<if test="sowingWallDesc != null and sowingWallDesc != ''">
|
||||
and sowing_wall_desc = #{sowingWallDesc}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
|
||||
<otherwise> and del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.sowingWall.repository.todo.SowingWallDO" resultMap="SowingWallResult">
|
||||
<include refid="selectSowingWallPo"/>
|
||||
<include refid="selectSowingWallPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,284 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.stockInOrder.repository.po.StockInOrderPO" id="StockInOrderResult">
|
||||
<result property="inOrderId" column="in_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="noticeNumber" column="notice_number" />
|
||||
<result property="inOrderNumber" column="in_order_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="auditStatus" column="audit_status" />
|
||||
<result property="auditRemark" column="audit_remark" />
|
||||
<result property="auditBy" column="audit_by" />
|
||||
<result property="auditByName" column="audit_by_name" />
|
||||
<result property="auditTime" column="audit_time" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="orderTypeCode" column="order_type_code" />
|
||||
<result property="orderTypeName" column="order_type_name" />
|
||||
<result property="supplierId" column="supplier_id" />
|
||||
<result property="supplierName" column="supplier_name" />
|
||||
<result property="expectTime" column="expect_time" />
|
||||
<result property="supplyChainNumber" column="supply_chain_number" />
|
||||
<result property="priorityLevelCode" column="priority_level_code" />
|
||||
<result property="priorityLevelName" column="priority_level_name" />
|
||||
<result property="directWarehouse" column="direct_warehouse" />
|
||||
<result property="annexUrl" column="annex_url" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="cancelOrder" column="cancel_order" />
|
||||
<result property="cancelRemark" column="cancel_remark" />
|
||||
<result property="cancelBy" column="cancel_by" />
|
||||
<result property="cancelByName" column="cancel_by_name" />
|
||||
<result property="cancelTime" column="cancel_time" />
|
||||
<result property="closeOrder" column="close_order" />
|
||||
<result property="closeRemark" column="close_remark" />
|
||||
<result property="closeBy" column="close_by" />
|
||||
<result property="closeByName" column="close_by_name" />
|
||||
<result property="closeTime" column="close_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="overStockId" column="over_stock_id" />
|
||||
<result property="overStockStatus" column="over_stock_status" />
|
||||
<result property="overStockType" column="over_stock_type" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectStockInOrderPo">
|
||||
a.in_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.notice_number, a.in_order_number, a.status,
|
||||
a.audit_status, a.audit_remark, a.audit_by, a.audit_by_name, a.audit_time, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id, a.shipper_code,
|
||||
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, 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
|
||||
</sql>
|
||||
|
||||
<sql id="joinStockInOrderPo">
|
||||
,b.notice_number, b.warehouse_id, b.warehouse_code, b.warehouse_name, b.shipper_id, b.shipper_code, b.shipper_name,
|
||||
b.order_type_code, b.order_type_name, b.supplier_id, b.supplier_code, b.supplier_name, b.expect_time, b.supply_chain_number, b.priority_level_code,
|
||||
b.priority_level_name, b.direct_warehouse, b.annex_url, b.material_quantity, b.quantity
|
||||
</sql>
|
||||
|
||||
<sql id="joinStockInOrderPoWhere">
|
||||
|
||||
<if test="noticeNumber != null and noticeNumber != ''">
|
||||
and b.notice_number = #{noticeNumber}
|
||||
</if>
|
||||
<if test="inOrderNumber != null and inOrderNumber != ''">
|
||||
and b.in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and b.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and b.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and b.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and b.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and b.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="orderTypeCode != null and orderTypeCode != ''">
|
||||
and b.order_type_code = #{orderTypeCode}
|
||||
</if>
|
||||
<if test="orderTypeName != null and orderTypeName != ''">
|
||||
and b.order_type_name like concat('%', #{orderTypeName}, '%')
|
||||
</if>
|
||||
<if test="supplierId != null ">
|
||||
and b.supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="supplierName != null and supplierName != ''">
|
||||
and b.supplier_name like concat('%', #{supplierName}, '%')
|
||||
</if>
|
||||
<if test="expectTime != null ">
|
||||
and b.expect_time = #{expectTime}
|
||||
</if>
|
||||
<if test="supplyChainNumber != null and supplyChainNumber != ''">
|
||||
and b.supply_chain_number = #{supplyChainNumber}
|
||||
</if>
|
||||
<if test="priorityLevelCode != null and priorityLevelCode != ''">
|
||||
and b.priority_level_code = #{priorityLevelCode}
|
||||
</if>
|
||||
<if test="priorityLevelName != null and priorityLevelName != ''">
|
||||
and b.priority_level_name like concat('%', #{priorityLevelName}, '%')
|
||||
</if>
|
||||
<if test="directWarehouse != null ">
|
||||
and b.direct_warehouse = #{directWarehouse}
|
||||
</if>
|
||||
<if test="annexUrl != null and annexUrl != ''">
|
||||
and b.annex_url = #{annexUrl}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and b.quantity = #{quantity}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<sql id="selectStockInOrderPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="noticeNumber != null and noticeNumber != ''">
|
||||
and a.notice_number = #{noticeNumber}
|
||||
</if>
|
||||
<if test="inOrderNumber != null and inOrderNumber != ''">
|
||||
and a.in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and a.status = #{status}
|
||||
</if>
|
||||
<if test="ltStatus != null ">
|
||||
and a.status < #{status}
|
||||
</if>
|
||||
<if test="gtStatus != null ">
|
||||
and a.status > #{status}
|
||||
</if>
|
||||
<if test="auditStatus != null ">
|
||||
and a.audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="ltAuditStatus != null ">
|
||||
and a.audit_status < #{ltAuditStatus}
|
||||
</if>
|
||||
<if test="gtAuditStatus != null ">
|
||||
and a.audit_status > #{gtAuditStatus}
|
||||
</if>
|
||||
<if test="auditRemark != null and auditRemark != ''">
|
||||
and a.audit_remark = #{auditRemark}
|
||||
</if>
|
||||
<if test="auditBy != null ">
|
||||
and a.audit_by = #{auditBy}
|
||||
</if>
|
||||
<if test="auditByName != null and auditByName != ''">
|
||||
and a.audit_by_name like concat('%', #{auditByName}, '%')
|
||||
</if>
|
||||
<if test="auditTime != null ">
|
||||
and a.audit_time = #{auditTime}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and a.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and a.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="orderTypeCode != null and orderTypeCode != ''">
|
||||
and a.order_type_code = #{orderTypeCode}
|
||||
</if>
|
||||
<if test="orderTypeName != null and orderTypeName != ''">
|
||||
and a.order_type_name like concat('%', #{orderTypeName}, '%')
|
||||
</if>
|
||||
<if test="supplierId != null ">
|
||||
and a.supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="supplierName != null and supplierName != ''">
|
||||
and a.supplier_name like concat('%', #{supplierName}, '%')
|
||||
</if>
|
||||
<if test="expectTime != null ">
|
||||
and a.expect_time = #{expectTime}
|
||||
</if>
|
||||
<if test="supplyChainNumber != null and supplyChainNumber != ''">
|
||||
and a.supply_chain_number = #{supplyChainNumber}
|
||||
</if>
|
||||
<if test="priorityLevelCode != null and priorityLevelCode != ''">
|
||||
and a.priority_level_code = #{priorityLevelCode}
|
||||
</if>
|
||||
<if test="priorityLevelName != null and priorityLevelName != ''">
|
||||
and a.priority_level_name like concat('%', #{priorityLevelName}, '%')
|
||||
</if>
|
||||
<if test="directWarehouse != null ">
|
||||
and a.direct_warehouse = #{directWarehouse}
|
||||
</if>
|
||||
<if test="annexUrl != null and annexUrl != ''">
|
||||
and a.annex_url = #{annexUrl}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="cancelOrder != null ">
|
||||
and a.cancel_order = #{cancelOrder}
|
||||
</if>
|
||||
<if test="cancelRemark != null and cancelRemark != ''">
|
||||
and a.cancel_remark = #{cancelRemark}
|
||||
</if>
|
||||
<if test="cancelBy != null ">
|
||||
and a.cancel_by = #{cancelBy}
|
||||
</if>
|
||||
<if test="cancelByName != null and cancelByName != ''">
|
||||
and a.cancel_by_name like concat('%', #{cancelByName}, '%')
|
||||
</if>
|
||||
<if test="cancelTime != null ">
|
||||
and a.cancel_time = #{cancelTime}
|
||||
</if>
|
||||
<if test="closeOrder != null ">
|
||||
and a.close_order = #{closeOrder}
|
||||
</if>
|
||||
<if test="closeRemark != null and closeRemark != ''">
|
||||
and a.close_remark = #{closeRemark}
|
||||
</if>
|
||||
<if test="closeBy != null ">
|
||||
and a.close_by = #{closeBy}
|
||||
</if>
|
||||
<if test="closeByName != null and closeByName != ''">
|
||||
and a.close_by_name like concat('%', #{closeByName}, '%')
|
||||
</if>
|
||||
<if test="closeTime != null ">
|
||||
and a.close_time = #{closeTime}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="inOrderIds != null and inOrderIds.size > 0 ">
|
||||
and a.in_order_id in
|
||||
<foreach collection="inOrderIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.stockInOrder.repository.todo.StockInOrderDO" resultMap="StockInOrderResult">
|
||||
select
|
||||
<include refid="selectStockInOrderPo"/>
|
||||
from stock_in_order a
|
||||
<where>
|
||||
<include refid="selectStockInOrderPo1"/>
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.stockInTaskOrder.repository.mapper.StockInTaskOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.stockInTaskOrder.repository.po.StockInTaskOrderPO" id="StockInTaskOrderResult">
|
||||
<result property="inTaskOrderId" column="in_task_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="serialNumber" column="serial_number" />
|
||||
<result property="type" column="type" />
|
||||
<result property="taskNumber" column="task_number" />
|
||||
<result property="actualQuantity" column="actual_quantity" />
|
||||
<result property="operatorsBy" column="operators_by" />
|
||||
<result property="operatorsName" column="operators_name" />
|
||||
<result property="operatorsEndTime" column="operators_end_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectStockInTaskOrderPo">
|
||||
a.in_task_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.serial_number, a.type, a.task_number, a.warehouse_id, a.warehouse_code,
|
||||
a.warehouse_name, a.shipper_id, a.shipper_name, a.in_order_number, a.receipt_order_number, a.shelf_order_number, a.actual_quantity, a.operators_by,
|
||||
a.operators_name, a.operators_end_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
|
||||
</sql>
|
||||
|
||||
<sql id="selectStockInTaskOrderPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="serialNumber != null and serialNumber != ''">
|
||||
and a.serial_number = #{serialNumber}
|
||||
</if>
|
||||
<if test="type != null ">
|
||||
and a.type = #{type}
|
||||
</if>
|
||||
<if test="taskNumber != null and taskNumber != ''">
|
||||
and a.task_number = #{taskNumber}
|
||||
</if>
|
||||
<if test="actualQuantity != null ">
|
||||
and a.actual_quantity = #{actualQuantity}
|
||||
</if>
|
||||
<if test="operatorsBy != null ">
|
||||
and a.operators_by = #{operatorsBy}
|
||||
</if>
|
||||
<if test="operatorsName != null and operatorsName != ''">
|
||||
and a.operators_name like concat('%', #{operatorsName}, '%')
|
||||
</if>
|
||||
<if test="operatorsEndTime != null ">
|
||||
and a.operators_end_time = #{operatorsEndTime}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.stockInTaskOrder.repository.todo.StockInTaskOrderDO" resultMap="StockInTaskOrderResult">
|
||||
select
|
||||
<include refid="selectStockInTaskOrderPo"/>
|
||||
from stock_in_task_order a
|
||||
<where>
|
||||
<include refid="selectStockInTaskOrderPo1"/>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,252 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.stockOutOrder.repository.mapper.StockOutOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.stockOutOrder.repository.po.StockOutOrderPO" id="StockOutOrderResult">
|
||||
<result property="outOrderId" column="out_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="noticeNumber" column="notice_number" />
|
||||
<result property="outOrderNumber" column="out_order_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="auditStatus" column="audit_status" />
|
||||
<result property="auditRemark" column="audit_remark" />
|
||||
<result property="auditBy" column="audit_by" />
|
||||
<result property="auditByName" column="audit_by_name" />
|
||||
<result property="auditTime" column="audit_time" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="orderTypeCode" column="order_type_code" />
|
||||
<result property="orderTypeName" column="order_type_name" />
|
||||
<result property="customerId" column="customer_id" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="expectTime" column="expect_time" />
|
||||
<result property="supplyChainNumber" column="supply_chain_number" />
|
||||
<result property="priorityLevelCode" column="priority_level_code" />
|
||||
<result property="priorityLevelName" column="priority_level_name" />
|
||||
<result property="directWarehouse" column="direct_warehouse" />
|
||||
<result property="review" column="review" />
|
||||
<result property="annexUrl" column="annex_url" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="cancelOrder" column="cancel_order" />
|
||||
<result property="cancelRemark" column="cancel_remark" />
|
||||
<result property="cancelBy" column="cancel_by" />
|
||||
<result property="cancelByName" column="cancel_by_name" />
|
||||
<result property="cancelTime" column="cancel_time" />
|
||||
<result property="closeOrder" column="close_order" />
|
||||
<result property="closeRemark" column="close_remark" />
|
||||
<result property="closeBy" column="close_by" />
|
||||
<result property="closeByName" column="close_by_name" />
|
||||
<result property="closeTime" column="close_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="overStockId" column="over_stock_id" />
|
||||
<result property="overStockStatus" column="over_stock_status" />
|
||||
<result property="overStockType" column="over_stock_type" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectStockOutOrderPo">
|
||||
a.out_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.receipt_notice_id, a.notice_number, a.out_order_number, a.status,
|
||||
a.audit_status, a.audit_remark, a.audit_by, a.audit_by_name, a.audit_time, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id, a.shipper_code,
|
||||
a.shipper_name, a.order_type_code, a.order_type_name, a.customer_id, a.customer_code, a.customer_name, a.expect_time, a.supply_chain_number, a.priority_level_code,
|
||||
a.priority_level_name, a.direct_warehouse, a.review, a.annex_url, a.material_quantity, a.quantity, a.weight_limit, a.volume_limit, a.check_quantity, 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.check_status,
|
||||
a.check_task_distribution, a.check_task_distribution_time, a.check_operators_by, a.check_operators_name, a.mobilize_code,
|
||||
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
|
||||
</sql>
|
||||
|
||||
|
||||
<sql id="joinStockOutOrderPo">
|
||||
,b.notice_number, b.out_order_number, b.warehouse_id, b.warehouse_code, b.warehouse_name, b.shipper_id, b.shipper_code,
|
||||
b.shipper_name, b.order_type_code, b.order_type_name, b.customer_id, b.customer_name, b.expect_time, b.supply_chain_number, b.priority_level_code,
|
||||
b.priority_level_name, b.direct_warehouse, b.review, b.annex_url, b.quantity
|
||||
</sql>
|
||||
|
||||
<sql id="selectStockOutOrderPo1">
|
||||
<if test="outOrderId != null ">
|
||||
and a.out_order_id = #{outOrderId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="noticeNumber != null and noticeNumber != ''">
|
||||
and a.notice_number = #{noticeNumber}
|
||||
</if>
|
||||
<if test="outOrderNumber != null and outOrderNumber != ''">
|
||||
and a.out_order_number = #{outOrderNumber}
|
||||
</if>
|
||||
<!-- 出库状态: 1-已创建 2-已审核 3-部分分配 4-已分配 5-拣货中 6-波次中 7-拣货完成 8-复核中 9-已出库 10-已取消 11-已关闭 -->
|
||||
<if test="status != null ">
|
||||
<choose>
|
||||
<when test="status == -1 "> <!-- 作业中 -->
|
||||
<!-- 出库状态: 3-部分分配 4-已分配 5-拣货中 6-波次中 7-拣货完成 8-复核中-->
|
||||
and a.status IN (3, 4, 5, 6, 7, 8)
|
||||
</when>
|
||||
<otherwise>
|
||||
and a.status = #{status}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
<!-- 出库状态: 1-已创建 2-已审核 3-部分分配 4-已分配 5-拣货中 6-波次中 7-拣货完成 8-复核中 9-已出库 10-已取消 11-已关闭 -->
|
||||
<if test="gtStatus != null ">
|
||||
and a.status > #{gtStatus}
|
||||
</if>
|
||||
<if test="ltStatus != null ">
|
||||
and a.status < #{ltStatus}
|
||||
</if>
|
||||
<if test="auditStatus != null ">
|
||||
and a.audit_status = #{auditStatus}
|
||||
</if>
|
||||
<if test="auditRemark != null and auditRemark != ''">
|
||||
and a.audit_remark = #{auditRemark}
|
||||
</if>
|
||||
<if test="auditBy != null ">
|
||||
and a.audit_by = #{auditBy}
|
||||
</if>
|
||||
<if test="auditByName != null and auditByName != ''">
|
||||
and a.audit_by_name like concat('%', #{auditByName}, '%')
|
||||
</if>
|
||||
<if test="auditTime != null ">
|
||||
and a.audit_time = #{auditTime}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and a.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and a.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="orderTypeCode != null and orderTypeCode != ''">
|
||||
and a.order_type_code = #{orderTypeCode}
|
||||
</if>
|
||||
<if test="orderTypeName != null and orderTypeName != ''">
|
||||
and a.order_type_name like concat('%', #{orderTypeName}, '%')
|
||||
</if>
|
||||
<if test="customerId != null ">
|
||||
and a.customer_id = #{customerId}
|
||||
</if>
|
||||
<if test="customerName != null and customerName != ''">
|
||||
and a.customer_name like concat('%', #{customerName}, '%')
|
||||
</if>
|
||||
<if test="expectTime != null ">
|
||||
and a.expect_time = #{expectTime}
|
||||
</if>
|
||||
<if test="supplyChainNumber != null and supplyChainNumber != ''">
|
||||
and a.supply_chain_number = #{supplyChainNumber}
|
||||
</if>
|
||||
<if test="priorityLevelCode != null and priorityLevelCode != ''">
|
||||
and a.priority_level_code = #{priorityLevelCode}
|
||||
</if>
|
||||
<if test="priorityLevelName != null and priorityLevelName != ''">
|
||||
and a.priority_level_name like concat('%', #{priorityLevelName}, '%')
|
||||
</if>
|
||||
<if test="directWarehouse != null ">
|
||||
and a.direct_warehouse = #{directWarehouse}
|
||||
</if>
|
||||
<if test="review != null ">
|
||||
and a.review = #{review}
|
||||
</if>
|
||||
<if test="annexUrl != null and annexUrl != ''">
|
||||
and a.annex_url = #{annexUrl}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="cancelOrder != null ">
|
||||
and a.cancel_order = #{cancelOrder}
|
||||
</if>
|
||||
<if test="cancelRemark != null and cancelRemark != ''">
|
||||
and a.cancel_remark = #{cancelRemark}
|
||||
</if>
|
||||
<if test="cancelBy != null ">
|
||||
and a.cancel_by = #{cancelBy}
|
||||
</if>
|
||||
<if test="cancelByName != null and cancelByName != ''">
|
||||
and a.cancel_by_name like concat('%', #{cancelByName}, '%')
|
||||
</if>
|
||||
<if test="cancelTime != null ">
|
||||
and a.cancel_time = #{cancelTime}
|
||||
</if>
|
||||
<if test="closeOrder != null ">
|
||||
and a.close_order = #{closeOrder}
|
||||
</if>
|
||||
<if test="closeRemark != null and closeRemark != ''">
|
||||
and a.close_remark = #{closeRemark}
|
||||
</if>
|
||||
<if test="closeBy != null ">
|
||||
and a.close_by = #{closeBy}
|
||||
</if>
|
||||
<if test="closeByName != null and closeByName != ''">
|
||||
and a.close_by_name like concat('%', #{closeByName}, '%')
|
||||
</if>
|
||||
<if test="closeTime != null ">
|
||||
and a.close_time = #{closeTime}
|
||||
</if>
|
||||
<if test="checkStatus != null ">
|
||||
and a.check_status = #{checkStatus}
|
||||
</if>
|
||||
<if test="gtCheckStatus != null ">
|
||||
and a.check_status > #{gtCheckStatus}
|
||||
</if>
|
||||
<if test="ltCheckStatus != null ">
|
||||
and a.check_status < #{ltCheckStatus}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="checkOperatorsBy != null and checkOperatorsBy != ''">
|
||||
and a.check_operators_by = #{checkOperatorsBy}
|
||||
</if>
|
||||
<if test="outOrderIds != null and outOrderIds.size > 0 ">
|
||||
and a.out_order_id in
|
||||
<foreach collection="outOrderIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.stockOutOrder.repository.todo.StockOutOrderDO" resultMap="StockOutOrderResult">
|
||||
select
|
||||
<include refid="selectStockOutOrderPo"/>
|
||||
from stock_out_order a
|
||||
<where>
|
||||
<include refid="selectStockOutOrderPo1"/>
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,127 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.stockOutTaskOrder.repository.mapper.StockOutTaskOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.stockOutTaskOrder.repository.po.StockOutTaskOrderPO" id="StockOutTaskOrderResult">
|
||||
<result property="outTaskOrderId" column="out_task_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="serialNumber" column="serial_number" />
|
||||
<result property="taskNumber" column="task_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="type" column="type" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="orderNumber" column="order_number" />
|
||||
<result property="pickingOrderNumber" column="picking_order_number" />
|
||||
<result property="abnormal" column="abnormal" />
|
||||
<result property="operatorsBy" column="operators_by" />
|
||||
<result property="operatorsName" column="operators_name" />
|
||||
<result property="operatorsEndTime" column="operators_end_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectStockOutTaskOrderPo">
|
||||
a.out_task_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.serial_number, a.task_number, a.status, a.type, a.warehouse_id,
|
||||
a.warehouse_code, a.warehouse_name, a.shipper_id, a.shipper_name, a.order_number, a.picking_order_number, a.quantity, a.material_quantity, a.picking_quantity, a.picking_material_quantity, a.collection_location,
|
||||
a.abnormal, a.operators_by, a.operators_name, a.operators_end_time, a.storage_section_id, a.storage_code, a.storage_name, a.storage_location_id, a.storage_location_code, a.storage_location_name, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectStockOutTaskOrderPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="serialNumber != null and serialNumber != ''">
|
||||
and a.serial_number = #{serialNumber}
|
||||
</if>
|
||||
<if test="taskNumber != null and taskNumber != ''">
|
||||
and a.task_number = #{taskNumber}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and a.status = #{status}
|
||||
</if>
|
||||
<if test="ltStatus != null ">
|
||||
and a.status < #{ltStatus}
|
||||
</if>
|
||||
<if test="gtStatus != null ">
|
||||
and a.status > #{gtStatus}
|
||||
</if>
|
||||
<if test="type != null ">
|
||||
and a.type = #{type}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and a.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and a.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="orderNumber != null and orderNumber != ''">
|
||||
and a.order_number = #{orderNumber}
|
||||
</if>
|
||||
<if test="pickingOrderNumber != null and pickingOrderNumber != ''">
|
||||
and a.picking_order_number = #{pickingOrderNumber}
|
||||
</if>
|
||||
<if test="abnormal != null ">
|
||||
and a.abnormal = #{abnormal}
|
||||
</if>
|
||||
<if test="operatorsBy != null ">
|
||||
and a.operators_by = #{operatorsBy}
|
||||
</if>
|
||||
<if test="operatorsName != null and operatorsName != ''">
|
||||
and a.operators_name like concat('%', #{operatorsName}, '%')
|
||||
</if>
|
||||
<if test="operatorsEndTime != null ">
|
||||
and a.operators_end_time = #{operatorsEndTime}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.stockOutTaskOrder.repository.todo.StockOutTaskOrderDO" resultMap="StockOutTaskOrderResult">
|
||||
select
|
||||
<include refid="selectStockOutTaskOrderPo"/>
|
||||
from stock_out_task_order a
|
||||
<where>
|
||||
<include refid="selectStockOutTaskOrderPo1"/>
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,128 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.noticeOrder.repository.mapper.NoticeOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.noticeOrder.repository.po.NoticeOrderPO" id="StockReceiptNoticeResult">
|
||||
<result property="noticeId" column="notice_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="customerOrderNumber" column="customer_order_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="noticeNumber" column="notice_number" />
|
||||
<result property="orderNumber" column="order_number" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="orderTypeCode" column="order_type_code" />
|
||||
<result property="orderTypeName" column="order_type_name" />
|
||||
<result property="supplierId" column="supplier_id" />
|
||||
<result property="supplierName" column="supplier_name" />
|
||||
<result property="expectTime" column="expect_time" />
|
||||
<result property="supplyChainNumber" column="supply_chain_number" />
|
||||
<result property="nullify" column="nullify" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectStockReceiptNoticePo">
|
||||
a.notice_id, a.organization_id, a.organization_name, a.top_organization_id, a.customer_order_number, a.type, a.status, a.notice_number,
|
||||
a.order_number, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id, a.shipper_code, a.shipper_name, a.order_type_code, a.order_type_name,
|
||||
a.supplier_id, a.supplier_code, a.supplier_name, a.customer_id, a.customer_code, a.customer_name, a.expect_time, a.supply_chain_number, a.nullify, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectStockReceiptNoticePo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="customerOrderNumber != null and customerOrderNumber != ''">
|
||||
and a.customer_order_number = #{customerOrderNumber}
|
||||
</if>
|
||||
<if test="type != null ">
|
||||
and a.type = #{type}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and a.status = #{status}
|
||||
</if>
|
||||
<if test="noticeNumber != null and noticeNumber != ''">
|
||||
and a.notice_number = #{noticeNumber}
|
||||
</if>
|
||||
<if test="orderNumber != null and orderNumber != ''">
|
||||
and a.order_number = #{orderNumber}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and a.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and a.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="orderTypeCode != null and orderTypeCode != ''">
|
||||
and a.order_type_code = #{orderTypeCode}
|
||||
</if>
|
||||
<if test="orderTypeName != null and orderTypeName != ''">
|
||||
and a.order_type_name like concat('%', #{orderTypeName}, '%')
|
||||
</if>
|
||||
<if test="supplierId != null ">
|
||||
and a.supplier_id = #{supplierId}
|
||||
</if>
|
||||
<if test="supplierName != null and supplierName != ''">
|
||||
and a.supplier_name like concat('%', #{supplierName}, '%')
|
||||
</if>
|
||||
<if test="expectTime != null ">
|
||||
and a.expect_time = #{expectTime}
|
||||
</if>
|
||||
<if test="supplyChainNumber != null and supplyChainNumber != ''">
|
||||
and a.supply_chain_number = #{supplyChainNumber}
|
||||
</if>
|
||||
<if test="nullify != null ">
|
||||
and a.nullify = #{nullify}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.noticeOrder.repository.todo.NoticeOrderDO" resultMap="StockReceiptNoticeResult">
|
||||
select
|
||||
<include refid="selectStockReceiptNoticePo"/>
|
||||
from notice_order a
|
||||
<where>
|
||||
<include refid="selectStockReceiptNoticePo1"/>
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,135 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.stockReceiptOrder.repository.mapper.StockReceiptOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.stockReceiptOrder.repository.po.StockReceiptOrderPO" id="StockReceiptOrderResult">
|
||||
<result property="receiptOrderId" column="receipt_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="receiptOrderNumber" column="receipt_order_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="platformId" column="platform_id" />
|
||||
<result property="platformCode" column="platform_code" />
|
||||
<result property="platformName" column="platform_name" />
|
||||
<result property="platformUseTimeId" column="platform_use_time_id" />
|
||||
<result property="platformUseStartTime" column="platform_use_start_time" />
|
||||
<result property="platformUseEndTime" column="platform_use_end_time" />
|
||||
<result property="platformUseStatus" column="platform_use_status" />
|
||||
<result property="receiptQuantity" column="receipt_quantity" />
|
||||
<result property="abnormal" column="abnormal" />
|
||||
<result property="taskDistribution" column="task_distribution" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectStockReceiptOrderPo">
|
||||
a.receipt_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.in_order_number, a.receipt_order_number,
|
||||
a.status, a.platform_id, a.platform_code, a.platform_name, a.platform_use_time_id, a.platform_use_start_time, a.platform_use_end_time,
|
||||
a.platform_use_status, a.quantity, a.receipt_quantity, a.receipt_material_quantity, a.material_quantity, a.abnormal, a.task_distribution, a.task_distribution_time,
|
||||
a.operators_by, a.operators_name, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectStockReceiptOrderPo1">
|
||||
<if test="receiptOrderId != null ">
|
||||
and a.receipt_order_id = #{receiptOrderId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="inOrderNumber != null and inOrderNumber != '' ">
|
||||
and a.in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="receiptOrderNumber != null and receiptOrderNumber != ''">
|
||||
and a.receipt_order_number like concat('%', #{receiptOrderNumber}, '%')
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and a.status = #{status}
|
||||
</if>
|
||||
<if test="ltStatus != null ">
|
||||
and a.status < #{ltStatus}
|
||||
</if>
|
||||
<if test="gtStatus != null ">
|
||||
and a.status > #{gtStatus}
|
||||
</if>
|
||||
<if test="platformId != null ">
|
||||
and a.platform_id = #{platformId}
|
||||
</if>
|
||||
<if test="platformCode != null and platformCode != ''">
|
||||
and a.platform_code = #{platformCode}
|
||||
</if>
|
||||
<if test="platformName != null and platformName != ''">
|
||||
and a.platform_name like concat('%', #{platformName}, '%')
|
||||
</if>
|
||||
<if test="platformUseTimeId != null ">
|
||||
and a.platform_use_time_id = #{platformUseTimeId}
|
||||
</if>
|
||||
<if test="platformUseStartTime != null ">
|
||||
and a.platform_use_start_time = #{platformUseStartTime}
|
||||
</if>
|
||||
<if test="platformUseEndTime != null ">
|
||||
and a.platform_use_end_time = #{platformUseEndTime}
|
||||
</if>
|
||||
<if test="platformUseStatus != null ">
|
||||
and a.platform_use_status = #{platformUseStatus}
|
||||
</if>
|
||||
<if test="receiptQuantity != null ">
|
||||
and a.receipt_quantity = #{receiptQuantity}
|
||||
</if>
|
||||
<if test="abnormal != null ">
|
||||
and a.abnormal = #{abnormal}
|
||||
</if>
|
||||
<if test="taskDistribution != null ">
|
||||
and a.task_distribution = #{taskDistribution}
|
||||
</if>
|
||||
<if test="operatorsBy != null and operatorsBy != ''">
|
||||
and a.operators_by = #{operatorsBy}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="receiptOrderIds != null and receiptOrderIds.size > 0 ">
|
||||
and a.receipt_order_id in
|
||||
<foreach collection="receiptOrderIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.stockReceiptOrder.repository.todo.StockReceiptOrderDO" resultMap="StockReceiptOrderResult">
|
||||
select
|
||||
<include refid="selectStockReceiptOrderPo"/>
|
||||
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPo"/>
|
||||
from stock_receipt_order a
|
||||
LEFT JOIN stock_in_order b ON a.in_order_number = b.in_order_number
|
||||
<where>
|
||||
<include refid="selectStockReceiptOrderPo1"/>
|
||||
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPoWhere"/>
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.stockShelfOrder.repository.mapper.StockShelfOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.stockShelfOrder.repository.po.StockShelfOrderPO" id="StockShelfOrderResult">
|
||||
<result property="shelfOrderId" column="shelf_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="inOrderNumber" column="in_order_number" />
|
||||
<result property="receiptOrderNumber" column="receipt_order_number" />
|
||||
<result property="receiptTaskNumber" column="receipt_task_number" />
|
||||
<result property="shelfOrderNumber" column="shelf_order_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="shelvesQuantity" column="shelves_quantity" />
|
||||
<result property="abnormal" column="abnormal" />
|
||||
<result property="taskDistribution" column="task_distribution" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectStockShelfOrderPo">
|
||||
a.shelf_order_id, a.organization_id, a.organization_name, a.top_organization_id,
|
||||
a.in_order_number, a.receipt_order_number,a.receipt_task_number, a.shelf_order_number,a.status, a.receipt_quantity, a.shelves_quantity, a.material_quantity,
|
||||
a.shelves_material_quantity, a.abnormal,a.task_distribution, a.task_distribution_time, a.operators_by, 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
|
||||
</sql>
|
||||
|
||||
<sql id="selectStockShelfOrderPo1">
|
||||
<if test="shelfOrderId != null ">
|
||||
and a.shelf_order_id = #{shelfOrderId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="inOrderNumber != null ">
|
||||
and a.in_order_number = #{inOrderNumber}
|
||||
</if>
|
||||
<if test="receiptOrderNumber != null ">
|
||||
and a.receipt_order_number = #{receiptOrderNumber}
|
||||
</if>
|
||||
<if test="receiptTaskNumber != null and receiptTaskNumber != ''">
|
||||
and a.receipt_task_number = #{receiptTaskNumber}
|
||||
</if>
|
||||
<if test="shelfOrderNumber != null and shelfOrderNumber != ''">
|
||||
and a.shelf_order_number = #{shelfOrderNumber}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and a.status = #{status}
|
||||
</if>
|
||||
<if test="ltStatus != null ">
|
||||
and a.status < #{ltStatus}
|
||||
</if>
|
||||
<if test="gtStatus != null ">
|
||||
and a.status > #{gtStatus}
|
||||
</if>
|
||||
<if test="shelvesQuantity != null ">
|
||||
and a.shelves_quantity = #{shelvesQuantity}
|
||||
</if>
|
||||
<if test="abnormal != null ">
|
||||
and a.abnormal = #{abnormal}
|
||||
</if>
|
||||
<if test="taskDistribution != null ">
|
||||
and a.task_distribution = #{taskDistribution}
|
||||
</if>
|
||||
<if test="operatorsBy != null and operatorsBy != ''">
|
||||
and a.operators_by = #{operatorsBy}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="shelfOrderIds != null and shelfOrderIds.size > 0 ">
|
||||
and a.shelf_order_id in
|
||||
<foreach collection="shelfOrderIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<sql id="joinStockReceiptOrderWhere">
|
||||
<if test="receiptOrderNumber != null and receiptOrderNumber != ''">
|
||||
and c.receipt_order_number = #{receiptOrderNumber}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.stockShelfOrder.repository.todo.StockShelfOrderDO" resultMap="StockShelfOrderResult">
|
||||
select
|
||||
<include refid="selectStockShelfOrderPo"/>
|
||||
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPo"/>
|
||||
from stock_shelf_order a
|
||||
LEFT JOIN stock_in_order b ON a.in_order_number = b.in_order_number
|
||||
<where>
|
||||
<include refid="selectStockShelfOrderPo1"/>
|
||||
<include refid="com.mhd.wms.domain.stockInOrder.repository.mapper.StockInOrderMapper.joinStockInOrderPoWhere"/>
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.taskHandoverMaterialDetail.repository.mapper.TaskHandoverMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.taskHandoverMaterialDetail.repository.po.TaskHandoverMaterialDetailPO" id="TaskHandoverMaterialDetailResult">
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="taskNumber" column="task_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="weightLimit" column="weight_limit" />
|
||||
<result property="volumeLimit" column="volume_limit" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="pickingQuantity" column="picking_quantity" />
|
||||
<result property="checkQuantity" column="check_quantity" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectTaskHandoverMaterialDetailPo">
|
||||
select material_detail_id, organization_id, organization_name, top_organization_id, unique_id, task_number, material_base_info_id, material_code, material_name, bar_code, weight_limit, volume_limit, quantity, picking_quantity, check_quantity, pack_id, pack_code, pack_name, pack_detail_id, unit_code, unit_name, unit_number, material_warehouse_control_id, serial_number_manage, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from task_handover_material_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectTaskHandoverMaterialDetailPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="uniqueId != null ">
|
||||
and unique_id = #{uniqueId}
|
||||
</if>
|
||||
<if test="taskNumber != null and taskNumber != ''">
|
||||
and task_number = #{taskNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="weightLimit != null ">
|
||||
and weight_limit = #{weightLimit}
|
||||
</if>
|
||||
<if test="volumeLimit != null ">
|
||||
and volume_limit = #{volumeLimit}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="pickingQuantity != null ">
|
||||
and picking_quantity = #{pickingQuantity}
|
||||
</if>
|
||||
<if test="checkQuantity != null ">
|
||||
and check_quantity = #{checkQuantity}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.taskHandoverMaterialDetail.repository.todo.TaskHandoverMaterialDetailDO" resultMap="TaskHandoverMaterialDetailResult">
|
||||
<include refid="selectTaskHandoverMaterialDetailPo"/>
|
||||
<include refid="selectTaskHandoverMaterialDetailPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
+169
@@ -0,0 +1,169 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.taskPickingMaterialDetail.repository.mapper.TaskPickingMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.taskPickingMaterialDetail.repository.po.TaskPickingMaterialDetailPO" id="TaskPickingMaterialDetailResult">
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="taskNumber" column="task_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="weightLimit" column="weight_limit" />
|
||||
<result property="volumeLimit" column="volume_limit" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="pickingQuantity" column="picking_quantity" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="level" column="level" />
|
||||
<result property="parentUniqueId" column="parent_unique_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectTaskPickingMaterialDetailPo">
|
||||
select material_detail_id, organization_id, organization_name, top_organization_id, unique_id, task_number, material_base_info_id, material_code, material_name, bar_code, weight_limit, volume_limit,
|
||||
quantity, picking_quantity, ROUND((quantity - picking_quantity), 2) AS wait_picking_quantity, pack_id, pack_code, pack_name, pack_detail_id, unit_code, unit_name, unit_number, material_warehouse_control_id,
|
||||
serial_number_manage, material_inventory_id, batch_number, container_id, container_code, container_type, container_type_name, material_status_code, material_status_name,
|
||||
warehouse_id, warehouse_code, warehouse_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, picking_unique_id, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag
|
||||
from task_picking_material_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectTaskPickingMaterialDetailPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="uniqueId != null ">
|
||||
and unique_id = #{uniqueId}
|
||||
</if>
|
||||
<if test="taskNumber != null and taskNumber != ''">
|
||||
and task_number = #{taskNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="weightLimit != null ">
|
||||
and weight_limit = #{weightLimit}
|
||||
</if>
|
||||
<if test="volumeLimit != null ">
|
||||
and volume_limit = #{volumeLimit}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="pickingQuantity != null ">
|
||||
and picking_quantity = #{pickingQuantity}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.taskPickingMaterialDetail.repository.todo.TaskPickingMaterialDetailDO" resultMap="TaskPickingMaterialDetailResult">
|
||||
<include refid="selectTaskPickingMaterialDetailPo"/>
|
||||
<include refid="selectTaskPickingMaterialDetailPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
+210
@@ -0,0 +1,210 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.taskReceiptMaterialDetail.repository.mapper.TaskReceiptMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.taskReceiptMaterialDetail.repository.po.TaskReceiptMaterialDetailPO" id="TaskReceiptMaterialDetailResult">
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="taskNumber" column="task_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="receiptQuantity" column="receipt_quantity" />
|
||||
<result property="receiptStatus" column="receipt_status" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="qualityInspectionManage" column="quality_inspection_manage" />
|
||||
<result property="qualityInspectionStage" column="quality_inspection_stage" />
|
||||
<result property="qualityInspectionRule" column="quality_inspection_rule" />
|
||||
<result property="qualityInspectionRatio" column="quality_inspection_ratio" />
|
||||
<result property="qualityInspectionTerm" column="quality_inspection_term" />
|
||||
<result property="qualityInspectionResults" column="quality_inspection_results" />
|
||||
<result property="allowOvercharge" column="allow_overcharge" />
|
||||
<result property="overchargeRatio" column="overcharge_ratio" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
<result property="materialStatusCode" column="material_status_code" />
|
||||
<result property="materialStatusName" column="material_status_name" />
|
||||
<result property="distributeRuleId" column="distribute_rule_id" />
|
||||
<result property="distributeRuleCode" column="distribute_rule_code" />
|
||||
<result property="distributeRuleName" column="distribute_rule_name" />
|
||||
<result property="containerId" column="container_id" />
|
||||
<result property="containerCode" column="container_code" />
|
||||
<result property="containerType" column="container_type" />
|
||||
<result property="containerTypeName" column="container_type_name" />
|
||||
<result property="level" column="level" />
|
||||
<result property="parentUniqueId" column="parent_unique_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectTaskReceiptMaterialDetailPo">
|
||||
select material_detail_id, organization_id, organization_name, top_organization_id, unique_id, task_number, material_base_info_id,
|
||||
material_code, material_name, bar_code, quantity, receipt_quantity, receipt_status, pack_id, pack_code, pack_name, pack_detail_id, unit_code,
|
||||
unit_name, unit_number, material_warehouse_control_id, serial_number_manage, quality_inspection_manage, quality_inspection_stage,
|
||||
quality_inspection_rule, quality_inspection_ratio, quality_inspection_term, quality_inspection_results, allow_overcharge, overcharge_ratio,
|
||||
batch_number, material_status_code, material_status_name, distribute_rule_id, distribute_rule_code, distribute_rule_name, container_id,
|
||||
container_code, container_type, container_type_name, level, parent_unique_id, remark, create_time, create_by, create_by_name, update_time,
|
||||
update_by, update_by_name, del_flag
|
||||
from task_receipt_material_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectTaskReceiptMaterialDetailPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="uniqueId != null ">
|
||||
and unique_id = #{uniqueId}
|
||||
</if>
|
||||
<if test="taskNumber != null and taskNumber != ''">
|
||||
and task_number = #{taskNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="receiptQuantity != null ">
|
||||
and receipt_quantity = #{receiptQuantity}
|
||||
</if>
|
||||
<if test="receiptStatus != null ">
|
||||
and receipt_status = #{receiptStatus}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="qualityInspectionManage != null ">
|
||||
and quality_inspection_manage = #{qualityInspectionManage}
|
||||
</if>
|
||||
<if test="qualityInspectionStage != null ">
|
||||
and quality_inspection_stage = #{qualityInspectionStage}
|
||||
</if>
|
||||
<if test="qualityInspectionRule != null ">
|
||||
and quality_inspection_rule = #{qualityInspectionRule}
|
||||
</if>
|
||||
<if test="qualityInspectionRatio != null ">
|
||||
and quality_inspection_ratio = #{qualityInspectionRatio}
|
||||
</if>
|
||||
<if test="qualityInspectionTerm != null ">
|
||||
and quality_inspection_term = #{qualityInspectionTerm}
|
||||
</if>
|
||||
<if test="qualityInspectionResults != null ">
|
||||
and quality_inspection_results = #{qualityInspectionResults}
|
||||
</if>
|
||||
<if test="allowOvercharge != null ">
|
||||
and allow_overcharge = #{allowOvercharge}
|
||||
</if>
|
||||
<if test="overchargeRatio != null ">
|
||||
and overcharge_ratio = #{overchargeRatio}
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber != ''">
|
||||
and batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="materialStatusCode != null and materialStatusCode != ''">
|
||||
and material_status_code = #{materialStatusCode}
|
||||
</if>
|
||||
<if test="materialStatusName != null and materialStatusName != ''">
|
||||
and material_status_name like concat('%', #{materialStatusName}, '%')
|
||||
</if>
|
||||
<if test="distributeRuleId != null ">
|
||||
and distribute_rule_id = #{distributeRuleId}
|
||||
</if>
|
||||
<if test="distributeRuleCode != null and distributeRuleCode != ''">
|
||||
and distribute_rule_code = #{distributeRuleCode}
|
||||
</if>
|
||||
<if test="distributeRuleName != null and distributeRuleName != ''">
|
||||
and distribute_rule_name like concat('%', #{distributeRuleName}, '%')
|
||||
</if>
|
||||
<if test="containerId != null ">
|
||||
and container_id = #{containerId}
|
||||
</if>
|
||||
<if test="containerCode != null and containerCode != ''">
|
||||
and container_code = #{containerCode}
|
||||
</if>
|
||||
<if test="containerType != null and containerType != ''">
|
||||
and container_type = #{containerType}
|
||||
</if>
|
||||
<if test="containerTypeName != null and containerTypeName != ''">
|
||||
and container_type_name like concat('%', #{containerTypeName}, '%')
|
||||
</if>
|
||||
<if test="level != null ">
|
||||
and level = #{level}
|
||||
</if>
|
||||
<if test="parentUniqueId != null ">
|
||||
and parent_unique_id = #{parentUniqueId}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.taskReceiptMaterialDetail.repository.todo.TaskReceiptMaterialDetailDO" resultMap="TaskReceiptMaterialDetailResult">
|
||||
<include refid="selectTaskReceiptMaterialDetailPo"/>
|
||||
<include refid="selectTaskReceiptMaterialDetailPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.taskShelfMaterialDetail.repository.mapper.TaskShelfMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.taskShelfMaterialDetail.repository.po.TaskShelfMaterialDetailPO" id="TaskShelfMaterialDetailResult">
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="taskNumber" column="task_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="shelvesQuantity" column="shelves_quantity" />
|
||||
<result property="shelvesStatus" column="shelves_status" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="batchNumber" column="batch_number" />
|
||||
<result property="materialStatusCode" column="material_status_code" />
|
||||
<result property="materialStatusName" column="material_status_name" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="level" column="level" />
|
||||
<result property="parentUniqueId" column="parent_unique_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectTaskShelfMaterialDetailPo">
|
||||
select material_detail_id, organization_id, organization_name, top_organization_id, unique_id, task_number, material_base_info_id, material_code, material_name, bar_code, quantity, shelves_quantity, shelves_status, pack_id, pack_code, pack_name, pack_detail_id, unit_code, unit_name, unit_number, material_warehouse_control_id, serial_number_manage, batch_number, material_status_code, material_status_name, warehouse_id, warehouse_code, warehouse_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, level, parent_unique_id, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from task_shelf_material_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectTaskShelfMaterialDetailPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="uniqueId != null ">
|
||||
and unique_id = #{uniqueId}
|
||||
</if>
|
||||
<if test="taskNumber != null and taskNumber != ''">
|
||||
and task_number = #{taskNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="shelvesQuantity != null ">
|
||||
and shelves_quantity = #{shelvesQuantity}
|
||||
</if>
|
||||
<if test="shelvesStatus != null ">
|
||||
and shelves_status = #{shelvesStatus}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="batchNumber != null and batchNumber != ''">
|
||||
and batch_number = #{batchNumber}
|
||||
</if>
|
||||
<if test="materialStatusCode != null and materialStatusCode != ''">
|
||||
and material_status_code = #{materialStatusCode}
|
||||
</if>
|
||||
<if test="materialStatusName != null and materialStatusName != ''">
|
||||
and material_status_name like concat('%', #{materialStatusName}, '%')
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="level != null ">
|
||||
and level = #{level}
|
||||
</if>
|
||||
<if test="parentUniqueId != null ">
|
||||
and parent_unique_id = #{parentUniqueId}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.taskShelfMaterialDetail.repository.todo.TaskShelfMaterialDetailDO" resultMap="TaskShelfMaterialDetailResult">
|
||||
<include refid="selectTaskShelfMaterialDetailPo"/>
|
||||
<include refid="selectTaskShelfMaterialDetailPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.userCommonSettings.repository.mapper.UserCommonSettingsMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.userCommonSettings.repository.po.UserCommonSettingsPO" id="UserCommonSettingsResult">
|
||||
<result property="userCommonSettingsId" column="user_common_settings_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="commonSettingsId" column="common_settings_id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="route" column="route" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="isSettings" column="is_settings" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectUserCommonSettingsPo">
|
||||
select user_common_settings_id, user_id, common_settings_id, name, route, is_settings, create_time, create_by, create_by_name, update_time, update_by, update_by_name, organization_id, organization_name, top_organization_id
|
||||
from user_common_settings
|
||||
</sql>
|
||||
|
||||
<sql id="selectUserCommonSettingsPo1">
|
||||
<where>
|
||||
del_flag=1
|
||||
<if test="userId != null ">
|
||||
and user_id = #{userId}
|
||||
</if>
|
||||
<if test="commonSettingsId != null ">
|
||||
and common_settings_id = #{commonSettingsId}
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
and name like concat('%', #{name}, '%')
|
||||
</if>
|
||||
<if test="route != null and route != ''">
|
||||
and route = #{route}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="isSettings != null ">
|
||||
and is_settings = #{isSettings}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.userCommonSettings.repository.todo.UserCommonSettingsDO" resultMap="UserCommonSettingsResult">
|
||||
<include refid="selectUserCommonSettingsPo"/>
|
||||
<include refid="selectUserCommonSettingsPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,187 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.waveMaterialDetail.repository.mapper.WaveMaterialDetailMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.waveMaterialDetail.repository.po.WaveMaterialDetailPO" id="WaveMaterialDetailResult">
|
||||
<result property="materialDetailId" column="material_detail_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="uniqueId" column="unique_id" />
|
||||
<result property="waveOrderNumber" column="wave_order_number" />
|
||||
<result property="materialBaseInfoId" column="material_base_info_id" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="barCode" column="bar_code" />
|
||||
<result property="weightLimit" column="weight_limit" />
|
||||
<result property="volumeLimit" column="volume_limit" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="inventoryQuantity" column="inventory_quantity" />
|
||||
<result property="allocationQuantity" column="allocation_quantity" />
|
||||
<result property="alreadyGenPickingQuantity" column="already_gen_picking_quantity" />
|
||||
<result property="pickingQuantity" column="picking_quantity" />
|
||||
<result property="checkQuantity" column="check_quantity" />
|
||||
<result property="packId" column="pack_id" />
|
||||
<result property="packCode" column="pack_code" />
|
||||
<result property="packName" column="pack_name" />
|
||||
<result property="packDetailId" column="pack_detail_id" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="unitName" column="unit_name" />
|
||||
<result property="unitNumber" column="unit_number" />
|
||||
<result property="materialWarehouseControlId" column="material_warehouse_control_id" />
|
||||
<result property="serialNumberManage" column="serial_number_manage" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="storageSectionId" column="storage_section_id" />
|
||||
<result property="storageCode" column="storage_code" />
|
||||
<result property="storageName" column="storage_name" />
|
||||
<result property="storageLocationId" column="storage_location_id" />
|
||||
<result property="storageLocationCode" column="storage_location_code" />
|
||||
<result property="storageLocationName" column="storage_location_name" />
|
||||
<result property="level" column="level" />
|
||||
<result property="parentUniqueId" column="parent_unique_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectWaveMaterialDetailPo">
|
||||
select material_detail_id, organization_id, organization_name, top_organization_id, unique_id, wave_order_number, material_base_info_id, material_code, material_name, bar_code, weight_limit, volume_limit, quantity, inventory_quantity, allocation_quantity, already_gen_picking_quantity, picking_quantity, check_quantity, pack_id, pack_code, pack_name, pack_detail_id, unit_code, unit_name, unit_number, material_warehouse_control_id, serial_number_manage, warehouse_id, warehouse_code, warehouse_name, storage_section_id, storage_code, storage_name, storage_location_id, storage_location_code, storage_location_name, level, parent_unique_id, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from wave_material_detail
|
||||
</sql>
|
||||
|
||||
<sql id="selectWaveMaterialDetailPo1">
|
||||
<where>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="uniqueId != null ">
|
||||
and unique_id = #{uniqueId}
|
||||
</if>
|
||||
<if test="waveOrderNumber != null and waveOrderNumber != ''">
|
||||
and wave_order_number = #{waveOrderNumber}
|
||||
</if>
|
||||
<if test="materialBaseInfoId != null ">
|
||||
and material_base_info_id = #{materialBaseInfoId}
|
||||
</if>
|
||||
<if test="materialCode != null and materialCode != ''">
|
||||
and material_code = #{materialCode}
|
||||
</if>
|
||||
<if test="materialName != null and materialName != ''">
|
||||
and material_name like concat('%', #{materialName}, '%')
|
||||
</if>
|
||||
<if test="barCode != null and barCode != ''">
|
||||
and bar_code = #{barCode}
|
||||
</if>
|
||||
<if test="weightLimit != null ">
|
||||
and weight_limit = #{weightLimit}
|
||||
</if>
|
||||
<if test="volumeLimit != null ">
|
||||
and volume_limit = #{volumeLimit}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and quantity = #{quantity}
|
||||
</if>
|
||||
<if test="inventoryQuantity != null ">
|
||||
and inventory_quantity = #{inventoryQuantity}
|
||||
</if>
|
||||
<if test="allocationQuantity != null ">
|
||||
and allocation_quantity = #{allocationQuantity}
|
||||
</if>
|
||||
<if test="alreadyGenPickingQuantity != null ">
|
||||
and already_gen_picking_quantity = #{alreadyGenPickingQuantity}
|
||||
</if>
|
||||
<if test="pickingQuantity != null ">
|
||||
and picking_quantity = #{pickingQuantity}
|
||||
</if>
|
||||
<if test="checkQuantity != null ">
|
||||
and check_quantity = #{checkQuantity}
|
||||
</if>
|
||||
<if test="packId != null ">
|
||||
and pack_id = #{packId}
|
||||
</if>
|
||||
<if test="packCode != null and packCode != ''">
|
||||
and pack_code = #{packCode}
|
||||
</if>
|
||||
<if test="packName != null and packName != ''">
|
||||
and pack_name like concat('%', #{packName}, '%')
|
||||
</if>
|
||||
<if test="packDetailId != null and packDetailId != ''">
|
||||
and pack_detail_id = #{packDetailId}
|
||||
</if>
|
||||
<if test="unitCode != null and unitCode != ''">
|
||||
and unit_code = #{unitCode}
|
||||
</if>
|
||||
<if test="unitName != null and unitName != ''">
|
||||
and unit_name like concat('%', #{unitName}, '%')
|
||||
</if>
|
||||
<if test="unitNumber != null ">
|
||||
and unit_number = #{unitNumber}
|
||||
</if>
|
||||
<if test="materialWarehouseControlId != null ">
|
||||
and material_warehouse_control_id = #{materialWarehouseControlId}
|
||||
</if>
|
||||
<if test="serialNumberManage != null ">
|
||||
and serial_number_manage = #{serialNumberManage}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="storageSectionId != null ">
|
||||
and storage_section_id = #{storageSectionId}
|
||||
</if>
|
||||
<if test="storageCode != null and storageCode != ''">
|
||||
and storage_code = #{storageCode}
|
||||
</if>
|
||||
<if test="storageName != null and storageName != ''">
|
||||
and storage_name like concat('%', #{storageName}, '%')
|
||||
</if>
|
||||
<if test="storageLocationId != null ">
|
||||
and storage_location_id = #{storageLocationId}
|
||||
</if>
|
||||
<if test="storageLocationCode != null and storageLocationCode != ''">
|
||||
and storage_location_code = #{storageLocationCode}
|
||||
</if>
|
||||
<if test="storageLocationName != null and storageLocationName != ''">
|
||||
and storage_location_name like concat('%', #{storageLocationName}, '%')
|
||||
</if>
|
||||
<if test="level != null ">
|
||||
and level = #{level}
|
||||
</if>
|
||||
<if test="parentUniqueId != null ">
|
||||
and parent_unique_id = #{parentUniqueId}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.waveMaterialDetail.repository.todo.WaveMaterialDetailDO" resultMap="WaveMaterialDetailResult">
|
||||
<include refid="selectWaveMaterialDetailPo"/>
|
||||
<include refid="selectWaveMaterialDetailPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,168 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.waveOrder.repository.mapper.WaveOrderMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.waveOrder.repository.po.WaveOrderPO" id="WaveOrderResult">
|
||||
<result property="waveOrderId" column="wave_order_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="waveOrderNumber" column="wave_order_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="waveOrderTypeCode" column="wave_order_type_code" />
|
||||
<result property="waveOrderTypeName" column="wave_order_type_name" />
|
||||
<result property="outOrderQuantity" column="out_order_quantity" />
|
||||
<result property="materialCategoryQuantity" column="material_category_quantity" />
|
||||
<result property="quantity" column="quantity" />
|
||||
<result property="allocationQuantity" column="allocation_quantity" />
|
||||
<result property="pickingQuantity" column="picking_quantity" />
|
||||
<result property="checkQuantity" column="check_quantity" />
|
||||
<result property="outQuantity" column="out_quantity" />
|
||||
<result property="warehouseId" column="warehouse_id" />
|
||||
<result property="warehouseCode" column="warehouse_code" />
|
||||
<result property="warehouseName" column="warehouse_name" />
|
||||
<result property="shipperId" column="shipper_id" />
|
||||
<result property="shipperName" column="shipper_name" />
|
||||
<result property="orderTypeCode" column="order_type_code" />
|
||||
<result property="orderTypeName" column="order_type_name" />
|
||||
<result property="customerId" column="customer_id" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="cancelOrder" column="cancel_order" />
|
||||
<result property="cancelRemark" column="cancel_remark" />
|
||||
<result property="cancelBy" column="cancel_by" />
|
||||
<result property="cancelByName" column="cancel_by_name" />
|
||||
<result property="cancelTime" column="cancel_time" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectWaveOrderPo">
|
||||
a.wave_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.wave_order_number, a.status, a.wave_order_type_code,
|
||||
a.wave_order_type_name, a.out_order_quantity, a.material_category_quantity, a.quantity, a.weight_limit, a.volume_limit, a.allocation_quantity,
|
||||
a.picking_quantity, a.check_quantity, a.out_quantity, a.warehouse_id, a.warehouse_code,
|
||||
a.warehouse_name, a.shipper_id, a.shipper_name, a.order_type_code, a.order_type_name, a.customer_id, a.customer_name, a.cancel_order,
|
||||
a.cancel_remark, a.cancel_by, a.cancel_by_name, a.cancel_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
|
||||
</sql>
|
||||
|
||||
<sql id="joinWaveOrderPo">
|
||||
,b.out_order_quantity, b.material_category_quantity, b.quantity, b.allocation_quantity,
|
||||
b.picking_quantity, b.check_quantity, b.out_quantity
|
||||
</sql>
|
||||
|
||||
<sql id="selectWaveOrderPo1">
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and a.organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and a.top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="waveOrderNumber != null and waveOrderNumber != ''">
|
||||
and a.wave_order_number = #{waveOrderNumber}
|
||||
</if>
|
||||
<if test="status != null ">
|
||||
and a.status = #{status}
|
||||
</if>
|
||||
<if test="waveOrderTypeCode != null and waveOrderTypeCode != ''">
|
||||
and a.wave_order_type_code = #{waveOrderTypeCode}
|
||||
</if>
|
||||
<if test="waveOrderTypeName != null and waveOrderTypeName != ''">
|
||||
and a.wave_order_type_name like concat('%', #{waveOrderTypeName}, '%')
|
||||
</if>
|
||||
<if test="outOrderQuantity != null ">
|
||||
and a.out_order_quantity = #{outOrderQuantity}
|
||||
</if>
|
||||
<if test="materialCategoryQuantity != null ">
|
||||
and a.material_category_quantity = #{materialCategoryQuantity}
|
||||
</if>
|
||||
<if test="quantity != null ">
|
||||
and a.quantity = #{quantity}
|
||||
</if>
|
||||
<if test="allocationQuantity != null ">
|
||||
and a.allocation_quantity = #{allocationQuantity}
|
||||
</if>
|
||||
<if test="pickingQuantity != null ">
|
||||
and a.picking_quantity = #{pickingQuantity}
|
||||
</if>
|
||||
<if test="checkQuantity != null ">
|
||||
and a.check_quantity = #{checkQuantity}
|
||||
</if>
|
||||
<if test="outQuantity != null ">
|
||||
and a.out_quantity = #{outQuantity}
|
||||
</if>
|
||||
<if test="warehouseId != null ">
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseCode != null and warehouseCode != ''">
|
||||
and a.warehouse_code = #{warehouseCode}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<if test="shipperId != null ">
|
||||
and a.shipper_id = #{shipperId}
|
||||
</if>
|
||||
<if test="shipperName != null and shipperName != ''">
|
||||
and a.shipper_name like concat('%', #{shipperName}, '%')
|
||||
</if>
|
||||
<if test="orderTypeCode != null and orderTypeCode != ''">
|
||||
and a.order_type_code = #{orderTypeCode}
|
||||
</if>
|
||||
<if test="orderTypeName != null and orderTypeName != ''">
|
||||
and a.order_type_name like concat('%', #{orderTypeName}, '%')
|
||||
</if>
|
||||
<if test="customerId != null ">
|
||||
and a.customer_id = #{customerId}
|
||||
</if>
|
||||
<if test="customerName != null and customerName != ''">
|
||||
and a.customer_name like concat('%', #{customerName}, '%')
|
||||
</if>
|
||||
<if test="cancelOrder != null ">
|
||||
and a.cancel_order = #{cancelOrder}
|
||||
</if>
|
||||
<if test="cancelRemark != null and cancelRemark != ''">
|
||||
and a.cancel_remark = #{cancelRemark}
|
||||
</if>
|
||||
<if test="cancelBy != null ">
|
||||
and a.cancel_by = #{cancelBy}
|
||||
</if>
|
||||
<if test="cancelByName != null and cancelByName != ''">
|
||||
and a.cancel_by_name like concat('%', #{cancelByName}, '%')
|
||||
</if>
|
||||
<if test="cancelTime != null ">
|
||||
and a.cancel_time = #{cancelTime}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<choose>
|
||||
<when test="delFlag != null"> and a.del_flag = #{delFlag} </when>
|
||||
<otherwise> and a.del_flag = 1 </otherwise>
|
||||
</choose>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.waveOrder.repository.todo.WaveOrderDO" resultMap="WaveOrderResult">
|
||||
select
|
||||
<include refid="selectWaveOrderPo"/>
|
||||
from wave_order a
|
||||
<where>
|
||||
<include refid="selectWaveOrderPo1"/>
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.mhd.wms.domain.waveRule.repository.mapper.WaveRuleMapper">
|
||||
|
||||
<resultMap type="com.mhd.wms.domain.waveRule.repository.po.WaveRulePO" id="WaveRuleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="organizationName" column="organization_name" />
|
||||
<result property="ruleNum" column="rule_num" />
|
||||
<result property="ruleName" column="rule_name" />
|
||||
<result property="enabled" column="enabled" />
|
||||
<result property="waveNumber" column="wave_number" />
|
||||
<result property="orderNumMax" column="order_num_max" />
|
||||
<result property="orderNumMin" column="order_num_min" />
|
||||
<result property="materialTypeMax" column="material_type_max" />
|
||||
<result property="materialTypeMin" column="material_type_min" />
|
||||
<result property="materialNumMax" column="material_num_max" />
|
||||
<result property="materialNumMin" column="material_num_min" />
|
||||
<result property="isMoreShipper" column="is_more_shipper" />
|
||||
<result property="isCrossDepot" column="is_cross_depot" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectWaveRulePo">
|
||||
select id, create_by, create_by_name, create_time, update_by, update_by_name, update_time, del_flag, top_organization_id, organization_id, organization_name, rule_num, rule_name, enabled, wave_number, order_num_max, order_num_min, material_type_max, material_type_min, material_num_max, material_num_min, is_more_shipper, is_cross_depot, remark from wave_rule
|
||||
where del_flag = 1
|
||||
</sql>
|
||||
|
||||
<sql id="selectWaveRulePo1">
|
||||
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and organization_name like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="ruleNum != null and ruleNum != ''">
|
||||
and rule_num = #{ruleNum}
|
||||
</if>
|
||||
<if test="ruleName != null and ruleName != ''">
|
||||
and rule_name like concat('%', #{ruleName}, '%')
|
||||
</if>
|
||||
<if test="enabled != null ">
|
||||
and enabled = #{enabled}
|
||||
</if>
|
||||
<if test="waveNumber != null ">
|
||||
and wave_number = #{waveNumber}
|
||||
</if>
|
||||
<if test="orderNumMax != null ">
|
||||
and order_num_max = #{orderNumMax}
|
||||
</if>
|
||||
<if test="orderNumMin != null ">
|
||||
and order_num_min = #{orderNumMin}
|
||||
</if>
|
||||
<if test="materialTypeMax != null ">
|
||||
and material_type_max = #{materialTypeMax}
|
||||
</if>
|
||||
<if test="materialTypeMin != null ">
|
||||
and material_type_min = #{materialTypeMin}
|
||||
</if>
|
||||
<if test="materialNumMax != null ">
|
||||
and material_num_max = #{materialNumMax}
|
||||
</if>
|
||||
<if test="materialNumMin != null ">
|
||||
and material_num_min = #{materialNumMin}
|
||||
</if>
|
||||
<if test="isMoreShipper != null ">
|
||||
and is_more_shipper = #{isMoreShipper}
|
||||
</if>
|
||||
<if test="isCrossDepot != null ">
|
||||
and is_cross_depot = #{isCrossDepot}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.wms.domain.waveRule.repository.todo.WaveRuleDO" resultMap="WaveRuleResult">
|
||||
<include refid="selectWaveRulePo"/>
|
||||
<include refid="selectWaveRulePo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user