集成wms服务模块

This commit is contained in:
hjx
2026-01-19 18:55:23 +08:00
parent aab59723f9
commit 1655d57057
835 changed files with 96160 additions and 0 deletions
@@ -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 &lt; #{ltShiftStatus}
</if>
<if test="gtShiftStatus != null ">
and shift_status &gt; #{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>