自动化立体仓库 - WMS系统
#
lty
2026-04-24 0569f1be55ce85097d33e5c2f7815deb99a4702c
#
3个文件已修改
96 ■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/ReportQueryController.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/ViewWorkInBean.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/ViewWorkInMapper.xml 78 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/ReportQueryController.java
@@ -148,6 +148,12 @@
    //------------------日入库明细统计--------------------------------------
    @RequestMapping("/viewWorkInList.action")
    public Map<String,Object> viewWorkInList(ViewWorkInBean bean){
        if (bean.getPageNumber() <= 0) {
            bean.setPageNumber(1);
        }
        if (bean.getPageSize() <= 0) {
            bean.setPageSize(16);
        }
        List<ViewWorkInBean> list = reportQueryMapper.queryViewWorkInList(bean);
        int count = reportQueryMapper.getViewWorkInCount(bean);
        Page<ViewWorkInBean> page = new Page<>();
src/main/java/com/zy/asrs/entity/ViewWorkInBean.java
@@ -161,21 +161,21 @@
     */
    @ApiModelProperty(value= "备用1")//PO
    @ExcelProperty("客户PO")
    private String standby1 = "1";
    private String standby1;
    /**
     * 备用2(UPC)
     */
    @ApiModelProperty(value= "备用2")//UPC
    @ExcelProperty("条码UPC")
    private String standby2 = "1";
    private String standby2;
    /**
     * 备用3(SKU)
     */
    @ApiModelProperty(value= "备用3")//SKU
    @ExcelProperty("客户SKU")
    private String standby3 = "1";
    private String standby3;
    /**
     * 备用1
@@ -183,14 +183,14 @@
    @ApiModelProperty(value= "备用1")
    @TableField("box_type1")
    @ExcelProperty("货主")
    private String boxType1 = "1";
    private String boxType1;
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    private String boxType2;
    /**
     * 备用3
@@ -198,7 +198,7 @@
    @ApiModelProperty(value= "备用3")
    @TableField("box_type3")
    @ExcelProperty("采购单号")
    private String boxType3 = "1";
    private String boxType3;
    public String getModiUser$(){
        UserService service = SpringUtils.getBean(UserService.class);
src/main/resources/mapper/ViewWorkInMapper.xml
@@ -4,6 +4,29 @@
<mapper namespace="com.zy.asrs.mapper.ReportQueryMapper">
<!-- mapper不支持sql语句嵌套时,采用sql片段包含方式,解决xml标签问题 -->
<resultMap id="ViewWorkInResultMap" type="com.zy.asrs.entity.ViewWorkInBean">
    <result column="row" property="row"/>
    <result column="io_time" property="io_time"/>
    <result column="loc_no" property="loc_no"/>
    <result column="zpallet" property="zpallet"/>
    <result column="anfme" property="anfme"/>
    <result column="matnr" property="matnr"/>
    <result column="maktx" property="maktx"/>
    <result column="batch" property="batch"/>
    <result column="order_no" property="orderNo"/>
    <result column="specs" property="specs"/>
    <result column="units" property="units"/>
    <result column="weight" property="weight"/>
    <result column="manu" property="manu"/>
    <result column="memo" property="memo"/>
    <result column="standby1" property="standby1"/>
    <result column="standby2" property="standby2"/>
    <result column="standby3" property="standby3"/>
    <result column="box_type1" property="boxType1"/>
    <result column="box_type2" property="boxType2"/>
    <result column="box_type3" property="boxType3"/>
</resultMap>
<sql id="viewWorkInConditionSql">
        <if test="loc_no!=null and loc_no!='' ">
            and loc_no like '%' + #{loc_no} + '%'
@@ -13,24 +36,6 @@
        </if>
        <if test="anfme != null and anfme != ''">
            and anfme = #{anfme}
        </if>
        <if test="standby1!=null and standby1!='' ">
            and standby1 like '%' + #{standby1} + '%'
        </if>
        <if test="standby2!=null and standby2!='' ">
            and standby2 like '%' + #{standby2} + '%'
        </if>
        <if test="standby3!=null and standby3!='' ">
            and standby3 like '%' + #{standby3} + '%'
        </if>
        <if test="boxType1!=null and boxType1!='' ">
            and box_type1 like '%' + #{boxType1} + '%'
        </if>
        <if test="boxType2!=null and boxType2!='' ">
            and box_type2 like '%' + #{boxType2} + '%'
        </if>
        <if test="boxType3!=null and boxType3!='' ">
            and box_type3 like '%' + #{boxType3} + '%'
        </if>
<!--        <if test="maktx!=null and maktx!='' ">-->
<!--            and (maktx like '%' + #{maktx} + '%'-->
@@ -75,23 +80,20 @@
        <if test="matnr!=null and matnr!='' ">
            and matnr like '%' + #{matnr} + '%'
        </if>
        <if test="standby1!=null and standby1!='' ">
            and standby1 like '%' + #{standby1} + '%'
        </if>
        <if test="standby2!=null and standby2!='' ">
            and standby2 like '%' + #{standby2} + '%'
        </if>
        <if test="standby3!=null and standby3!='' ">
            and standby3 like '%' + #{standby3} + '%'
        </if>
        <if test="boxType1!=null and boxType1!='' ">
            and box_type1 like '%' + #{boxType1} + '%'
        </if>
        <if test="boxType2!=null and boxType2!='' ">
            and box_type2 like '%' + #{boxType2} + '%'
        </if>
        <if test="boxType3!=null and boxType3!='' ">
            and box_type3 like '%' + #{boxType3} + '%'
        <if test="maktx!=null and maktx!='' ">
            and (maktx like '%' + #{maktx} + '%'
            or matnr like '%' + #{maktx} + '%'
            or lgnum like '%' + #{maktx} + '%'
            or tbnum like '%' + #{maktx} + '%'
            or tbpos like '%' + #{maktx} + '%'
            or zmatid like '%' + #{maktx} + '%'
            or maktx like '%' + #{maktx} + '%'
            or werks like '%' + #{maktx} + '%'
            or anfme like '%' + #{maktx} + '%'
            or altme like '%' + #{maktx} + '%'
            or zpallet like '%' + #{maktx} + '%'
            or bname like '%' + #{maktx} + '%'
            )
        </if>
        <if test="begin_date!=null and begin_date!='' ">
            <![CDATA[
@@ -107,7 +109,7 @@
<!-- 入库统计 -->
<!-- 分页查询所有信息 -->
<select id="queryViewWorkInList" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultType="com.zy.asrs.entity.ViewWorkInBean">
<select id="queryViewWorkInList" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultMap="ViewWorkInResultMap">
    select
    *
    from (
@@ -131,7 +133,7 @@
</select>
<!-- 不分页查询所有信息,用于excel导出 -->
<select id="getViewWorkInAll" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultType="com.zy.asrs.entity.ViewWorkInBean">
<select id="getViewWorkInAll" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultMap="ViewWorkInResultMap">
<!--    select count(1)-->
<!--    from asr_wrkin_view a-->
<!--    where 1=1-->
@@ -144,8 +146,6 @@
<!-- 出库统计 -->
<!-- 分页查询所有信息 -->
<select id="queryViewWorkOutList" parameterType="com.zy.asrs.entity.ViewWorkInBean" resultType="com.zy.asrs.entity.ViewWorkInBean">
    select
    *
    from (