新增绑定时specsId得错误问题

This commit is contained in:
wulin 2020-12-29 10:30:53 +08:00
parent 35da0f9f4a
commit 74319a42bb

View File

@ -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){