新增绑定时specsId得错误问题
This commit is contained in:
parent
35da0f9f4a
commit
74319a42bb
@ -123,11 +123,12 @@ public class EquipmentInfoServiceImpl extends ServiceImpl<EquipmentInfoMapper, E
|
||||
if(info==null || (info!=null && info.getCount()<i)){
|
||||
log.info("change 第" + i + "次盘点");
|
||||
EquipmentInfo insert = new EquipmentInfo();
|
||||
BeanUtils.copyProperties(dto,insert);
|
||||
insert.setType(equipmentType.getType());
|
||||
insert.setBrandName(equipmentBrand.getBrand());
|
||||
insert.setSpecType(equipmentSpecs.getSpecs());
|
||||
insert.setEquipmentState(dto.getState());
|
||||
BeanUtils.copyProperties(dto,insert);
|
||||
insert.setSpecsId(dto.getSpecId());
|
||||
if(dto.isEmployee()){
|
||||
StaffEntity employeesInfo = staffService.selectStaffById(dto.getUserId());
|
||||
if(employeesInfo==null){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user