This commit is contained in:
DirectionOfMind 2020-12-29 16:05:09 +08:00
commit 6104cbe47e
2 changed files with 8 additions and 1 deletions

View File

@ -68,6 +68,9 @@ public class EquipmentInfoReq implements java.io.Serializable {
private Long brandId;
//规格id
private Long specsId;
private String gmtInStartTime;
private String gmtInEndTime;

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){
@ -172,6 +173,9 @@ public class EquipmentInfoServiceImpl extends ServiceImpl<EquipmentInfoMapper, E
}
info.setType(equipmentType.getType());
info.setBrandName(equipmentBrand.getBrand());
info.setSpecsId(dto.getSpecId());
info.setBrandId(dto.getBrandId());
info.setTypeId(dto.getTypeId());
info.setSpecType(equipmentSpecs.getSpecs());
info.setQr(dto.getQr());
info.setCode(dto.getCode());