| | |
| | | |
| | | //更新缓存 |
| | | updateInoutCache(newData); |
| | | |
| | | |
| | | return null; |
| | | } |
| | | |
| | |
| | | this.delFromCache(param.getDeptId(), param.getType(), param.getId()); |
| | | |
| | | |
| | | |
| | | |
| | | inoutMapper.toComplete(param); |
| | | |
| | | return null; |
| | |
| | | } else { |
| | | setInoutCache(data.getDeptId(), data); |
| | | } |
| | | //推送大屏 |
| | | notifyToScreen(data.getCompanyId(), data.getDeptId(), data.getProgress()); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | 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())) { |
| | |
| | | } |
| | | |
| | | @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); |