|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
package org.springblade.wms.service.impl; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import jakarta.annotation.Resource; |
|
|
|
|
@ -254,6 +255,9 @@ public class StOtherOutRecordServiceImpl extends BaseServiceImpl<StOtherOutRecor |
|
|
|
|
} |
|
|
|
|
detail.setDeptId(mainInout.getDeptId()); |
|
|
|
|
detail.setCreateUser(mainInout.getCreateUser()); |
|
|
|
|
if (stOtherOutRecord.getPicker() == null) { |
|
|
|
|
detail.setUserId(stock.getPicker()); |
|
|
|
|
} |
|
|
|
|
detail.setUserId(stOtherOutRecord.getPicker()); |
|
|
|
|
String pickerTeamSet = stStockInoutRecordService.getTeamSetByUserId(stOtherOutRecord.getPicker()); |
|
|
|
|
detail.setPickerTeamSet(pickerTeamSet); |
|
|
|
|
@ -300,7 +304,7 @@ public class StOtherOutRecordServiceImpl extends BaseServiceImpl<StOtherOutRecor |
|
|
|
|
newOutRecord.setCreateTime(new Date()); |
|
|
|
|
newOutRecord.setUpdateUser(user.getUserId()); |
|
|
|
|
newOutRecord.setUpdateTime(new Date()); |
|
|
|
|
newOutRecord.setPicker(stOtherOutRecord.getPicker()); |
|
|
|
|
newOutRecord.setPicker(detail.getUserId()); |
|
|
|
|
|
|
|
|
|
// 保存当前出库单(每条明细对应一条新出库单)
|
|
|
|
|
this.save(newOutRecord); |
|
|
|
|
|