jiazx0107@163.com
2023-06-23 7b5c179e17c9a106dcce3b2b0574af833cf97132
igds-inout/src/main/java/com/ld/igds/inout/service/impl/InoutServiceImpl.java
@@ -208,7 +208,7 @@
        //更新缓存
        updateInoutCache(newData);
        return null;
    }
@@ -291,8 +291,6 @@
        this.delFromCache(param.getDeptId(), param.getType(), param.getId());
        inoutMapper.toComplete(param);
        return null;
@@ -370,8 +368,8 @@
        } else {
            setInoutCache(data.getDeptId(), data);
        }
        //推送大屏
        notifyToScreen(data.getCompanyId(), data.getDeptId(), data.getProgress());
    }
@@ -492,7 +490,7 @@
    public String addInoutDataByLossOver(InoutData data) {
        // 获取上一车的流水数据
    //    InoutData inoutData = this.getLastRecord(data.getCompanyId(), data.getDepotId());
        //    InoutData inoutData = this.getLastRecord(data.getCompanyId(), data.getDepotId());
//        // 设置流水的库存
//        if (InoutConstant.TYPE_IN.equals(inoutData.getType())) {
@@ -754,27 +752,22 @@
    }
    @Override
    public String updateCheckData(InoutCheckData data) {
        if (StringUtils.isEmpty(data.getCompanyId())) {
            data.setCompanyId(ContextUtil.getCompanyId());
        }
        if (StringUtils.isEmpty(data.getDeptId())) {
            data.setCompanyId(ContextUtil.subDeptId(null));
        }
    public String updateCheckData(InoutData data) {
        data.setUpdateTime(new Date());
        int num = inoutCheckMapper.updateCheckData(data);
        //更新缓存
        updateInoutCache(data);
        return null;
    }
    @Override
    public List<InoutPrice> getPrice(InoutCheckParam param) {
        if(null == param.getStart()){
        if (null == param.getStart()) {
            param.setStart(new Date());
        }
        if(null == param.getEnd()){
        if (null == param.getEnd()) {
            param.setEnd(new Date());
        }
        return inoutCheckMapper.getPrice(param);