bug
This commit is contained in:
parent
d024f8b8d7
commit
044cf386d5
@ -113,8 +113,11 @@ public class TagCodeRecordController extends BaseController {
|
||||
|
||||
if (ObjectUtils.isNotEmpty(tagCodeRecord1) && ObjectUtils.isNotEmpty(tagCodeRecord1.getStaffId())){
|
||||
LJStaff ljStaff = mtStaffService.selectStaffById(Integer.parseInt(tagCodeRecord1.getStaffId()));
|
||||
ljStaff.setStaffCode("");
|
||||
String staffCode = ljStaff.getStaffCode();
|
||||
String[] split = staffCode.split("&sn");
|
||||
ljStaff.setStaffCode(split[0]);
|
||||
mtStaffService.updateById(ljStaff);
|
||||
|
||||
tagCodeRecord1.setStaffId("");
|
||||
tagCodeRecord1.setStaffName("");
|
||||
this.tagCodeRecordService.updateById(tagCodeRecord1);
|
||||
|
@ -142,6 +142,16 @@ public class TagCodeRecordServiceImpl extends ServiceImpl<TagCodeRecordMapper, T
|
||||
ljStaff.setStaffCode(staffCode);
|
||||
mtStaffService.updateStaff(ljStaff);
|
||||
|
||||
LambdaQueryWrapper<TagCode> queryWrapper2 = new LambdaQueryWrapper<>();
|
||||
queryWrapper2.eq(TagCode::getId,oilTag1.getTagCodeId());
|
||||
TagCode tagCode = tagCodeService.getOne(queryWrapper2);
|
||||
String collection = tagCode.getCollection();
|
||||
String collectionsss = "";
|
||||
String[] sns = collection.split("sn");
|
||||
collectionsss = sns[0] + "staffId="+ljStaff.getId()+"&sn="+tagCodeSn;
|
||||
tagCode.setCollection(collectionsss);
|
||||
tagCodeService.updateById(tagCode);
|
||||
|
||||
tagCodeRecord.setStaffId(tagCodeRecordDTO.getStaffId());
|
||||
tagCodeRecord.setStaffName(ljStaff.getRealName());
|
||||
//更新码牌记录表
|
||||
|
Loading…
Reference in New Issue
Block a user