YYC
2023-07-20 87690b5dbc08947b8c5cdaa47a1daf46ad85b745
解决称重时质检增扣重不显示
已修改2个文件
6 ■■■■ 文件已修改
igds-inout/src/main/java/com/ld/igds/inout/service/impl/InoutServiceImpl.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/resources/mapper/InoutRecordMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
igds-inout/src/main/java/com/ld/igds/inout/service/impl/InoutServiceImpl.java
@@ -20,6 +20,7 @@
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.apache.xmlbeans.impl.tool.Extension;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;
@@ -205,9 +206,11 @@
        }
        inoutMapper.updateDataByHandle(newData);
        InoutParam param = new InoutParam();
        param.setId(newData.getId());
        //更新缓存
        updateInoutCache(newData);
        updateInoutCache(inoutMapper.inoutQueryById(param));
        return null;
    }
igds-inout/src/main/resources/mapper/InoutRecordMapper.xml
@@ -123,6 +123,7 @@
        from
        D_INOUT_RECORD
        <where>
            <if test="param.id != null and param.id != '' ">AND ID_ = #{param.id}</if>
            <if test="param.companyId != null and param.companyId != '' ">AND COMPANY_ID_ = #{param.companyId}</if>
            <if test="param.type != null and param.type != '' ">AND TYPE_ = #{param.type}</if>
            <if test="param.plateNum != null and param.plateNum != '' ">AND PLATE_NUM_ = #{param.plateNum}</if>