| | |
| | | import com.ld.igds.inout.mapper.InoutCheckMapper; |
| | | import com.ld.igds.inout.mapper.InoutRecordMapper; |
| | | import com.ld.igds.inout.service.InoutService; |
| | | import com.ld.igds.models.InoutLossOver; |
| | | import com.ld.igds.models.InoutPrice; |
| | | import com.ld.igds.util.ContextUtil; |
| | | import com.ld.igds.util.DateUtil; |
| | |
| | | } |
| | | |
| | | inoutMapper.updateDataByHandle(newData); |
| | | InoutParam param = new InoutParam(); |
| | | param.setId(newData.getId()); |
| | | |
| | | //更新缓存 |
| | | updateInoutCache(newData); |
| | | updateInoutCache(inoutMapper.inoutQueryById(param)); |
| | | |
| | | return null; |
| | | } |
| | |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | if (StringUtils.isEmpty(data.getDeptId())) { |
| | | data.setCompanyId(ContextUtil.subDeptId(null)); |
| | | data.setDeptId(ContextUtil.subDeptId(null)); |
| | | } |
| | | |
| | | inoutCheckMapper.updateSampleData(data); |
| | |
| | | throw new Exception("当前条件下存在多个满足条件的数据,请核查!!"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public List<InoutLossOver> listLossOver(InoutParam param) { |
| | | if (StringUtils.isEmpty(param.getCompanyId())) { |
| | | param.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | List<InoutLossOver> list = inoutMapper.listLossOver(param); |
| | | |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public double sumLossOverWeight(InoutParam param) { |
| | | CommonData result = inoutMapper.sumLossOverWeight(param); |
| | | return result.getNumValue1(); |
| | | } |
| | | } |