| | |
| | | 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; |
| | |
| | | } |
| | | if (null == data.getEmptyWeightTime()) { |
| | | data.setEmptyWeightTime(new Date()); |
| | | } |
| | | if (null == data.getFullWeightTime()) { |
| | | data.setFullWeightTime(new Date()); |
| | | } |
| | | |
| | | //调整时间差 |
| | |
| | | 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(); |
| | | } |
| | | } |