| | |
| | | import com.ld.igds.util.DateUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | data.setDepotId(item.getDepotId()); |
| | | } |
| | | if (data.getDepotId().equals(item.getDepotId())) { |
| | | |
| | | inoutParam.setId(data.getRecordId()); |
| | | } else { |
| | | String newId = data.getRecordId() + temp; |
| | |
| | | map.put(inoutParam.getId(), inoutParam); |
| | | } |
| | | InoutParam par; |
| | | InoutData dat; |
| | | for (String key : map.keySet()) { |
| | | par = map.get(key); |
| | | if (par != null) { |
| | | dat = new InoutData(); |
| | | //更新流水数据(包含重量信息以及流程进度信息) |
| | | inoutService.toComplete(par); |
| | | BeanUtils.copyProperties(par, dat); |
| | | inoutService.updateData(dat); |
| | | |
| | | // //更新仓库库存 |
| | | // if (InoutConstant.TYPE_IN.equals(par.getType())) { |