This commit is contained in:
齐天大圣 2024-03-30 16:10:38 +08:00
parent 10c9f26589
commit d024f8b8d7

View File

@ -136,8 +136,10 @@ public class TagCodeRecordServiceImpl extends ServiceImpl<TagCodeRecordMapper, T
//绑定员工 //绑定员工
if (ObjectUtils.isNotEmpty(tagCodeRecordDTO) && ObjectUtils.isNotEmpty(tagCodeRecordDTO.getStaffId())){ if (ObjectUtils.isNotEmpty(tagCodeRecordDTO) && ObjectUtils.isNotEmpty(tagCodeRecordDTO.getStaffId())){
LJStaff ljStaff = mtStaffService.selectStaffById(Integer.parseInt(tagCodeRecordDTO.getStaffId())); LJStaff ljStaff = mtStaffService.selectStaffById(Integer.parseInt(tagCodeRecordDTO.getStaffId()));
//String tagCodeSn = oilTag1.getTagCodeSn(); String staffCode = ljStaff.getStaffCode();
ljStaff.setStaffCode("https://www.tuofeng.cc/oilStation"+"?storeId="+tagCodeRecordDTO.getStoreId()+"&staffId="+tagCodeRecordDTO.getStaffId()); String tagCodeSn = oilTag1.getTagCodeSn();
staffCode += "&sn="+tagCodeSn;
ljStaff.setStaffCode(staffCode);
mtStaffService.updateStaff(ljStaff); mtStaffService.updateStaff(ljStaff);
tagCodeRecord.setStaffId(tagCodeRecordDTO.getStaffId()); tagCodeRecord.setStaffId(tagCodeRecordDTO.getStaffId());